/secure-coding:safe-function-lintfrom secure-coding
Scans Python or React/JS code for outdated, banned, or vulnerable functions and proposes safe alternatives. Useful for diff/PR review and secure-coding passes.
Ships in secure-coding. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
For a given diff, file, or directory, find every use of a banned/outdated/vulnerable function or API in Python or React/JS, and for each hit report: the exact standard it violates, why it's risky, and the concrete safe replacement — never just "this is bad."
git diff --cached) by default if inside a git repo
and no path is given; otherwise the path/files the user named..py → Python rules; .js/.jsx/.ts/.tsx → React/JS rules).reference.md in this skill directory — it is the rule pack (CWE/OWASP ASVS
cited, matcher pattern, safe alternative) — and check the scoped code against it.semgrep --config "$CLAUDE_PLUGIN_ROOT/rules/semgrep-python.yml" <path> # Python
semgrep --config "$CLAUDE_PLUGIN_ROOT/rules/semgrep-react.yml" <path> # React/JS
If Semgrep isn't installed, fall back to manually pattern-matching against reference.md
directly — do not skip the check, degrade to manual review instead.reference.md).For each finding, report in this exact shape:
[<severity>] <file>:<line> — <banned function/pattern>
Standard: <CWE-ID / OWASP ASVS section>
Risk: <one sentence — what breaks and how it's exploited>
Fix: <exact safe replacement, as a code snippet if it's not a 1:1 rename>
Close with a one-line summary count by severity. Do not restate the whole file — only the offending lines and their fixes.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 skills in this plugin
npx claudepluginhub jassics/awesome-claude-security --plugin secure-codingOther plugins' skills for the same job