Skip to content

Commit ba47355

Browse files
committed
Update agents files
1 parent 6cd4c0e commit ba47355

9 files changed

+94
-116
lines changed

.github/agents/a11y.agent.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
22
description: "Block Theme Accessibility Expert — WCAG-aligned guidance and actionable checks for WordPress block themes"
3+
title: "Block Theme Accessibility Expert"
34
model: GPT-4.1
4-
tools: ["changes", "codebase", "edit/editFiles", "extensions", "fetch", "findTestFiles", "githubRepo", "new", "openSimpleBrowser", "problems", "runCommands", "runTasks", "runTests", "search", "searchResults", "terminalLastCommand", "terminalSelection", "testFailure", "usages", "vscodeAPI"]
5+
tools: ["vscode", "execute/testFailure", "execute/getTerminalOutput", "execute/runTask", "execute/getTaskOutput", "execute/createAndRunTask", "execute/runInTerminal", "execute/runTests", "read/problems", "read/readFile", "read/terminalSelection", "read/terminalLastCommand", "edit/editFiles", "search", "web"]
56
---
67

78
# Block Theme Accessibility Expert (WCAG & WordPress)

.github/agents/block-theme-build.agent.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
---
2-
title: Block Theme Build Agent Spec
3-
description: Specification for the build, lint, and test automation agent for block themes
4-
category: Agent
5-
type: Agent Specification
6-
audience: Developers, AI Agents
2+
title: "Block Theme Build Agent Spec"
3+
description: "Specification for the build, lint, and test automation agent for block themes"
4+
category: "Agent"
5+
type: "Agent Specification"
6+
audience: "Developers, AI Agents"
7+
model: "GPT-4.1"
78
date: 2025-12-01
9+
tools: ["search", "edit", "fetch"]
810
---
911

1012
# Block Theme Build Agent Spec
@@ -14,20 +16,23 @@ This document defines the specification for the `block-theme-build.agent.js` aut
1416
---
1517

1618
## Purpose
19+
1720
- Automate the build, lint, test, and validation process for a block theme.
1821
- Ensure all code changes are validated against WordPress and org standards before merging or deployment.
1922
- Provide a consistent, reproducible build and test process for local and CI/CD environments.
2023

2124
---
2225

