sub-audit
Skill9 starsChanged 8 months agoMITView on GitHub
Run a code review and documentation audit on recent changes. Finds bugs, edge cases, missing docs, and type safety issues.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Run a thorough audit on recent changes, combining code review and documentation checks.
- Distinctive: line 33
If argument specifies a feature/scope, identify the relevant files
- Distinctive: line 34
If empty, use git diff --name-only main...HEAD to find all changed files
- Distinctive: line 76
Confidence filtering: Only report issues you are confident about.
- Distinctive: line 84
After presenting the report, ask the user if they want to fix any of the reported issues.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!-- @subframe-version 0.2.7-beta --><!-- @subframe-managed -->SubFrame Audit
Run a thorough audit on recent changes, combining code review and documentation checks.
Dynamic Context
Recent commits (last 15):
!git log --oneline --no-decorate -15 2>/dev/null || echo "No git history"
Files changed vs main:
!git diff --name-only main...HEAD 2>/dev/null | head -40
Instructions
Argument: $ARGUMENTS
The argument should describe the scope to audit. If empty, audit all changes since the last merge to main.
Phase 1: Identify Scope
Determine which files to audit:
- If argument specifies a feature/scope, identify the relevant files
- If empty, use
git diff --name-only main...HEADto find all changed files - Group files by layer (e.g., backend, frontend, shared, config, tests)
Phase 2: Code Review (spawn agent)
Spawn a code review agent (feature-dev:code-reviewer subagent type) to review the changed files. The agent should check for:
- Critical bugs — null/undefined access, race conditions, unhandled errors, infinite loops
- Type safety —
as anycasts, missing type imports, loose typing where strict types exist - Platform issues — Windows path handling, file system edge cases
- Security — command injection, XSS in rendered content, path traversal
- Logic errors — off-by-one, incorrect conditions, missing edge cases
Phase 3: Documentation Audit (spawn agent)
Spawn an explore agent (Explore subagent type) to check documentation completeness:
- AGENTS.md — Are all modules/components listed?
- changelog.md — Does [Unreleased] reflect all new features?
- PROJECT_NOTES.md — Are architecture decisions documented?
- STRUCTURE.json — Is it up to date? (compare module count with actual files)
Phase 4: Report
Present findings in this format:
## Audit Report
### Critical Issues (must fix)
1. [FILE:LINE] Description — severity, impact
### Important Issues (should fix)
1. [FILE:LINE] Description — severity, impact
### Documentation Gaps
1. [FILE] What's missing
### Suggestions (nice to have)
1. DescriptionConfidence filtering: Only report issues you are confident about. Skip speculative concerns or style preferences. Each reported issue should include:
- Exact file and line number
- What the problem is
- Why it matters (impact)
- Suggested fix
Phase 5: Offer Fixes
After presenting the report, ask the user if they want to fix any of the reported issues. If yes, apply fixes starting with Critical → Important → Documentation.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

