بنقرة واحدة
work
Pick a GitHub issue, create branch, implement using TDD, review, and create PR
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Pick a GitHub issue, create branch, implement using TDD, review, and create PR
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Execute one iteration of the Ralph loop - pick next open issue from milestone, implement, review, merge
Manage project work via GitHub CLI. Use for ALL GitHub tasks including creating/viewing issues, organizing with milestones, and responding to PR comments.
| name | work |
| description | Pick a GitHub issue, create branch, implement using TDD, review, and create PR |
| argument-hint | [issue-number] |
| allowed-tools | Bash, Read, Write, Edit, Grep, Glob, Task, Skill, AskUserQuestion |
End-to-end workflow: select issue -> create branch -> implement -> review -> PR.
Design principle: Run to completion with minimal user interaction. Only stop for:
Branch: !git branch --show-current
Uncommitted changes: !git status --porcelain
$ARGUMENTS
Before proceeding, verify:
main branch (if not, ask user before proceeding)If issue number provided in $ARGUMENTS: Use that issue.
If no arguments: List open issues and let user choose:
gh issue list --state open --json number,title,labels --limit 20
Use AskUserQuestion to let user pick which issue to work on.
Get issue details:
gh issue view <number> --json number,title
Create branch: <number>-<short-kebab-description>
git checkout -b <branch-name>
Read full issue including comments:
gh issue view <number> --comments
IMPORTANT: Always read comments. Earlier work often leaves context.
Follow RED-GREEN-REFACTOR:
TDD applies to: Functions with logic, modules with behavior, integration points, error handling.
TDD does NOT apply to: Type definitions, data structures without behavior, configuration, boilerplate wiring.
Run frequently:
make validate
Do not commit until Phase 4. A post-commit hook triggers a roborev review on every commit. All implementation work stays uncommitted until review passes.
make validate
Stage all changes, then review them using --dirty. Run this command exactly
once. Do NOT re-run it, do NOT wrap it with 2>&1, echo $?, or any other
shell constructs. Each invocation submits a new paid review.
git add .
roborev review --dirty --wait
If the output is confusing, check results separately:
roborev status
roborev show <job-id>
If PASS (no actionable findings): Proceed to Phase 4. Do not stop to ask.
If FAIL (actionable findings): Fix the findings:
roborev fix
make validate
git add .
roborev review --dirty --wait
If still failing after 2 fix cycles, stop and present blocking issues to the user.
git add .
git commit -m "$(cat <<'EOF'
<issue-title>
<brief description of changes>
Closes #<issue-number>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
EOF
)"
make validate
git push -u origin <branch-name>
gh pr create --title "<title>" --body "$(cat <<'EOF'
## Summary
<2-3 bullets of what changed>
Closes #<issue-number>
## Test Plan
- [ ] `make validate` passes
- [ ] roborev review passed
Generated with [Claude Code](https://claude.com/claude-code)
EOF
)"
Post completion comment on the issue:
gh issue comment <number> --body "$(cat <<'EOF'
## Implementation Complete
PR: <pr-url>
### Summary
<brief description>
### Changes
- <key changes>
EOF
)"
Report the PR URL to the user.
Ask the user what to do next using AskUserQuestion:
"Merge it" - Merge and clean up:
gh pr merge <pr-number> --squash --delete-branch
git checkout main
git pull origin main
"I'll merge it myself" - Return to main:
git checkout main
git pull origin main
"Keep working" - Stay on branch for more changes.