diblaze/solo/pr-ready
Claude Code and agent skill by diblaze/solo
- community
Checking that the SKILL.md file is still in the repository.
Pre-PR gate — slop pass, reviewer pass, fix every finding, fold fixes into existing commits, fold the change's delta specs into openspec/specs/ and archive it, then open the PR (merged by rebase, never squash). Use whenever a branch is about to become a PR, or when a PR was opened without this pass. Does not plan or implement features.
Install
npx vskill@latest install diblaze/solo/pr-readySKILL.md
The same SKILL.md was published earlier as diblaze/solo/pr-ready.
PR ready
Branch state at load:
!git status --short --branch || true
Base = $ARGUMENTS or main. A fatal: line above means the session is not in a work tree: move into the branch's worktree first. Must be on a non-main branch with commits ahead of base.
0. Small-fix lane
Take this lane when all of these hold: one commit ahead of base, no openspec/changes/<slug>/ on the branch, and git diff --shortstat <base>...HEAD under about 30 changed lines. Then:
- Slop: read the diff yourself and fix what you find. Do not invoke
/solo:slopor/solo:review, and do not dispatch a reviewer agent. - Check: run only the tests that cover the changed files, plus lint. Do not run suites CI already runs (full e2e, pixel snapshots) unless CI is the thing being fixed.
- Fold:
git commit --amend --no-edit. Skip section 4 and say "no change folder" in the PR body. - Open and merge as in sections 5 and 6. CI is the gate: wait for its checks to pass before the merge.
Any condition fails → leave the lane and run sections 1 to 6.
1. Slop pass (own code only)
Invoke /solo:slop — scope = git diff --name-only <base>...HEAD. Placeholder branches, bare test.skip and .only are blockers, not notes.
2. Review pass
Invoke /solo:review <base>. Fix all CRIT/WARN/CUT. No ponytail: marker survives: implement the upgrade or delete the marker because the ceiling does not apply.
3. Fold, don't stack — atomic, logically grouped
No "cleanup"/"address review" commits. Amend the commit that introduced the code: git commit --fixup <sha> then GIT_SEQUENCE_EDITOR=true git rebase -i --autosquash <base> (interactive editor is stubbed, so this squashes non-interactively). Then verify: git log --oneline <base>..HEAD shows no fixup! lines. Every commit must be one logical change (see /solo:execute step 10). A commit that bundles several slices (a whole multi-part feature, unrelated changes), or a history split by layer instead of by slice, is regrouped before the PR opens: git reset --soft <base> and re-commit one feature slice per commit in dependency order, then check the final tree equals the old one (git rev-parse HEAD^{tree}) and that each commit passes lint + the check on its own: ${CLAUDE_SKILL_DIR}/../plan/scripts/verify-commits.sh <base> -- bash -c '<install deps> && <check>' (one argv after --, see /solo:execute step 10). A branch whose single commit really is one logical change → git commit --amend --no-edit for fixes.
4. Fold the specs
Branch carries an openspec/changes/<slug>/ → fold it here, inside the PR, so openspec/specs/ and the code land together. One command, with a clean tree: ${CLAUDE_SKILL_DIR}/scripts/fold.sh <slug>. Never run its steps by hand and never merge deltas by hand. It:
- refuses while
tasks.mdhas an unticked box orStatus:is notdone; - runs strict validation — a
MODIFIED … omits scenario(s)error means main specs moved under you: copy the named scenarios into the delta, never drop them, then re-run; - runs
openspec archive(--skip-specswhen.openspec.yamlsaysskip_specs: true), which applies ADDED/MODIFIED/REMOVED/RENAMED toopenspec/specs/<capability>/spec.mdand moves the folder toopenspec/changes/archive/YYYY-MM-DD-<slug>/; - strictly validates the living specs;
- commits the result alone as
docs(spec): fold <slug>withCloses owner/repo#nfrom theIssue:line. This is the one commit that is not a feature slice; nothing else goes in it.
Non-zero exit → fix what it names and re-run; do not work around it. Afterwards check its printed stat: only the capabilities the proposal listed changed under openspec/specs/. No change folder on the branch (one-liner, hotfix) → skip this section and say so in the PR body.
5. Open
More than about five slices → stacked PRs instead of one: a branch per group of slices, each based on the previous one (pass the previous branch as <base>), so each PR stays reviewable on its own. Write the body to a file outside the repo (the tree must stay clean). The body lists the requirements added, modified and removed per capability (or says there was no change folder). When the plan names an issue (/solo:plan #n, or the Issue: line of the archived proposal.md), the body also carries Closes owner/repo#n so merge closes it; no issue, no Closes. Run the body prose through /solo:writer in embedded mode before writing the file. Then run ${CLAUDE_SKILL_DIR}/scripts/open-pr.sh <base> --title "<type(scope): subject>" --body-file <file> --dry-run and show its output: the pushes and gh writes it would make. AskUserQuestion: push and open / stop. Run the same command without --dry-run only on yes. It derives the type:feat|bug|chore label from the commit subjects, creates the label when the repo lacks it, pushes, opens the PR assigned to @me, or force-with-lease pushes and updates the branch's already-open PR, and refuses a body missing the Closes owner/repo#n of an archived proposal.md. Never run its steps by hand. Print the URL it returns.
6. Merge (when the user says merge)
Rebase-merge keeps the slices on the base branch. Never squash-merge: it flattens the atomic history into one commit. Run ${CLAUDE_SKILL_DIR}/scripts/merge-pr.sh <n> --dry-run and show its output, in order: squash merging switched off when the repo still offers it, the --rebase merge, every open PR stacked on the branch retargeted to its base, and the branch delete. AskUserQuestion: merge / stop. Run the same command without --dry-run only on yes. It refuses a PR that is not open, a draft, a PR that conflicts, is blocked, is behind its base or whose merge state GitHub has not computed yet, and a repo without rebase merging, all before any write. It merges with --repo, so gh never touches local branches; children are retargeted only after the merge succeeded and before the branch is deleted. A failed branch delete or local fast-forward after the merge is only a warning. Never run its steps by hand. For each retargeted child it prints the git rebase --onto and lease push still to do. Only when merge-pr.sh exited 0: run the rebase, then AskUserQuestion before each lease push, and push only on yes.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/pr-ready/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/diblaze/solo/pr-ready)