.agents/skills/pr-description/SKILL.md
Follow the repo's PR template. Always create PRs as drafts.
Before writing, understand the full diff:
git log main..HEAD --oneline
git diff main...HEAD
Must follow conventional commits (CI-enforced):
type(scope): lowercase description
feat, fix, chore, docs, refactor, test, perf, cigroq, cli, form, schema, deps, etc.)Lead with why. Only elaborate on the non-obvious. The reviewer can read the diff — they need the context the diff can't give them. Default to terse; expand only where a reader would genuinely wonder.
Priorities for the Description section:
Length test: if a sentence would tell the reviewer something they could deduce in 10 seconds from the diff, cut it. A good PR description is often 3–5 sentences total. Bulleted lists of "alternatives considered" should be one line per alternative, not a paragraph.
If you catch yourself writing "this PR renames X to Y" or "adds a new function Z", delete it. If you're explaining why X needed to be renamed or why Z exists (and why the obvious alternative wasn't chosen), keep it — but stay brief.
Use all four sections:
Focus on why and why not, tersely:
This section is used by the docs team to write release notes.
If not needed, write one of:
N/A — internal-only changesN/A – Part of feature X — partial implementation not yet enabledN/A – Internal only — tooling/chore workIf needed, write for end users and the docs team:
Always create as draft. Do not mark as ready for review until CI passes.
gh pr create --draft --title "type(scope): description" --body "$(cat <<'EOF'
### Description
[what and why]
### What to review
[guidance for reviewers]
### Testing
[tests added or manual testing explanation]
### Notes for release
[release notes or N/A]
EOF
)"
After CI is green, mark ready for review:
gh pr ready