/fff:self-reviewfrom fff
Guides developers through a structured pre-PR self-review covering spec correctness, code quality, test coverage, and audit passes. Scales checklist depth by experience level (L0-L3).
Ships in fff. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Review your own diff with fresh eyes before pushing the PR. Catch the obvious problems before another human (or a CI gate) does.
Loaded by work-issue at Phase 5.
git diff <base>...HEAD)..ffflow/config.yaml — read for level.work-issue's relevant phase.| Phase | L0 | L1 | L2 | L3 |
|---|---|---|---|---|
| Spec review | Re-read prose section | + hexagonal layer notes | Re-read Rule + scenarios; check annotations | + RID coverage, property-test ranges |
| Code review | Clarity / correctness / maintainability / hygiene / tech-debt discipline | + port/adapter cleanliness | + step definitions bound | + complexity within budget, no 0% mutation funcs |
| Verification | lint + format + tests + coverage + /audit --type tech-debt clean | + /audit --type claude-md clean | + /audit --type spec + /audit --type char-tests | + full quality-gates, mutation score |
| UI review (UI stacks only) | Presentational/container split; no data in components | + stories for key states; token-driven styling | + /audit --type ui clean; no unproven app import | + story-coverage + token conformance gated |
The phase ordering is the same at every level; the checklist scales.
The spec comes first. Wrong specs produce wrong code that passes wrong tests.
Open the spec sections this PR touches:
.feature file Rule(s). Are scenarios complete? Missing edge cases? Readable to a non-developer?Ask: would a product owner accept this spec content as the definition of done?
Review as if someone else wrote it.
Clarity
Correctness
Maintainability
Hygiene
console.log / print / debug.View-layer purity (UI stacks — typescript-ui; see component-driven-ui)
/audit --type ui is clean and just test-stories passes.Review-time discipline (zero-tech-debt + yagni)
Every minor issue you noticed during review is in one of three states. There is no fourth.
zero-tech-debt's 15-minute rule), it's already in your diff.# TODO(re-evaluate when <trigger>): <action>). Vague triggers (eventually, someday, when we have time) are forbidden — see yagni.What's not allowed: "we should..." / "consider..." comments, bare # TODOs, "future work" sections in the PR body. Anything in those shapes is a self-review fail; fix or trigger before marking ready.
The /fff:audit --type tech-debt cartridge enforces this project-wide. Self-review is the per-PR enforcement.
Run gates per level.
/audit --type tech-debt clean (no bare TODOs, no vague triggers)./audit --type claude-md clean on touched docs./audit --type spec clean on touched specs + /audit --type char-tests clean if any characterization tests are pinned to this spec.quality-gates pass: structure / correctness / coverage / maintainability. Mutation testing for touched scope ≥ threshold.If any gate fails, fix or explain. Don't mark ready with known failures.
Goes in the PR body (work-issue Phase 6 picks this up). Shape:
## Verification (self-review)
- Spec sections reviewed: <list>
- Tests added: <count> new, <count> modified
- Coverage: <line%> line, <branch%> branch
- Audits run:
- claude-md: <pass | n/a>
- spec: <pass | n/a>
- <others per level>
- Mutation score (L3 only): <score%>
Pass → mark PR ready (or keep draft if other gates still pending). Verification summary included.
Fail → fix the issue. Do not mark ready with known problems. Return to work-issue's relevant phase and iterate.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
self-review, pre-pr, code-review-checklist, level-aware, spec-review
Other plugins' skills for the same job
npx claudepluginhub zerotechdebt/ffflow --plugin fff38 skills in this plugin
/adopt-ffflowEnd-to-end onboarding for a new FFFlow project. Runs init-ffflow, stack-init, then hands off to plan-roadmap to phase out the work (greenfield or brownfield — roadmap figures out the right per-phase entry point). Use `--ui` to adopt FFFlow's view-layer-purity structure (the frontend sibling of hexagonal) on an already-adopted project./auditRun the FFFlow keep-honest auditors against this project. Coordinator with per-type cartridges (CLAUDE.md freshness, spec drift, characterization tests, architecture conformance, complexity/refactor signals, and L3 RID traceability). Use --type to target one; --plan to convert findings into work./autopilotMeta-skill that wraps any interactive skill for unattended execution. Reads project context to stand in for the user on routine decisions, with a decision log./characterizeFor an unspec'd codebase, walk it module-by-module to extract an evergreen spec (committed immediately) and produce a plan for characterization-test backfill./ci-gatesGitHub Actions workflow templates for FFFlow projects — runs level-appropriate audits and quality gates as PR checks./component-driven-uiView-layer purity — presentational vs. connected components, the atoms→molecules→organisms→layouts ladder, story-as-vignette doctrine, design tokens, and the decompose→story→test→integrate ordering. The frontend sibling of hexagonal-architecture. L1+ reference rulebook.