implement
Create a feature branch and implement changes based on a GitHub issue or text instruction
- License 许可
- MIT
- 最近更新
- 2026-09-11
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- implement
- description
- Create a feature branch and implement changes based on a GitHub issue or text instruction
03 SKILL.md 正文
implement - Branch Creation and Implementation from Issue or Instruction
Parse a GitHub issue or direct instruction, create a feature branch, plan the implementation, and execute code changes.
Workflow
Step 1: Parse Input and Gather Requirements
Parse $ARGUMENTS to determine what to implement.
If an issue number is provided (#N or a plain number):
- Run
gh issue view <N>to fetch the issue content - Extract requirements from the title, body, and labels
- Present the understood requirements to the user for confirmation
If a text instruction is provided:
- Use it directly as the requirement
If no arguments are provided:
- Ask the user: "What should be implemented? (Issue number or description)"
On gh CLI errors:
- Authentication error: Instruct the user to run
gh auth loginand abort - Issue not found: Ask the user to verify the issue number and abort
Step 2: Create Branch
- Run
git statusandgit branch --show-currentto check the current state - Determine a branch name in
<type>/<slug>format based on the requirements- Examples:
feat/add-auth,fix/cdk-synth-error
- Examples:
- Run
git checkout -b <branch-name>to create the branch
If already on a feature branch:
- Ask the user whether to continue working on the current branch
Step 3: Implementation Plan
- Investigate the codebase to understand the existing structure:
- Identify related files
- Understand existing implementation patterns
- Assess the scope of impact
- Present the implementation plan to the user:
## Implementation Plan
### Changes
1. `src/index.ts` - Add routing to entry point
2. `infra/lib/app-stack.ts` - Define Lambda function resource
3. `tests/test_handler.py` - Add handler tests
### Impact
- Adds resources to existing AppStack (no impact on existing functionality)
Approve?
- Wait for user approval before proceeding: "Implement this plan", "Modify the plan", or "Cancel"
Important: Do not begin code changes without plan approval.
Step 4: Implementation
Execute code changes according to the approved plan:
- Code changes: Implement the planned modifications
- Test creation: Create tests as needed
- Progress reports: Briefly report completion of each file change
If the plan needs to change during implementation, consult the user.
Step 5: Completion Report and Next Actions
Report implementation completion:
Implementation complete:
Branch: feat/add-auth
Changed files:
M src/index.ts
A infra/lib/auth-stack.ts
A tests/test_auth.py
Then ask the user which action to take next:
- Run lint, test, commit, and create PR - Read
.agents/skills/ship/SKILL.mdand follow its workflow - Run linters only - Read
.agents/skills/lint/SKILL.mdand follow its workflow - Continue with additional changes - End this skill
Important Notes
- Never read or stage
.envfiles - If
ghCLI is not authenticated, display the error and abort - Do not begin code changes without plan approval
- When adding or changing linters/formatters, follow the checklist in
docs/adding-tools.md
04 同仓库更多 Skills
test
全テストを実行し、結果を報告する
ship
lint・テスト・コミット・PR 作成を一括実行する
setup
開発環境のフルセットアップを行う
review
コード変更や PR をレビューし、問題点・改善案を報告する
pr
変更を push し、PR を作成・更新する
lint
全リンターを自動修正付きで実行し、結果を報告する