feat: add structured PR description template to engineer prompt#467
feat: add structured PR description template to engineer prompt#467
Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
OverviewThis PR adds a structured PR description template to the Files Changed Analysis
Pattern: This is a prompt-engineering change — modifying the text instructions that guide AI agent behavior, not executable logic. Architecture & Impact AssessmentWhat This PR Accomplishes
Key Technical Changes
Affected System Componentsflowchart LR
A[User Task] --> B[Engineer Agent]
B --> C[Code Changes]
C --> D[PR Creation]
D --> E{New PR Template}
E --> F[Structured Title]
E --> G[Problem/Task Section]
E --> H[Changes Section]
E --> I[Testing Section]
F & G & H & I --> J[Reviewer Experience]
Scope Discovery & Context ExpansionDirect Impact: The Related Files (not modified but contextually relevant):
Downstream Effects:
Tags
Metadata
Powered by Visor from Probelabs Last updated: 2026-03-03T11:45:46.144Z | Triggered by: pr_opened | Commit: bc3a0e7 💡 TIP: You can chat with Visor using |
✅ Security Check PassedNo security issues found – changes LGTM. ✅ Security Check PassedNo security issues found – changes LGTM. \n\n✅ Architecture Check PassedNo architecture issues found – changes LGTM. ✅ Performance Check PassedNo performance issues found – changes LGTM. Powered by Visor from Probelabs Last updated: 2026-03-03T11:43:29.530Z | Triggered by: pr_opened | Commit: bc3a0e7 💡 TIP: You can chat with Visor using |
Problem / Task
The engineer prompt's GitHub Integration section had only a generic one-liner about
gh pr createwith no guidance on what the PR title or body should contain. This led to PRs with inconsistent, vague, or empty descriptions that made it hard for reviewers to understand what was changed and why.Changes
npm/src/agent/shared/prompts.js: Added a dedicated "Pull Request Creation" section to the engineer prompt with:fix:,feat:,refactor:, etc.)Fixes #123) and external ticket systems like Jira/Linear (Resolves PROJ-456)Testing