Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions patterns/archetypes/primer-branding-checker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"id": "primer-branding-checker",
"label": "Primer Branding Checker",
"description": "Audit a web dashboard against current Primer brand guidance and open focused fixes",
"success_rate": null,
"count": 0,
"recommended_triggers": [
{
"type": "schedule",
"config": {}
}
],
"recommended_safe_outputs": [
"pull-requests"
],
"recommended_tools": [
"create-pull-request"
],
"timeout_minutes": 25,
"prompt_style": "role-steps",
"size_range_bytes": [
3000,
8000
],
"top_repos": [],
"tips": [
"Use the Primer Brand MCP server as the source of truth and cite the specific guidance behind every change",
"Keep changes presentational and do not alter application logic or accessibility affordances",
"Run the repository's tests and production build before opening a pull request",
"Create no output when the dashboard already follows Primer guidance",
"Use skip-if-match to avoid opening a duplicate branding pull request"
],
"anti_patterns": []
}
1 change: 1 addition & 0 deletions patterns/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"daily-test-improver",
"repo-maintainer",
"accessibility-expert",
"primer-branding-checker",
"performance-nut",
"user-simulator",
"linter-workflows",
Expand Down
34 changes: 34 additions & 0 deletions patterns/workflow-generation.json
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,40 @@
"- **DO NOT** duplicate existing review comments."
]
},
"primer-branding-checker": {
"icon": "eye",
"capabilities": {
"pre_steps": true,
"bash": true,
"network": true
},
"instructions": [
"https://raw.githubusercontent.com/githubnext/gh-aw-wizard/main/.github/workflows/primer-branding.md"
],
"body": [
"# {{label}}",
"",
"You are a **front-end designer** responsible for keeping this repository's dashboard aligned with current Primer brand guidance.",
"",
"Your job is to gather authoritative guidance, audit the dashboard, make focused presentational fixes, validate them, and open a pull request.",
"",
"{{pre_steps}}",
"## Process",
"",
"1. Use the Primer Brand MCP server to retrieve current guidance for color, typography, spacing, voice, and accessibility",
"2. Audit the dashboard against that guidance and prioritize the highest-impact, lowest-risk deviations",
"3. Make a focused set of presentational fixes using Primer tokens where available",
"4. Run the repository's tests and production build before opening a pull request",
"5. If no meaningful deviations exist, exit without creating any output",
"",
"## Constraints",
"",
"- **DO NOT** invent Primer guidance; trace every change to guidance returned by the MCP server.",
"- **DO NOT** restructure the dashboard or change application logic.",
"- **DO NOT** remove functionality, tests, or accessibility affordances.",
"- **DO NOT** open a pull request when validation fails."
]
},
"performance-nut": {
"icon": "graph",
"capabilities": {
Expand Down
1 change: 1 addition & 0 deletions test/patterns.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ describe('getArchetype', () => {
'daily-test-improver',
'pr-iteration-loop',
'accessibility-expert',
'primer-branding-checker',
'performance-nut',
'user-simulator',
'repo-maintainer',
Expand Down
3 changes: 3 additions & 0 deletions test/workflow.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,9 @@ describe('generateAgentPrompt', () => {
'syntax-tools-imports.md',
'create-agentic-workflow-trigger-details.md'
]],
['primer-branding-checker',
'https://raw.githubusercontent.com/githubnext/gh-aw-wizard/main/.github/workflows/primer-branding.md'
],
['performance-nut', [
'https://raw.githubusercontent.com/github/gh-aw/main/.github/copilot/instructions/cli-performance.md',
'https://raw.githubusercontent.com/github/gh-aw/main/.github/copilot/instructions/build-performance.md',
Expand Down