complexity-audit
Skill1 starsChanged 4 months agoMITView on GitHub
Audits existing code for accidental complexity: abstraction nothing needs, ownership it should not hold, flexibility nobody uses, or custom machinery a library already provides. Use when existing code should be examined for accidental complexity, or when the user asks whether this is over-engineered, why it is so complicated, or whether all of it is still needed. Skip implementation choices, review of a frozen change, and structural work already approved.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- Lixiuxiu559/AgentForgetheir own version, first seen Sep 29, 2026
- matthewcsimpson/agentic-playbookstheir own version, first seen Jun 24, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- Lixiuxiu559/AgentForge★ 3same name
- matthewcsimpson/agentic-playbooks★ 0same name
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 repository40 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- writing-specsSkill
- clarifying-intentSkill
- dispatching-parallel-agentsSkill
- handoffSkill
- mapping-the-codebaseSkill
- prototypingSkill
- using-git-worktreesSkill
- using-sdlc-skillsSkill
- viewing-artifactsSkill
- writing-skillsSkill
- yagniSkill
- finishing-a-branchSkill
- release-readinessSkill
- architecture-decisionsSkill
- coding-standardsSkill
- data-modelSkill
- migration-strategySkill
- reviewing-plansSkill
- system-architectureSkill
- ui-ux-designSkill
- writing-plansSkill
- executing-plansSkill
- subagent-driven-developmentSkill
- test-driven-developmentSkill
- containing-an-incidentSkill
- debuggingSkill
- diagnosing-a-sessionSkill
- post-mortemSkill
- refactor-architectureSkill
- define-goalsSkill
- feasibility-checkSkill
- scopingSkill
- receiving-code-reviewSkill
- requesting-code-reviewSkill
- security-auditsSkill
- verification-before-completionSkill
- verification-strategySkill
- visual-ui-verificationSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 28
Use a working-tree digest only when the report path is outside the repository or git check-ignore -q passes for it: an in-tree, unignored …
- Very specific: line 34
Prefer one bounded audit. Large surface → partitions with stable IDs, exclusive inventories, cross-boundary edges.
- Distinctive: line 47
Read each returned partition report.
- Distinctive: line 60
Verify the report's coverage, then stop.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Complexity Audit
Find accidental complexity without calling essential guarantees bloat. This is diagnosis, not permission to change code.
When to use
- Audit an existing module or repository independently of a current candidate.
- Skip choosing an implementation (
yagni), reviewing an exact candidate (requesting-code-review), or applying known structural work (refactor-architecture). - A whole-repository claim requires explicit whole-repository scope; otherwise name the bounded surface and make no wider claim.
Step 1: Freeze
- Open
assets/audit-report.mdbefore the inventory. Fill What was frozen first: identity, goal, path boundary, guarantees in force, admissible evidence. - Predeclare the report path
.sdlc-skills/audits/{{YYYY-MM-DD}}-{{topic}}.md, coordinator-owned, outside the audited target's identity. Identify the target by revision. Use a working-tree digest only when the report path is outside the repository orgit check-ignore -qpasses for it: an in-tree, unignored report changes the digest the audit froze. Uncommitted target with an in-tree, unignored report path → stop; ask for a checkpoint or an ignored or out-of-repository report path. Target drifts → stop or restart. - Fill every row of the template's inventory table.
- Prefer one bounded audit. Large surface → partitions with stable IDs,
exclusive inventories, cross-boundary edges. Invoke
dispatching-parallel-agentsonly when read sets, resources, data boundaries, and outputs reconcile independently.
Step 2: Challenge read-only
- Fill
assets/yagni-auditor.mdwithassets/partition-report.mdbefore dispatching each exact partition, then dispatch perdispatching-parallel-agentsStep 2. - Empty, refused, or unavailable → follow the no-dispatch rule in
dispatching-parallel-agentsStep 2. - Fill every line of the template's coverage-reconciliation block before any finding.
- Read each returned partition report; open its file if only a location was returned. Match Target, Audit inputs, Partition, and Verdict to the frozen request and auditor's allowed verdicts. Missing, unreadable, conflicting, or mismatched fields → that partition is inconclusive. Retain the report unchanged; never infer a repository-wide conclusion from partial coverage.
Step 3: Publish decisions
- Fill every column of the template's findings table, one row per finding. Line count is not authority.
- Apply or approve nothing. Accepted structural change →
refactor-architecture. Behavior work → its feature or bug route, producing a new verified candidate. - Verify the report's coverage, then stop. Review or branch finishing runs only if the user separately asks to ship the report.
Gotchas
- Code with no static caller can still be reached through reflection, registration, or configuration. A search that finds no caller has not proved a removal safe.
- A reconciliation that lists no failed or inconclusive area reads as full coverage. Count what was not examined, or a silent gap passes as clean.
- A working-tree digest captured before the audit reports DRIFT once the report lands at an unignored path under the audited tree, though no audited code changed.
Common mistakes
- “No direct caller” → dynamic, configured, generated, or external use remains
investigateuntil disproved or deprecated. - “One implementation” → a seam containing real impedance, policy, or test isolation may be justified; apply the deletion test, not a slogan.
- “Tests and rollback are overhead” → a current assurance or recovery guarantee owns them; duplicate machinery with no distinct guarantee is the candidate.
- Editing during the audit → freezes neither evidence nor conclusions; report first, then obtain separate implementation authority.
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.

