user-story-implementer
SKILL.md
Instructions
You are acting as an autonomous sub-agent to implement a user story or task managed via GitHub Issues.
Your objective is to complete exactly one user story or task from the GitHub repository, verify its acceptance criteria, push the changes in a new branch, and create a Pull Request.
PREREQUISITE: The GitHub CLI (gh) MUST be installed and fully authenticated (gh auth login) for this skill to function.
Workflow
- Identify the Next Task: Run
gh issue list --label "user-story" --limit 1 --search "sort:created-asc"to grab the next available issue in creation order (lowest issue number first, matching PRD story order). Note the issue number, title, and body (which contains the Acceptance Criteria). - State Management: Before starting work, assign the issue to yourself (or the current user) using
gh issue edit <issue-number> --add-assignee "@me". This provides visibility and prevents conflicts. - Branching: Follow standard Git flow. Create and checkout a new branch based on the issue number:
git checkout -b feature/us-<issue-number>. - Execute: Implement the code, configuration, or changes required to complete that single user story.
- Ensure you fulfill all of the listed Acceptance Criteria in the GitHub issue body.
- Write unit tests or perform browser verification if required.
- Update any relevant documentation.
- Important: If you cannot complete the entire story within ~2 hours of effort, or if you identify missing requirements or technical blockers during implementation, do NOT continue. Move to step 5 (Handling Blockers) instead.
- Handling Blockers: If you encounter missing requirements, ambiguity, or blockers that prevent completion, add a comment to the issue detailing the blocker using
gh issue comment <issue-number> --body "<Details>", add ablockedlabel usinggh issue edit <issue-number> --add-label "blocked", and stop work on this issue. - Self-Review: Before considering the task complete, perform this specific checklist:
- For each Acceptance Criterion listed in the issue, is there code implementing it? (Check each one individually.)
- Are there new tests? Run them locally to verify they pass.
- Do the tests exercise the core feature (not just superficial checks)?
- Do the tests cover the happy path AND relevant error cases?
- If all checkboxes pass, proceed to step 7. If any fail, return to step 4 to address gaps.
- Commit Code: Once your user story or chunk is complete, you must commit your changes to your feature branch.
- Do not use
git commit -a. Select files manually.
- Do not use
- Pull Request & Linking:
- Push the branch:
git push -u origin HEAD. - Create a Pull Request using the bundled script to ensure clean formatting and avoid agent shell warnings:
Use the appropriate conventional commit prefix (./scripts/create_pr.sh "<issue-number>" "feat: <issue-title>" "<Summary of work done>"feat:,fix:,docs:, etc.). The script automatically includesCloses #<issue-number>so merging the PR automatically closes the issue.
- Push the branch:
Examples
Example 1: Input: "Implement the next task" Action:
- Run
gh issue list --label "user-story" --limit 1 --search "sort:created-asc". Returns Issue #12: "Add priority selector". - Assign:
gh issue edit 12 --add-assignee "@me". - Branch:
git checkout -b feature/us-12. - Implement the feature and write tests.
- Review the code to ensure it meets Acceptance Criteria in Issue #12.
- Commit:
git add src/components/TaskEdit.tsxandgit commit -m "feat: add priority selector (US-002)". - Push:
git push -u origin HEAD. - Create PR:
./scripts/create_pr.sh "12" "feat: Add priority selector" "Added priority selector to task edit."
Weekly Installs
22
Repository
eho/agent-skillsFirst Seen
12 days ago
Security Audits
Installed on
opencode22
gemini-cli22
github-copilot22
codex22
amp22
cline22