Agent Skills › erkamyaman/safe-anything › safe-anything

safe-anything

GitHub

使用 safe-anything 工具对代码库进行安全扫描,检测漏洞、泄露密钥及配置错误。适用于发布前审计、依赖安装或 MCP 服务器接入时的安全检查与修复。

plugin/skills/safe-anything/SKILL.md erkamyaman/safe-anything

Trigger Scenarios

请求代码安全审计 合并或发布前检查 安装新依赖或插件后 接入第三方 MCP 服务器时

Install

npx skills add erkamyaman/safe-anything --skill safe-anything -g -y
More Options

Non-standard path

npx skills add https://github.com/erkamyaman/safe-anything/tree/main/plugin/skills/safe-anything -g -y

Use without installing

npx skills use erkamyaman/safe-anything@safe-anything

指定 Agent (Claude Code)

npx skills add erkamyaman/safe-anything --skill safe-anything -a claude-code -g -y

安装 repo 全部 skill

npx skills add erkamyaman/safe-anything --all -g -y

预览 repo 内 skill

npx skills add erkamyaman/safe-anything --list

SKILL.md

Frontmatter
{
    "name": "safe-anything",
    "description": "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."
}

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.

Version History

  • a3ebd09 Current 2026-11-24 23:46

Same Skill Collection

skills/safe-anything/SKILL.md

Metadata

Files
0
Version
a3ebd09
Hash
073df3b6
Indexed
2026-11-24 23:46

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-25 05:33
浙ICP备14020137号-1