modify-featurelisted
Install: claude install-skill ThisIsSadeghi/KMPilot
# Modify Feature
Apply changes to existing features using spec-first workflow.
**Architecture Reference:** @../_shared/patterns.md
## Hook Marker (Required)
Before editing any feature files, activate the skill marker so the PreToolUse hook allows edits:
```bash
touch /tmp/.claude-kmpilot-skill-active
```
After completion (or on any early exit), remove it:
```bash
rm -f /tmp/.claude-kmpilot-skill-active
```
## Workflow
**Parse** → **Spec Check** → **Design Artifact Detection** → **Understand** → **Plan** → **Draft Spec** → [USER APPROVES] → **Activate marker** → **Implement** → **Validate** → **Update Spec** → **Remove marker** → Done
### Step 1: Parse Feature Name
Extract from request: "add sorting to productlist" → `productlist`
Validate: `ls feature/{featurename}/src/commonMain/kotlin/`
### Step 2: Spec Check
Load `.claude/docs/{featurename}/spec.md`
If missing, **stop and instruct the user**:
```
No spec found for '{featurename}'. Please run /audit-spec {featurename} first
to generate one, then re-invoke /modify-feature.
```
Do NOT auto-invoke `/audit-spec` — skills do not call each other; the user controls the pipeline.
### Step 3: Design Artifact Detection
Check for a Stitch design blueprint:
1. **Check blueprint exists**: `.claude/docs/{featurename}/designs/{featurename}_blueprint.md`
2. **Check stitch-project.json**: `.claude/docs/_project/stitch-project.json` — read `features[featurename].blueprintConsumed`
3. **Determine mode**:
| Blueprint exists? | `