/fff:quality-gatesfrom fff
Defines a four-gate quality model (Structure, Correctness, Coverage, Maintainability) with spec liveness, mutation testing, and complexity budgets. Used as a reference rulebook for CI gates and auditors.
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.
Reference rulebook (L3). Loaded as context by work-issue, ci-gates, and L3 auditors. Not invoked as a tool.
Four gates. Ordered by speed. Fast feedback first. All must pass for a PR to merge. Implemented in CI by ci-gates invoking /audit --ci; this skill describes the model.
Runs in under a second. No test execution.
specdrive audit verifies the full traceability chain.
@known-defect count within configured maximum. @unverified-intent resolved within configured timeframe.audit:
rules:
known-defect-count:
severity: warning
max: 5
unverified-intent-max-age-days: 30
Structure gates catch problems before any test runs. Suitable for pre-commit hooks via /audit --type structure (selecting the structural auditors only).
All tests pass. No exceptions.
@property-based tagged scenarios generate hundreds of random inputs. Invariants hold across all of them.A single failing test blocks the PR. No "known failures" in the test suite. Known failures live in the spec as @known-defect annotations, not as skipped tests.
Two independent coverage dimensions plus mutation testing.
Unit test coverage, spec test coverage, and mutation score all read their thresholds from the stack skill's dimensions: block (e.g., coverage_threshold_line, mutation_threshold). Numbers are not duplicated here — the stack is the single source of truth, and .ffflow/stack.yaml can override per project.
Mutation testing is slow. Run it in CI on PRs scoped to changed files (e.g., Stryker's incremental mode). Run it nightly across the full domain layer.
complexity_limit (default 10). Higher complexity means more branches; more branches mean more spec scenarios needed. If a function exceeds the budget, refactor until it's specifiable.Complexity budgets connect architecture to specification. You refactor not for aesthetics but because the code must be specifiable.
Liveness means no decay and no orphans.
Unbound specs. Scenarios with no step definitions. The audit catches these via S5. Every scenario must be bound.
Orphaned step definitions. Step definitions with no corresponding scenario. Dead code. The audit catches these via S6.
Stale specs. Behavior changed but spec didn't. Mutation testing and integration tests catch some of this. The audit's structural checks catch the rest.
Gate 1: Structure ~1 second (pre-commit viable)
Gate 2: Correctness ~30 seconds (fast test suite required)
Gate 3: Coverage ~2 minutes (coverage collection overhead)
Gate 4: Maintainability ~5 minutes (mutation testing on changed files)
A structural failure means don't bother running tests. A correctness failure means don't bother measuring coverage. A coverage failure means don't bother with mutation analysis. Each gate's success is a precondition for the next.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
quality-gates, code-quality, ci-gates, mutation-testing, spec-audit
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.