From github-devflow
This skill should be used when the user asks to "implement an issue", "create a PR for issue", "implement issue
npx claudepluginhub hhiroshell/gh-devflow-plugins --plugin github-devflowThis skill is limited to using the following tools:
Implement a GitHub issue by reading the implementation plan from the issue (description, comments, and replies), writing the code, creating a pull request, and updating the issue status.
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Implement a GitHub issue by reading the implementation plan from the issue (description, comments, and replies), writing the code, creating a pull request, and updating the issue status.
Retrieve comprehensive issue information:
gh issue view $ARGUMENTS --json number,title,body,comments,labels
Parse the response to extract:
If the issue has comments, read all comments to find implementation plans or additional requirements:
gh issue view $ARGUMENTS --comments
Look for implementation plan sections typically marked with headers like "Implementation Plan", "Approach", or "Steps".
Create and checkout a new branch for the implementation:
git checkout -b issue-$ARGUMENTS
If the branch already exists, confirm with the user before proceeding.
Based on the implementation plan extracted from the issue:
During implementation:
If the plan is unclear or incomplete:
After implementation is complete, create a pull request:
gh pr create --title "Implement #$ARGUMENTS: <issue-title>" --body "$(cat <<EOF
## Summary
Implements #$ARGUMENTS
<Brief description of changes>
## Changes Made
- <List of key changes>
## Testing
- <How the changes were tested>
## Related Issue
Closes #$ARGUMENTS
---
*PR generated with [Claude Code](https://claude.ai/code) - github-devflow:implement*
EOF
)"
Link the PR to the issue using "Closes #N" or "Fixes #N" syntax.
Add a comment to the original issue linking to the PR:
gh issue comment $ARGUMENTS --body "Implementation PR created: <pr-url>
The implementation follows the plan outlined in this issue. Please review the PR for details."
Add the implementation-started label to indicate work is in progress:
gh issue edit $ARGUMENTS --add-label "implementation-started"
If the label doesn't exist, create it first:
gh label create "implementation-started" --description "Implementation work has started" --color "FFA500"
If gh CLI is not authenticated:
Error: gh CLI requires authentication. Run 'gh auth login' first.
If no clear implementation plan is found in the issue:
github-issue-planner plugin first to create a planIf there are conflicts with the base branch:
If unable to create the label (permissions issue):
After successful completion, provide a summary: