ai-mind-map: Skill for Claude Code

.agents/skills/codebase-security-audit/SKILL.md

codebase-security-audit is a skill for Claude Code, Codex from shdra06/ai-mind-map. It costs 63 tokens per session (1,113 once invoked), scanned A, original, MIT.

An automated code scan for common security weaknesses and accidentally exposed secrets. Static analysis checks source code without running the application.

In plain words
What is it for?
Scanning changed files or repositories, checking for API keys and private keys, reviewing database and shell usage, and finding common web security flaws.
Why use it?
It can catch leaked keys, unsafe database queries, shell-command injection, unsafe HTML, and related problems before code is committed or merged.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument; installed under .agents/ (shared by several agents).

This is shdra06/ai-mind-map's own configuration. It tells Claude Code and Codex how to work on ai-mind-map itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ai-mind-map configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/shdra06/ai-mind-map/main/.agents/skills/codebase-security-audit/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/shdra06/ai-mind-map

Made for: Claude Code, Codex.

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

agentmods badge for codebase-security-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/shdra06/ai-mind-map/codebase-security-audit/github.svg)](https://agentmods.dev/skills/shdra06/ai-mind-map/codebase-security-audit)
Your own site
<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.

agentmods 80×15 button for codebase-security-audit

Your own site · 80×15
<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>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,113 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 8d ago against content hash 83917d654185, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/security-audit.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.
.agents/skills/codebase-security-audit/SKILL.md · 88 lines

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

  1. Pre-Commit Scan: Never report a feature or fix complete without running a security scan on all modified files.
  2. 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[*]).
  3. Always Parameterize Queries: Raw string concatenation or template literals in database queries (query(...), execute(...), raw(...)) are prohibited.
  4. No Raw Shell Interpolation: Avoid child_process.exec(...) or os.system(...) with concatenated strings; use execFile or spawn with argument arrays.
  5. Sanitize Dynamic HTML: Prohibit unsanitized innerHTML or dangerouslySetInnerHTML. Use textContent or DOMPurify.

⚡ 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

Read the full file on GitHub · 88 lines

Files

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.

Changes

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.

  1. 8d ago First seen · 88 lines · 63 tokens per session scan A 83917d654185

Subscribe to this mod's changes

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.