Skip to content

Commit 5aa06ae

Browse files
committed
Update instruction files
1 parent 44db3b7 commit 5aa06ae

23 files changed

+1093
-434
lines changed

.github/agents/task-planner.agent.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ tools: [
3636
"context7"
3737
]
3838
metadata:
39-
guardrails: |
40-
- Never skip research validation.
41-
- Never generate implementation without a plan.
42-
- Always provide detailed, actionable steps.
43-
- Plans MUST be based on validated research or documented repo conventions.
44-
- Stop immediately if research is missing and escalate to task-researcher agent.
39+
guardrails: |
40+
- Never skip research validation.
41+
- Never generate implementation without a plan.
42+
- Always provide detailed, actionable steps.
43+
- Plans MUST be based on validated research or documented repo conventions.
44+
- Stop immediately if research is missing and escalate to task-researcher agent.
4545
---
4646

4747
# Block Theme Planning Agent

.github/agents/task-researcher.agent.md

Lines changed: 155 additions & 300 deletions
Large diffs are not rendered by default.

.github/instructions/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@ See the file list below for topic coverage. Open the relevant `*.instructions.md
6060

6161
## References
6262

63-
- `.github/custom-instructions.md`
64-
- `.github/instructions/instructions.instructions.md`
65-
- `.github/agents/agent.md`
63+
- [../custom-instructions.md](../custom-instructions.md)
64+
- [./instructions.instructions.md](./instructions.instructions.md)
65+
- [../agents/agent.md](../agents/agent.md)

.github/instructions/_index.instructions.md

Lines changed: 386 additions & 0 deletions
Large diffs are not rendered by default.

.github/instructions/a11y.instructions.md

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
---
2-
file_type: "instructions"
31
description: "Comprehensive accessibility standards for WordPress block theme development"
4-
applyTo: "**"
5-
version: "v3.0"
6-
last_updated: "2025-12-07"
2+
applyTo: "\*\*"
3+
version: "3.0"
4+
lastUpdated: "2025-12-07"
75
owners: ["LightSpeedWP Team"]
86
tags: ["accessibility", "a11y", "wcag", "wordpress", "block-theme"]
97
license: "GPL-3.0"
8+
109
---
1110

1211
# Accessibility Standards for WordPress Block Themes
@@ -47,27 +46,10 @@ Apply these instructions whenever adding or modifying markup, patterns, template
4746
- Automated: run axe-core or Lighthouse; ensure no critical violations.
4847
- Manual: keyboard navigation (Tab/Shift+Tab/Esc) and visible focus.
4948
- Screen readers: spot-check with VoiceOver/NVDA for form labels and landmarks.
49+
- Quick checklist: semantic HTML and headings, visible focus, sufficient contrast, labelled form controls, ARIA only when necessary.
5050

5151
## References
5252

5353
- [WordPress Accessibility Handbook](https://make.wordpress.org/accessibility/handbook/)
54-
- `.github/instructions/html-markup.instructions.md`
55-
- `.github/instructions/block-theme-development.instructions.md`
56-
57-
## Quick Reference
58-
59-
- ✅ Semantic HTML, proper heading hierarchy
60-
- ✅ Keyboard accessible (Tab/Shift+Tab, Esc)
61-
- ✅ ARIA only when needed
62-
- ✅ 4.5:1 text contrast, 3:1 graphics
63-
- ✅ Meaningful alt text
64-
- ✅ Form labels and error messages
65-
- ✅ Test with axe-core, Playwright, screen readers
66-
67-
## Testing
68-
69-
- **axe-core**: No critical violations
70-
- **Keyboard**: Tab order, focus visible
71-
- **Screen readers**: NVDA/VoiceOver test
72-
73-
See [WordPress Accessibility Handbook](https://make.wordpress.org/accessibility/handbook/) for complete guidelines.
54+
- [./html-markup.instructions.md](./html-markup.instructions.md)
55+
- [./block-theme-development.instructions.md](./block-theme-development.instructions.md)

.github/instructions/agent-spec.instructions.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ Use this instruction file when drafting or reviewing any `.agent.md` in `.github
9393

