From Golden Hoop Spell
Implement features from the current sprint plan. Supports single-feature mode (default, one feature per session) and parallel mode (--parallel for independent features). This is the primary development workflow for ghs-managed projects.
How this skill is triggered — by the user, by Claude, or both
Slash command
/golden-hoop-spell:ghs-code [--parallel] [--max-parallel=N][--parallel] [--max-parallel=N]The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Implement features from the current sprint. Two modes: **single feature** (default) and **parallel** (multiple features at once via `--parallel`).
Implement features from the current sprint. Two modes: single feature (default) and parallel (multiple features at once via --parallel).
The project must have an active sprint with pending features. If not, tell the user to run /ghs:sprint first.
Resolve project directory:
python3 ${CLAUDE_PLUGIN_ROOT}/shared/scripts/resolve_project_dir.py
Store the output as PROJECT_DIR for all subsequent reads/writes.
Review recent work:
git log --oneline -10
Read .ghs/progress.md to understand previous sessions.
Validate project structure:
~/.pyenv/shims/python3 ${CLAUDE_PLUGIN_ROOT}/shared/scripts/validate_structure.py --project-dir "<PROJECT_DIR>"
If validation fails, report errors and stop. Fix issues before proceeding.
Review feature status: Read .ghs/features.json to see current sprint, completed/in-progress/pending features, and dependencies.
Verify project state: Run lint and build commands. If broken, fix existing issues before starting new work.
Choose ONE feature per session. Prioritize:
Recovery protocol: If a feature has status in_progress but the working tree is clean (no uncommitted changes related to it), treat it as pending and offer to pick it up. This handles cases where a previous session was interrupted after updating status but before completing work.
Commit message format: <type>(<scope>): <description> (Feature: <feature-id>) (types: feat, fix, refactor, test, docs, chore, style)
Check all acceptance criteria:
Commit implementation changes first (before touching any .ghs/ files):
git add <list each modified implementation file explicitly>
git commit -m "feat(<scope>): <description> (Feature: <feature-id>)"
Update the feature status in .ghs/features.json (only change status field):
completed — all acceptance criteria met, tests passblocked — cannot proceed, document reason in blocked_reasonUpdate .ghs/progress.md with session summary at the top of the sessions section:
## Session N - YYYY-MM-DD
**Agent**: Coding Agent
**Sprint**: [Sprint ID]
**Feature**: [Feature ID and title]
### Implementation
- [What was implemented]
- [Key decisions made]
### Files Changed
- path/to/file.ts - [brief description]
### Tests Performed
- [How the feature was verified]
### Issues Encountered
- [Any blockers or bugs found]
### Acceptance Criteria Status
- [x] Criterion 1
- [x] Criterion 2
### Next Steps
- [Recommended next feature]
--parallel)When invoked with --parallel, implement multiple independent features concurrently using subagents.
/ghs:sprint first."git status). If uncommitted changes exist, exit with: "Working tree has uncommitted changes. Please commit or stash first."Identify ready features and build batches: Use parallel_utils.py to get ready features and conflict-free batches:
~/.pyenv/shims/python3 ${CLAUDE_PLUGIN_ROOT}/shared/scripts/parallel_utils.py --project-dir "<PROJECT_DIR>" --max-parallel <N>
The script outputs JSON with ready_features, batches, skipped, and any cycles detected. Use the batches output directly for dispatch.
Detect file conflicts: Group features by file overlap. Features modifying the same files cannot run in parallel. (Handled automatically by parallel_utils.py.)
Create batches: Group non-conflicting ready features into batches. Display the execution plan to the user.
For each feature, spawn a subagent with this prompt:
Implement ONE feature for this project.
## CONTEXT RESET - READ THIS FIRST
This is an isolated task. You MUST:
1. DISREGARD any context from previous conversations or tasks
2. NOT assume any prior knowledge about the project state
3. Read all necessary files fresh to understand current state
4. Start with a clean mental state - this is your ONLY task
## Feature Details
- **ID**: <feature_id>
- **Title**: <title>
- **Description**: <description>
- **Acceptance Criteria**:
<criteria_list>
- **Technical Notes**: <technical_notes>
- **Files to Modify**: <files_affected>
## Your Task
1. Read .ghs/features.json and .ghs/progress.md to understand project context
2. Implement the feature
3. Test all acceptance criteria
4. Run lint/build to verify no breakage
5. Commit your changes (only implementation files — do NOT modify .ghs/ files): list each modified file explicitly with `git add`, then commit with message: feat(<scope>): <brief description> (Feature: <feature_id>)
## Critical Rules
- Do NOT modify .ghs/features.json or .ghs/progress.md - the orchestrator will update these after your commit
- Focus ONLY on this feature
- Ensure the codebase remains in a working state
- Signal completion by stating "FEATURE COMPLETE: <feature_id>" at the end
- If you cannot complete the feature, state "FEATURE BLOCKED: <feature_id> - <reason>"
Spawn as background agents:
{
"subagent_type": "general-purpose",
"description": "Implement feature <id>",
"prompt": "<full prompt from template above>",
"run_in_background": true
}
For each completed subagent:
Subagents already committed their implementation files individually. No further git commits needed — the orchestrator only updates local tracking files.
.ghs/features.json — completed features get status: "completed", blocked get status: "blocked".ghs/progress.md sessions sectionFor detailed schemas and more examples:
${CLAUDE_PLUGIN_ROOT}/shared/references/coding-agent.md — Full session protocol, parallel mode details, testing requirements${CLAUDE_PLUGIN_ROOT}/shared/references/examples.md — Realistic examples of features.json, progress.md, and workflowsStop immediately if you encounter: build errors, lint errors, failing tests, app won't start, previously working feature broken, or uncommitted changes from previous session. Fix these before proceeding.
Provides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
npx claudepluginhub wangdahoo/golden-hoop-spell --plugin golden-hoop-spell