Skip to content

[AGENT] Create PR template enforcement agent #718

@ashleyshaw

Description

@ashleyshaw

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

  1. Detect template type from branch name and PR body
  2. Validate structure against template specification
  3. Check completeness of required fields (not just presence)
  4. Auto-fix simple issues:
    • Missing changelog section → add with placeholder
    • Misaligned sections → reorder
    • Missing checklist → add standard checklist
  5. Smart guidance for complex issues:
    • If risk assessment incomplete → suggest what to include
    • If test steps vague → provide examples
  6. 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

  • Agent spec document created
  • Behaviors clearly defined
  • Integration with workflow is clear
  • Examples of agent output provided

Part of: Template Enforcement & Governance project backlog

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions