/fff:characterizefrom fff
Walks an unspecified codebase module-by-module to extract an evergreen behavioral spec and produce a plan for characterization-test backfill. Commits spec files immediately.
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.
This skill does NOT invoke Plan Mode. It writes spec files directly and creates a plan directory like any other planning flow.
Most existing projects don't have specs. characterize extracts the behavioral contract from what's already there. Two outputs:
<plan-dir> whose tasks add characterization tests. Tests are queued for /work-issue like any other plan.The spec layer is additive — existing tests stay. Specs document behavioral contract in domain language; tests verify implementation correctness.
/characterize src/auth). Default: full project..ffflow/config.yaml — read for level (determines annotation style and spec format).<plan-dir> with plan.md and tasks/ for test backfill (slug = characterize-<target>)..ffflow/audit.yaml updated: each new spec entry registered with characterized: true.defect-driven-specification — loaded for annotation conventions at L1+. This skill does not restate them.writing-specs (L2+) for Gherkin conventions.hexagonal-architecture (L1+) for layer mapping.tdd-loop — referenced in test-backfill task content.State persists in <plan-dir>/state.json between phases. On resume, read state and jump to the current phase.
Internal-only. Read project structure, existing CLAUDE.md, existing tests at-a-glance for coverage estimate, recent git history (last 50–100 commits) for hot spots, existing docs.
Identify: architectural shape (hex/layered/flat), bounded contexts (vocabulary + module boundaries), test density per module.
Report once:
Survey complete:
- 14k LoC across 28 modules.
- Hexagonal-ish: src/{domain,application,infrastructure}.
- Bounded contexts (estimate): auth, billing, search, notifications.
- Test density: auth 70%, billing 85%, search 30%, notifications 0%.
- Stable candidates (unchanged 18+ months): 3 modules.
Suggested order: billing → auth → search → notifications.
Default attack order: safest first (most stable + best-tested modules). Builds confidence, low rework risk. The user can override toward "most critical first" if appetite warrants.
Based on level and survey:
docs/specs/<context>.md; L2+ Gherkin under specs/<context>.feature with specs/{acceptance,application,domain}/.Write proposal into state.json, commit empty scaffolding files (placeholder + heading per context).
For each module in the agreed order:
Read the code. Identify behavioral rules: validation, state transitions, calculations, invariants, error handling.
Propose rules in present tense. "The system rejects emails without @." Not imperative ("Reject emails…"), not vague ("Validates emails"). Present-tense is the FFFlow voice.
Identify judgment-call points and disposition with the user per defect-driven-specification annotation rules (@known-defect, @unverified-intent, @accepted-risk, or no annotation — that skill defines tags, comment conventions, and per-level form). This skill does not restate them; load the rulebook.
Write the spec, commit, register. One commit per module — message names the module. Then update .ffflow/audit.yaml under auditors.spec.files with characterized: true and characterized_by_session: <ts> so /audit --type spec knows these are characterization-style.
Why per-module commits: the spec is the chess move; resumability matters; the audit surface comes online incrementally.
Compare spec to current test coverage:
| Category | Action |
|---|---|
| Well-tested (spec'd behavior pinned by tests) | None |
| Weakly tested (key paths or annotations unproven) | Backfill task: strengthen |
| Untested | Backfill task: write |
Use the stack's coverage tool where available. Output a structured gap list ready to become tasks.
Create <plan-dir> (slug = characterize-<target>), write plan.md:
Write decisions.md (any deferred ? markers stay open — plan-breakdown will refuse if so; user resumes plan-chat to resolve them, or characterize asks here).
Write tasks/task-N.md files: one per gap from Phase 4, with backfill scope, acceptance, and dependencies.
Decide on breakdown. If the tasks emerged cleanly from Phase 4 (one task per gap, freestanding, bounded), mark phase: breakdown-complete directly — skip plan-breakdown. If they need further slicing or grouping, mark phase: chat-complete and direct the user to /plan-breakdown. Default: skip when gap-list-to-tasks is 1:1.
Optionally include "stakeholder-review" tasks for behaviors dispositioned as @unverified-intent.
Print:
Spec committed: <N> entries across <M> modules.
Plan: <plan-dir> (<K> backfill tasks, phase: breakdown-complete)
Next: /plan-capture
Or, when breakdown was skipped to chat-complete:
Plan: <plan-dir> (phase: chat-complete — needs further slicing)
Next: /plan-breakdown
@known-defect ships unannotated./work-issue executes them.plan-breakdown step even when gaps already mapped 1:1 to tasks..ffflow/audit.yaml under auditors.spec.files.defect-driven-specification).<plan-dir> has plan.md, decisions.md, tasks/*.md.metadata.json reflects the actual phase (chat-complete or breakdown-complete).What SKILL.md sets; muted values are Claude Code's defaults
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.