一键导入
work-pr
Create a complete and well-documented Pull Request. Use when the user wants to create a PR, submit their changes, or prepare a merge request.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create a complete and well-documented Pull Request. Use when the user wants to create a PR, submit their changes, or prepare a merge request.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Multi-agent team orchestration with native Agent Teams. Trigger when the user wants to launch a team of agents, coordinate parallel work with inter-agent communication, or use swarm mode.
Perform a thorough code review. Use when the user requests a review, wants to verify code quality, or before merging a PR.
Context transfer between AI sessions. Trigger when the user wants to save the context, resume a task, or hand off the work to another session.
API mock configuration for tests. Trigger when the user wants to mock APIs, use MSW, or test without a backend.
Debug and resolve problems. Use when the user has a bug, an error, an unexpected behavior, or wants to understand why something is not working.
TDD development with Red-Green-Refactor cycle. Use to implement a feature by writing tests BEFORE the code. Trigger automatically when the user asks for TDD, wants to write tests first, mentions "test first", or asks to implement, add, create, fix, correct code, a new feature, a bugfix, or a functionality.
| name | work-pr |
| description | Create a complete and well-documented Pull Request. Use when the user wants to create a PR, submit their changes, or prepare a merge request. |
| allowed-tools | ["Read","Bash","Grep","Glob"] |
| context | fork |
| disable-model-invocation | true |
Create a complete, well-documented PR, ready for review.
# State of changes
git status --short
# Differences with the target branch
git diff main...HEAD --stat
# Commit history
git log main...HEAD --oneline
# Make sure to be up to date
git fetch origin
git rebase origin/main # or merge depending on convention
# Check the tests
npm test
# Check the lint
npm run lint
## Description
[Clear summary of what this PR does in 2-3 sentences]
## Type of change
- [ ] New feature (feat)
- [ ] Bug fix (fix)
- [ ] Refactoring (refactor)
- [ ] Documentation (docs)
- [ ] Other: [specify]
## Changes
### Additions
- [Added file/function]
### Modifications
- [Modified file/function]
### Removals
- [Removed file/function]
## How to test
1. [Test step 1]
2. [Test step 2]
3. Check that [expected result]
## Checklist
- [ ] Code self-reviewed
- [ ] Tests added/updated
- [ ] Documentation updated
- [ ] No forgotten console.log
- [ ] Lint passes
- [ ] Build passes
## Screenshots (if UI)
[Before/After if applicable]
## Related issues
Fixes #[number] (or Refs #[number])
# Push the branch
git push -u origin $(git branch --show-current)
# Create the PR with GitHub CLI
gh pr create \
--title "type(scope): description" \
--body "$(cat PR_BODY.md)" \
--base main
| Do | Don't |
|---|---|
| Descriptive title | "Fix bug" |
| Complete description | Empty PR |
| Small focused PRs | Giant PRs |
| Tests included | PR without tests |
| UI screenshots | Undocumented UI changes |