pull-request
Skill50 starsChanged 16 days agoMITView on GitHub
Implementation finalization with PR. Use when implementation is complete and you need to commit, push, or open a pull request. Includes automated reviews and technical debt tracking. Do not use during implementation (use devsquad.implement), for standalone intermediate commits (use git-commit), or for branch creation (use git-branch).
- Deletes or force-pushes
- Commits and pushes
We split this skill into the rules it gives an agent
29 rules. 0 are common, 13 are distinctive, and 16 are very specific to this project.
0
Common
Most of the 45 edited versions we read keep these.
13
Distinctive
This author's own choices. Worth a look.
16
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Use read/changes to list source control changes.
- Very specific: line 19
If there are uncommitted changes, use the git-commit skill to commit.
- Distinctive: line 23
Before pushing or creating a PR, verify the current branch is not the integration branch:
- Distinctive: line 44
If the user chooses [B]:
- Distinctive: line 51
If the user chooses [P], proceed with the push.
- Very specific: line 57
If the automated review was already executed by devsquad.implement (step 9 of the orchestration flow), do not re-execute review.
- Distinctive: line 69
If the user chooses [R] and the automated review was already executed, present the existing result instead of re-executing.
- Distinctive: line 93
FAILED: Do not proceed with PR. Present critical findings and offer to fix or escalate for spec/plan review.
- Very specific: line 97
When devsquad.review is not invoked automatically, assess if a security review is needed by evaluating the security triggers defined in …
- Very specific: line 99
If a trigger is detected, execute devsquad.security as a sub-agent in code mode.
- Very specific: line 101
After the result, present the verdict (PASSED / PASSED_WITH_FINDINGS / FAILED) following the same format above.
- Distinctive: line 103
If no trigger is detected, proceed with PR.
- Distinctive: line 115
If during implementation you find problematic code outside the scope of the current task, record it as a work item.
- Very specific: line 138
If confirmed, create the work item following the work-item-creation skill (Tech Debt section).
- Distinctive: line 142
Before creating the PR, determine the target branch:
- Very specific: line 148
Use Integration Branch from the config.
- Very specific: line 154
Read .memory/board-config.md to determine the repo platform.
- Distinctive: line 166
If an open PR already exists, inform and ask if they want to update the existing one.
- Very specific: line 224
Before calling github/create_pull_request or ado/repo_pull_request_write, verify:
- Very specific: line 228
If any resolved item is missing its closing keyword (or only appears under Refs), regenerate the body before creating the PR.
- Distinctive: line 231
Use the platform-appropriate tool:
- Distinctive: line 241
After creating the PR, ask about reviewers:
- Very specific: line 253
If the user chooses [Y] or provides names, use github/update_pull_request with the reviewers field to assign.
- Distinctive: line 257
After PR creation, check the status of checks:
- Very specific: line 265
If there are failures, use github/get_job_logs (if available) to fetch logs from failed jobs and present a diagnosis.
- Very specific: line 280
If the project uses GitHub Copilot, offer automated review via github/request_copilot_review(owner, repo, pullNumber).
- Very specific: line 284
If the PR is behind the base branch, offer update via github/update_pull_request_branch(owner, repo, pullNumber).
- Distinctive: line 288
If CI passed and reviews were approved, offer merge with options: squash, rebase, or merge commit.
- Very specific: line 290
If confirmed, use github/merge_pull_request(owner, repo, pullNumber, merge_method: "<choice>").
“Common” is measured: kept by at least 6 in 10 of the 45 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
Pull Request — Implementation Finalization
Check Git State
Use read/changes to list source control changes. In addition:
git status
git diff --statCommit
If there are uncommitted changes, use the git-commit skill to commit.
Integration Branch Guard
Before pushing or creating a PR, verify the current branch is not the integration branch:
CURRENT_BRANCH=$(git branch --show-current)Resolve the integration branch in this order:
Integration Branchfrom.memory/git-config.md(if it exists)- Repository default branch via
git symbolic-ref refs/remotes/origin/HEAD - Fallback: match against
main,master, ordevelop
If the current branch matches the integration branch, stop and offer recovery:
You are on `[branch]`, which is the integration branch. A PR cannot be created from the integration branch to itself, and pushing directly bypasses code review.
[B] Create a feature branch from the current commit(s) and open a PR (recommended)
[P] Push directly to [branch] (not recommended, bypasses code review)If the user chooses [B]:
| Current state | Recovery action |
| Committed locally, not pushed | Create feature branch at HEAD, then reset integration branch to origin/[branch]: git branch <feature-branch>, git reset --hard origin/[branch], git checkout <feature-branch>. Confirm with the user before resetting. |
| Already pushed to integration branch | Create feature branch from the offending commit(s), push it, offer to revert the commit on the integration branch, then open PR from the feature branch. |
If the user chooses [P], proceed with the push. Log the override decision.
This guard applies to both the PR creation path and the Push Only path below.
Offer PR Creation
If the automated review was already executed by devsquad.implement (step 9 of the orchestration flow), do not re-execute review. Use the result already obtained.
Implementation completed and committed.
Would you like me to open a Pull Request?
[Y] Yes, open PR
[R] Review implementation before PR (recommended for medium/high impact)
[N] No, just pushIf the user chooses [R] and the automated review was already executed, present the existing result instead of re-executing.
Automated Reviews (sub-agents)
The type of review depends on the task's impact. Security review is delegated to devsquad.review when it is invoked — both never run separately.
High impact: Implementation Review (includes security)
Triggers (any of):
- Task classified as high impact
- Multiple user stories affected
- Changes to public API or schema
Execute devsquad.review as a sub-agent. Pass the feature, task, and modified files.
High impact task. Running independent review...After sub-agent result:
- PASSED: Proceed with PR.
- PASSED_WITH_FINDINGS: Present findings and ask if they want to fix now or proceed (findings are recorded in the review log).
- FAILED: Do not proceed with PR. Present critical findings and offer to fix or escalate for spec/plan review.
Medium/low impact: Direct Security Review
When devsquad.review is not invoked automatically, assess if a security review is needed by evaluating the security triggers defined in devsquad.security (Authentication/Authorization, Sensitive data, External input, Persistence, Integrations).
If a trigger is detected, execute devsquad.security as a sub-agent in code mode.
After the result, present the verdict (PASSED / PASSED_WITH_FINDINGS / FAILED) following the same format above.
If no trigger is detected, proceed with PR.
Summary: who runs what
| Impact | Review | Security |
| High | devsquad.review (auto) | Delegated by devsquad.review internally |
| Medium/Low + security trigger | No (available via [R]) | devsquad.security direct |
| Medium/Low without trigger | No (available via [R]) | No |
Record Technical Debt
If during implementation you find problematic code outside the scope of the current task, record it as a work item.
| Signal | Example |
| Existing TODO/FIXME/HACK comments | // TODO: refactor this |
| Significant duplication | Same logic in 3+ places |
| Excessive coupling | Change in one module requires changes in several others |
| Code without tests in critical area | Business logic without coverage |
| Outdated dependency with vulnerability | Package with known CVE |
Ask the user:
I identified technical debt outside the scope of this task:
[problem description]
Files: [list]
Suggested severity: [high/medium/low]
[C] Create tech debt work item on the board
[I] Ignore (do not record)If confirmed, create the work item following the work-item-creation skill (Tech Debt section).
Determine Target Branch
Before creating the PR, determine the target branch:
cat .memory/git-config.md 2>/dev/nullUse Integration Branch from the config. If it doesn't exist, use the repository's default branch.
Create Pull Request
Detect Platform
Read .memory/board-config.md to determine the repo platform. If it contains Platform: azure-devops or the git remote points to dev.azure.com or visualstudio.com, use ADO tools. Otherwise use GitHub tools.
Check for Existing PR
# GitHub
github/list_pull_requests(owner, repo, head: "<owner>:<branch>", state: "open")
# Azure DevOps
ado/repo_pull_request(action: "list", status: "active", sourceRefName: "refs/heads/<branch>")If an open PR already exists, inform and ask if they want to update the existing one.
Push the branch:
git push -u origin <branch-name>Create PR with:
- Title: Based on the main issue/task
- Body:
## Description [Summary of what was implemented] ## Related issue Closes #[number] ## Changes - [list of main changes] ## Checklist - [ ] Tests passing - [ ] Code follows project standards - [ ] Documentation updated (if needed)
Closing keyword rules (do not skip)
The PR body must include one of GitHub's recognized closing keywords on its own line for every work item the PR fully resolves. Only these keywords trigger automatic close on merge: close, closes, closed, fix, fixes, fixed, resolve, resolves, resolved. Refs #N and See #N are read-only and do not close anything.
| Situation | Use | Example |
| PR fully implements/resolves a tracked task, story, bug, or spike | Closes #N (one per resolved item, on its own line) | Closes #11 |
| PR contributes to a parent feature, epic, or related issue but does not close it | Refs #N | Refs #1 |
| PR partially addresses an issue and intentionally leaves follow-up | Refs #N plus a "Remaining work" note in the body | Refs #11 + Remaining: … |
Examples that work and examples that silently break:
# Works (issues #11 and #29 auto-close on merge; #1 stays open as parent)
Closes #11
Closes #29
Refs #1
# Silently broken (#11 and #29 stay open)
Refs #11 #29 #1Spike PRs are not exempt: if the spike's deliverable is complete, Closes #<spike> is required. Use Refs only when the spike is intentionally incomplete and the issue should remain open for follow-up.
Pre-flight check
Before calling github/create_pull_request or ado/repo_pull_request_write, verify:
- Identify every work item the PR resolves (typically: the task or story the implementation was started from, plus any sub-issues fully delivered in this branch).
- For each resolved item, confirm a
Closes #N,Fixes #N, orResolves #Nline exists on its own line in the body. - If any resolved item is missing its closing keyword (or only appears under
Refs), regenerate the body before creating the PR.
- Labels: Inherit labels from the issue (feature, priority, etc.)
Use the platform-appropriate tool:
# GitHub
github/create_pull_request(owner, repo, title, body, head: "<branch>", base: "<target>")
# Azure DevOps
ado/repo_pull_request_write(action: "create", title, description, sourceRefName: "refs/heads/<branch>", targetRefName: "refs/heads/<target>")After creating the PR, ask about reviewers:
Pull Request created: [link]
Would you like to assign reviewers?
[Y] Yes, suggest (search repo members)
[N] No, I'll request review manually
[name] Assign directly to: _If the user chooses [Y] or provides names, use github/update_pull_request with the reviewers field to assign.
Check CI (post-creation)
After PR creation, check the status of checks:
github/pull_request_read(owner, repo, pullNumber, method: "get_check_runs")Report summarized check status (passed / failed / pending).
If there are failures, use github/get_job_logs (if available) to fetch logs from failed jobs and present a diagnosis.
Report:
Pull Request created: [link]
Branch: [branch] -> [integration-branch]
Issue: Closes #[number]
Reviewers: [list or "none assigned"]
CI: [summarized status]Request Copilot Review (optional)
If the project uses GitHub Copilot, offer automated review via github/request_copilot_review(owner, repo, pullNumber).
Update PR Branch
If the PR is behind the base branch, offer update via github/update_pull_request_branch(owner, repo, pullNumber).
Merge PR
If CI passed and reviews were approved, offer merge with options: squash, rebase, or merge commit.
If confirmed, use github/merge_pull_request(owner, repo, pullNumber, merge_method: "<choice>").
Push Only (no PR)
The Integration Branch Guard (above) must pass before pushing. If the current branch is the integration branch, the guard offers recovery options before reaching this step.
git push -u origin <branch-name>Inform that the PR can be opened later by invoking the skill again.
Common Rationalizations
| Rationalization | Reality |
| "It works in staging, it will work in production" | Production has different data, traffic patterns, and edge cases. Monitor after deploy. |
| "We do not need feature flags for this" | Every non-trivial feature benefits from a kill switch. Even "simple" changes can break things. |
| "Monitoring is overhead" | Not having monitoring means discovering problems from user complaints instead of dashboards. |
| "The review is a formality" | Reviews that rubber-stamp changes miss bugs, security issues, and architectural drift. |
| "Rolling back is admitting failure" | Rolling back is responsible engineering. Shipping a broken feature to users is the failure. |
Other versions50 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 50
- samchon/typia★ 5.9ksame name
- epicenter-md/epicenter★ 4.8ksame name
- EpicenterHQ/epicenter★ 4.8ksame name
- werf/werf★ 4.7ksame name
- basicmachines-co/basic-memory★ 4.4ksame name
- PaulWoitaschek/Voice★ 3.2ksame name
- heyitsnoah/claudesidian★ 2.6ksame name
- samchon/nestia★ 2.2ksame name
- theopenco/llmgateway★ 1.7ksame name
- microsoft/hve-core★ 1.6ksame name
40 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.
Used alongsideProjects with it also use issue-campaign, development and 9 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
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
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
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
NVIDIASkilltesting
Run Python and Rust tests for physicsnemo-curator using uv + pytest with coverage reporting via pytest-cov, and cargo-nextest for Rust tests. Includes benchmark workflows with pytest-benchmark and criterion.
Also in 6 projects that use this
GoogleSkillprototype
Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.
Also in 5 projects that use this
In this repository26 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- .github/plugins/devsquad/hooks/templates/.github/copilot-instructions.mdCopilot instructions
- adr-workflowSkill
- board-configSkill
- complexity-analysisSkill
- debugging-recoverySkill
- deep-clarificationSkill
- diagram-designSkill
- documentation-styleSkill
- domain-glossarySkill
- engineering-practicesSkill
- git-branchSkill
- git-commitSkill
- harness-learningsSkill
- init-configSkill
- init-docsSkill
- init-scaffoldSkill
- lsp-setupSkill
- next-taskSkill
- quality-gateSkill
- reasoningSkill
- security-reviewSkill
- test-disciplineSkill
- triage-workflowSkill
- work-item-creationSkill
- work-item-workflowSkill
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.

