ai-toolkit-rules
Mandatory engineering, security, testing, git, performance, quality, and response rules. Claude MUST load this skill for every…
Scans skills/agents for security risks: dangerous patterns, secrets, excessive perms. Triggers: skill audit, security scan, agent audit, dangerous pattern.
Claude Code
$ npx -y skills add softspark/ai-toolkit --skill skill-audit --agent claude-code
Codex
$ npx skills add softspark/ai-toolkit --skill skill-audit -a codex -y
Cursor
$ npx skills add softspark/ai-toolkit --skill skill-audit -a cursor -y
Gemini CLI
$ npx skills add softspark/ai-toolkit --skill skill-audit -a gemini-cli -y
GitHub Copilot
$ npx skills add softspark/ai-toolkit --skill skill-audit -a github-copilot -y
OpenCode
$ npx skills add softspark/ai-toolkit --skill skill-audit -a opencode -y
Windsurf
$ npx skills add softspark/ai-toolkit --skill skill-audit -a windsurf -y
name: skill-audit description: "Scans skills/agents for security risks: dangerous patterns, secrets, excessive perms. Triggers: skill audit, security scan, agent audit, dangerous pattern." effort: medium disable-model-invocation: true argument-hint: "[skill-name | --all | --fix]" allowed-tools: Read, Grep, Glob, Bash
$ARGUMENTS
Scan skill and agent definitions for security risks before installation or after changes.
/skill-audit # Audit all skills /skill-audit debug # Audit specific skill /skill-audit --all --fix # Audit all + auto-fix safe issues
1. **Scan SKILL.md frontmatter** for permission issues 2. **Scan scripts/** for dangerous code patterns 3. **Scan reference/** for hardcoded secrets 4. **Report** findings with severity levels 5. **Auto-fix** safe issues when `--fix` is passed
| Check | Severity | Description | |-------|----------|-------------| | Overly permissive tools | WARN | `allowed-tools` includes Bash + Write + Edit without justification | | Missing allowed-tools | WARN | No tool restriction = full access | | Knowledge skill with Bash | HIGH | `user-invocable: false` skills should not need Bash | | Missing effort field | INFO | Best practice to declare effort |
| Pattern | Severity | Description | |---------|----------|-------------| | `eval(` / `exec(` | HIGH | Arbitrary code execution | | `os.system(` | HIGH | Shell injection risk | | `subprocess.*shell=True` | HIGH | Shell injection risk | | `__import__` | WARN | Dynamic imports | | `pickle.loads` | HIGH | Deserialization attack | | `open(.*'w')` without path validation | WARN | Arbitrary file write |
| Pattern | Severity | Description | |---------|----------|-------------| | `curl.*\| bash` | HIGH | Remote code execution | | `curl.*\| sh` | HIGH | Remote code execution | | `wget.*\| bash` | HIGH | Remote code execution | | `rm -rf /` or `rm -rf ~` | HIGH | Destructive command | | Unquoted `$variables` in commands | WARN | Word splitting / injection | | `chmod 777` | WARN | Overly permissive |
| Pattern | Severity | Description | |---------|----------|-------------| | `AKIA[0-9A-Z]{16}` | HIGH | AWS access key | | `sk-[a-zA-Z0-9]{20,}` | HIGH | API key pattern | | `password\s*=\s*['"][^'"]+` | WARN | Hardcoded password | | `token\s*=\s*['"][^'"]+` | WARN | Hardcoded token | | `-----BEGIN.*PRIVATE KEY` | HIGH | Private key | | `ghp_[a-zA-Z0-9]{36}` | HIGH | GitHub PAT |
Shipped prompt text (skills, agents, rules, personas, mcp-templates) is scanned for invisible/smuggled characters that a human reviewer cannot see. `U+200D` (ZWJ) is allowlisted so legitimate emoji sequences do not flag.
| Pattern | Severity | Description | |---------|----------|-------------| | Tag block `U+E0000–U+E007F` | HIGH | ASCII smuggling / invisible prompt injection | | Bidi controls (LRE/RLE/PDF/LRO/RLO, LRI/RLI/FSI/PDI) | HIGH | Trojan Source text reordering | | Zero-width / invisible format chars (ZWSP, ZWNJ, WJ, BOM, soft hyphen, …) | WARN | Verify it is intentional |
## Skill Audit Report ### Summary - Skills scanned: N - HIGH: N | WARN: N | INFO: N ### Findings #### [HIGH] skill-name/scripts/helper.py:12 Pattern: `eval(user_input)` Risk: Arbitrary code execution Fix: Replace with `ast.literal_eval()` or explicit parsing #### [WARN] skill-name/SKILL.md (frontmatter) Pattern: Missing `allowed-tools` Risk: Skill has unrestricted tool access Fix: Add `allowed-tools: Read, Grep, Glob` (principle of least privilege)
1. Determine scope: single skill (`$ARGUMENTS`) or all skills 2. For each skill directory in `app/skills/`: a. Read `SKILL.md` — check frontmatter fields b. Glob `scripts/**/*.py` — scan for dangerous Python patterns c. Glob `scripts/**/*.sh` — scan for dangerous Bash patterns d. Grep all files for secret patterns 3. Also scan `app/agents/*.md` for overly broad tool lists 4. Collect findings, sort by severity (HIGH > WARN > INFO) 5. If `--fix` is passed:
6. Print audit report
For CI pipelines or non-interactive use, run the Python scanner directly:
# Human-readable output python3 scripts/audit_skills.py # JSON output (for CI parsing) python3 scripts/audit_skills.py --json # CI mode: exit 1 on any HIGH finding python3 scripts/audit_skills.py --ci
The `/skill-audit` slash command wraps this scanner with Claude's analysis for remediation suggestions.
AI coding toolkit with machine-enforced safety, 116 skills, 44 agents, lifecycle hooks, persona presets, opt-in plugin packs, and benchmark tooling.
Mandatory engineering, security, testing, git, performance, quality, and response rules. Claude MUST load this skill for every…
Searches past coding sessions for observations, decisions, context. Triggers: mem-search, recall session, past work, prior…
Accessibility validator: WCAG 2.1 AA, EN 301 549, EAA. Triggers: a11y, accessibility, WCAG, EAA, ARIA, contrast, keyboard, screen…
Creates new specialized agents with frontmatter, tools, delegation. Triggers: new agent, create agent, agent scaffold,…
Analyzes code quality, complexity, patterns across codebase. Triggers: quality report, hotspot scan, code analysis, architecture…
API design: naming, versioning, pagination, idempotency, OpenAPI, error contracts and safe retries. Triggers: API design, REST,…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.