feature-resume
Skill0 starsChanged 7 months agoMITView on GitHub
Show where a feature is and what to run next
In this repository45 other files it gives its agents.
- decisions/CLAUDE.mdCLAUDE.md
- kb/CLAUDE.mdCLAUDE.md
- spec/CLAUDE.mdCLAUDE.md
- work/CLAUDE.mdCLAUDE.md
- script-devSkill
- architectSkill
- auditSkill
- capabilitiesSkill
- curateSkill
- decisionsSkill
- feature-cleanupSkill
- feature-completeSkill
- feature-coordinateSkill
- feature-domainsSkill
- feature-hardenSkill
- feature-implementSkill
- feature-planSkill
- feature-prSkill
- feature-quickSkill
- feature-refactorSkill
- feature-retroSkill
- featureSkill
- feature-testSkill
- kbSkill
- project-contextSkill
- researchSkill
- setup-vallorcineSkill
- spec-authorSkill
- spec-backfillSkill
- spec-initSkill
- spec-resolveSkill
- specSkill
- spec-splitSkill
- spec-verifySkill
- spec-writeSkill
- uninstall-vallorcineSkill
- upgrade-vallorcineSkill
- vallorcine-helpSkill
- work-decomposeSkill
- work-planSkill
- work-resumeSkill
- work-runSkill
- workSkill
- work-startSkill
- work-statusSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
37 rules. About 0 are common, 12 are distinctive, and 25 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
25
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Use this after any interruption, crash, or context switch.
- Very specific: line 23
If --list flag is set:
- Very specific: line 29
If .work/ exists and any features are work-group-sourced, group them by work group.
- Distinctive: line 46
If no features are work-group-sourced, use the flat format (no grouping):
- Very specific: line 56
If no features exist, display: No active features.
- Distinctive: line 58
Stop. Do not continue to other steps.
- Distinctive: line 64
Use TodoWrite to show progress in the Claude Code UI (visible via Ctrl+T).
- Distinctive: line 67
After reading status.md (Step 1), build a pipeline-level checklist showing where the feature currently is.
- Distinctive: line 70
If auto-invoke triggers (Step 3), add the invoked command as a new item and let the invoked command take over TodoWrite from there.
- Very specific: line 91
Check .feature/<slug>/status.md.
- Distinctive: line 111
Run the reconciler before reading status.md so it reflects durable truth:
- Very specific: line 123
If every produced spec is APPROVED: flips the Spec Authoring row in status.md to complete with today's date, leaving the Estimated/Actual …
- Distinctive: line 129
If the script reported drift, surface that one-line summary above the "CURRENT POSITION" header so the user sees what was reconciled.
- Very specific: line 136
If --share flag: run --status mode, then condense output to share format (see Step 5b).
- Very specific: line 137
If --status flag: skip to Step 5 — Session briefing.
- Very specific: line 144
If this feature is work-group-sourced (status.md has work_group field, or slug matches <group>--<wd> pattern), show work group progress …
- Very specific: line 220
If work_units: none in status.md: skip this section.
- Distinctive: line 222
If work units are defined, determine the precise next command:
- Very specific: line 226
If no in-progress unit, find the first not-started unit → that unit needs /feature-test "<slug>" --unit WU-<n>
- Very specific: line 228
If all units are complete → feature is ready for /feature-pr
- Very specific: line 229
If a unit is blocked → its dependencies need to complete first
- Very specific: line 231
If
execution_strategyisbalancedorspeed: read per-unit units/WU-N/status.md for each unit's current stage/substage and display … - Very specific: line 268
Read the Pipeline mode field from status.md (default: full).
- Very specific: line 340
If automation_mode: autonomous and the feature is mid-implementation or mid-refactor: note this in the Next Step display:
- Very specific: line 357
If the next step resolves to /feature-domains (stage is scoping/complete): invoke /feature-domains "<slug>" as a sub-agent immediately.
- Very specific: line 361
If the next step resolves to /feature-plan (stage is domains/complete or planning/in-progress): invoke /feature-plan "<slug>" as a …
- Very specific: line 365
If automation_mode: autonomous AND execution_strategy is balanced or speed AND work units remain incomplete: invoke /feature-coordinate …
- Very specific: line 369
If automation_mode: autonomous AND the next step resolves to /feature-implement or /feature-refactor (stages testing/complete, …
- Distinctive: line 380
Use AskUserQuestion with options:
- Very specific: line 384
If "Draft PR": invoke /feature-pr "<slug>" as a sub-agent immediately.
- Very specific: line 385
If "Stop": display Next: /feature-pr "<slug>" and stop.
- Very specific: line 387
If the next step resolves to /feature-retro (stage is pr/created and cycle-log.md has no retro-complete entry): prompt for retrospective.
- Very specific: line 397
If "Run retrospective": invoke /feature-retro "<slug>" as a sub-agent immediately.
- Very specific: line 398
If "Skip": display When the PR merges: /feature-complete "<slug>" and stop.
- Very specific: line 400
If cycle-log.md already has a retro-complete entry: skip the retro prompt and display When the PR merges: /feature-complete "<slug>" …
- Distinctive: line 414
If cycle-log.md exists, display the last three entries to provide context on what actually happened most recently.
- Distinctive: line 512
If results aren't in the log, mark "status unknown — run tests to confirm".
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/feature-resume "<feature-slug>" [--status] [--share] [--list]
Tells you exactly where a feature is and what to run next. Use this after any interruption, crash, or context switch.
Flags:
- (no flag) — navigation mode: current position, stage progress, next command
--status— session briefing mode: what was done, current blockers, next agenda--share— condensed standup/team format (implies --status)--list— list all active features with their current stage (ignores slug argument)
Works for both /feature and /feature-quick slugs.
Step 0 — List mode (--list)
If --list flag is set:
- List all directories under
.feature/(excluding_archive/andproject-config.md) - For each directory, read
status.mdand extract: stage, substage, last updated timestamp. Also check forwork_groupfield or double-dash convention (<group>--<wd>) to identify work-group-sourced features. - If
.work/exists and any features are work-group-sourced, group them by work group. Display:
───────────────────────────────────────────────
📋 ACTIVE FEATURES
───────────────────────────────────────────────
Work group: <group-slug> (N/M complete)
<slug> <stage> · <substage> <last updated>
<slug> <stage> · <substage> <last updated>
Standalone:
<slug> <stage> · <substage> <last updated>
───────────────────────────────────────────────If no features are work-group-sourced, use the flat format (no grouping):
───────────────────────────────────────────────
📋 ACTIVE FEATURES
───────────────────────────────────────────────
<slug> <stage> · <substage> <last updated>
───────────────────────────────────────────────Sort by last updated (most recent first) within each group.
If no features exist, display: No active features. Start one with /feature "<description>" or /feature-quick "<description>"
Stop. Do not continue to other steps.
Step 0a — Progress tracking
Use TodoWrite to show progress in the Claude Code UI (visible via Ctrl+T). Each TodoWrite call replaces the full list — always include all items.
After reading status.md (Step 1), build a pipeline-level checklist showing where the feature currently is. Mark stages based on status.md data.
If auto-invoke triggers (Step 3), add the invoked command as a new item and let the invoked command take over TodoWrite from there.
Example:
[
{"id": "pipeline-scoping", "content": "Scoping", "status": "completed", "priority": "medium"},
{"id": "pipeline-domains", "content": "Domain analysis", "status": "completed", "priority": "medium"},
{"id": "pipeline-planning", "content": "Work planning", "status": "completed", "priority": "medium"},
{"id": "pipeline-testing", "content": "Test writing", "status": "completed", "priority": "medium"},
{"id": "pipeline-implementation", "content": "Implementation", "status": "in_progress", "priority": "high",
"activeForm": "Resuming — 3/5 tests passing"},
{"id": "pipeline-refactor", "content": "Refactor & review", "status": "pending", "priority": "medium"},
{"id": "pipeline-pr", "content": "PR draft", "status": "pending", "priority": "medium"}
]Step 1 — Read status
Check .feature/<slug>/status.md. If it does not exist:
No status file found for '<slug>'.
Options:
- If this is a new feature: /feature "<slug description>"
- If status.md was accidentally deleted: run each stage command — they will
check for their prerequisite files and tell you what is missing.Stop.
Reconcile against durable artifacts
.feature/<slug>/ is gitignored. When a sibling WD authors a spec
that this WD's produces: declares, the manifest learns about it but
this feature's status.md does not — the local cache lives only on
whoever ran the spec-authoring session. Re-entering on a fresh
machine then misreads "Spec Authoring pending" even though the spec
is APPROVED and committed.
Run the reconciler before reading status.md so it reflects durable truth:
bash .claude/scripts/feature-state-reconcile.sh "<slug>"The script:
- Detects work-group features (status.md
work_group:field or<group>--<wd>slug pattern). No-op for plain features. - Reads the WD's
produces:list and looks up each spec's state in the manifest. - If every produced spec is APPROVED: flips the Spec Authoring row
in status.md to
completewith today's date, leaving the Estimated/Actual token columns alone. - Idempotent — a re-run on already-reconciled state writes nothing and prints "current".
If the script reported drift, surface that one-line summary above the "CURRENT POSITION" header so the user sees what was reconciled.
Step 1b — Mode dispatch
If --share flag: run --status mode, then condense output to share format (see Step 5b).
If --status flag: skip to Step 5 — Session briefing.
Otherwise: continue to Step 2 — Navigation mode.
Step 1c — Work group context
If this feature is work-group-sourced (status.md has work_group field, or
slug matches <group>--<wd> pattern), show work group progress after the
header in Step 2:
Work group: <group-slug> · <complete>/<total> work definitions completeThis is a single line of context — don't run the full resolver here, just
count WD files and their statuses via work_fm on each WD file.
Step 2 — Display the full status report
───────────────────────────────────────────────
🔄 FEATURE RESUME · <slug>
───────────────────────────────────────────────
CURRENT POSITION
Stage: <stage>
Substage: <substage>
Last checkpoint: <last successful checkpoint>
Last updated: <timestamp>
Automation: <autonomous | manual | not-set (will ask on next /feature-implement)>
<If execution_strategy is balanced or speed:>
EXECUTION: parallel (<balanced|speed>)
STAGE PROGRESS
✓ Scoping complete <date>
✓ Domains complete <date>
✓ Planning complete <date>
↻ Testing in-progress cycle 1 — tests written, verifying failures
· Implementation not-started
· Refactor not-started
TOKEN USAGE (from Stage Completion table in status.md)
Read the Stage Completion table and display estimated vs actual:
| Stage | Est. | Actual | Δ |
|----------------|--------|----------------|---------|
| Scoping | ~5K | 4.2K in / 3K out | -16% |
| Domains | ~6K | 8.1K in / 2K out | +35% |
| Planning | ~8K | 7.5K in / 5K out | -6% |
| Testing | ~5K | — | — |
| Implementation | — | — | — |
| Refactor | — | — | — |
| **Total** | **~24K** | **19.8K in / 10K out** | |
The Δ column compares estimated tokens to actual input tokens.
Calculate as: ((actual_input - estimate) / estimate × 100), rounded.
Only show for completed stages with both values present.
If token-log.md also exists, additionally run:
`bash -c '[[ -f .claude/scripts/token-usage.sh ]] && source .claude/scripts/token-usage.sh && token_report ".feature/<slug>"'`
and display below the comparison table.
DOMAIN STATUS (if domains stage was reached)
✓ <domain> resolved ADR: .decisions/<adr>/adr.md
✓ <domain> resolved KB: .kb/<topic>/<cat>/<subject>.md
✗ <domain> pending commissioned <date> — not yet complete
TDD CYCLES (if testing was reached)
Cycle 1: tests <date> | passing <date or "—"> | refactor <date or "—"> | missing: <n>
Cycle 2: ...
<If .decisions/.decision-candidates has status: new entries:>
ℹ <n> decision candidates pending review (/decisions candidates)
───────────────────────────────────────────────Step 2b — Work unit next-command resolution
If work_units: none in status.md: skip this section.
If work units are defined, determine the precise next command:
- Find the first unit that is
in-progress→ that unit needs its current stage continued (check substage in status.md) - If no in-progress unit, find the first
not-startedunit → that unit needs/feature-test "<slug>" --unit WU-<n> - If all units are
complete→ feature is ready for/feature-pr - If a unit is
blocked→ its dependencies need to complete first
If execution_strategy is balanced or speed: read per-unit
units/WU-N/status.md for each unit's current stage/substage and display
with batch grouping:
Work units:
Batch 1 (complete):
✓ WU-1: <name>
Batch 2 (in-progress):
↻ WU-2: <name> — implementing (cycle 1)
↻ WU-3: <name> — testing (cycle 1)
Batch 3 (waiting):
○ WU-4: <name> — blocked (waiting on WU-2, WU-3)Otherwise (sequential/cost mode): display the work unit table with dependency info as part of the resume output:
Work units:
✓ WU-1: <name> — complete
→ WU-2: <name> — in-progress (implementing, cycle 1) ← active
└─ depends on: WU-1
○ WU-3: <name> — blocked (waiting on WU-2)
└─ depends on: WU-1, WU-2
Progress: <n complete> / <n total>The "Next command" line must include the --unit flag (sequential mode) or
use the coordinator (parallel mode):
<sequential:> Next: /feature-implement "<slug>" --unit WU-2
<parallel:> Next: /feature-coordinate "<slug>"Step 3 — Determine and display what to run next
Read the Pipeline mode field from status.md (default: full).
Full mode routing (pipeline_mode: full)
| Stage + Substage | What to run next |
| scoping / interviewing | /feature "<slug description>" — scoping in progress |
| scoping / confirming-brief | /feature "<slug description>" — confirm the brief |
| scoping / complete | /feature-domains "<slug>" |
| domains / in-progress (pending commissions) | See pending domains below |
| domains / in-progress (all commissioned) | /feature-domains "<slug>" — verify commissions |
| domains / complete | /feature-plan "<slug>" |
| planning / in-progress | /feature-plan "<slug>" — will check stub progress and re-launch subagent for missing work |
| planning / complete | /feature-test "<slug>" |
| testing / in-progress | /feature-test "<slug>" — will resume writing tests |
| testing / complete (cycle N) | /feature-harden "<slug>" — adversarial test hardening |
| hardening / in-progress | /feature-harden "<slug>" — will resume from current lens |
| hardening / complete | /feature-implement "<slug>" |
| hardening / skipped-no-signals | /feature-implement "<slug>" |
| implementation / in-progress | /feature-implement "<slug>" — will resume from failing tests |
| implementation / escalated | /feature-test "<slug>" — contract conflict needs Test Writer |
| implementation / complete (cycle N) | /feature-refactor "<slug>" |
| refactor / in-progress | /feature-refactor "<slug>" — will resume from checklist item |
| refactor / escalated-missing-tests | /feature-test "<slug>" --add-missing |
| refactor / complete | /feature-pr "<slug>" |
| pr / created (no retro) | /feature-retro "<slug>" — retrospective while feature is fresh |
| pr / created (retro done) | /feature-complete "<slug>" — when PR has merged |
Specification mode routing (pipeline_mode: specification)
This mode stops after spec authoring. Used when a work definition produces specification artifacts rather than implementing behavior.
| Stage + Substage | What to run next |
| scoping / interviewing | /feature "<slug description>" |
| scoping / confirming-brief | /feature "<slug description>" |
| scoping / complete | /feature-domains "<slug>" |
| domains / complete | Spec authoring (automatic via /feature-domains) |
| spec-authoring / complete | Done — /work-start for implementation |
Note: Planning, Testing, Hardening, Implementation, and Refactor stages
are skipped in specification mode. After spec authoring completes, the
specification phase is done. Do NOT proceed to /feature-retro or
/feature-complete — those run after implementation via /work-start.
Implementation mode routing (pipeline_mode: implementation)
This mode starts at planning. Used when specification was done in a prior phase and artifacts already exist.
| Stage + Substage | What to run next |
| planning / in-progress | /feature-plan "<slug>" |
| planning / complete | /feature-test "<slug>" |
| testing / in-progress | /feature-test "<slug>" |
| testing / complete (cycle N) | /feature-harden "<slug>" |
| hardening / in-progress | /feature-harden "<slug>" |
| hardening / complete | /feature-implement "<slug>" |
| hardening / skipped-no-signals | /feature-implement "<slug>" |
| implementation / in-progress | /feature-implement "<slug>" |
| implementation / escalated | /feature-test "<slug>" |
| implementation / complete (cycle N) | /feature-refactor "<slug>" |
| refactor / in-progress | /feature-refactor "<slug>" |
| refactor / escalated-missing-tests | /feature-test "<slug>" --add-missing |
| refactor / complete | /feature-pr "<slug>" |
| pr / created (no retro) | /feature-retro "<slug>" |
| pr / created (retro done) | /feature-complete "<slug>" |
Note: Scoping, Domains, and Spec Authoring stages are skipped in implementation mode. Planning reads specification artifacts directly.
If automation_mode: autonomous and the feature is mid-implementation or
mid-refactor: note this in the Next Step display:
NOTE: This feature is in autonomous mode. Stages will chain automatically.
Type stop at any time during a run to pause.Display the specific next command clearly:
NEXT STEP
<command to run>
<one sentence explaining why>Auto-invoke rules (apply after displaying the NEXT STEP block):
- If the next step resolves to
/feature-domains(stage isscoping/complete): invoke/feature-domains "<slug>"as a sub-agent immediately. Domain analysis requires no external action to proceed. - If the next step resolves to
/feature-plan(stage isdomains/completeorplanning/in-progress): invoke/feature-plan "<slug>"as a sub-agent immediately. Planning requires no external action to proceed. - If
automation_mode: autonomousANDexecution_strategyisbalancedorspeedAND work units remain incomplete: invoke/feature-coordinate "<slug>"as a sub-agent immediately. - If
automation_mode: autonomousAND the next step resolves to/feature-implementor/feature-refactor(stagestesting/complete,implementation/in-progress, orimplementation/complete): invoke the appropriate command as a sub-agent immediately. A crash should not break the autonomous loop — resuming after a crash is equivalent to re-entering the same stage that was interrupted. If the next step resolves to
/feature-pr(stage isrefactor/complete):Feature is ready for PR.Use AskUserQuestion with options:
- "Draft PR"
- "Stop"
If "Draft PR": invoke
/feature-pr "<slug>"as a sub-agent immediately. If "Stop": displayNext: /feature-pr "<slug>"and stop.If the next step resolves to
/feature-retro(stage ispr/createdand cycle-log.md has noretro-completeentry): prompt for retrospective.PR is open. A retrospective captures what worked and what didn't while the feature is fresh — it writes back to the KB and decisions store.Use AskUserQuestion with options:
- "Run retrospective"
- "Skip"
If "Run retrospective": invoke
/feature-retro "<slug>"as a sub-agent immediately. If "Skip": displayWhen the PR merges: /feature-complete "<slug>"and stop.If cycle-log.md already has a
retro-completeentry: skip the retro prompt and displayWhen the PR merges: /feature-complete "<slug>"instead.
For pending domain commissions, list each:
PENDING DOMAINS — complete these before re-running /feature-domains:
1. <domain> — Run: /research "<subject>"
2. <domain> — Run: /architect "<problem statement>"Step 4 — Show recent cycle-log entries (last 3)
If cycle-log.md exists, display the last three entries to provide context on what actually happened most recently. This is especially useful after a crash where the substage in status.md might be stale.
RECENT ACTIVITY (from cycle-log.md)
<last 3 entries>Step 5 — Session briefing (--status mode)
Load additional context beyond status.md:
.feature/<slug>/brief.mdor status.md Description (quick tasks).feature/<slug>/cycle-log.md— full history.feature/<slug>/work-plan.mdif it exists — construct completion.feature/<slug>/test-plan.mdif it exists — test coverage
Display:
───────────────────────────────────────────────
📊 FEATURE STATUS · <slug>
<YYYY-MM-DD> | <full pipeline / quick task>
───────────────────────────────────────────────
WHAT THIS IS
<2–3 sentences from brief summary.>
── Progress ───────────────────────────────────
✓ Scoping <date>
✓ Domains <date> — <n> domains resolved, <n> ADRs consulted
✓ Planning <date> — <n> constructs
↻ Testing in progress — cycle <n>
· Implementation not started
· Refactor not started
<If work units:>
── Work Units ─────────────────────────────────
Read the Work Units table from status.md. For each unit, read the
Depends On column to build the dependency graph.
Display units grouped by dependency layer (topological order):
Layer 0 (no dependencies):
✓ WU-1: <name> — complete
✓ WU-4: <name> — complete
Layer 1 (depends on layer 0):
→ WU-2: <name> — implementing (cycle 1, 4/7 tests passing)
└─ depends on: WU-1
Layer 2 (depends on layer 1):
○ WU-3: <name> — blocked (waiting on WU-2)
└─ depends on: WU-1, WU-2
If execution_strategy is balanced or speed, also show batch info:
Batch 1 (complete): WU-1, WU-4
Batch 2 (in-progress): WU-2
Batch 3 (waiting): WU-3
Critical path: <n> sequential batches
Progress: <n complete> / <n total> units
Est. remaining sessions: <n>
── What Was Done Last Session ─────────────────
<Synthesise the most recent 3–5 cycle-log entries into plain English.
Not a raw dump — a readable summary of what actually happened.
Example: "The Work Planner identified 4 constructs and wrote stubs.
The Test Writer wrote 12 tests covering the happy path and 3 error
conditions — all verified failing.">
── Current Blocker ────────────────────────────
<If active escalation in cycle-log.md: describe in one paragraph.
If no blocker: "None — ready to continue.">
── Next Session Agenda ────────────────────────
<3–5 concrete bullet points. Not "continue implementation" but
"implement TokenBucket.consume() and RateLimitMiddleware.handle() —
these are the two remaining failing tests.">
1. <specific task>
2. <specific task>
3. ...
TO CONTINUE: <exact command to run>
───────────────────────────────────────────────<If work-plan.md exists, append construct completion table:>
CONSTRUCTS
✓ <ConstructName> <src/path> tests passing
↻ <ConstructName> <src/path> <n> tests failing
· <ConstructName> <src/path> not startedDetermine construct status from: work-plan.md (planned), cycle-log.md
implemented entries (completed), test-plan.md (test mapping).
If results aren't in the log, mark "status unknown — run tests to confirm".
Step 5b — Share format (--share)
Condense the session briefing to standup/team format:
📋 <slug> — <one-line summary>
Stage: <stage> | Cycle: <n>< | Units: <n>/<total>>
Done: <bullet points of completed stages>
Next: <1–2 sentences on what's next>
Blocker: <one sentence or "none">
Full details: .feature/<slug>/Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

