원클릭으로
gh-implement-issue
// End-to-end implementation workflow for a GitHub issue from planning through PR creation. Use when starting work on an issue from scratch.
// End-to-end implementation workflow for a GitHub issue from planning through PR creation. Use when starting work on an issue from scratch.
| name | gh-implement-issue |
| description | End-to-end implementation workflow for a GitHub issue from planning through PR creation. Use when starting work on an issue from scratch. |
| category | github |
Strict Test-Driven Development (TDD) workflow for implementing a GitHub issue from start to finish.
IMPORTANT: This workflow is sequential. You MUST complete each step fully before moving to the next. You MUST NOT skip steps, reorder steps, or combine steps. Each step has a gate condition that must be satisfied before proceeding.
Follow these steps in exact order. Do NOT proceed to the next step until the current step is complete.
gh issue view <issue> --comments to understand requirements and prior contextgit checkout -b feature/<issue>-<description>This is the TDD "Red" phase. You MUST write tests before writing any implementation code.
Integration)docker compose up -d) to run integration testsgo test to confirm they fail (DO NOT skip integration tests) (Red phase).You MUST stop here and wait for explicit human approval before continuing.
This is the TDD "Green" phase. Now and only now do you write implementation code.
make test to verify unit tests passmake fmt to format codemake lint to run the lintermake fmt and make lint pass with no errors or warningsYou MUST stop here and wait for explicit human approval before continuing.
git add . && git commit -m "type(scope): description\n\nCloses #<issue>"git push -u origin <branch>gh pr create --title "..." --body "..." # 1. Fetch issue and create branch
gh issue view <issue>
git checkout -b feature/<issue>-<description>
# 2. TDD cycle
# - Write tests FIRST (Red)
# - Implement code (Green)
# - Refactor
# - Run tests: make test
# 3. Quality checks
make fmt
make lint
# 4. Wait for human approval
# 5. Commit and PR
git add . && git commit -m "feat: description
Closes #<issue>"
git push -u origin <branch>
gh pr create --issue <issue>
Format: feature/<issue-number>-<description>
Examples:
feature/42-add-tensor-opsfeature/73-fix-memory-leakfeature/105-update-docsFollow conventional commits:
type(scope): Brief description
Detailed explanation of changes.
Closes #<issue-number>
Types: feat, fix, docs, refactor, test, chore
Before requesting human approval:
make fmt)make lint)