AgentSkillsCN

implement-issue

端到端完成单个GitHub议题的开发。创建功能分支,实现代码,提交更改,推送至远程仓库,并生成带有自动生成描述的Pull Request。

SKILL.md
--- frontmatter
name: implement-issue
description: Implement a single GitHub issue end-to-end. Creates a feature branch, implements the code, commits, pushes, and creates a PR with a generated description.
disable-model-invocation: true
context: fork
agent: implementer

Implement Issue

Implement a single GitHub issue from branch creation to PR.

Input

Issue number: $ARGUMENTS

Steps

1. Read Issue Details

bash
gh issue view $ARGUMENTS --json title,body,labels

2. Read Project Context

  • Read plan.md for architecture context
  • Browse existing code to understand patterns and conventions

3. Create Feature Branch

bash
git checkout staging
git pull origin staging
git checkout -b feature/issue-$ARGUMENTS-<slug>

Where <slug> is the issue title lowercased, non-alphanumeric chars replaced by hyphens, max 50 chars.

4. Implement the Code

  • Read the issue description and acceptance criteria
  • Implement ONLY what the issue describes
  • Follow existing code conventions
  • Add tests if appropriate

5. Commit and Push

bash
git add -A
git commit -m "Implement: <issue-title>

Closes #$ARGUMENTS"
git push -u origin feature/issue-$ARGUMENTS-<slug>

6. Generate PR Description

Create a professional PR description with these sections:

  • Summary: What problem this PR solves, what was added/changed
  • Changes: Grouped logically by area, explaining what changed and why
  • Test Plan: Thorough checkboxes (- [ ]) covering happy path, edge cases, regression

7. Create Pull Request

bash
gh pr create --base staging --head feature/issue-$ARGUMENTS-<slug> \
  --title "<issue-title>" \
  --body "Implements #$ARGUMENTS

<generated PR description>"

Output

Report the PR number and URL.