complexity-audit
Skill1 starsChanged 3 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.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- Lixiuxiu559/AgentForgetheir own version, first seen Sep 29, 2026
- Jinbae10/skillstheir own version, first seen Jul 7, 2026
- matthewcsimpson/agentic-playbookstheir own version, first seen Jun 24, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- Lixiuxiu559/AgentForge★ 4same name
- Jinbae10/skills★ 0same 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 repository49 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- working-from-a-ticketSkill
- 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
- adding-observabilitySkill
- changing-a-live-schemaSkill
- executing-plansSkill
- rollout-controlsSkill
- subagent-driven-developmentSkill
- test-driven-developmentSkill
- containing-an-incidentSkill
- debuggingSkill
- deprecating-an-apiSkill
- diagnosing-a-sessionSkill
- eliminating-correctionsSkill
- large-scale-changesSkill
- post-mortemSkill
- refactor-architectureSkill
- brainstormingSkill
- define-goalsSkill
- feasibility-checkSkill
- scopingSkill
- receiving-code-reviewSkill
- requesting-code-reviewSkill
- reviewing-a-prSkill
- security-auditsSkill
- verification-before-completionSkill
- verification-strategySkill
- visual-ui-verificationSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
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 36
Prefer one bounded audit. If the surface is large, split it into partitions with stable IDs, exclusive inventories, and cross-boundary …
- Very specific: line 46
If the dispatch is empty, refused, or unavailable, follow the no-dispatch rule in dispatching-parallel-agents Step 2.
- Distinctive: line 50
Read each returned partition report.
- Distinctive: line 54
Keep the report unchanged.
- Distinctive: line 64
Verify the report's coverage, then stop.
≈ “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
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 any state currently under check (the exact state being judged right now).
- Skip choosing an implementation (
yagni), reviewing a frozen change (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, and the evidence allowed. - Declare the report path up front:
.sdlc-skills/audits/{{YYYY-MM-DD}}-{{topic}}.md. The coordinator owns it, and it sits outside the audited target's identity. Identify the target by revision. Use a working-tree hash (the template calls it the working-tree digest) only when the report path is outside the repository orgit check-ignore -qpasses for it. If the target is uncommitted and the report path is in-tree and unignored, stop; ask for a checkpoint or an ignored or out-of-repository report path. If the target drifts, stop or restart. - Fill every row of the template's inventory table.
- Prefer one bounded audit. If the surface is large, split it into
partitions with stable IDs, exclusive inventories, and 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 asdispatching-parallel-agentsStep 2 says. - If the dispatch is 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 to the auditor's allowed verdicts. If a field is missing, unreadable, conflicting, or mismatched, that partition is inconclusive. Keep 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. If a structural change is accepted, invoke
refactor-architecturefor it. Behavior work goes to its feature or bug route. - 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 hash 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.
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.