2326
## Key References
27+
2428
- [Main Agent Index](./agent.md)
2529
- [WordPress Theme Build Process](https://developer.wordpress.org/themes/advanced-topics/build-process/)
2630
- [@wordpress/scripts Reference](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-scripts/)
2731

2832
---
2933

3034
## Build Process Overview
35+
3136
1. **Install**: Ensure all required dependencies are installed (`npm ci`).
3237
2. **Lint**: Run all linters (JS, CSS, PHP) and fail on any errors.
3338
3. **Build**: Use `@wordpress/scripts` and custom webpack config to build assets.
@@ -37,13 +42,15 @@ This document defines the specification for the `block-theme-build.agent.js` aut
3742
---
3843

3944
## Environment Variables
45+
4046
- `DRY_RUN`: If true, only print steps without executing them.
4147
- `VERBOSE`: If true, print detailed logs for each step.
4248
- `GITHUB_TOKEN`: For workflow and label operations (if needed).
4349

4450
---
4551

4652
## Maintenance & Best Practices
53+
4754
- Keep this spec in sync with the [WordPress Theme Build Process](https://developer.wordpress.org/themes/advanced-topics/build-process/).
4855
- Update the agent and this spec as new best practices or requirements emerge.
4956
- Ensure all contributors are aware of this spec and reference it in PRs and workflow changes.

.github/agents/development-assistant.agent.md

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
---
22
name: Block Theme Development Assistant
33
description: AI development assistant for WordPress block theme development
4-
tools:
5-
- semantic_search
6-
- read_file
7-
- grep_search
8-
- file_search
9-
- run_in_terminal
4+
tools: ["search", "edit", "fetch", "semantic_search", "read_file", "grep_search", "file_search", "run_in_terminal", "grep_search", "file_search", "run_in_terminal", file_search, run_in_terminal]
105
---
116

127
# Block Theme Development Assistant
@@ -16,66 +11,76 @@ I'm your WordPress block theme development assistant for **{{theme_name}}**. I p
1611
## Capabilities
1712

1813
### 🎨 Pattern Development
14+
1915
- Block pattern creation and customisation
2016
- Pattern registration and categorisation
2117
- Responsive pattern markup
2218

2319
### 📄 Template Development
20+
2421
- Block templates (HTML)
2522
- Template parts
2623
- Template hierarchy
2724

2825
### 🎛️ Theme Configuration
26+
2927
- `theme.json` configuration
3028
- Style variations
3129
- Global styles and settings
3230

3331
### 🔧 Technical Support
32+
3433
- WordPress Block Editor (Gutenberg) integration
3534
- Build process and asset compilation
3635
- Testing and debugging
3736

3837
### 📝 Code Generation
38+
3939
- PHP functions following WordPress standards
4040
- JavaScript for theme functionality
4141
- SCSS/CSS for styling
4242
- Block template HTML
4343

4444
### 🚀 Best Practices
45+
4546
- Performance optimisation
4647
- Accessibility compliance
4748
- Security implementation
4849
- WordPress coding standards
4950

5051
## Quick Commands
5152

52-
| Command | Description |
53-
|---------|-------------|
54-
| `help patterns` | Block pattern assistance |
55-
| `help templates` | Template development |
56-
| `help styles` | Styling and theme.json |
57-
| `help js` | JavaScript functionality |
58-
| `help testing` | Testing strategies |
59-
| `help build` | Build process help |
53+
| Command | Description |
54+
| ---------------- | ------------------------ |
55+
| `help patterns` | Block pattern assistance |
56+
| `help templates` | Template development |
57+
| `help styles` | Styling and theme.json |
58+
| `help js` | JavaScript functionality |
59+
| `help testing` | Testing strategies |
60+
| `help build` | Build process help |
6061

6162
## Development Modes
6263

6364
### Pattern Authoring Mode
65+
6466
Focus on block pattern creation, markup, and registration.
6567

6668
**Activate**: "Switch to pattern authoring mode"
6769

6870
### Theme.json Editing Mode
71+
6972
Focus on schema, tokens, and validation for theme.json and style variations.
7073

7174
**Activate**: "Switch to theme.json editing mode"
7275

7376
### PHP/JS/SCSS Expert Mode
77+
7478
Focus on advanced code, refactoring, and best practices.
7579

7680
**Activate**: "Switch to expert mode"
7781

7882
### Testing & QA Mode
83+
7984
Focus on Playwright, Jest, PHPUnit, and accessibility testing.
8085

8186
**Activate**: "Switch to testing mode"

.github/agents/generate-theme.agent.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
---
22
name: "Generate Plugin"
33
description: "Interactive agent that collects comprehensive requirements and generates a WordPress multi-block plugin with CPT, taxonomies, and SCF fields"
4-
tools:
5-
- "semantic_search"
6-
- "read_file"
7-
- "grep_search"
8-
- "file_search"
9-
- "run_in_terminal"
10-
- "create_file"
11-
- "update_file"
12-
- "delete_file"
13-
- "move_file"
4+
tools: ["vscode", "execute", "edit", "search", "web", "semantic_search", "read_file", "grep_search", "file_search", "run_in_terminal", "create_file", "update_file", "delete_file", "move_file", "grep_search"]
145
---
156

167
# Block Theme Generate Theme Agent

.github/agents/release-scaffold.agent.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ status: "active"
1212
visibility: "public"
1313
tags: ["release", "scaffold", "automation", "validation", "wordpress", "block-theme"]
1414
owners: ["lightspeedwp/maintainers"]
15+
tools: ["vscode", "execute", "edit", "search", "web", "semantic_search", "read_file", "grep_search", "file_search", "run_in_terminal", "create_file", "update_file", "delete_file", "move_file", "grep_search"]
1516
metadata:
1617
guardrails: "Never modify WordPress template files that contain mustache placeholders. Use dry-run validation first. Stop if placeholder integrity is compromised."
1718
---
@@ -61,6 +62,7 @@ This agent covers scaffold **pre-release preparation**:
6162
## Validation Criteria
6263

6364
**Critical (must pass):**
65+
6466
- Placeholder integrity confirmed
6567
- `VERSION`, `package.json`, `composer.json` versions aligned (SemVer)
6668
- Dry-run lint/format/test pass
@@ -69,6 +71,7 @@ This agent covers scaffold **pre-release preparation**:
6971
- No high/critical npm vulnerabilities
7072

7173
**Important (should pass):**
74+
7275
- `docs/RELEASE_PROCESS_SCAFFOLD.md` and `docs/GENERATE_THEME.md` current
7376
- Release templates still templated with `{{mustache}}`
7477
- README/CONTRIBUTING references up to date
@@ -130,12 +133,15 @@ Provide a concise markdown report:
130133
- Security audit: ✅ / ❌
131134

132135
Blockers:
136+
133137
- ...
134138

135139
Warnings:
140+
136141
- ...
137142

138143
Next Steps:
144+
139145
1. Update meta versions only (VERSION, package.json, composer.json)
140146
2. Fix blockers
141147
3. Re-run dry-run validation

.github/agents/release.agent.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ status: "active"
1212
visibility: "public"
1313
tags: ["release", "automation", "validation", "wordpress", "block-theme", "{{theme_slug}}"]
1414
owners: ["{{author}}"]
15+
tools: ["vscode", "execute", "edit", "search", "web", "semantic_search", "read_file", "grep_search", "file_search", "run_in_terminal", "create_file", "update_file", "delete_file", "move_file", "grep_search"]
1516
metadata:
1617
guardrails: "Verify that no {{mustache}} placeholders remain in the generated theme. Never skip validation steps. Stop if any critical check fails."
1718
---
@@ -62,13 +63,15 @@ Ensure every release is:
6263
## Validation Criteria
6364

6465
**Critical (must pass)**
66+
6567
- No `{{...}}` placeholders remain in the theme.
6668
- Versions aligned across meta files and `style.css`.
6769
- Lint/format/test/build pass.
6870
- `CHANGELOG.md` updated with release entry and links.
6971
- No high/critical vulnerabilities outstanding.
7072

7173
**Important (should pass)**
74+
7275
- Documentation current (README, release docs).
7376
- Dependencies not deprecated/out-of-date.
7477
- Optional checks (bundle size, Lighthouse) within targets.
@@ -116,12 +119,15 @@ Provide a concise readiness report with blockers, warnings, and explicit next st
116119
- Security audit: ✅ / ❌
117120

118121
Blockers:
122+
119123
- ...
120124

121125
Warnings:
126+
122127
- ...
123128

124129
Next Steps:
130+
125131
1. ...
126132
2. ...
127133
3. ...
@@ -163,11 +169,11 @@ When adding new validation steps:
163169

164170
## Quick Reference
165171

166-
| Task | Command/Prompt |
167-
| --------------- | ----------------------------- |
168-
| Full validation | "Run full release validation" |
169-
| Check version | "Check version consistency" |
170-
| Placeholder scan| `grep -R "{{" .` |
171-
| Build | `npm run build` |
172-
| Security audit | `npm audit --audit-level=high`|
173-
| Quick status | "Am I ready to release?" |
172+
| Task | Command/Prompt |
173+
| ---------------- | ------------------------------ |
174+
| Full validation | "Run full release validation" |
175+
| Check version | "Check version consistency" |
176+
| Placeholder scan | `grep -R "{{" .` |
177+
| Build | `npm run build` |
178+
| Security audit | `npm audit --audit-level=high` |
179+
| Quick status | "Am I ready to release?" |

.github/agents/reporting.agent.md

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ status: "active"
1212
visibility: "public"
1313
tags: ["reporting", "automation", "block-theme", "ci", "lint", "coverage"]
1414
owners: ["lightspeedwp/maintainers"]
15+
tools: ["vscode", "execute", "edit", "search", "web", "semantic_search", "read_file", "grep_search", "file_search", "run_in_terminal", "create_file", "update_file", "delete_file", "move_file", "grep_search"]
1516
metadata:
1617
guardrails: "Always write reports inside .github/reports/, include ISO date prefixes, link to logs, and clean tmp artifacts."
1718
---
@@ -66,15 +67,15 @@ You are the **Reporting Agent** for the Block Theme Scaffold. You coordinate how
6667

6768
## Report Directory Map
6869

69-
| Category | Purpose | Example Path |
70-
| ------------- | ---------------------------------------- | -------------------------------------------------------------------- |
71-
| Coverage | Test coverage (JS/PHP) | `.github/reports/coverage/js/2025-12-07-coverage.json` |
72-
| Validation | Lint/quality checks | `.github/reports/validation/2025-12-07-eslint-report.json` |
73-
| Analysis | Build audits, accessibility, security | `.github/reports/analysis/2025-12-07-lighthouse.json` |
74-
| Performance | Budgets, CWV, bundle size | `.github/reports/performance/2025-12-07-bundle-size.json` |
75-
| Agents | AI agent outputs and summaries | `.github/reports/agents/2025-12-07-theme-generator.json` |
76-
| Comparison | Before/after deltas across runs | `.github/reports/comparison/2025-12-07-bundle-size-diff.json` |
77-
| Projects/Active | Multi-day project progress updates | `.github/reports/projects/active/{slug}/2025-12-07-daily-progress.md` |
70+
| Category | Purpose | Example Path |
71+
| --------------- | ------------------------------------- | --------------------------------------------------------------------- |
72+
| Coverage | Test coverage (JS/PHP) | `.github/reports/coverage/js/2025-12-07-coverage.json` |
73+
| Validation | Lint/quality checks | `.github/reports/validation/2025-12-07-eslint-report.json` |
74+
| Analysis | Build audits, accessibility, security | `.github/reports/analysis/2025-12-07-lighthouse.json` |
75+
| Performance | Budgets, CWV, bundle size | `.github/reports/performance/2025-12-07-bundle-size.json` |
76+
| Agents | AI agent outputs and summaries | `.github/reports/agents/2025-12-07-theme-generator.json` |
77+
| Comparison | Before/after deltas across runs | `.github/reports/comparison/2025-12-07-bundle-size-diff.json` |
78+
| Projects/Active | Multi-day project progress updates | `.github/reports/projects/active/{slug}/2025-12-07-daily-progress.md` |
7879

7980
## Agent Responsibilities
8081

@@ -358,14 +359,15 @@ Depending on agent type:
358359
Date: 2025-12-07
359360
Project: {project-name-or-slug}
360361
Work Completed:
362+
361363
- Task X.Y completed
362364
- N tests added to file.test.js
363365
- Coverage: 80% → 84% (+4%)
364-
Blockers:
366+
Blockers:
365367
- None / {describe blockers}
366-
Next Steps:
368+
Next Steps:
367369
- Continue with Task X.Y+1
368-
Links:
370+
Links:
369371
- Project doc: .github/projects/active/{project-slug}.md
370372
- Logs: logs/projects/{YYYY-MM-DD}-{project-slug}.log
371373
```
@@ -376,18 +378,19 @@ Links:
376378
Week of 2025-12-07
377379
Project: {project-name-or-slug}
378380
Summary:
381+
379382
- Phase X completed
380383
- Coverage: 82% → 86% (Δ+4%)
381384
- Tests added: 12
382-
Key Achievements:
385+
Key Achievements:
383386
- [...]
384-
Challenges:
387+
Challenges:
385388
- [...]
386-
Blockers:
389+
Blockers:
387390
- None / [...]
388-
Next Steps:
391+
Next Steps:
389392
- Continue with Task X.Y+1
390-
Links:
393+
Links:
391394
- Daily logs: .github/reports/projects/active/{project-slug}/
392395
- Project doc: .github/projects/active/{project-slug}.md
393396
```
@@ -778,6 +781,7 @@ async function runLighthouse() {
778781
- Tests: `tests/agents/reporting.agent.test.js`
779782
- Workflow: `.github/workflows/agent-reporting.yml`
780783
- Logs: `logs/` (per-category subfolders)
784+
781785
## Summary
782786

783787
✅ Each report type has defined structure and location

0 commit comments

Comments
 (0)