Issue Type: Task
Priority: Medium
Phase: 3 (Automation & Enforcement)
Depends on: #717
Effort: 2h
Summary
Create .github/agents/pr-template-enforcement.md agent specification for intelligent template validation.
Details
- File:
.github/agents/pr-template-enforcement.md
- More intelligent than workflow regex validation
- Can understand semantic completeness (not just section presence)
- Can auto-fix simple template issues (reorder sections, etc.)
- Provides helpful guidance for complex fixes
- Coordinated with validation workflow
Agent Capabilities
- Detect template type from branch name and PR body
- Validate structure against template specification
- Check completeness of required fields (not just presence)
- Auto-fix simple issues:
- Missing changelog section → add with placeholder
- Misaligned sections → reorder
- Missing checklist → add standard checklist
- Smart guidance for complex issues:
- If risk assessment incomplete → suggest what to include
- If test steps vague → provide examples
- Escalate issues that require human judgment
Agent Rules
- Don't be overly strict (allow reasonable variations)
- Prioritize user experience (helpful comments, not blockers)
- Respect branch type (fix/ PRs need different validation than docs/)
- Work with workflow, not against it
Acceptance Criteria
Part of: Template Enforcement & Governance project backlog
Issue Type: Task
Priority: Medium
Phase: 3 (Automation & Enforcement)
Depends on: #717
Effort: 2h
Summary
Create
.github/agents/pr-template-enforcement.mdagent specification for intelligent template validation.Details
.github/agents/pr-template-enforcement.mdAgent Capabilities
Agent Rules
Acceptance Criteria
Part of: Template Enforcement & Governance project backlog