9494
## References
9595

96-
- `.github/agents/template.agent.md`
97-
- `.github/agents/agent.md`
98-
- `.github/instructions/instructions.instructions.md`
99-
- `.github/instructions/copilot-ai-agent.instructions.md`
100-
- `.github/workflows/block-theme-build-and-e2e.yml`
96+
- [../agents/template.agent.md](../agents/template.agent.md)
97+
- [../agents/agent.md](../agents/agent.md)
98+
- [./instructions.instructions.md](./instructions.instructions.md)
99+
- [./copilot-ai-agent.instructions.md](./copilot-ai-agent.instructions.md)
100+
- [../workflows/block-theme-build-and-e2e.yml](../workflows/block-theme-build-and-e2e.yml)

.github/instructions/block-theme-development.instructions.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -363,9 +363,9 @@ Add `.editorconfig` for consistent indentation and formatting.
363363

364364
## References
365365

366-
- `.github/instructions/theme-json.instructions.md`
367-
- `.github/instructions/wpcs-php.instructions.md`
368-
- `.github/instructions/javascript.instructions.md`
369-
- `.github/instructions/wpcs-css.instructions.md`
370-
- `.github/instructions/html-markup.instructions.md`
371-
- `.github/custom-instructions.md`
366+
- [./theme-json.instructions.md](./theme-json.instructions.md)
367+
- [./wpcs-php.instructions.md](./wpcs-php.instructions.md)
368+
- [./javascript.instructions.md](./javascript.instructions.md)
369+
- [./wpcs-css.instructions.md](./wpcs-css.instructions.md)
370+
- [./html-markup.instructions.md](./html-markup.instructions.md)
371+
- [../custom-instructions.md](../custom-instructions.md)

.github/instructions/copilot-ai-agent.instructions.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ See: [generate-theme.agent.md](../agents/generate-theme.agent.md) for complete s
447447
1. Auto-fix if possible: `npm run lint -- --fix`
448448
2. Check config: `.eslintrc.js`, `.stylelintrc`
449449
3. Check affected files
450-
4. Review [FOLDER-STRUCTURE.md](../../docs/FOLDER-STRUCTURE.md) for conventions
450+
4. Review [FOLDER_STRUCTURE.md](../../docs/FOLDER_STRUCTURE.md) for conventions
451451
5. Check logs: `logs/lint/` for details
452452

453453
### Documentation Outdated
@@ -458,7 +458,7 @@ See: [generate-theme.agent.md](../agents/generate-theme.agent.md) for complete s
458458

459459
1. Identify which docs are stale
460460
2. Update [ARCHITECTURE.md](../../docs/ARCHITECTURE.md) if structure changed
461-
3. Update [FOLDER-STRUCTURE.md](../../docs/FOLDER-STRUCTURE.md) if conventions changed
461+
3. Update [FOLDER_STRUCTURE.md](../../docs/FOLDER_STRUCTURE.md) if conventions changed
462462
4. Update [LOGGING.md](../../docs/LOGGING.md) if logging changed
463463
5. Update API-REFERENCE.md for API changes
464464
6. Add note to CHANGELOG.md
@@ -547,7 +547,7 @@ npm run lighthouse # Lighthouse score
547547

548548
### For Specific Questions
549549

550-
**About code style?**[FOLDER-STRUCTURE.md](../../docs/FOLDER-STRUCTURE.md)
550+
**About code style?**[FOLDER_STRUCTURE.md](../../docs/FOLDER_STRUCTURE.md)
551551

552552
**About structure?**[ARCHITECTURE.md](../../docs/ARCHITECTURE.md)
553553

@@ -616,7 +616,10 @@ npm run lint -- --verbose
616616

617617
## References
618618

