Skip to content

Epic: Integrate GitHub keywords and PR etiquette into agents/skillsย #865

@rjmurillo-bot

Description

@rjmurillo-bot

Summary

Integrate GitHub keywords (Closes, Fixes, Resolves) and PR etiquette best practices into the agent/skill/command structure to enforce standards and reduce reviewer friction.

Background

Research completed in PR #864 documents:

  • GitHub's 9 issue linking keywords (Closes, Fixes, Resolves)
  • Conventional Commit format standards
  • PR template compliance requirements
  • Review and CI etiquette best practices

Reference: .agents/analysis/github-keywords-integration-plan.md

Integration Phases

Phase 1: Skill Enhancement (High Value, Low Effort)

Effort: 2-3 hours
Impact: Immediate validation feedback on PR creation

  • Create Test-PRDescription.ps1 in github skill
    • Validate issue linking keywords present
    • Check PR template section completion
    • Validate Conventional Commit title format
  • Update New-PR.ps1 to call validator (warning mode)
  • Update github SKILL.md with keyword documentation

Phase 2: Agent Prompt Updates (Medium Value, Low Effort)

Effort: 1-2 hours
Impact: Agents apply etiquette patterns automatically

  • Update implementer.md with commit message standards
    • Add Conventional Commit format section
    • Add issue linking keywords in commit bodies
  • Update pr-comment-responder.md with response etiquette
    • Response format: Action + location + commit reference
    • Thread resolution protocol
    • Force push communication
  • Update qa.md with PR description validation checklist

Phase 3: Command Enhancements (Low Value, Low Effort)

Effort: 30 minutes
Impact: Better user guidance

  • Update push-pr.md with keyword reminder
  • Create validate-pr-description.md command

Phase 4: Dedicated Skill (Optional, High Effort)

Effort: 4-6 hours
Impact: Centralized validation, reusable

  • Extract validation to pr-etiquette skill
  • Add comprehensive test suite
  • Add etiquette report generator

Success Metrics

Metric Target Measurement
PRs with issue keywords 90% GitHub API search
Template compliance 95% CI validation pass rate
Conventional Commit titles 100% Pre-commit enforcement
Reviewer time saved 20% reduction Time from open to merge
PR iteration cycles 1-2 fewer Average comment rounds

Recommended Approach

Phase 1 + Phase 2 (combined: 3-5 hours)

Rationale:

  • Highest value from validation + agent prompts
  • Builds on existing github skill infrastructure
  • Incremental approach allows iteration
  • Can add Phase 3/4 later if needed

Test Strategy

Pre-Creation Validation

  • Run before gh pr create
  • Check: Conventional Commit title, issue keywords, template sections
  • Action: Warn if missing, block on critical errors

Post-Creation Validation

  • Run in CI after PR created
  • Check: Same as pre-creation + security review alignment
  • Action: Add comment with validation report

Agent Self-Check

  • QA agent validates before marking complete
  • Implementer includes keywords in commits
  • PR comment responder follows etiquette

Related Documentation

  • Analysis: .agents/analysis/github-keywords-pr-etiquette.md
  • Integration Plan: .agents/analysis/github-keywords-integration-plan.md
  • Memory: .serena/memories/github-keywords-pr-etiquette.md
  • PR Template: .github/PULL_REQUEST_TEMPLATE.md

Acceptance Criteria

  • Phase 1 complete: Validation script created and integrated
  • Phase 2 complete: All 3 agent prompts updated
  • Success metrics baseline established
  • 5 PRs tested with new validation
  • Documentation updated
  • Validation integrated into CI pipeline

Dependencies

  • None (builds on existing infrastructure)

Risks

  • False positives in validation (mitigate: tune thresholds based on feedback)
  • Agent prompt changes may require iteration (mitigate: test on 5 PRs first)

๐Ÿ“‹ Type: Epic
๐ŸŽฏ Priority: Medium
โฑ๏ธ Estimated Effort: 3-5 hours (Phase 1+2), 8-12 hours (all phases)
๐Ÿ”— Related PR: #864

Metadata

Metadata

Assignees

Labels

agent-devopsCI/CD pipeline agentagent-implementerCode implementation agentagent-memoryContext persistence agentagent-qaTesting and verification agentagent-roadmapProduct vision agentagent-securitySecurity assessment agentarea-infrastructureBuild, CI/CD, configurationarea-promptsAgent prompts and templatesarea-skillsSkills documentation and patternsarea-workflowsGitHub Actions workflowsautomationAutomated workflows and processesdocumentationImprovements or additions to documentationenhancementNew feature or requestepicEpic-level work itempriority:P1Important: Affects user experience significantly, high business value

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions