You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE] Autonomous PR skill should use .github/pull_request_template.md #147
The autonomous worktree PR creation skill (worktree_pr / pr_create) composes a freeform PR body and passes it via gh pr create --body, which bypasses the repo's .github/pull_request_template.md entirely.
Problem Statement
PRs created by the autonomous agent have a different format (e.g. ## Summary / ## Verification) than the structured template the project uses. This makes reviews inconsistent and misses checklist items like Type of Change, Changelog Entry, and the standard Checklist.
Observed in PR #146 (created by worktree_solve-and-pr for issue #143).
Proposed Solution
Update the PR creation skill(s) to:
Read .github/pull_request_template.md from the repo
Fill in each section using context already available to the agent (issue number, commit history, test results, changelog diff, file changes)
Pass the filled-in template as the --body argument to gh pr create
Alternatives Considered
Omitting --body so gh uses the template automatically — but then the agent can't pre-fill any content, leaving the PR body as raw placeholders.
Post-processing: create the PR with --body, then edit it — adds unnecessary API calls.
Impact
Ensures all autonomous PRs follow the same structure as manual PRs
Reviewers get consistent, complete information (type of change, changelog entry, checklist)
No breaking change; improves existing behavior
Acceptance Criteria
Autonomous PRs use the repo's PR template structure
All template sections are filled in from available context
Approach: Explicit "read-then-fill" instructions in PR skills
Both pr_create and worktree_pr currently say "use the structure of .github/pull_request_template.md" — this is too vague and the agent composes a freeform body instead (observed in PR #146). The fix is to replace that vague instruction with an explicit read-then-fill procedure.
Changes to pr_create Step 4 and worktree_pr Step 5
Replace the current vague "use the structure" instruction with:
Read the template: cat .github/pull_request_template.md
Use it as the literal skeleton — keep every heading, every checkbox line, every sub-heading. Strip only the HTML comments (<!-- ... -->).
Section-by-section mapping:
Description: Summarize what the PR does from the issue body and commit messages.
Type of Change: Check the single box matching the branch type / commit types. Check Breaking change modifier only if commits contain !.
Changes Made: List changed files with bullet sub-details (from git diff --stat and git log).
Changelog Entry: Paste the exact ## Unreleased diff from CHANGELOG.md. If no changelog update, write "No changelog needed" and explain.
Testing: Check Tests pass locally if tests were run. Check Manual testing performed only if actually done. Fill Manual Testing Details or write "N/A".
Checklist: Check only items that are genuinely true. Leave unchecked items unchecked — do not remove them.
Additional Notes: Add design links, context, or write "N/A".
Refs: Refs: #<issue_number>
Explicit prohibitions: Do not invent new sections. Do not rename headings. Do not omit sections. Do not remove unchecked boxes.
What does NOT change
The PR template itself (.github/pull_request_template.md)
The rest of the skill workflows (git operations, CHANGELOG check, PR creation commands, delegation sections)
No new files, no scripts, no config changes
Testing strategy
Documentation/instruction-only change — no testable code. TDD skipped per project rules. Verification: next autonomous PR should match the template structure exactly.
Activity
gerchowl commentedon Feb 21, 2026
Design
Approach: Explicit "read-then-fill" instructions in PR skills
Both
pr_createandworktree_prcurrently say "use the structure of.github/pull_request_template.md" — this is too vague and the agent composes a freeform body instead (observed in PR #146). The fix is to replace that vague instruction with an explicit read-then-fill procedure.Files to change
4 files (2 skills × 2 copies):
.cursor/skills/pr_create/SKILL.mdassets/workspace/.cursor/skills/pr_create/SKILL.md.cursor/skills/worktree_pr/SKILL.mdassets/workspace/.cursor/skills/worktree_pr/SKILL.mdChanges to
pr_createStep 4 andworktree_prStep 5Replace the current vague "use the structure" instruction with:
cat .github/pull_request_template.md<!-- ... -->).Breaking changemodifier only if commits contain!.git diff --statandgit log).## Unreleaseddiff from CHANGELOG.md. If no changelog update, write "No changelog needed" and explain.Tests pass locallyif tests were run. CheckManual testing performedonly if actually done. FillManual Testing Detailsor write "N/A".Refs: #<issue_number>What does NOT change
.github/pull_request_template.md)Testing strategy
Documentation/instruction-only change — no testable code. TDD skipped per project rules. Verification: next autonomous PR should match the template structure exactly.
gerchowl commentedon Feb 21, 2026
Implementation Plan
Issue: #147
Branch: feature/147-pr-skill-use-template
Tasks
.cursor/skills/pr_create/SKILL.md— verify:rg "Read the template" .cursor/skills/pr_create/SKILL.mdassets/workspace/.cursor/skills/pr_create/SKILL.md— verify:diff .cursor/skills/pr_create/SKILL.md assets/workspace/.cursor/skills/pr_create/SKILL.md(no diff).cursor/skills/worktree_pr/SKILL.md— verify:rg "Read the template" .cursor/skills/worktree_pr/SKILL.mdassets/workspace/.cursor/skills/worktree_pr/SKILL.md— verify:diff .cursor/skills/worktree_pr/SKILL.md assets/workspace/.cursor/skills/worktree_pr/SKILL.md(no diff)feat(skills): use PR template in pr_create and worktree_pr
gerchowl commentedon Feb 21, 2026
Autonomous Run Complete
feat(skills): use PR template in pr_create and worktree_pr (#147) (#148)
fix: resolve merge conflicts in sync_manifest and CHANGELOG
chore: release 0.3.0 (#270)