/fff:auditfrom fff
Coordinates FFFlow project auditors: checks CLAUDE.md freshness, spec drift, characterization tests, architecture conformance, complexity/refactor signals, and L3 RID traceability. Supports --type, --plan, --ci, and --fix flags.
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.
Read when SKILL.md points to them.
Dispatch + aggregate + render. Runs the per-type auditors that apply to this project's level, aggregates their findings into the unified .ffflow/audit.yaml state, and renders a single report. With --plan, above-threshold findings become a plan that flows through plan-breakdown → plan-capture → work.
The coordinator does no auditing itself — every finding originates from a per-type auditor. Aggregation and report rendering are the only logic this skill owns.
Invariant: audit.yaml is written by auditors only. An editor never stamps its own work. A stamp means an auditor read the file at commit X and found it true — that's what makes it worth more than the author's own say-so. Any other skill that touches an audited file leaves the stamp alone; going stale is the correct, visible state until the next /fff:audit re-validates it. The one sanctioned exception is characterize, which registers characterized: true for spec entries it just wrote — that's an auditor-shaped act (declaring new audit surface), not self-certification of a code change.
.ffflow/config.yaml — level, stack, audit config file path..ffflow/audit.yaml — per-auditor state (validated commits, scope, last-passed timestamps).--type <auditor> to run a subset (--type claude-md,spec).--plan to convert findings to a plan in plan/audit-<slug>/.--ci for machine-readable output (JSON) instead of human report.--fix to authorize small auto-fixes (per-auditor decision; not all support it).--ci)..ffflow/audit.yaml (each auditor writes its own section).plan/audit-<slug>/ populated as if plan-chat had run.Per-type auditors live as cartridges under cartridges/. The coordinator loads them on demand based on --type and project level:
| Cartridge | When it runs | Notes |
|---|---|---|
cartridges/claude-md.md | any level, if any CLAUDE.md files exist | always available |
cartridges/spec.md | any level, if a spec directory exists | mechanism varies by level (prose re-read at L0/L1, scenario run at L2, RID delegation at L3) |
cartridges/char-tests.md | any level, if characterization tests registered | strict-block on failure |
cartridges/architecture.md | L1+ | uses hexagonal-architecture defaults for hex projects |
cartridges/refactor.md | any level | complexity, LoC, duplication, hot spots, test health |
cartridges/tech-debt.md | any level | bare TODOs, vague triggers, "we should..." patterns, PR-body "future work" prose. Enforces zero-tech-debt + yagni |
cartridges/rid.md | L3 only | wraps specdrive audit |
Cartridges aren't separate skills — they're reference files. The LLM doesn't see them in its skill index; this skill loads them when needed.
| Flag | Cartridges loaded |
|---|---|
--type <list> | exactly those (e.g., --type spec,refactor) |
| (default) | every cartridge applicable to the project's level |
Applicability rules are in the table above.
Cartridges are independent. For each: load the cartridge file, follow its procedure (run the stack's tool, scan files, etc.), collect findings.
No audit logic lives in this skill — the cartridges describe the inspection procedures. The coordinator's I/O is limited to: reading .ffflow/config.yaml and .ffflow/audit.yaml, loading cartridges, executing their procedures (possibly via subagents), merging their results, writing the unified state file, and rendering the report.
Each cartridge produces a structured result:
{
"cartridge": "spec",
"status": "pass | fail | warn",
"findings": [
{
"severity": "low | medium | high",
"file": "docs/specs/auth.md",
"summary": "Spec section 'Token refresh' references TokenService.refresh() which was removed in abc123.",
"auto_fixable": false
}
],
"state_updates": { ... } // gets merged into .ffflow/audit.yaml
}
For each cartridge's state_updates, merge into .ffflow/audit.yaml. This is the keep-honest record:
validated_at timestamps per file.scope lists (which files a cartridge covers).last_pass_commit hashes.If two cartridges update the same key, last-write-wins is fine — they shouldn't disagree.
Default human-readable:
audit report (level=L1):
claude-md ✓ pass (12 files validated)
spec ⚠ warn (1 finding)
- docs/specs/auth.md: drift detected, scope `src/auth/**` changed since 2026-05-10
architecture ✓ pass
refactor ⚠ warn (3 findings)
- src/auth/signup.py: complexity 14 (limit 10)
- src/payment/processor.py: 320 LoC (warn threshold 250)
- src/utils/string_helpers.py + src/web/string_utils.py: 40% duplication
Total: 4 findings (0 high, 1 medium, 3 low).
Run `/audit --plan` to convert these into a plan.
--ci flag emits JSON:
{
"level": "L1",
"status": "warn",
"exit_code": 1,
"auditors": { ... }
}
--plan modeWhen invoked with --plan:
medium or higher).plan/audit-<YYYY-MM-DD>-<short-hash>/.plan.md summarizing the findings as a problem statement.decisions.md with any open ? (e.g., scope of refactor).metadata.json: phase: chat-complete, source: audit.Plan created: plan/audit-2026-05-20-abc12/
Next: /plan-breakdown
--fix modeFor each cartridge that reports auto_fixable: true findings:
Cartridges decide what's auto-fixable. By default, conservative.
The CI workflow (ci-gates) runs audit --ci. Non-zero exit fails the PR check. Findings appear as GitHub Actions annotations via the workflow.
audit repeatedly on the same state: same report.pass quickly..ffflow/audit.yaml.--fix doing anything destructive. Auto-fix is for the obvious cases (whitespace, missing CLAUDE.md from template); risky fixes go to --plan.cartridges/architecture.md (opens in a new tab)cartridges/char-tests.md (opens in a new tab)cartridges/claude-md.md (opens in a new tab)cartridges/refactor.md (opens in a new tab)cartridges/rid.md (opens in a new tab)cartridges/spec.md (opens in a new tab)cartridges/tech-debt.md (opens in a new tab)cartridges/ui.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub zerotechdebt/ffflow --plugin fffOther plugins' skills for the same job
38 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./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.