feature-complete
Skill0 starsChanged 7 months agoMITView on GitHub
Archive feature working files after a PR has merged
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-coordinateSkill
- feature-domainsSkill
- feature-hardenSkill
- feature-implementSkill
- feature-planSkill
- feature-prSkill
- feature-quickSkill
- feature-refactorSkill
- feature-resumeSkill
- 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
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Use --force to archive even if status.md does not show refactor complete (e.g.
- Very specific: line 27
If Refactor stage is not complete:
≈ “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-complete "<feature-slug>" [--force]
Archives the feature's working files after a PR has merged.
Moves .feature/<slug>/ to .feature/_archive/<slug>/ (which is gitignored).
The source code, tests, ADRs, and KB entries all remain — only the working
state files (brief, work plan, domains, cycle log, status) are archived.
Knowledge files, index updates, and the archive manifest are committed by
/feature-pr before the PR is created — this command is just the post-merge
directory move.
Use --force to archive even if status.md does not show refactor complete (e.g. the feature was simple enough that full TDD wasn't used).
Step 1 — Verify readiness
Read .feature/<slug>/status.md.
Without --force:
If Refactor stage is not complete:
Feature '<slug>' is not yet marked as refactor-complete in status.md.
Current stage: <stage>
If the feature is genuinely done (e.g. PR merged, all tests green), run:
/feature-complete "<slug>" --force
If work is still in progress, continue with:
<next command from status.md>Stop.
With --force: Show a warning:
⚠ Archiving '<slug>' before full pipeline completion.
Status shows: <stage> / <substage>
This is fine if:
- The PR has already merged
- You intentionally skipped stages (e.g. no refactor needed for small changes)
Use AskUserQuestion with options:
- "Proceed"
- "Stop"
---
Display opening header:───────────────────────────────────────────────
📦 FEATURE COMPLETE · <slug>
───────────────────────────────────────────────
## Step 1b — Ensure narrative exists
Check if `.feature/<slug>/narrative.md` exists. If not, attempt to generate it:
```bash
bash .claude/scripts/narrative-wrapper.sh "<slug>" ".feature/<slug>"If generation succeeds:
📖 Narrative generated before archival: .feature/<slug>/narrative.mdIf generation fails:
⚠️ Narrative generation failed. The feature will be archived without it.
To generate after archival: bash .claude/scripts/narrative-wrapper.sh "<slug>" ".feature/_archive/<slug>"Do not block archival on narrative failure — but always attempt it and always report the outcome.
Step 2 — Archive the working directory
Move .feature/<slug>/ to .feature/_archive/<slug>/.
(If units/ subdirectory exists inside the slug directory, it moves with it
automatically — no special handling needed.)
.feature/_archive/ is gitignored — the archive stays on the local machine
as a short-term reference but does not go into the repository.
If .feature/_archive/ does not exist, create it (it should have been created
by /setup-vallorcine, but create it if missing).
Step 2b — Work group manifest update
Skip this step if the feature slug does not have a work_group field in
status.md and does not match the <group>--<wd> double-dash convention.
If this is a work-group-sourced feature:
- Determine the work group slug (from status.md
work_groupfield or slug prefix). - Verify the WD frontmatter has
status: COMPLETE(should already be set by feature-refactor Step 6b'swork-finalize.shcall). If not, set it now as a fallback. Defensive resync of
.work/CLAUDE.mdvia the index helper, then refresh the per-group manifest table and readiness JSON cache:bash .claude/scripts/work-index.sh update "<group-slug>" bash .claude/scripts/work-resolve.sh "<group-slug>" >/dev/nullIn the normal pipeline these are no-ops —
work-finalize.shalready updated the index inside the feature PR, and the helper preserves Last Updated when counts haven't changed. The calls exist for features that bypassed the standard pipeline (hand-completed, resumed from a partial state, or running on an upgraded install where the prior version didn't yet emit the index update). Thework-resolve.shcall additionally ensures the per-group_readiness.jsoncache reflects this WD'sCOMPLETEstate so parallel sessions see the new state immediately.Do not edit
.work/CLAUDE.mdby hand under any circumstances — hand-edits drift from filesystem state and break/work-status.
Step 3 — Report
If .feature/<slug>/spec-coverage.md exists and is non-vacuous (or has
been moved to .feature/_archive/<slug>/spec-coverage.md by Step 2),
include the coverage line in the report so the user sees the final
annotation state for the feature:
COVERAGE_LINE=""
if [[ -f .feature/_archive/<slug>/spec-coverage.md ]]; then
COVERAGE_LINE=$(bash .claude/scripts/spec-coverage.sh report .feature/_archive/<slug>/spec-coverage.md 2>/dev/null || true)
fi───────────────────────────────────────────────
📦 FEATURE COMPLETE · <slug>
───────────────────────────────────────────────
Feature '<slug>' archived.
Working files moved to: .feature/_archive/<slug>/
(gitignored — local reference only)
<If $COVERAGE_LINE non-empty:>
$COVERAGE_LINE
Permanent records (not moved):
ADRs: .decisions/ (all decisions remain)
KB entries: .kb/ (all research remains)
Source: in git history
Tests: in git history
To recover working files if needed:
cp -r .feature/_archive/<slug>/ .feature/<slug>/If work-group-sourced, append:
Work group: <group> — <complete>/<total> work definitions complete
Next ready WD: /work-start "<group>" nextDoes 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.

