user-story-implementer

Implement a single user story or task from a GitHub Issue backlog. Executes a single iteration by fetching the next open issue, assigning it, implementing the code, creating a branch and PR, and moving on. You MUST use this skill when asked to "implement a user story", "run one iteration", "do the next task", or "complete a task from the backlog".

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "user-story-implementer" with this command: npx skills add eho/agent-skills/eho-agent-skills-user-story-implementer

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

  1. 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).
  2. 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.
  3. Branching: Follow standard Git flow. Create and checkout a new branch based on the issue number: git checkout -b feature/us-<issue-number>.
  4. 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.
  5. 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 a blocked label using gh issue edit <issue-number> --add-label "blocked", and stop work on this issue.
  6. 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.
  7. 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.
  8. 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. Note: If ./scripts/create_pr.sh is not found, you can locate it under <current project directory>/*/skills/user-story-implementer/scripts/.
      ./scripts/create_pr.sh "<issue-number>" "feat: <issue-title>" "<Summary of work done>"
      
      Use the appropriate conventional commit prefix (feat:, fix:, docs:, etc.). The script automatically includes Closes #<issue-number> so merging the PR automatically closes the issue.

Available Scripts

This skill bundles the following scripts. If your environment does not map ./scripts/ directly, locate them in your workspace under .../skills/user-story-implementer/scripts/.

  • create_pr.sh "<issue_number>" "<issue_title>" "<summary_of_work>": Safely executes gh pr create with multi-line bodies to avoid shell escaping errors.

Examples

Example 1: Input: "Implement the next task" Action:

  1. Run gh issue list --label "user-story" --limit 1 --search "sort:created-asc". Returns Issue #12: "Add priority selector".
  2. Assign: gh issue edit 12 --add-assignee "@me".
  3. Branch: git checkout -b feature/us-12.
  4. Implement the feature and write tests.
  5. Review the code to ensure it meets Acceptance Criteria in Issue #12.
  6. Commit: git add src/components/TaskEdit.tsx and git commit -m "feat: add priority selector (US-002)".
  7. Push: git push -u origin HEAD.
  8. Create PR:
    ./scripts/create_pr.sh "12" "feat: Add priority selector" "Added priority selector to task edit."
    

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

prd-to-github-milestone

No summary provided by upstream source.

Repository SourceNeeds Review
12-eho
Automation

prd

No summary provided by upstream source.

Repository SourceNeeds Review
20-eho
Automation

user-story-reviewer

No summary provided by upstream source.

Repository SourceNeeds Review
16-eho
Automation

public-repo-explorer

No summary provided by upstream source.

Repository SourceNeeds Review
11-eho