Security Anti-Patterns Python

Read-only OWASP Top 10 guardrail for Python/Django/Flask/FastAPI code generation - no scripts, just rules.

Tested · Works

Test report

Verdict
Tested · Works
Score
9.6/10
Tested
Jul 16, 2026
Environment
Claude Code 2.x (agent harness)
Upstream re-checked
Aug 10, 2026 · 221dfee

Proved the core claim with a real exploit: a naive f-string SQL query leaked both rows in an in-memory SQLite table for payload x' OR '1'='1', while the skill's references/injection.md-prescribed parameterized query (con.execute('... WHERE username = ?', (name,))) returned zero rows for the same payload - a genuine, reproducible SQLi fix, not just advice.

Scored on four weighted criteria — install, triggering, output vs. baseline, docs. How scoring works

  • Installs cleanly 5/5
  • Triggers reliably 5/5
  • Output vs. baseline 9/10
  • Docs & honesty 5/5

What Security Anti-Patterns Python does

A code-generation guard: 10 hard NEVER rules plus 11 reference modules covering SQL/command injection, unsafe deserialization, XSS, auth/access control, crypto, and framework-specific (Django/FastAPI/Flask) patterns with CWE references. Triggers when generating Python code that handles user input, queries a database, or manages auth/secrets; it has no executable scripts, it only shapes how the model writes code.

How to install Security Anti-Patterns Python

git clone https://github.com/subhashdasyam/security-antipatterns-python
mkdir -p ~/.claude/skills
cp -r security-antipatterns-python ~/.claude/skills/security-antipatterns-python

Skills live in ~/.claude/skills/ (global) or .claude/skills/ (per-project). Restart Claude Code after installing.

Commands — how to trigger Security Anti-Patterns Python

  • /security-antipatterns-python Read-only OWASP Top 10 guardrail for Python/Django/Flask/FastAPI code generation - no scripts, just rules.

It also activates on plain-language prompts like these:

  • Write a Django view that queries the database by username safely
  • Review this FastAPI endpoint for SQL injection risks
  • Generate a login handler that avoids common Python security pitfalls

Frequently asked questions

Is the Security Anti-Patterns Python skill free?
Yes. The skill itself is free from subhashdasyam/security-antipatterns-python. SkillProof publishes the install command and an independent test verdict at no cost.
Does Security Anti-Patterns Python work with Claude Code?
We tested it with Claude Code 2.x (agent harness) on Jul 16, 2026. Verdict: Tested · Works. Proved the core claim with a real exploit: a naive f-string SQL query leaked both rows in an in-memory SQLite table for payload x' OR '1'='1', while the skill's references/injection.md-prescribed parameterized query (con.execute('... WHERE username = ?', (name,))) returned zero rows for the same payload - a genuine, reproducible SQLi fix, not just advice.
What is the Security Anti-Patterns Python SkillProof Score?
9.6/10 — installs cleanly 5/5, triggers reliably 5/5, output vs. baseline 9/10, docs & honesty 5/5.
How do I install Security Anti-Patterns Python?
Copy the install command from this page, run it in your terminal, and restart Claude Code. Skills live in ~/.claude/skills/ (global) or .claude/skills/ inside a project.
Can I use Security Anti-Patterns Python with Cursor, Copilot, Gemini CLI, Codex or other AI tools?
The SKILL.md format is native to Claude (Claude Code, Desktop, claude.ai). The instructions inside adapt to other assistants: Cursor rules, GitHub Copilot instructions, Windsurf rules, Custom GPTs, AGENTS.md for OpenAI Codex, and GEMINI.md for Google Gemini CLI — our conversion guides cover each, and the free converter on the tools page does the wrapping for you.