Loading...
Loading...
Prepare code for a pull request by orchestrating sync, format, lint, test, review, and doc updates. Use when user says 'create a PR', 'prepare pull request', 'get ready for PR', 'validate my changes', 'prepare for review', 'pre-merge checks', or 'is this ready to merge'. Do NOT use for only running tests, only reviewing (use review-diff), only syncing with main (use merge-main), or actually opening the PR on GitHub — this skill stops at "ready."
npx skill4agent add thommann/skills create-prCLAUDE.md.github/workflows/skills/workflow/merge-main/SKILL.mdskills/workflow/review-diff/SKILL.mdmerge-maingit status
git diff
git add <specific-files>
git commit -m "type(scope): concise message"CLAUDE.md.github/type(scope): subjectfix | feat | test | doc | chore | refactormerge-mainCLAUDE.md# pick the one your project uses; these are illustrative
make pr-ready
pnpm lint:fix
ruff format . && ruff check --fix .
cargo fmt && cargo clippy --fix --allow-dirty# pick the project's pattern
make test
pnpm test
pytest tests/
cargo testreview-diffdocs/README.mdupdate-docdocument-decisionCLAUDE.mdCLAUDE.md## PR Readiness: {branch}
- [x] Committed ({N} commits on this branch)
- [x] Synced with origin/main
- [x] Format + lint clean
- [x] Tests pass ({N} passed)
- [x] Reviewed — {critical resolved, important resolved, suggestions noted}
- [x] Docs updated: {list}
- [ ] PR not yet opened — run `gh pr create` when ready
Summary of changes for the PR body:
{2–4 bullet points}gh pr create# On a feature branch (not main)
git branch --show-current
# Expected: not "main" / "master"
# Branch is up to date with origin/main
git fetch origin main && git log --oneline HEAD..origin/main | wc -l
# Expected: 0
# Working tree clean
git status --short
# Expected: empty output
# Project-specific final gate (pull from CLAUDE.md Quick Reference)| Mistake | Correction |
|---|---|
| Amending feature commits with review-fix commits | Keep review fixes as separate commits. The PR reviewer sees the progression; amending erases it. |
| Running tests against a stale branch | Sync with main first (step 2). Tests passing on an old base prove nothing. |
| Opening the PR before fixing Important findings | "Important" from |
| Updating docs in a separate later PR | Doc drift compounds. Keep code and docs in the same PR — easier to review and less likely to be forgotten. |