619-
- `.github/custom-instructions.md`
620-
- `.github/instructions/reporting.instructions.md`
621-
- `.github/instructions/naming-conventions.instructions.md`
622-
- `docs/GOVERNANCE.md`, `docs/ARCHITECTURE.md`, `docs/FOLDER-STRUCTURE.md`, `docs/LOGGING.md`
619+
- [../custom-instructions.md](../custom-instructions.md)
620+
- [./reporting.instructions.md](./reporting.instructions.md)
621+
- [./naming-conventions.instructions.md](./naming-conventions.instructions.md)
622+
- [../../docs/GOVERNANCE.md](../../docs/GOVERNANCE.md)
623+
- [../../docs/ARCHITECTURE.md](../../docs/ARCHITECTURE.md)
624+
- [../../docs/FOLDER_STRUCTURE.md](../../docs/FOLDER_STRUCTURE.md)
625+
- [../../docs/LOGGING.md](../../docs/LOGGING.md)

.github/instructions/generate-theme.instructions.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -850,15 +850,6 @@ grep -r "{{" --exclude-dir=node_modules --exclude-dir=vendor .
850850
- [ ] Font families have proper fallbacks
851851
- [ ] No syntax errors in theme.json
852852

853-
## References
854-
855-
- [GENERATE-THEME.md](../../docs/GENERATE-THEME.md) - Complete generator system documentation
856-
- [generate-theme.prompt.md](../prompts/generate-theme.prompt.md) - User-facing generation prompt
857-
- [generate-theme.agent.md](../agents/generate-theme.agent.md) - Agent specification
858-
- [theme-json.instructions.md](./theme-json.instructions.md) - theme.json configuration guide
859-
- [theme-config.schema.json](../schemas/theme-config.schema.json) - JSON Schema for validation
860-
- [theme-config.template.json](../../theme-config.template.json) - Template config file
861-
862853
## Summary
863854

864855
As an AI agent guiding theme generation:
@@ -871,3 +862,12 @@ As an AI agent guiding theme generation:
871862
6. **Guide post-generation** setup and next steps
872863

873864
**Remember:** Mustache variables are simple string replacements. Your job is to collect valid values and pass them to the generator script. The script handles the actual replacement process.
865+
866+
## References
867+
868+
- [GENERATE_THEME.md](../../docs/GENERATE_THEME.md) - Complete generator system documentation
869+
- [generate-theme.prompt.md](../prompts/generate-theme.prompt.md) - User-facing generation prompt
870+
- [generate-theme.agent.md](../agents/generate-theme.agent.md) - Agent specification
871+
- [theme-json.instructions.md](./theme-json.instructions.md) - theme.json configuration guide
872+
- [theme-config.schema.json](../schemas/theme-config.schema.json) - JSON Schema for validation
873+
- [theme-config.template.json](../../theme-config.template.json) - Template config file

.github/instructions/html-markup.instructions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
file_type: "instructions"
33
description: "HTML markup and template standards for WordPress block themes"
44
applyTo: "**/*.{html,htm,php}"
5-
version: "v2.0"
6-
last_updated: "2025-12-07"
5+
version: "2.0"
6+
lastUpdated: "2025-12-07"
77
owners: ["LightSpeedWP Team"]
88
tags: ["html", "template", "wordpress", "block-theme", "semantic"]
99
license: "GPL-3.0"
@@ -58,5 +58,5 @@ Use these instructions whenever editing templates, template parts, or pattern ma
5858
## References
5959

6060
- [WordPress HTML Coding Standards](https://developer.wordpress.org/coding-standards/wordpress-coding-standards/html/)
61-
- `.github/instructions/a11y.instructions.md`
62-
- `.github/instructions/block-theme-development.instructions.md`
61+
- [./a11y.instructions.md](./a11y.instructions.md)
62+
- [./block-theme-development.instructions.md](./block-theme-development.instructions.md)

0 commit comments

Comments
 (0)