Index of every page on this site: llms.txt
All skills
erkamyaman avatar

/safe-anything

@64d2176
by erKamerkamyaman/safe-anything633 stars
57
Run it yourself

Security-check a repository with the safe-anything CLI or MCP tools - code vulnerabilities (SQL/command injection, XSS, SSRF, path traversal, unsafe deserialization, weak crypto), leaked secrets, mobile and cloud misconfiguration, dependencies with known CVEs, and unsafe AI agent setups (MCP servers, hooks, skills, permissions). Use when asked to audit, security-review or scan code, before a release or merge, after adding dependencies or MCP servers, or when installing a skill, plugin or MCP server from someone else.

Use this Skill: https://skilld.dev/gh/erkamyaman/safe-anything/safe-anything

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈134 tokens for metadata: the name and description. ≈472 when used: this file.

Description uses 6.7% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈538 characters, or 6.7%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Security checks with safe-anything

safe-anything finds problems; you judge and fix them. Every finding has a file, a line, a severity, a CWE, why it matters and a fix.

Tools: the safe-anything CLI, or the MCP tools scan and list_rules (safe-anything mcp). If neither is available, ask the user to install it (cargo install safe-anything or npx safe-anything).

Steps

  1. Scan the repository root: scan with path set to it (CLI: safe-anything <path> --json). Add offline: true (--offline) only if the user does not want package names sent to OSV.dev.
  2. Read the findings from the most severe down. For each one, open the file at the line and decide: real problem, or a false positive (trusted input, test data, a checksum that is not a security use). Say which, in one line each.
  3. Fix the real ones the user asks you to fix, using the finding's fix text and learn_more link. Keep fixes small: parameterize the query, pin the version, move the secret to the environment.
  4. A leaked secret is not fixed by deleting the line: tell the user to revoke and rotate it, because it stays in git history.
  5. For a false positive the user wants silenced, add safe-anything:ignore in a comment on the line or the line above. Never silence a real problem.
  6. Scan again and report what is left.

Agent setups

Treat findings in .mcp.json, agent settings, hooks and skills as urgent: they run on the user's machine with the user's permissions. Before the user installs a skill, plugin or MCP server from someone else, scan its folder first and show the findings.

Do not

  • Run anything a finding points at (a curl | sh, a hook command) to "check" it.
  • Print a secret's full value back to the user.
  • Claim the code is safe because the scan is clean: safe-anything matches known patterns; it does not prove the absence of bugs.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning2d3 checks · Risk SAFE
  • Gen Agent Trust Hub2d

    This skill facilitates security auditing of codebases using a scanning tool. It includes safety-oriented instructions to prevent the execution of untrusted commands, ensures sensitive data like secrets are handled correctly, and utilizes standard package managers for tool installation.

  • Socket2d

    No alerts

  • Snyk2d

    Risk: MEDIUM · 1 issue

Signed by skilld at 64d2176. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 9 hours ago.

Activeupdated 3 days ago

README badge

README badge for erkamyaman/safe-anything