maid-plan-review
Validates that MAID manifests and tests form a solid implementation contract.
Install
mkdir -p .claude/skills/maid-plan-review && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/12800" && unzip -o skill.zip -d .claude/skills/maid-plan-review && rm skill.zipInstalls to .claude/skills/maid-plan-review
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Review a MAID manifest and its behavioral tests before implementation. Verifies the plan is complete, scoped correctly, and the tests form a genuine behavioral contract. Use after maid-planner produces a manifest and before implementation starts. Triggers: review the manifest, review the plan, check the manifest, is this plan ready, maid plan review.Key capabilities
- →Locate the MAID manifest file
- →Perform structural review of the manifest
- →Conduct scope review of the manifest
- →Evaluate artifact quality in the manifest
- →Review the quality of behavioral tests
- →Confirm the red phase of tests
How it works
This skill systematically reviews a MAID manifest and its behavioral tests by performing structural, scope, artifact quality, and test quality checks, and confirms the red phase of tests.
Inputs & outputs
When to use maid-plan-review
- →Review plan
- →Verify behavioral contract
- →Check implementation readiness
About this skill
MAID Plan Review
Review a manifest and its behavioral tests before implementation begins. This is the quality gate between planning and coding.
Distinguish draft inventory from an implementation-ready contract. Drafts under
manifests/drafts/ may exist before behavioral test files are created. Missing
planned tests, pytest "file not found", or E200 means the draft is not ready
to promote or implement yet; it is not automatically a defect in inventory
planning. Apply the behavioral-test and red-phase gates only when reviewing a
manifest for approval, promotion, or immediate implementation.
Rules
- NEVER modify the manifest or tests during review.
- NEVER proceed to implementation if blockers are found.
- ALWAYS confirm the red phase.
- Judge the plan, not the idea.
- Treat missing explicit signatures and missing field types as blockers.
- Treat
E200behavioral misses as blockers only for manifests presented as approval-ready, promotion-ready, or implementation-ready. - Treat missing rationale for important design choices as a revision item.
- Treat generic, missing, or unpaired
temptationsas blockers when the task has obvious implementation shortcuts.
Phase 1 — Locate the Manifest
Use the path provided by the user. If none is provided, inspect recent manifests/*.manifest.yaml files and pick the most likely draft. Ask only if the choice is ambiguous.
Phase 2 — Structural Review
Check:
- schema version
- specific goal
- manifest type
- created date
- adequate description
- valid
files.create,files.edit,files.read, andvalidatesections - lean task-specific
temptationswhen implementation gaming is plausible - sensible paths and dependency coverage
Phase 3 — Scope Review
Flag manifests that are too broad, too narrow, or missing critical read dependencies.
For current MAID manifests, distinguish contracted, scope-only, and contextual files:
files.createandfiles.editare the public artifact contract.files.scopeis writable implementation scope for files that need narrow no-artifact changes, such as route/page wiring covered by behavioral tests.files.readis dependency context and must not be used to authorize production edits. Test files may appear infiles.readas behavioral contract inputs, but production call-site rewiring belongs infiles.scopeorfiles.edit.- Require an intentional production edit to move from
files.readtofiles.scopewhen the file has no stable public artifact contract, or tofiles.editwhen the task changes/contracts public artifacts. - Be wary of forcing large existing public classes into
files.edit; MAID may then require declarations for the class's full public surface, expanding the manifest beyond the behavioral contract. Usefiles.scopefor narrow no-artifact wiring instead.
Phase 4 — Artifact Quality Review
Confirm:
- public API only
- exact names
- methods/functions include
argsandreturns - zero-arg methods/functions use
args: [] - attributes include
ofandtype - type aliases include explicit
type - every declared symbol is necessary and complete
Phase 5 — Test Quality Review
Read the behavioral tests and check:
- behavioral purity
- no private-state or private-helper access unless the public contract explicitly exposes it
- happy path coverage
- edge-case coverage
- failure-mode coverage
- exact symbol references for every declared production artifact
Phase 5.5 — Adversarial Review
Review the manifest and tests as if trying to make them pass with the lowest-quality implementation. Flag:
- risks named without a concrete
instead - broad assertions that allow hollow code
- schema or type looseness that can hide bad behavior
- tests coupled to internals rather than public behavior
- missing rationale that leaves the implementer guessing
Require revisions until the clean implementation path is explicit.
Outcome-Aware MAID Guidance
Outcome records are deterministic manifest data, not agent-only memory. When
the project has Outcome support, maid learn, maid recall, and
maid insights provide explicit evidence that can inform review questions.
For plan review:
- Active insights trigger: review recurring Outcome lessons with
maid insightsbefore reviewing an implementation-ready plan. Treat insights as advisory aggregate evidence for recurring lessons, not as generated narrative authority. - Use active recall guidance to inspect related completed Outcome records when the planner had a learned index, the user requested outcome-aware planning, or the review needs to check whether earlier lessons affect scope, tests, rationale, or temptations.
- Check whether the draft used relevant recalled Outcome evidence when the planner had a learned index or the user requested outcome-aware planning.
- Missing relevant Outcome recall is a review question, not automatic rejection; decide whether the omission weakens scope, tests, rationale, or temptations.
- To intentionally include instructive failed or abandoned Outcome lessons, refresh the index with this opt-in command, then recall from that index:
maid learn --include-status completed --include-status abandoned
This is an intentional opt-in for failure lessons; the completed-only default is unchanged.
- Recalled, aggregated, and digested Outcomes are planning evidence only. They do not replace behavioral tests, declared scope, validation, approval, done gates, or review, and they do not create an approval, promotion, done, or review gate.
Manifest-Derived Outcome Recall
Before approving or rejecting an implementation-ready plan, consult related completed Outcome records when a learned Outcome index is available:
maid recall --for-manifest <path>
maid recall --for-manifest <path> --plan-packet
If the index is stale, the stale index fails by default. The remedy is to run
maid learn, or pass --allow-stale-index only when a stale advisory read is
acceptable. If .maid/outcomes.json is missing, run maid learn once; if no
completed Outcome records exist, report that no advisory history is available
and skip recall.
Learning Evidence Digestion
The learning evidence digestion step is advisory evidence handling.
Close the loop between completed Outcome records and current agent decisions; do not dump a raw recall or insights transcript into the review. Identify applicable lessons, reject stale or irrelevant lessons with a reason, and state what changed because of the evidence. For plan review, name the effect on review findings, approval questions, or requested revisions. The learning evidence digestion step is advisory evidence handling, not a separate gate.
Phase 6 — Behavioral Validation
Run:
maid validate manifests/<slug>.manifest.yaml --mode behavioral
Any E200 Artifact '<name>' not used in any test file result is a blocker for
approval, promotion, or immediate implementation. For draft inventory, report it
as "not promotion-ready yet" rather than rejecting the draft's existence.
Phase 7 — Confirm Red Phase
Run the manifest validation commands before implementation. The tests must fail for the intended reason. If a draft only references planned test files that do not exist yet, note that red-phase confirmation still needs to happen as the first promotion/implementation step.
Phase 8 — Verdict
End with one explicit verdict:
ApprovedNeeds revisionRejected
Keep findings concise and actionable.
When not to use it
- →When the manifest or tests should be modified during review
- →When proceeding to implementation despite blockers
- →When the goal is to judge the idea, not the plan
Limitations
- →NEVER modify the manifest or tests during review
- →NEVER proceed to implementation if blockers are found
- →Treat missing explicit signatures and missing field types as blockers
How it compares
This workflow acts as a quality gate by strictly reviewing a MAID manifest and its tests before implementation, ensuring completeness and correctness, unlike simply drafting a plan.
Compared to similar skills
maid-plan-review side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| maid-plan-review (this skill) | 0 | 1mo | Review | Advanced |
| svelte-expert | 11 | 9mo | No flags | Intermediate |
| home-assistant-integration-knowledge | 8 | 2mo | No flags | Advanced |
| writing-skills | 4 | 4mo | Review | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by mamertofabian
View all by mamertofabian →You might also like
svelte-expert
Raudbjorn
Expert Svelte/SvelteKit development assistant for building components, utilities, and applications. Use when creating Svelte components, SvelteKit applications, implementing reactive patterns, handling state management, working with stores, transitions, animations, or any Svelte/SvelteKit development task. Includes comprehensive documentation access, code validation with svelte-autofixer, and playground link generation.
home-assistant-integration-knowledge
home-assistant
Everything you need to know to build, test and review Home Assistant Integrations. If you're looking at an integration, you must use this as your primary reference.
writing-skills
obra
Use when creating new skills, editing existing skills, or verifying skills work before deployment
obsidian-hello-world
jeremylongshore
Create a minimal working Obsidian plugin with commands and settings. Use when building your first plugin feature, testing your setup, or learning basic Obsidian plugin patterns. Trigger with phrases like "obsidian hello world", "first obsidian plugin", "obsidian quick start", "simple obsidian plugin".
code-review-checklist
vudovn
Code review guidelines covering code quality, security, and best practices.
openspec-verify-change
studyzy
验证实现是否与变更产出物匹配。当用户想要在归档前验证实现是否完整、正确且一致时使用。