christopherlouet/claude-base / .claude/skills/work-pr
work-pr
VerifiedCreate a complete and well-documented Pull Request. Use when the user wants to create a PR, submit their changes, or prepare a merge request.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 2.0 KB |
| examples/pr-example.md | markdown | 3.0 KB |
SKILL.md
View on GitHub---
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.
disable-model-invocation: true
---
# Create a Pull Request
## Objective
Create a complete, well-documented PR, ready for review.
## Instructions
### 1. Check the state
```bash
# State of changes
git status --short
# Differences with the target branch
git diff main...HEAD --stat
# Commit history
git log main...HEAD --oneline
```
### 2. Prepare the branch
```bash
# 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
```
### 3. PR Template
```markdown
## 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])
```
### 4. Create the PR
```bash
# 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
```
## Best practices
| 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 |
## Rules
- ONE PR = ONE topic
- Always include tests
- Respond to comments quickly
- Squash if history is noisy
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |