agentleFS
Codename-11Codename-11/SubFrame/.agents/skills/sub-audit/SKILL.md

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
  1. Distinctive:

    Run a thorough audit on recent changes, combining code review and documentation checks.

    line 14
  2. Distinctive:

    If argument specifies a feature/scope, identify the relevant files

    line 33
  3. Distinctive:

    If empty, use git diff --name-only main...HEAD to find all changed files

    line 34
  4. Distinctive:

    Confidence filtering: Only report issues you are confident about.

    line 76
  5. Distinctive:

    After presenting the report, ask the user if they want to fix any of the reported issues.

    line 84

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md
<!-- @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...HEAD to 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:

  1. Critical bugs — null/undefined access, race conditions, unhandled errors, infinite loops
  2. Type safety — as any casts, missing type imports, loose typing where strict types exist
  3. Platform issues — Windows path handling, file system edge cases
  4. Security — command injection, XSS in rendered content, path traversal
  5. 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:

  1. AGENTS.md — Are all modules/components listed?
  2. changelog.md — Does [Unreleased] reflect all new features?
  3. PROJECT_NOTES.md — Are architecture decisions documented?
  4. 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. Description

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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.