Borrowing it
Nothing to install: this file belongs to shdra06/ai-mind-map. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/shdra06/ai-mind-map/main/.agents/skills/codebase-security-audit/SKILL.mdgit clone --depth 1 https://github.com/shdra06/ai-mind-mapWrote 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/shdra06/ai-mind-map/codebase-security-audit)<a href="https://agentmods.dev/skills/shdra06/ai-mind-map/codebase-security-audit"><img src="https://agentmods.dev/badge/skills/shdra06/ai-mind-map/codebase-security-audit/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/shdra06/ai-mind-map/codebase-security-audit"><img src="https://agentmods.dev/badge/skills/shdra06/ai-mind-map/codebase-security-audit.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.00063 | $0.01113 |
| Opus 5.5 | $0.00025 | $0.00445 |
| Sonnet 5.5 | $0.00013 | $0.00223 |
| Haiku 4.5 | $0.00006 | $0.00111 |
Grade A, and why
codebase-security-audit scanned grade A 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 8d 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.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
4. **No Raw Shell Interpolation**: Avoid `child_process.exec(...)` or `os.system(...)` with concatenated strings; use `execFile` or `spawn` with argument arrays. How it starts
The opening of the file, as written. The whole thing — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Codebase Security & Secrets Audit Skill
Run automated static security scans across files and repositories to eliminate exposed credentials, unparameterized queries, command injections, and common web security vulnerabilities before code is merged.
🛡️ The 5 Non-Negotiable Security Rules
- Pre-Commit Scan: Never report a feature or fix complete without running a security scan on all modified files.
- Zero Hardcoded Secrets: Secrets, JWT keys, API keys, and database passwords must NEVER be committed to source code—always verify environment variable extraction (
process.env.*,os.environ[*]). - Always Parameterize Queries: Raw string concatenation or template literals in database queries (
query(...),execute(...),raw(...)) are prohibited. - No Raw Shell Interpolation: Avoid
child_process.exec(...)oros.system(...)with concatenated strings; useexecFileorspawnwith argument arrays. - Sanitize Dynamic HTML: Prohibit unsanitized
innerHTMLordangerouslySetInnerHTML. UsetextContentorDOMPurify.
⚡ Quick Scan Workflows
Method A: Via AI Mind Map MCP Tool
// Scan the entire indexed project for vulnerabilities
mindmap_security_scan({
"severity": "high" // 'critical' | 'high' | 'medium' | 'all'
})
// Or scan a specific edited file
mindmap_security_scan({
"filePath": "src/controllers/auth.ts",
"severity": "all"
})
Method B: Via Standalone CLI Scanner
# Scan whole repository
node .agents/skills/codebase-security-audit/scripts/security-audit.mjs
# Scan specific file
node .agents/skills/codebase-security-audit/scripts/security-audit.mjs --file src/auth.ts
# Filter by severity
node .agents/skills/codebase-security-audit/scripts/security-audit.mjs --severity critical
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 8d ago First seen · 88 lines · 63 tokens per session scan A 83917d654185
codebase-security-audit is a skill published in the GitHub repository shdra06/ai-mind-map (3 stars, last pushed 9d ago), licensed MIT. It adds 63 tokens to every session and 1,113 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-18.
Other skills, from other repositories
geminiignore-finops
Configure and optimize .geminiignore files for AI context window efficiency and token cost reduction (FinOps).
opencode
Delegate coding tasks to the OpenCode CLI for feature work, refactoring, PR review, and autonomous-style runs. Requires opencode installed where the agent can execute shell commands.
codex
Delegate coding tasks to the OpenAI Codex CLI for features, refactoring, PR reviews, and batch fixes. Requires the codex CLI and typically a git repository.
deepnote
DeepNote knowledge base: persistent interlinked markdown wiki with ingest, query, lint, link graph and history.
springboot-patterns
Spring Boot architecture patterns, REST API design, layered services, data access, caching, async processing, and logging. Use for Java Spring Boot backend work.
golang-patterns
Idiomatic Go patterns, best practices, and conventions for building robust, efficient, and maintainable Go applications.