Claude-skill-registry feature-next
Implements a single task following the next → implement → check → done workflow with TDD support. Use when working on one specific task, implementing a single feature from the backlog, or following TDD red-green-refactor cycle. Triggers on 'next task', 'next feature', 'implement feature', 'work on feature', 'single task mode', 'what should I work on'.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/feature-next" ~/.claude/skills/majiayu000-claude-skill-registry-feature-next && rm -rf "$T"
manifest:
skills/data/feature-next/SKILL.mdsource content
Task Next
One command:
agent-foreman next
⚠️ STRICT WORKFLOW - NO IMPROVISATION
You MUST follow this exact sequence. Do NOT skip or reorder steps.
next → implement → check → done
| ❌ FORBIDDEN | ✅ REQUIRED |
|---|---|
Skip step | Run before |
| Go straight to implementation | Run first |
| Invent extra steps | Use only the 4 steps above |
⛔ CLI-ONLY ENFORCEMENT
NEVER bypass CLI for workflow decisions:
| ❌ FORBIDDEN | ✅ REQUIRED |
|---|---|
Read to select task | Use |
Read to check status | Use |
Read for TDD mode | Check CLI output for |
| Edit task files to change status | Use |
Allowed: Reading task
.md files for acceptance criteria AFTER running agent-foreman next.
Quick Start
agent-foreman next # Auto-select next priority agent-foreman next auth.login # Specific task
Workflow
next → implement → check → done
agent-foreman next # 1. Get task + acceptance criteria # ... implement the task ... # 2. Write code agent-foreman check <id> # 3. Verify implementation agent-foreman done <id> # 4. Mark complete + commit
Check TDD Mode First
Look for "!!! TDD ENFORCEMENT ACTIVE !!!" in
agent-foreman next output.
TDD Workflow (when strict mode active)
# STEP 1: Get task + TDD guidance agent-foreman next <task_id> # STEP 2: RED - Write failing tests FIRST # Create test file at suggested path # Run tests: <your-test-command> # Verify tests FAIL (confirms tests are valid) # STEP 3: GREEN - Implement minimum code # Write minimum code to pass tests # Run tests: <your-test-command> # Verify tests PASS # STEP 4: REFACTOR - Clean up # Clean up code while keeping tests passing # STEP 5: Verify + Complete agent-foreman check <task_id> agent-foreman done <task_id>
CRITICAL: DO NOT write implementation code before tests exist in strict TDD mode!
Priority Order
→ may be brokenneeds_review
→ not implementedfailing- Lower
number → higher priority (0 is highest)priority
⚠️ BREAKDOWN → VALIDATE → IMPLEMENT Workflow
When
shows "VALIDATION PHASE REMINDER":next
# All BREAKDOWNs complete → Run validation FIRST agent-foreman validate # Then proceed with implementation agent-foreman next
ALWAYS run
after completing each task (including BREAKDOWN tasks).done
Options
| Flag | Effect |
|---|---|
| Run tests before showing task |
| Preview without changes |
| Output as JSON for scripting |
| Suppress decorative output |
| Allow with uncommitted changes |
| Force regenerate TDD guidance |
Complete Options
agent-foreman done <id> # Mark complete + commit agent-foreman done <id> --full # Run all tests agent-foreman done <id> --skip-e2e # Skip E2E tests agent-foreman done <id> --no-commit # Manual commit