بنقرة واحدة
review
Stress-test the spec pipeline outputs against each other and the codebase before implementation begins
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Stress-test the spec pipeline outputs against each other and the codebase before implementation begins
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Interview the user one question at a time, walking the decision tree, to clarify a feature proposal before implementation
Authoritative guidance on modern Kotlin language features (2.2.0 through 2.3.21) — writing idiomatic code, reviewing or modernizing older code, and upgrading across the 2.2 → 2.3 line. Make sure to use this skill whenever the user mentions Kotlin 2.2, 2.2.20, 2.3, 2.3.0, 2.3.20, or 2.3.21, or any of these features: guard conditions in `when`, non-local `break`/`continue` in inline lambdas, multi-dollar string interpolation, context parameters, context-sensitive resolution, nested type aliases, the `@all` annotation use-site target, unused return value checker, explicit backing fields, name-based destructuring, data-flow exhaustiveness for `when`, or `return` in expression-body functions. Also trigger for compiler flags `-Xreturn-value-checker`, `-Xexplicit-backing-fields`, `-Xname-based-destructuring`; annotations `@MustUseReturnValues` and `@IgnorableReturnValue`; or any question framed as "what's new in Kotlin" or "latest Kotlin features."
| name | review |
| description | Stress-test the spec pipeline outputs against each other and the codebase before implementation begins |
Stress-test the spec pipeline against itself and the codebase. Surface anything that would cause an implementing agent to fail or build the wrong thing. Trust upstream's self-verification by default; investigate the seams.
Pipeline position: proposal → spec → criteria → rules → review → plan
You produce a report and, when needed, a Fix Plan that sequences the user's resolution work. You do not fix issues yourself. You do not ask the user questions. If findings need resolution, the user reruns the relevant upstream skill in the order the Fix Plan prescribes.
Each upstream step has its own Success Criteria and verification pass. Do not re-derive what upstream already verified within its own artifact. Review's job is the cross-document and cross-codebase layer that no single step can see:
If you find yourself rebuilding a coverage table or re-deriving a forward trace, you are doing upstream's work. Verify the existing structures instead.
FAIL blocks the plan step. PASS WITH CONDITIONS requires fixes via the relevant upstream skill before plan runs. The Fix Plan sequences the work; the user follows it top to bottom and reruns review once at the end.
CLAUDE.md / AGENTS.md / GEMINI.md, build files, source layout, test setupBefore checking anything else, ground the review in the actual project state:
Reason: lines.This grounding feeds the Codebase Grounding category later. Without it, that category can only check claims, not reality.
If uncertain BLOCKER vs MAJOR, treat as BLOCKER. If MAJOR vs MINOR, treat as MAJOR.
Minors don't affect the verdict and don't appear in the Fix Plan.
Run all five. Record findings inline per category, or confirm pass.
Sample upstream's claimed structure; do not rebuild it.
Covers: B-N reference in criteria.md points to a real B-N in spec.mdCovers: AC-N reference in rules.md points to a real AC in criteria.mdCovers: line (no orphan behaviors)This category is fast. If it produces more than a handful of findings, upstream skipped its own verification pass and should be rerun before continuing review.
The centerpiece. No upstream step can detect these.
Out of scope (spec), Coverage exclusions (criteria), or Design exclusions (rules) that resurfaces elsewhere in the pipelineFor each conflict, quote both sources verbatim. Conflicts are nearly always at least MAJOR; often BLOCKER.
Use the grounding pass above to verify the composed design holds against reality.
Findings here are usually BLOCKER (incompatible library, missing capability) or MAJOR (achievable but with non-trivial work not yet specified).
For each EARS pattern present in criteria.md, confirm rules.md's testing strategy can validate it.
The system shall ...): invariant or continuous-state testWhen X, the system shall ...): event-simulation testWhile X, the system shall ...): state-setup testIf X, then the system shall ...): negative-path test that asserts the prohibited outcome is absentWhile X, when Y, ...): both state and event setupIf the rules' testing strategy doesn't cover one of these patterns that criteria uses, it's a MAJOR finding. The implementing agent will write tests anyway, but without guidance the test shape may not match the AC shape.
Up to five areas most likely to go wrong even with a passing spec. For each: area / reason / mitigation.
If you cannot identify any, write Hotspots: none considered material with a one-line justification. Empty is acceptable; absent is not.
This is the section most likely to be useful to the implementing agent. It's the only output review produces that upstream cannot.
Each finding has:
BLOCKER-1, MAJOR-1, MINOR-1 (numbered per severity)Related: for clustersProduce a Fix Plan when the verdict is PASS WITH CONDITIONS or FAIL. Omit for PASS. Minors do not appear in the Fix Plan.
Structure:
Execution order: spec → criteria → rules → review. Include only steps that have fixes; always end with review.[cascades] or [localized] tagBLOCKER-N, MAJOR-N)A fix cascades if any of:
A fix is localized if it stays inside a single section of a single document and produces no change to any structure that downstream depends on. Typical localized fixes: naming cleanup, stale references, rationale clarification, removing redundant rules with no downstream Covers: references.
If uncertain, mark [cascades]. False cascades cost one unnecessary rerun; false localized marks corrupt the chain.
The plan ends with ### review indicating when to rerun this skill (once all upstream fixes are in, not per-fix).
Complete only when ALL hold:
[cascades] or [localized], ends with ### reviewDo not write a partial file.
Write to spec/review.md. For a clean spec, this should be a short document. Bloat is a smell.
# Spec Review: <Feature>
## Summary
- Feature: <name>
- Verdict: <PASS | PASS WITH CONDITIONS | FAIL>
- Counts: <N blockers, N majors, N minors>
- Action: <one line; references Fix Plan for non-PASS verdicts>
## Discipline Check
<one paragraph: confirmed clean, or list of findings>
## Conflicts
<empty if none; otherwise findings with both sources quoted>
## Codebase Grounding
<one paragraph: design fits codebase, or list of findings>
## EARS ↔ Test Strategy
<one paragraph: each pattern has a fitting test approach, or list of findings>
## Risk Hotspots
<up to five: area / reason / mitigation; or "none considered material" with reason>
## Fix Plan
For PASS WITH CONDITIONS or FAIL only; omit entirely for PASS.
Execution order: <pipeline steps with fixes, in order, ending with review>
### <step> (rerun <position>)
1. [cascades|localized] <FINDING-ID>: <what to change>
<if cascades: one line on what needs rerunning downstream>
### review
Rerun once all upstream fixes are in.