pull-request
Skill36 starsChanged 2 months agoApache-2.0View on GitHub
PR lifecycle management - create PRs with proper commits, merge with validation, and manage PR comments
- Commits and pushes
53 other projects use a version of this.
Adopted by
Most recently taken up by
- CVector-Energy/claude-code-solvetheir own version, first seen Nov 8, 2026
- neomjs/neo-agent-skillstheir own version, first seen Nov 8, 2026
- Kangentic/kangentictheir own version, first seen Nov 7, 2026
- speakeasy-api/gramtheir own version, first seen Nov 6, 2026
- StephanMeijer/skillstheir own version, first seen Nov 6, 2026
- drinkspiller/skillstheir own version, first seen Nov 6, 2026
Used with
Projects with it also use issue-campaign, contracts and 8 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
samchonSkillissue-campaign
Defines the default solo repository-wide issue campaign for typia: exhaustive discovery, lead-vetted issue publication, one unified CI-validated implementation pull request per cycle, solo Self-Review, and repeated rediscovery until a full clean round. Use for broad audits, many issue candidates, or repeated issue-to-pull-request campaigns unless the user explicitly requests parallel or multi-agent execution; do not use for one already-defined issue or an ordinary pull request.
Also in 3 projects that use this
AnthropicSkillcontracts
Answer a question across a corpus of contract documents with verified citations. Use when the user asks what a contract says, which contracts have a clause, what changed between amendments, or any question that needs reading and citing across a set of contract files. The corpus must be on the local filesystem (see README).
Also in 3 projects that use this
mfang0126Skilldevelopment
Full-stack development workflow skill. Guides the complete cycle from understanding requirements to shipping code via PR with Preview validation.
Also in 3 projects that use this
dragonflydbSkillbenchmark
Benchmark Dragonfly (and compare against Valkey/Redis) on local or remote cloud instances, then produce a performance + memory report with charts and a raw-data appendix. Use this whenever the user runs /benchmark, or asks to benchmark / load-test / measure throughput, QPS, latency, or memory efficiency of Dragonfly or another Redis-compatible server, to compare Dragonfly vs Valkey or Redis, or to generate a benchmark report. Trigger it even when the user just describes the goal ("see how fast Dragonfly is on this box", "compare memory per key vs Valkey") without saying the word "benchmark".
Also in 4 projects that use this
VercelSkillgh-stack
Manages stacked PRs and splits multi-part work into reviewable branches with gh-stack. Use for stack creation, viewing, edits, push, submit, sync, rebase, merge, or checkout; when asked to split or isolate work for review; whenever a user mentions a stack, branch layers, dependent PRs, or gh stack; or when a stack is checked out.
Also in 3 projects that use this
carapace-shSkillgit
Use when working with Git — object model, references, index, branching, merging, rebasing, remotes, diffs, config, hooks, worktrees, submodules, and plumbing commands. Triggers on: "git", "git branch", "git commit", "git merge", "git rebase", "git checkout", "git stash", "git reset", "git submodule", "git worktree", "git blame", "git bisect", "git reflog", "git hooks", "git config".
Also in 3 projects that use this
Other versions53 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 53
- samchon/typia★ 6ksame name
- epicenter-md/epicenter★ 4.8ksame name
- EpicenterHQ/epicenter★ 4.8ksame name
- werf/werf★ 4.7ksame name
- basicmachines-co/basic-memory★ 4.5ksame name
- PaulWoitaschek/Voice★ 3.3ksame name
- event-catalog/eventcatalog★ 3ksame name
- heyitsnoah/claudesidian★ 2.6ksame name
- samchon/nestia★ 2.2ksame name
- theopenco/llmgateway★ 1.7ksame name
43 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository52 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- agent-browserSkill
- arch-specSkill
- code-qualitySkill
- code-reviewSkill
- commitSkill
- coord-delegateSkill
- coord-handoffSkill
- coord-orchestrateSkill
- coord-requestSkill
- coord-reviewSkill
- coord-runSkill
- coord-syncSkill
- dispatchSkill
- edda-releaseSkill
- fleet-epic-splitSkill
- fleet-managerSkill
- fleet-orchestrateSkill
- fleet-pr-loopSkill
- fleet-reviewSkill
- fleet-triadSkill
- fleet-workerSkill
- ground-checkSkill
- health-checkSkill
- intel-scanSkill
- issue-actionSkill
- issue-compactSkill
- issue-createSkill
- issue-intakeSkill
- issue-pipelineSkill
- issue-planSkill
- issue-scanSkill
- parallel-waveSkill
- path-forwardSkill
- plan-decomposeSkill
- plan-validateSkill
- pr-checkSkill
- project-planSkill
- Project PrinciplesSkill
- pr-review-loopSkill
- pr-reviewSkill
- regression-guardSkill
- skill-aliasSkill
- skill-craftSkill
- skill-testSkill
- spec-review-modesSkill
- tech-debtSkill
- testingSkill
- tracking-issueSkill
- verifiable-goal-loopSkill
- fleet-orchestrateSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. 0 are common, 19 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 48 edited versions we read keep these.
19
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
create: - Create a new PR or update existing one
- Distinctive: line 20
When invoked, check the args to determine the operation and execute accordingly.
- Distinctive: line 70
Run git status to see all changes
- Distinctive: line 71
Run git diff to understand the nature of changes
- Distinctive: line 77
Before proceeding, evaluate the PR scope:
- Distinctive: line 110
CRITICAL: All checks MUST pass before committing.
- Distinctive: line 128
Before creating the PR, verify this work is the right thing to do:
- Distinctive: line 138
Ask: "Is there a higher-priority item I should be doing instead?"
- Distinctive: line 140
If working on a P2 while P0s exist → stop, switch to P0.
- Distinctive: line 197
No period at the end
- Distinctive: line 199
Use imperative mood (add, not added)
- Distinctive: line 226
Wait 30 seconds between retries
- Distinctive: line 228
Only proceed when all non-skipped checks pass
- Distinctive: line 293
Only a squash-merged PR counts as delivery.
- Distinctive: line 413
If PR ID not provided, detect from conversation context or current branch.
- Distinctive: line 451
Always check branch status first: - Don't assume the current state
- Distinctive: line 452
Run pre-commit checks: - Never skip quality checks
- Distinctive: line 456
Confirm merge completion: - Verify PR state is MERGED
- Distinctive: line 467
Not on main branch (for create/merge)
“Common” is measured: kept by at least 6 in 10 of the 48 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
You are a Pull Request lifecycle specialist for the fagemx/edda project. Your role is to handle PR creation, merging, and comment management with tech lead quality standards.
Note: For CI monitoring and auto-fixing, use the pr-check skill. For code review, use the pr-review skill.
Operations
This skill supports four main operations. Parse the args parameter to determine which operation to perform:
- create - Create a new PR or update existing one
- merge - Validate checks and merge PR
- list - List open pull requests for the repository
- comment [pr-id] - Summarize conversation and post as PR comment
When invoked, check the args to determine the operation and execute accordingly.
Operation 1: Create PR
Workflow
Step 1: Check Current Branch and PR Status
# Get current branch
current_branch=$(git branch --show-current)
# Check if on main branch
if [ "$current_branch" = "main" ]; then
need_new_branch=true
else
# Check if current branch has a PR and if it's merged
pr_status=$(gh pr view --json state,mergedAt 2>/dev/null)
if [ $? -eq 0 ]; then
is_merged=$(echo "$pr_status" | jq -r '.mergedAt')
pr_state=$(echo "$pr_status" | jq -r '.state')
if [ "$is_merged" != "null" ] || [ "$pr_state" = "MERGED" ]; then
need_new_branch=true
else
need_new_branch=false
fi
else
need_new_branch=false
fi
fiStep 2: Create Feature Branch (if needed)
Branch Naming Convention: <type>/<short-description>
- Examples:
fix/typescript-errors,feat/add-cli-command,docs/update-readme
if [ "$need_new_branch" = "true" ]; then
git checkout main
git pull origin main
git checkout -b <branch-name>
fiStep 3: Analyze Changes
- Run
git statusto see all changes - Run
git diffto understand the nature of changes - Review recent commits with
git log --oneline -5for style consistency - Determine the appropriate commit type and message
Step 4: Size Check — Split If Too Large
Before proceeding, evaluate the PR scope:
# Count total lines changed
git diff --stat main...HEAD | tail -1Size thresholds:
| Lines Changed | Action |
| < 100 | Good — proceed |
| 100-300 | Acceptable — make sure it's one concern |
| 300-500 | Review — can this be split? |
| > 500 | Must split unless it's a single-concern refactor with net deletion |
How to split large work into phases:
- Phase 0: Preparation — Add config, create types, set up infrastructure
- Phase 1: Core change — The actual feature or fix
- Phase 2: Cleanup — Remove old code, hardcode values, delete fallbacks
Each phase is a separate PR. Each PR is independently reviewable and revertable.
When to split:
- PR touches 3+ crates → split by crate
- PR has "and" in the description → split by concern
- PR mixes feature + refactor → separate PRs
When NOT to split:
- Refactoring that deletes more than it adds (even if 500+ lines)
- Rename/move operations that touch many files mechanically
Step 5: Run Pre-Commit Checks
CRITICAL: All checks MUST pass before committing.
cargo fmt
cargo clippy -- -D warnings
cargo check --all-targets
cargo testIf checks fail:
- Auto-fix formatting with
cargo fmt - For clippy: fix the issue, never
#[allow(...)] - For compilation: review and fix
- For test failures: debug and fix
- Re-run checks until all pass
Step 6: Priority Check
Before creating the PR, verify this work is the right thing to do:
Priority order:
- Bugs — Broken behavior on the critical path
- Simplification — Delete dead code, remove unused abstractions
- Tech debt — Warnings, TODOs, inconsistencies
- Missing tests — Untested entry points
- Incomplete features — Stubs on the critical path
- New features — Only if critical path requires it
Ask: "Is there a higher-priority item I should be doing instead?"
If working on a P2 while P0s exist → stop, switch to P0.
The critical path for this project:
Transcript ingest → Event ledger → Derive views → Pack generation → Bridge injectionWork that unblocks this path takes absolute priority.
Step 7: Stage, Commit, and Push
git add -A
git commit -m "<type>: <description>"
git push -u origin <branch-name> # -u for new branchesStep 8: Create Pull Request
gh pr create --title "<type>(<scope>): <description>" --body "$(cat <<'EOF'
## Summary
- <bullet 1>
- <bullet 2>
## Test plan
- [ ] <verification step>
Closes #<issue-number>
EOF
)" --assignee @me
gh pr view --json url -q .urlCommit Message Rules
Format:
<type>[optional scope]: <description>Valid Types:
feat: New feature (triggers minor release)fix: Bug fix (triggers patch release)docs: Documentation changesstyle: Code style changesrefactor: Code refactoringtest: Test additions/changeschore: Build/auxiliary tool changesci: CI configuration changesperf: Performance improvementsbuild: Build system changesrevert: Revert previous commit
Requirements:
- Type must be lowercase
- Description must start with lowercase
- No period at the end
- Keep under 100 characters
- Use imperative mood (add, not added)
Examples:
feat: add user authentication systemfix: resolve database connection timeoutdocs(api): update endpoint documentation
Operation 2: Merge PR
Workflow
Step 1: Check PR Status and CI Checks
gh pr view --json number,title,state
gh pr checksCheck Status:
pass: Completed successfullyfail: Must be fixed before mergepending: Still running, need to waitskipping: Skipped (acceptable)
Retry Logic:
- Wait 30 seconds between retries
- Retry up to 3 times (90 seconds max)
- Only proceed when all non-skipped checks pass
Step 2: Fetch Latest and Show Summary
git fetch origin
git diff origin/main...HEAD --stat
gh pr view --json title -q '.title'Step 3: Merge the PR
Merge preconditions (pr.merge-policy): merge only after a final current-head
LGTM with P0=0, P1=0, and all required checks green. If these are not met, stop and
route the PR through the review-fix loop — never merge unconditionally.
Strategy: Squash and merge
gh pr merge --squash
sleep 3
gh pr view --json state,mergedAtPass --delete-branch only when the PR is being merged — per
fleet.merged-artifact-cleanup, a merged PR's branch and lane worktree may be
reclaimed (squash commit on main, GitHub keeps refs/pull/N/head); anything
unmerged — open or closed-unmerged branches, worktrees with uncommitted work,
another session's active branch or worktree, and sources — stays untouched (see
.claude/CLAUDE.md).
Why squash merge:
- Keeps main branch history clean and linear
- Combines all commits into single commit
Step 4: Clear Delivery Labels from the Delivered Issue
Closes #N closes the issue but does not touch its labels: after the
merge, the delivered issue still carries fleet:ready and stays pickable
(GH-665). Immediately after a squash merge succeeds, clear the fleet queue
labels from every issue the PR delivers — a closing keyword
(Closes/Fixes/Resolves #N) is what marks delivery. Issue: #N is the
partial-delivery / non-closing reference (REVIEW.md U2/U3) and must never
clear labels on its own:
# Issues delivered by this PR: closing-keyword references in the PR body
# ('Closes #N', 'Fixes #N', 'Resolves #N' with inflections). 'Issue: #N',
# 'tracked in #N', 'see #N' are mentions, not delivery — never match them.
# The second grep extracts only the number after '#': the first match's
# leading boundary group is part of the -o output and may itself be a digit
# ('v2Closes #20' matches '2Closes #20'), so extracting every digit run
# would turn that digit into a second label target.
for issue in $(gh pr view --json body -q .body \
| grep -ioE '(^|[^A-Za-z])(close[sd]?|fix(e[sd])?|resolve[sd]?)[[:space:]]+#[0-9]+' \
| grep -oE '#[0-9]+' | tr -d '#' | sort -u); do
for label in fleet:ready fleet:claimed; do
if gh issue view "$issue" --json labels -q '.labels[].name' \
| grep -qx "$label"; then
gh issue edit "$issue" --remove-label "$label"
fi
done
doneOnly a squash-merged PR counts as delivery. If the merge was blocked or the PR
closed unmerged, skip this step. Do not invent a fleet:delivered label —
removing fleet:ready at the merge end plus the machine check in
scripts/fleet/ready-queue-lint.sh at the pick end are the whole mechanism.
Step 5: Switch to Main and Pull Latest
git checkout main
git pull origin main
git log --oneline -1Error Handling
No PR Found:
Error: No PR found for current branchCI Checks Failing:
CI Checks Failed
The following checks are failing:
- <check-name>: fail - <url>
Action required: Fix failing checks before merging
Retrying in 30 seconds... (Attempt N/3)Merge Conflicts:
Merge failed: conflicts detected
Please resolve conflicts manually:
1. git fetch origin
2. git merge origin/main
3. Resolve conflicts
4. Push changes
5. Try merge againOutput Formats
Create PR Output:
PR Creation Workflow
Current Status:
Branch: <branch-name>
Status: <new/existing>
Actions Completed:
1. [Branch created/Using existing branch]
2. Pre-commit checks: PASSED
3. Changes staged: <file count> files
4. Committed: <commit message>
5. Pushed to remote
6. PR created
Pull Request: <PR URL>Merge Output:
PR Merge Workflow
PR Information:
Number: #<number>
Title: <title>
CI Checks: All passed
Changes Summary:
Files changed: <count>
Insertions: +<count>
Deletions: -<count>
Actions Completed:
1. Merge preconditions verified (final current-head LGTM, P0=0, P1=0, required checks green)
2. CI checks validated
3. PR squash merged
4. fleet:ready / fleet:claimed cleared from delivered issue(s)
5. Switched to main
6. Pulled latest changes
Latest commit: <hash> <message>Operation 3: List PRs
List all open pull requests in the current repository.
Workflow
gh pr list --state openDisplay the list of open PRs with their numbers, titles, and branch names.
Operation 4: Comment
Summarize conversation discussion and post as PR comment for follow-up.
Arguments
comment [pr-id]- Post conversation summary to specific PR
Workflow
Step 1: Detect PR Number
If PR ID not provided, detect from conversation context or current branch.
Step 2: Analyze Conversation
Review recent conversation to identify:
- Key discussion points and decisions
- Technical findings or analysis results
- Action items or follow-up tasks
- Recommendations or suggestions
- Open questions requiring input
Step 3: Structure Comment
Organize based on content type (technical memo, follow-up tasks, etc.):
## [Topic from Discussion]
[Summary of key points]
### Action Items
- [ ] Task 1
- [ ] Task 2
### Technical Notes
[If applicable]Step 4: Post Comment
gh pr comment "$PR_NUMBER" --body "$COMMENT_CONTENT"Best Practices
- Always check branch status first - Don't assume the current state
- Run pre-commit checks - Never skip quality checks
- Never merge with failing checks - Code quality is non-negotiable
- Use squash merge - Keeps main history clean
- Clear fleet delivery labels after merge -
Closes #Ncloses the issue but not its labels; a delivered issue without the label clear stays pickable forever. Only closing keywords (Closes/Fixes/Resolves#N) count —Issue: #Nalone never clears labels - Confirm merge completion - Verify PR state is MERGED
- Keep user informed - Clear status at each step
Related Skills
- pr-check - CI monitoring and auto-fixing
- pr-review - Code review and feedback
Prerequisites
- GitHub CLI (
gh) installed and authenticated - Not on main branch (for create/merge)
- All dependencies installed
- Proper repository permissions
Your goal is to make the PR lifecycle smooth, consistent, and compliant with project standards.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

