Skip to content
Back to skills

Safe Function Lint

ASecurity

Scan Python or React/JS code for outdated, banned, or vulnerable functions/methods (eval, pickle.loads, subprocess shell=True, dangerouslySetInnerHTML, md5 for passwords, etc.) and propose the exact safe alternative for each hit. Use when reviewing a diff/PR, before a commit, or when the user asks "is this function safe", "any vulnerable functions here", or wants a secure-coding pass on Python or React code.

  • 8 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 19, 2026
ai-agentspythongoshellreactgitapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 19, 2026

npx -y skills add jassics/awesome-claude-security --skill safe-function-lint --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Safe Function Lint?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Safe Function Lint
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jassics-safe-function-lint/badge)](https://www.skillsdirectory.com/skills/jassics-safe-function-lint)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: safe-function-lint
description: Scan Python or React/JS code for outdated, banned, or vulnerable functions/methods (eval, pickle.loads, subprocess shell=True, dangerouslySetInnerHTML, md5 for passwords, etc.) and propose the exact safe alternative for each hit. Use when reviewing a diff/PR, before a commit, or when the user asks "is this function safe", "any vulnerable functions here", or wants a secure-coding pass on Python or React code.
---

# Goal

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."

# Steps

1. Determine scope: staged diff (`git diff --cached`) by default if inside a git repo
   and no path is given; otherwise the path/files the user named.
2. Identify language(s) present (`.py` → Python rules; `.js/.jsx/.ts/.tsx` → React/JS rules).
3. Load `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.
4. If Semgrep is installed, prefer running it for precision:
   ```
   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.
5. De-duplicate and rank findings by severity (Critical/High/Medium/Low, per `reference.md`).

# Output

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.

Files in this skill

  • SKILL.md2 KB
  • reference.md6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.