← スキル一覧に戻る

pr-prepare
by ByronWilliamsCPA
Cookiecutter template for Python projects with modern development standards
⭐ 0🍴 0📅 2025年12月5日
SKILL.md
name: pr-prepare description: "Prepare pull request descriptions for template changes. Activates on: prepare PR, create PR, pull request, ready for PR, draft PR, write PR"
PR Preparation Skill
Automatically prepare pull request descriptions for template changes.
Activation
This skill activates on keywords:
- "prepare PR", "prepare the PR", "prepare a PR"
- "create PR", "create pull request"
- "PR description", "pull request description"
- "ready for PR", "ready to PR"
- "draft PR", "write PR"
Workflow
When activated, follow these steps:
1. Gather Context
Run these commands to understand the changes:
# Current state
git status
# Branch comparison
git log $(git merge-base HEAD main)..HEAD --oneline
# Files changed
git diff $(git merge-base HEAD main)..HEAD --stat
2. Analyze Template Changes
Identify:
- Scope: cookiecutter.json, hooks, template files, docs?
- Purpose: Why these changes were made
- Impact: Breaking changes for existing template users?
- Testing: Template generation tested?
3. Generate PR Description
Use this template format:
## Summary
[1-3 sentences: what changed and why]
## Changes
- **[Component]**: [What changed and why]
## Scope
- [ ] `cookiecutter.json` (template variables)
- [ ] `hooks/` (generation hooks)
- [ ] `{{cookiecutter.project_slug}}/` (generated project files)
- [ ] Documentation
## Impact
- ✅ [Key benefit]
- ✅ No breaking changes to existing template users
## Testing
- [ ] Template generates with default options
- [ ] Template generates with features enabled
- [ ] Generated project passes `uv run pytest`
## Notes
[Optional: known issues, follow-up work]
4. Suggest PR Title
Follow conventional commits with template scopes:
| Scope | When to Use |
|---|---|
feat(template): | New template feature |
fix(hooks): | Hook bug fix |
docs: | Documentation |
chore(config): | cookiecutter.json changes |
ci: | Workflow changes |
5. Output
Present the complete PR description ready to copy-paste.
Remind the user:
- CodeRabbit will auto-fill summary
- Test template generation before pushing
Example Output
Suggested Title: feat(template): add CodeRabbit and Linear integrations
PR Description:
## Summary
Add CodeRabbit AI code reviews and Linear project management integration as optional features.
## Changes
- **cookiecutter.json**: New `include_coderabbit`, `include_linear`, `linear_team_key` variables
- **{{cookiecutter.project_slug}}/.coderabbit.yaml**: CodeRabbit configuration template
- **{{cookiecutter.project_slug}}/.github/PULL_REQUEST_TEMPLATE.md**: PR template with Linear support
- **hooks/post_gen_project.py**: Cleanup logic and success messages
## Scope
- [x] `cookiecutter.json` (template variables)
- [x] `hooks/` (generation hooks)
- [x] `{{cookiecutter.project_slug}}/` (generated project files)
- [x] Documentation
## Impact
- ✅ Projects can now use AI code reviews via CodeRabbit
- ✅ Linear integration for project management
- ✅ No breaking changes to existing template users
## Testing
- [x] Template generates with default options
- [x] Template generates with features enabled
- [x] Generated project structure validated
## Notes
CodeRabbit requires GitHub App installation after project creation.
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です