Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add alivirgo/Major-AI-Skills --skill check-code-for-obvious-flawsgit clone --depth 1 https://github.com/alivirgo/Major-AI-SkillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/alivirgo/major-ai-skills/check-code-for-obvious-flaws)<a href="https://agentmods.dev/skills/alivirgo/major-ai-skills/check-code-for-obvious-flaws"><img src="https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/check-code-for-obvious-flaws/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/alivirgo/major-ai-skills/check-code-for-obvious-flaws"><img src="https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/check-code-for-obvious-flaws.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00028 | $0.01253 |
| Opus 5.5 | $0.00011 | $0.00501 |
| Sonnet 5.5 | $0.00006 | $0.00251 |
| Haiku 4.5 | $0.00003 | $0.00125 |
Grade C, and why
check-code-for-obvious-flaws scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
[ ] 4. DESTRUCTIVE ACTIONS: Does the script contain `rm -rf`, `DROP TABLE`, or unconfirmed delete API calls? How it starts
The opening of the file, as written. The whole thing — 141 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Check Code for Obvious Flaws (Zero-Trust Code Audit) (AI Skill)
Overview
AI coding assistants are brilliant at scaffolding boilerplate and common algorithms, but they frequently generate code with invisible runtime flaws: deprecated library methods, unhandled null/undefined values, unbounded memory allocations, and hardcoded security assumptions.
The Zero-Trust Code Audit Protocol provides a structured pre-execution gate to catch syntax errors, security vulnerabilities, and logic flaws before deploying to staging or production.
The 5 Most Dangerous AI Code Traps
┌─────────────────────────────────────────────────────────────┐
│ The Top 5 AI Code Pitfalls │
│ │
│ 1. Hallucinated APIs ──► Invented package methods/flags│
│ 2. Unhandled Exceptions ──► Crashes on 404, null, or empty│
│ 3. Hardcoded Secrets ──► API keys or local paths leaked│
│ 4. Concurrency Bugs ──► Race conditions in async/locks│
│ 5. Security Injections ──► Raw string SQL/Bash injection │
└─────────────────────────────────────────────────────────────┘
The Pre-Execution Sanity Checklist
Before running any AI-generated script on your local machine or server:
[ ] 1. PACKAGE CHECK: Are all imported libraries real and installed via your package manager?
[ ] 2. INJECTION CHECK: Are database queries parameterized (no f-string or string concat SQL)?
[ ] 3. NULL SAFETY: Does the code guard against None, undefined, or missing dictionary keys?
[ ] 4. DESTRUCTIVE ACTIONS: Does the script contain `rm -rf`, `DROP TABLE`, or unconfirmed delete API calls?
[ ] 5. MOCK TEST: Can you run it on sample data or in a Docker sandbox before production?
Master Code Audit Prompt Templates
Pattern 1: The Automated Flaw & Edge-Case Scanner
Use this immediately after an AI writes code:
Act as a Principal Staff Security Engineer and SRE.
Critically review the code above for production readiness.
Audit specifically for:
1. **API Validity**: Are any function signatures or methods deprecated or invented?
2. **Failure Modes**: What happens when network timeouts, 500 errors, or corrupt JSON payloads occur?
3. **Security Vulnerabilities**: Check for injection risks, unsanitized inputs, or plain-text credentials.
4. **Boundary Conditions**: Test mentally with empty inputs (`[]`, `""`, `None`, `0`).
Provide the revised, hardened version with comprehensive `try/catch` error handling and type hints.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago Changed · -15 tokens per session scan B → C dc3539764712
- 2mo ago First seen · 141 lines · 43 tokens per session scan B ef4a76428124
check-code-for-obvious-flaws is a skill published in the GitHub repository alivirgo/Major-AI-Skills (6 stars, last pushed today), licensed MIT. It adds 28 tokens to every session and 1,253 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.
check-code-for-obvious-flaws compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| check-code-for-obvious-flawsalivirgo/Major-AI-Skills | Skill | 6 | today | MIT | C | 28 | Claude Code |
| agenttrace-session-auditsickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 34 | Claude Code |
| code-review-graphtirth8205/code-review-graph | Skill | 33k | 14d ago | MIT | A | 84 | Codex |
| code-reviewphuryn/pm-skills | Skill | 28k | 22d ago | MIT | A | 58 | Claude Code |
| code-reviewpromptfoo/promptfoo | Skill | 28k | today | MIT | A | 11 | Claude Code |
| systemic-issue-triageGentleman-Programming/gentle-ai | Skill | 9.7k | today | MIT | A | 57 | Claude Code, Codex |
| issue-root-resolutionGentleman-Programming/gentle-ai | Skill | 9.7k | today | MIT | A | 45 | Claude Code, Codex |