AgentSkillsCN

develop-feature

根据已认领的GitHub问题,实现功能需求。在新分支上完成代码修改,并开启草稿PR以供人工审核。适用于在认领问题后,将其标记为“功能需求”的问题。

SKILL.md
--- frontmatter
name: develop-feature
description: Implement a feature request from a claimed GitHub issue. Produce code changes on a new branch and open a draft pull request for human review. Use for issues labelled as feature requests after claiming them.
tools:
  - implement_feature
  - open_pull_request
user-invokable: false
version: 1.0.0

Develop Feature

Purpose

Translate a feature request issue into working code changes, submitted as a draft pull request for human review.

Instructions

  1. Read the issue title and body to understand the feature requirements
  2. If the requirements are insufficient to implement safely:
    • Comment on the issue explaining what additional information is needed
    • Flag the issue for human review
    • Stop — do not produce code
  3. Call implement_feature with the repository, issue number, title, and body
  4. If a branch name is returned:
    • Call open_pull_request with:
      • Title: "feat: <concise feature description> (closes #<issue>)"
      • Body: Summary of changes + "Closes #<issue_number>"
      • draft: true
  5. Log the PR number and link

Pull Request Requirements

  • Title MUST follow conventional commit format: feat: <description>
  • Body MUST reference the originating issue with "Closes #<number>"
  • Body MUST include a summary of what was implemented
  • PR MUST be opened as draft — never as ready-for-review

Expected Output

The opened draft pull request with its number and URL.