agentleFS
smileynetsmileynet/code-spice/skills/code-plan-audit/SKILL.md

code-plan-audit

Skill0 starsChanged 9 months agoMITView on GitHub

Plan quality auditing with completeness scorecard, antipattern risk detection, and readiness checks. Use when auditing implementation plans, evaluating plan completeness, checking error handling strategy, assessing naming and readability pre-checks, reviewing testing strategy, evaluating tradeoff documentation, or running plan-audit on a software project. Covers the 10-point completeness scorecard, code quality pre-checks, antipattern risk assessment, and build-readiness decision.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    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:

    All five "Yes" -> READY TO BUILD.

    line 96
  2. Distinctive:

    Run this 60-second check before writing any code:

    line 100

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

Code Plan Audit

Plan Completeness Scorecard

#CheckSeverity
1Problem clearly stated with concrete requirementsCritical
2Acceptance criteria are testable (not vague adjectives)Critical
3Error handling strategy defined (propagate, recover, or fail)Critical
4Key tradeoffs identified and documentedWarning
5Testing strategy chosen (unit/integration/E2E proportions)Warning
6Dependencies and integration points identifiedWarning
7Naming conventions and readability approach consistentWarning
8Security boundaries identified (input validation, auth, data exposure)Warning
9Scope bounded — deferred items explicitly listedNote
10Existing solutions checked (libraries, shared code, prior art)Note

Scoring: 10/10 = ready to build. 7-9 = minor gaps, address before starting. 4-6 = return to planning. <4 = needs fundamental design work.

Actionability Tests

Five tests every plan item must pass before implementation:

TestPass Criteria
Verb TestActive verbs (create, validate, transform), not vague ("handle", "manage", "deal with")
Scope TestClear boundaries — you know when each task is done
Test TestTestable acceptance criteria, not adjectives ("fast", "clean", "robust")
Dependency TestClear ordering — no hidden assumptions about what runs first
Edge Case TestAt least: empty input, invalid input, concurrent access (if applicable)

Code Quality Pre-Checks

Readability Pre-Check

SignalQuestionIf No
Naming intentDoes the plan use domain-specific names?Clarify domain vocabulary before coding
Layer clarityAre abstraction layers described?Define boundaries before coding
Single responsibilityCan each component be described in one sentence without "and"?Split components

Error Handling Strategy Check

QuestionIf Missing
Which errors are expected vs. unexpected?Define: "not found" is expected; "DB down" is unexpected
Where are system boundaries?Map validation points
What's the recovery strategy for each failure mode?Decide: retry, fallback, propagate, or fail fast
Are error messages actionable for the caller?Plan error types and messages

Modularity Pre-Check

SignalQuestionIf No
Single concernDoes each module handle one distinct problem?Reassess responsibilities
Dependency directionDo dependencies flow one way?Identify circular risks
Interface boundariesAre public APIs defined separately from implementation?Design contracts first
TestabilityCan each component be tested without complex setup?Redesign for dependency injection

Plan-Level Antipatterns

AntipatternSymptom in PlanSeverity
The FogAdjectives without verbs ("robust auth", "clean API")Critical
The WishlistDescribes the final vision, no phased deliveryWarning
The MonolithEverything in one component, no separationWarning
The OracleAssumes perfect knowledge of future requirementsWarning
The Clone"Like X but..." without understanding X's design decisionsWarning
Missing Error StoryHappy path only — no error handling, no edge casesCritical

Implementation Risk Signals

Plan SignalPredictsPrevention
No domain types mentionedPrimitive obsessionPlan dedicated types for constrained values
"Handle errors" without specificsSilent failureDefine error categories and recovery per boundary
Single class/module for multiple concernsGod objectSplit responsibilities before coding
"Optimize for performance" without metricsPremature optimizationDefine performance targets with measurement plan
Interface defined before second use casePremature abstractionStart concrete, extract interface when needed

"Is This Plan Ready to Build?"

#QuestionIf No
1Can you state what the code does in one sentence?STOP — Define the problem and deliverable
2Do acceptance criteria pass the Test Test?STOP — Rewrite criteria as verifiable assertions
3Is error handling strategy defined for each system boundary?STOP — Map boundaries and failure modes
4Is the testing approach proportional to the risk?STOP — Define test levels and critical paths
5Is at least one design tradeoff documented with alternatives?STOP — Record reasoning for key decisions

All five "Yes" -> READY TO BUILD. Start with the highest-risk component.

Quick Pre-Implementation Gate

Run this 60-second check before writing any code:

  • I can state the deliverable in one sentence
  • I know the first test I'll write
  • I know what errors I'll handle and how
  • I know what I'm not building (scope boundary)

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.