prepare-pr
Script-first PR preparation with structured findings resolution, deterministic push safety, and explicit gate execution.
Skill by LongIV999
Chalk Labs
Need help deploying prepare-pr?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/longiv999-prepare-pr-3b9a92
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
prepare-pr- Description
- Script-first PR preparation with structured findings resolution, deterministic push safety, and explicit gate execution.
- License
- MIT
- Instructions
- 119 lines in SKILL.md · view on GitHub
Files (2)
- SKILL.md
- openai.yaml · agents/
SKILL.md (first lines)
# Prepare PR ## Overview Prepare the PR head branch for merge after `/review-pr`. ## Inputs - Ask for PR number or URL. - If missing, use `.local/pr-meta.env` if present in the PR worktree. ## Safety - Never push to `main`. - Only push to PR head with explicit `--force-with-lease` against known head SHA. - Do not run `git clean -fdx`. - Wrappers are cwd-agnostic; run from repo root or PR worktree. ## Execution Contract 1. Run setup: ```sh scripts/pr-prepare init <PR> ``` 2. Resolve findings from structured review: - `.local/review.json` is mandatory. - Resolve all `BLOCKER` and `IMPORTANT` items. 3. Commit scoped changes with concise subjects (no PR number/thanks; those belong on the final merge/squash commit). 4. Run gates via wrapper. 5. Push via wrapper (includes pre-push remote verification, one automatic lease-retry path, and post-push API propagation retry). Optional one-shot path: ```sh scripts/pr-prepare run <PR> ``` ## Steps 1. Setup and artifacts ```sh scripts/pr-prepare init <PR> ls -la .local/review.md .local/review.json .local/pr-meta.env .local/prep-context.env jq . .local/review.json >/dev/null ``` 2. Resolve required findings List required items: ```sh jq -r '.findings[] | select(.severity=="BLOCKER" or .severity=="IMPORTANT") | "- [\(.severity)] \(.id): \(.title) => \(.fix)"' .local/review.json ``` Fix all required findings. Keep scope tight. 3. Update changelog/docs (changelog is mandatory in this workflow) ```sh jq -r '.changelog' .local/review.json jq -r '.docs' .local/review.json ``` 4. Commit scoped changes Use concise, action-oriented subject lines without PR numbers/thanks. The final merge/squash commit is the only place we include PR numbers and contributor thanks. Use explicit file list: ```sh scripts/committer "fix: <summary>" <file1> <file2> ... ``` 5. Run gates ```sh scripts/pr-prepare gates <PR> ``` 6. Push safely to PR head ```sh scripts/pr-prepare push <PR> ``` This push step includes: - robust fork remote resolution from owner/name, - pre-push remote SHA verification, - one automatic rebase + gate rerun + retry if lease push fails, - post-push PR-head propagation retry, - idempotent behavior when local prep HEAD is already on the PR head, - post-push SHA verification and `.local/prep.env` generation. 7. Verify handoff artifacts ```sh ls -la .local/prep.md .local/prep.env ``` 8. Output - Summarize resolved findings and gate results. - Print exactly: `PR is ready for /merge-pr`. ## Guardrails - Do not run `gh pr merge` in this skill. - Do not delete worktree.
From LongIV999/Openclawd, MIT.
More from LongIV999/Openclawd
- 0.409score
mintlify
mintlify
Build and maintain documentation sites with Mintlify.
SkillDFreshness: DClaude Code +9 - 0.406score
merge-pr
LongIV999
Script-first deterministic squash merge with strict required-check gating, head-SHA pinning, and reliable attribution/commenting.
SkillDFreshness: DClaude Code +9 - 0.406score
merge-pr
LongIV999
Merge a GitHub PR via squash after /prepare-pr.
SkillDFreshness: DClaude Code +9
Signals
- Stars
- 0
- Forks
- 1
- Open issues
- 0
- Last commit (this folder)
- Feb 14, 2026 (8 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/LongIV999/Openclawd
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.430score
prepare-pr
FatBy
Script-first PR preparation with structured findings resolution, deterministic push safety, and explicit gate execution.
SkillDFreshness: D★ 2Claude Code +9 - 0.244score
prepare-pr
lalomorales22
Script-first PR preparation with structured findings resolution, deterministic push safety, and explicit gate execution.
SkillDFreshness: DClaude Code +9 - 0.244score
prepare-pr
dvallier-ai
Script-first PR preparation with structured findings resolution, deterministic push safety, and explicit gate execution.
SkillDFreshness: DClaude Code +9 - 0.244score
prepare-pr
OPDhaker
Script-first PR preparation with structured findings resolution, deterministic push safety, and explicit gate execution.
SkillDFreshness: DClaude Code +9 - 0.244score
prepare-pr
Rachasumanth
Script-first PR preparation with structured findings resolution, deterministic push safety, and explicit gate execution.
SkillDFreshness: DClaude Code +9 - 0.244score
prepare-pr
RobbyMo81
Script-first PR preparation with structured findings resolution, deterministic push safety, and explicit gate execution.
SkillDFreshness: DClaude Code +9 - 0.244score
prepare-pr
loveoplay2023-hue
Script-first PR preparation with structured findings resolution, deterministic push safety, and explicit gate execution.
SkillDFreshness: DClaude Code +9
More from LongIV999
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get prepare-pr running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
prepare-pr skill. Agent Mart. https://agentmart.dev/skills/longiv999-prepare-pr-3b9a92 (last updated 2026-10-24)