copilot-agent-patterns
Copilot Agent Patterns Skill
๐ด AI FIRST Quality Principle
Apply the AI FIRST principle: never accept first-pass quality. Minimum 2 iterations. Read all output, improve every section. No shortcuts.
Purpose
Provides proven patterns for designing, implementing, and orchestrating GitHub Copilot custom agents.
Agent Design Patterns
Specialist Agent Pattern
- Focused on single domain expertise
- Minimal tool set (
view,edit,create,shell,search_code) - Clear scope boundaries (MUST/MUST NOT)
- Skills integration references
Orchestrator Agent Pattern
- Broad tool access (
tools: ["*"]) - Creates and assigns GitHub issues
- Delegates to specialist agents
- Tracks progress and quality
YAML Frontmatter Standards
name: agent-name # Lowercase, hyphen-separated
description: Brief expertise # Max 200 characters
tools: ["tool1", "tool2"] # Minimal set for non-meta agents
Collaboration Patterns
- Sequential: Task agent โ creates issues โ assigns specialists
- Parallel: Multiple specialists work on different scopes simultaneously
- Stacked PRs: Foundation PR โ Implementation PR โ Polish PR (using base_ref)
Agent Boundaries
- Each agent respects its expertise area
- Delegates outside its scope
- References skills library constantly
- Follows ISMS policies automatically
Copilot Coding Agent Tools
assign_copilot_to_issueโ with base_ref and custom_instructionscreate_pull_request_with_copilotโ with base_ref and custom_agentget_copilot_job_statusโ for tracking progress
Best Practices
- Focus on expertise area
- Complete work autonomously when possible
- Test changes thoroughly
- Document decisions
- Only ask when genuinely ambiguous
Related Policies
๐ Integration with agentic workflows & analysis artifacts
This skill is consumed by the 11 agentic news workflows in .github/workflows/news-*.md. The authoritative contract lives in .github/prompts/README.md; this skill supplies domain expertise on top of that contract.
- Analysis product โ
ai-driven-analysis-guide.md+ every template inanalysis/templates/. - Required before any article: 9 core artifacts (14 for Tier-C) in
analysis/daily/$ARTICLE_DATE/$SUBFOLDER/;05-analysis-gate.mdis the single blocking gate. - gh-aw v0.69.3 docs: abridged ยท complete ยท blog series.
More from hack23/riksdagsmonitor
osint-methodologies
OSINT collection, source evaluation, data integration, verification techniques for Swedish political intelligence
40economic-policy-analysis
Fiscal policy, budget analysis, economic forecasting, monetary policy, trade policy for political journalists
31electoral-analysis
Election forecasting models, campaign analysis, coalition prediction, voter behavior analysis for Swedish elections
25vulnerability-management
Vulnerability scanning, assessment, prioritization, and remediation processes following NIST and CIS Controls
25nist-csf-mapping
NIST Cybersecurity Framework 2.0 mapping for static HTML/CSS websites
24testing-strategy
Comprehensive testing strategy covering unit, integration, E2E, security, accessibility, and performance testing
23