<h1 align="center">
<a href="https://prompts.chat">
Sign in to like and favorite skills
/implement #<issue> or when user says 'implement', 'work on issue #', 'start coding'. Clears context, fetches issue, enters plan mode, then implements with TDD. Gates to /submit when complete."Guide the development process from issue to tested, reviewable code.
/implement #<issue_number> /implement <issue_number>
Example:
/implement #123
Also triggers on:
Step 1: Clear context (fresh start) Step 2: Fetch issue content Step 3: Create feature branch Step 4: Enter plan mode → write implementation plan Step 5: GATE ← "Plan approved?" Step 6: Implement (TDD or tests-after) Step 7: QA (tests + code review) Step 8: GATE ← "Ready for review?"
Start fresh to avoid context pollution from the spec phase.
Suggest to user:
Starting implementation for #<issue_number>. Recommend clearing context for a fresh start: /clear Or we can continue in this session if you prefer.
If user agrees, they run
/clear and re-invoke /implement #<issue_number>.
If user prefers to continue, proceed to Step 2.
Retrieve the issue to understand requirements:
GitHub:
gh issue view $ISSUE_NUM --json title,body,labels
GitLab:
glab issue view $ISSUE_NUM
Parse and extract:
Check if branch already exists:
ISSUE_NUM="$1" EXISTING_BRANCH=$(git branch -a | grep -E "(feature|fix|hotfix)/${ISSUE_NUM}-" | head -1 | xargs) if [ -n "$EXISTING_BRANCH" ]; then git checkout "$EXISTING_BRANCH" echo "Switched to existing branch: $EXISTING_BRANCH" else bash scripts/create_feature_branch.sh $ISSUE_NUM feature <brief-description> fi
CRITICAL: Enter plan mode to create an implementation plan before writing code.
Use the EnterPlanMode tool, then:
.claude/project.json or pyproject.toml)Plan should include:
Write the plan to the plan file (path provided by plan mode).
Use ExitPlanMode to present the plan for user approval.
DO NOT write any code until user approves the plan.
If user requests changes → update the plan and re-present. If user approves → proceed to Step 6.
Execute the approved plan:
If TDD mode:
If tests-after mode:
Commit format:
git commit -m "$(cat <<'EOF' <Type> #<issue>: <Brief description> <Why explanation> 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> EOF )"
Commit types: Fix, Add, Update, Refactor, Remove, Docs, Test, Chore
Run tests:
# Swift/iOS swift test # Python pytest # React Native npm run test
Run code reviewer:
| Domain | Reviewer |
|---|---|
| Swift | agent |
| Python | skill |
| React Native | skill |
Manual QA (if needed):
Address any issues before proceeding.
CRITICAL: STOP and ask user before proceeding to submit phase.
Use AskUserQuestion:
✅ Implementation complete! Branch: feature/<issue>-<description> Commits: <count> commits Tests: ✓ passing Code review: ✓ no critical issues Ready for code review? - Yes → Continue to /submit - No → Continue working or run more tests
When user confirms "Yes": Invoke the
submit skill:
Skill tool: skill="submit"
Every commit MUST:
See
references/commit_message_format.md for examples.
Install hooks to enforce standards (once per repo):
bash scripts/setup_git_hooks.sh
| Situation | Action |
|---|---|
| Issue not found | Ask user for correct issue number |
| Branch conflict | Ask user how to resolve |
| Tests failing | Fix before gating to submit |
| Code review issues | Fix before proceeding |
create_feature_branch.sh - Creates properly named branchespre_commit_hook.sh - Blocks commits to main/mastercommit_msg_hook.sh - Validates commit message formatsetup_git_hooks.sh - Installs all git hookscommit_message_format.md - Commit message guidelines and examplesAfter implementation is complete and user confirms, chains to →
/submit