audit
Skill3 starsChanged 8 months agoApache-2.0View on GitHub
Orchestrate a full-project consistency audit using a parallel agent team. Spawns lane-specific auditors to cross-reference docs vs code vs tests vs infra, deduplicates findings, and writes a severity-scored audit report.
164 other projects use a version of this.
Adopted by
Most recently taken up by
- path-to-ai-com/ptai-ecom-toolkittheir own version, first seen Oct 6, 2026
- ku5ic/claude-kittheir own version, first seen Oct 6, 2026
- madkoding/motitatheir own version, first seen Oct 5, 2026
- muon-m2/magento2-toolstheir own version, first seen Oct 4, 2026
- andeeplus/aplustheir own version, first seen Oct 4, 2026
- patrickjaja/claude-desktop-extratheir own version, first seen Oct 4, 2026
Used with
Projects with it also use overdrive, delight and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
nikafastovets-langSkilloverdrive
Push interfaces past conventional limits with technically ambitious implementations. Whether that's a shader, a 60fps virtual table, spring physics on a dialog, or scroll-driven reveals — make users ask "how did they do that?
Also in 12 projects that use this
mtctSkilldelight
Add moments of joy, personality, and unexpected touches that make interfaces memorable and enjoyable to use. Elevates functional to delightful.
Also in 18 projects that use this
mtctSkillteach-impeccable
One-time setup that gathers design context for your project and saves it to your AI config file. Run once to establish persistent design guidelines.
Also in 12 projects that use this
nikafastovets-langSkillarrange
Improve layout, spacing, and visual rhythm. Fixes monotonous grids, inconsistent spacing, and weak visual hierarchy to create intentional compositions.
Also in 6 projects that use this
zwy123zwySkillnormalize
将用户随意输入的提示词规范化为结构清晰、便于大模型执行的标准化提示词。适用于需要整理、统一提示词格式时调用。
Also in 10 projects that use this
tdiminoSkillshape
Plan the UX and UI for a feature before writing code. Run a structured discovery interview, then produce a design brief (.design-context.md) that guides implementation. Establishes design direction, constraints, and strategy before any code is written. Triggers on plan the design, design brief, shape the UX, before we build, design discovery.
Also in 8 projects that use this
- +4 more from mtct
- +1 more from nikafastovets-lang
Other versions164 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 164
- openai/plugins★ 7.3ksame name
- ccch1mneyyy/dsh-TUI★ 4ksame name
- gadievron/raptor★ 3.9ksame name
- nateherkai/AIS-OS★ 1.6ksame name
- jsmastery-pro/skills★ 1.4ksame name
- suboss87/FDEOps★ 950same name
- patrickjaja/claude-desktop-extra★ 657same name
- ww-w-ai/bkit-claude-code★ 600same name
- educlopez/ui-craft★ 367same name
- 10xChengTu/Mux0★ 346same name
154 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository21 other files it gives its agents.
- framework/CLAUDE.mdCLAUDE.md
- dep-auditSkill
- hygiene-auditSkill
- review-prSkill
- api-conventionsSkill
- dashboard-conventionsSkill
- db-migrationSkill
- doc-architectureSkill
- fix-issueSkill
- new-endpointSkill
- new-mcp-toolSkill
- test-allSkill
- deploySkill
- deploy-statusSkill
- incidentSkill
- dreamSkill
- brainstormSkill
- debateSkill
- exec-planSkill
- launch-reviewSkill
- plan-featuresSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
51 rules. 0 are common, 39 are distinctive, and 12 are very specific to this project.
0
Common
Most of the 147 edited versions we read keep these.
39
Distinctive
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
All research agents MUST use this rubric when categorizing findings:
- Distinctive: line 40
Read selectively -- grep/glob first, then read only relevant lines
- Distinctive: line 41
Never read entire files at once
- Distinctive: line 43
Update your task to completed when done
- Very specific: line 47
Create a team called project-audit.
- Distinctive: line 62
Check if deployment scripts match documented procedures
- Distinctive: line 63
Verify package manager config metadata is consistent with docs
- Distinctive: line 64
Check for orphaned config files or scripts
- Distinctive: line 78
Check for HTTP method mismatches (frontend sends POST but route expects GET, etc.)
- Distinctive: line 91
Verify each plugin follows the defined interface/base class
- Distinctive: line 92
Verify each plugin returns the expected response model
- Distinctive: line 93
Check error handling -- are error messages specific and actionable?
- Distinctive: line 100
Verify that claims in architecture documentation match actual code.
- Distinctive: line 102
Read architecture docs in chunks (50 lines at a time)
- Distinctive: line 123
Read architecture docs and check which of the above are mentioned
- Very specific: line 133
Run test collection (e.g., pytest --co -q) to list all collected test cases
- Distinctive: line 147
Read package manager config to extract all declared dependencies (both main and dev)
- Distinctive: line 152
Check for version conflicts or pinning issues
- Distinctive: line 161
Run git stash list to enumerate all stash entries
- Very specific: line 175
Run gitleaks detect to scan for leaked secrets (if available)
- Very specific: line 176
Run semgrep --config auto {source_dir}/ for SAST findings (if available)
- Very specific: line 177
Run bandit -r {source_dir}/ if available
- Distinctive: line 178
Check for OWASP top 10 patterns: SQL injection, XSS, command injection, hardcoded secrets
- Distinctive: line 192
Wait for a response. If the agent responds, let it finish
- Very specific: line 193
If the agent does not respond or remains idle without delivering findings, spawn a replacement agent (same lane, same prompt, name suffixed …
- Distinctive: line 194
Do NOT block consolidation waiting indefinitely -- replace and move on
- Distinctive: line 201
Blocked by: All Phase 1 research agent tasks
- Distinctive: line 206
Read all completed research agent task outputs / findings
- Distinctive: line 209
Add cross-references between related findings
- Very specific: line 221
Write the final audit report to docs/AUDIT_FINDINGS.md.
- Very specific: line 277
Create all tasks upfront with proper blockedBy dependencies:
- Distinctive: line 323
Create the team with all applicable agents
- Distinctive: line 324
Create all tasks upfront with correct dependencies
- Distinctive: line 327
When all research agents complete, trigger the dedup agent
- Distinctive: line 328
When dedup completes, trigger the writer agent
- Distinctive: line 329
When the writer completes, report the final audit location to the user
- Distinctive: line 332
Read any project files directly
- Distinctive: line 333
Do any research or analysis itself
- Very specific: line 340
When --deep is set, research agents augment their grep/glob analysis with installed CLI tools:
- Distinctive: line 378
After both planners complete, the team lead collects the human decisions list and presents ALL decisions that need user input BEFORE …
- Distinctive: line 390
Wait for the user's answers.
- Distinctive: line 399
When all fix agents in the batch complete, run mandatory validation (lint + tests)
- Distinctive: line 400
If validation fails, the batch is NOT complete -- fix agents must address validation failures before proceeding to the next batch
- Distinctive: line 405
After all 3 batches complete and pass validation:
- Distinctive: line 406
Run the full validation suite one final time
- Very specific: line 407
Update docs/AUDIT_FINDINGS.md to mark fixed items
- Distinctive: line 416
Watchdog agent: Every batch gets one. It monitors progress, pings stalled agents after reasonable delay, and reports blockers to the team …
- Distinctive: line 417
Worktree detection: Before assigning a fix agent to a worktree, check git status for unstaged changes in the target file.
- Distinctive: line 418
Validation between batches is mandatory, not optional: No batch proceeds until the previous batch passes all validation checks.
- Very specific: line 425
When --fix-only is passed:
- Very specific: line 431
If docs/AUDIT_FINDINGS.md does not exist, abort with error: "No existing audit report found.
“Common” is measured: kept by at least 6 in 10 of the 147 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Full-Project Consistency Audit
Orchestrate a comprehensive project audit by spawning a team of parallel research agents, deduplicating their findings, and producing a scored audit report.
Argument Parsing
Parse $ARGUMENTS for these flags:
--lanes <comma-separated>: Which audit lanes to run. Valid values:infra,frontend,plugins,arch,tests,deps,security. Default: all lanes.--previous <path>: Path to a previous audit report. When provided, the writer agent adds Fixed Since Last Audit, New Findings, and Regressions sections.--include-stash: When present, also spawn the git-stash-auditor agent.--drop-stashes: Used with--include-stashduring the fix phase. Tells the ops-cleanup agent togit stash dropall stashes instead of just cataloging them.--fix: After the audit completes, automatically run the planning + fix pipeline (Phase 2.5 through Phase 6).--fix-only: Skip audit recon entirely. Read the existingdocs/AUDIT_FINDINGS.mdand go straight to the planning + fix pipeline. Requires a prior audit report to exist.--deep: Enhanced audit using installed CLI tools. The default audit uses grep/glob (fast).--deepadds tool-assisted scanning per lane.
Severity Scoring Rubric
All research agents MUST use this rubric when categorizing findings:
- Critical = breaks at runtime OR creates legal liability
- Major = silent failure OR affects >1 subsystem
- Minor = cosmetic, tech debt, no user impact
Output Format for All Research Agents
Each research agent produces a markdown table (max 50 lines) with these columns:
| Finding | Severity | Location | Expected | Actual |
Rules for all research agents:
- Read selectively -- grep/glob first, then read only relevant lines
- Never read entire files at once
- Keep context lean
- Update your task to completed when done
Team Architecture
Create a team called project-audit. The main agent (team lead) stays lean -- it only spawns agents, routes messages, and summarizes. It never reads files or does research itself.
Phase 1: Research Agents (All Parallel)
Spawn all applicable research agents with run_in_background: true. Each agent gets the severity rubric and output format above in their prompt.
Agent 1: infra-auditor
Lane: infra
Task:
Audit infrastructure configs against documentation.
- Glob deployment configs, CI/CD workflows, and package manager configs
- Cross-reference CI pipeline documented in architecture docs against actual workflow YAML
- Check if deployment scripts match documented procedures
- Verify package manager config metadata is consistent with docs
- Check for orphaned config files or scripts
Agent 2: frontend-auditor
Lane: frontend
Task:
Audit the frontend against the backend API.
- Glob frontend files to catalog all frontend assets
- Grep for API calls (fetch, axios, endpoint URLs) in frontend code
- Glob API route files to catalog all actual routes
- Cross-reference: flag phantom endpoints (called by frontend but don't exist in API)
- Cross-reference: flag dead endpoints (exist in API but never called by frontend)
- Check for HTTP method mismatches (frontend sends POST but route expects GET, etc.)
Agent 3: plugins-auditor
Lane: plugins
Task:
Audit the plugin system for compliance and completeness.
- Glob plugin files to catalog all plugins
- Grep for plugin class definitions or registration patterns
- Cross-reference registered plugins against documented plugins in architecture docs
- Cross-reference against test files
- Verify each plugin follows the defined interface/base class
- Verify each plugin returns the expected response model
- Check error handling -- are error messages specific and actionable?
Agent 4: arch-doc-accuracy-auditor
Lane: arch
Task:
Verify that claims in architecture documentation match actual code.
- Read architecture docs in chunks (50 lines at a time)
- For each architectural claim, verify against actual code:
- Module structure claims: glob to verify directories/files exist
- API route claims: grep route definitions
- Database model claims: grep model definitions
- Plugin system claims: grep plugin implementations
- Configuration claims: read config files
- Flag any claim that does not match reality (doc says X, code does Y)
- Flag any deprecated or removed features still documented
Agent 5: arch-doc-coverage-auditor
Lane: arch
Task:
Find code that exists but is NOT documented in architecture docs.
- Glob the actual module tree
- List all API routes: grep for route decorator patterns
- List all database models: grep for model base class subclasses
- List all CLI commands: grep for CLI command decorators
- Read architecture docs and check which of the above are mentioned
- Flag everything that exists in code but has NO mention in the architecture doc
Agent 6: test-coverage-auditor
Lane: tests
Task:
Audit test coverage against the actual module tree.
- Run test collection (e.g.,
pytest --co -q) to list all collected test cases - Glob source files to list all source modules (excluding
__init__.py) - For each source module, check if there is a corresponding test file or test functions that import/test it
- Flag modules with zero test coverage
- Flag test files that test modules which no longer exist
- Count total test cases per module area
Agent 7: dependency-auditor
Lane: deps
Task:
Audit declared dependencies against actual usage.
- Read package manager config to extract all declared dependencies (both main and dev)
- Grep the codebase for import statements matching each declared dependency
- Flag declared but unused dependencies
- Grep all source files for imports, then check if each imported package is declared
- Flag undeclared dependencies (imported in code but not in config)
- Check for version conflicts or pinning issues
Agent 8: git-stash-auditor (Only if --include-stash)
Lane: N/A (optional) Task: Audit git stash entries. RECON ONLY -- never pop or apply stashes.
- Run
git stash listto enumerate all stash entries - For each entry, run
git stash show <stash-ref>to see what files are affected - Cross-reference stashed files with current working tree changes (from
git status) - Flag stash entries that may conflict with current uncommitted work
- Flag stale stashes (old entries that likely are no longer relevant)
- CRITICAL: Never run
git stash poporgit stash apply. Read-only operations only.
Agent 9: security-auditor (Only if --deep or security in --lanes)
Lane: security
Task:
Perform security-focused auditing of the codebase.
- Run
gitleaks detectto scan for leaked secrets (if available) - Run
semgrep --config auto {source_dir}/for SAST findings (if available) - Run
bandit -r {source_dir}/if available - Check for OWASP top 10 patterns: SQL injection, XSS, command injection, hardcoded secrets
- Review security middleware configuration (CORS, CSP, rate limiting, auth)
- Cross-reference findings with existing suppression files
- Flag any hardcoded API keys, tokens, passwords, or connection strings
Activation: This agent only runs when --deep flag is set OR when security is explicitly included in --lanes.
Stall Detection (Team Lead Responsibility)
The team lead tracks agent completion. If 75% of research agents have reported back and any agent has NOT reported:
- Send one ping message to the stalled agent asking for status
- Wait for a response. If the agent responds, let it finish
- If the agent does not respond or remains idle without delivering findings, spawn a replacement agent (same lane, same prompt, name suffixed with
-v2) and shut down the original - Do NOT block consolidation waiting indefinitely -- replace and move on
Phase 2: Deduplication (After All Research Agents Complete)
Agent 10: dedup-agent
Blocked by: All Phase 1 research agent tasks
Task: Deduplicate and cross-reference findings from all research agents.
- Read all completed research agent task outputs / findings
- Identify duplicate findings (same issue reported by multiple lanes)
- Merge duplicates, keeping the most detailed description and noting all lanes that found it
- Add cross-references between related findings
- Produce a clean deduplicated list, still using the severity rubric
- Output format: same markdown table format but with an additional "Lanes" column showing which auditors found each issue
Phase 3: Report Writing (After Dedup Completes)
Agent 11: writer-agent
Blocked by: dedup-agent task
Task:
Write the final audit report to docs/AUDIT_FINDINGS.md.
Report structure:
# Project Audit Findings
**Date**: [current date]
**Lanes**: [which lanes were run]
**Agents**: [count of research agents that completed]
## Executive Summary
[5-6 lines max. Overall project health assessment. Count of findings by severity.]
## Critical Findings
[Runtime breaks or legal liability. Each finding includes: description, location, expected behavior, actual behavior, recommended fix.]
## Major Findings
[Silent failures or multi-subsystem impact. Same format as Critical.]
## Minor Findings
[Cosmetic, tech debt, no user impact. Same format but can be more concise.]
## Git Stash Cleanup
[Only if --include-stash was used. List stash entries with recommendations: keep, drop, or apply-and-resolve.]
## What's Working Well
[Positive findings -- things that are correctly implemented, well-tested, or properly documented. Important for morale and to avoid audit fatigue.]If --previous flag was provided, also add these sections after "What's Working Well":
## Fixed Since Last Audit
[Findings from the previous report that are now resolved.]
## New Findings
[Findings in this audit that were NOT in the previous report.]
## Regressions
[Findings that were marked as fixed in the previous report but have reappeared.]Task Dependency Graph
Create all tasks upfront with proper blockedBy dependencies:
Phase 1 (parallel):
infra-auditor-task
frontend-auditor-task
plugins-auditor-task
arch-accuracy-task
arch-coverage-task
test-coverage-task
dependency-auditor-task
security-auditor-task (only if --deep or security in --lanes)
git-stash-task (only if --include-stash)
Phase 2:
dedup-task (blocked by all Phase 1 research tasks)
Phase 2.5 (only if --fix):
priority-planner-task (blocked by dedup-task)
execution-planner-task (blocked by dedup-task)
-> human-decision-gate (blocked by both planners)
Phase 3:
writer-task (blocked by dedup-task)
Phase 3-fix (only if --fix, after human decision gate):
batch-1-fix-agents (Critical fixes, parallel + watchdog)
batch-1-validation (blocked by batch-1-fix-agents)
Phase 4-fix:
batch-2-fix-agents (Major fixes, parallel + watchdog)
batch-2-validation (blocked by batch-2-fix-agents)
Phase 5-fix:
batch-3-fix-agents (Minor fixes, parallel + watchdog)
batch-3-validation (blocked by batch-3-fix-agents)
Phase 6-fix:
final-validation-task (blocked by all batch validations)Team Lead Responsibilities
The team lead (main agent) MUST:
- Parse arguments and determine which lanes to run
- Create the team with all applicable agents
- Create all tasks upfront with correct dependencies
- Send each agent their specific instructions plus the severity rubric and output format
- Monitor progress via stall detection
- When all research agents complete, trigger the dedup agent
- When dedup completes, trigger the writer agent
- When the writer completes, report the final audit location to the user
The team lead MUST NOT:
- Read any project files directly
- Do any research or analysis itself
- Accumulate raw tool output in its context
Deep Audit Tools (--deep flag)
When --deep is set, research agents augment their grep/glob analysis with installed CLI tools:
| Tool | Command | Lane(s) | What it finds |
| vulture | vulture {source_dir}/ | arch, deps | Dead/unused code |
| gitleaks | gitleaks detect | security | Leaked secrets in git history |
| deptry | deptry . | deps | Missing/unused/transitive dependencies |
| complexipy | complexipy {source_dir}/ | arch | Cognitive complexity scoring per function |
| semgrep | semgrep --config auto {source_dir}/ | security | SAST rule violations |
| bandit | bandit -r {source_dir}/ | security | Python security issues |
Research agents in the corresponding lanes should run these tools when --deep is active and incorporate findings into their standard output tables.
Fix Pipeline
Activated by --fix flag (runs after audit) or --fix-only flag (reads existing report, skips audit).
Phase 2.5: Planning
Spawn 2 planner agents that collaborate:
priority-planner: Reads deduplicated findings (or docs/AUDIT_FINDINGS.md for --fix-only) and batches them into 3 tiers using the severity rubric:
- Batch 1 (Critical): Runtime breaks, legal liability -- must fix first
- Batch 2 (Major): Silent failures, multi-subsystem impact -- fix after critical
- Batch 3 (Minor): Tech debt, docs, cosmetic -- fix last
execution-planner: Takes the priority planner's batched list and produces:
- Agent assignments per file ownership
- Dependency graph between fixes (which fixes must happen before others)
- Parallelization plan (which fixes within a batch can run concurrently)
- Human decisions list (findings tagged "needs design" or "needs human input")
Both planners produce their output as structured markdown.
Human Decision Gate
After both planners complete, the team lead collects the human decisions list and presents ALL decisions that need user input BEFORE spawning any fix agents. Format:
## Decisions Needed Before Fixing
1. [Finding description] -- [What needs deciding] -- Options: A / B / C
2. [Finding description] -- [What needs deciding] -- Options: A / B / C
...
Please answer each decision so fix agents can proceed.Wait for the user's answers. Incorporate them into the fix plan before proceeding.
Phase 3/4/5: Batch Execution
Execute batches sequentially (Batch 1 -> Batch 2 -> Batch 3). Within each batch:
- Spawn parallel fix agents according to the execution plan and file ownership rules
- Spawn a watchdog agent for the batch -- monitors progress, pings stalled agents
- Fix agents use
isolation: "worktree"UNLESS the target file has unstaged changes (detected viagit status), in which case route to main tree - When all fix agents in the batch complete, run mandatory validation (lint + tests)
- If validation fails, the batch is NOT complete -- fix agents must address validation failures before proceeding to the next batch
- Merge agents only merge branches; validation agents only validate (never combine these roles)
Phase 6: Final Validation
After all 3 batches complete and pass validation:
- Run the full validation suite one final time
- Update
docs/AUDIT_FINDINGS.mdto mark fixed items - Report summary to user: what was fixed, what was skipped, what needs follow-up
Fix Pipeline Rules
- Auto-batching: The severity rubric maps directly to 3 sequential batches (Critical -> Major -> Minor)
- Human decision gate: Findings tagged "needs design" or "needs human input" are collected and presented to the user before fix execution begins. Never auto-fix these.
- Watchdog agent: Every batch gets one. It monitors progress, pings stalled agents after reasonable delay, and reports blockers to the team lead.
- Worktree detection: Before assigning a fix agent to a worktree, check
git statusfor unstaged changes in the target file. If unstaged changes exist, route that agent to the main tree instead. - Validation between batches is mandatory, not optional. No batch proceeds until the previous batch passes all validation checks.
- Role separation: Merge agents only merge. Validation agents only validate. Fix agents only fix. Never combine these roles in a single agent.
--fix-only Flow
When --fix-only is passed:
- Skip all Phase 1 research agents and Phase 2 dedup
- Read
docs/AUDIT_FINDINGS.mddirectly - Parse findings into the severity rubric format
- Proceed to Phase 2.5 (Planning) and continue through the fix pipeline normally
- If
docs/AUDIT_FINDINGS.mddoes not exist, abort with error: "No existing audit report found. Run audit first or use --fix instead of --fix-only."
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.

