You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/agents/a11y.agent.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,9 @@ This document provides actionable, block-theme-specific accessibility guidance a
39
39
40
40
WordPress block themes should aim for full WCAG AA compliance in practice, even when the “Accessibility Ready” tag in the directory only reflects minimum thematic requirements.
41
41
42
-
---
42
+
## Wizard Integration
43
+
44
+
## This agent uses the pluggable wizard.js interface for configuration. Supports at least 'cli' and 'mock' modes for interactive and test/dev use. The agent's questions array is passed to runWizard(), and the mode can be set via the WIZARD_MODE environment variable.
Run linting, testing, and code quality checks for the block theme scaffold. Outputs are stored in `.github/reports/validation/`.
6
+
7
+
## Wizard Integration
8
+
9
+
This agent uses the pluggable wizard.js interface for configuration. Supports at least 'cli' and 'mock' modes for interactive and test/dev use. The agent's questions array is passed to runWizard(), and the mode can be set via the WIZARD_MODE environment variable.
@@ -14,15 +14,100 @@ I'm your interactive block theme generator. I'll guide you through a series of q
14
14
15
15
---
16
16
17
-
**Wizard Integration:**
18
-
This agent uses an interactive wizard (see scripts/lib/wizard.js) for advanced flows. The wizard now supports loading a plugin-config JSON file as an alternative to manual entry. Pass a config file path to pre-fill or skip questions.
17
+
## Mustache Variables Reference
18
+
19
+
The following mustache variables are available for use in the theme scaffold. These are populated by the wizard, config file, or automation:
This will run all validation and show the steps, but will not write or modify any files.
69
+
70
+
---
71
+
40
72
## Role
41
73
42
74
You are the **Scaffold Release Preparation Agent**. You prepare the **block theme scaffold repository** for release while safeguarding all `{{mustache}}` placeholders and ensuring the release templates remain ready for generated themes.
43
75
44
76
## Critical Rules
45
77
46
-
-**Never replace or remove `{{...}}` placeholders** in WordPress source files (`style.css`, `functions.php`, `theme.json`, `inc/`, `patterns/`, `templates/`, `parts/`).
47
-
- Keep these templated files intact for generated themes: `.github/agents/release.agent.md`, `.github/prompts/release.prompt.md`, `.github/instructions/release.instructions.md`, `docs/GENERATE_THEME.md`.
48
-
- Scaffold-only files (`release-scaffold.agent.md`, `release-scaffold.prompt.md`, `release-scaffold.instructions.md`, `docs/RELEASE_PROCESS_SCAFFOLD.md`) stay in this repository but **must be deleted by the generator** in new theme repositories.
49
-
- Prefer **dry-run** commands and validation scripts that do not write to template files.
50
-
- If placeholder integrity is broken, **stop and restore** before proceeding.
51
-
52
78
## Scope
53
79
54
80
This agent covers scaffold **pre-release preparation**:
@@ -109,6 +135,7 @@ This agent covers scaffold **pre-release preparation**:
109
135
-**Quality gates:**`npm run lint:dry-run`, `npm run format -- --check`, `npm run test:dry-run:all`
Copy file name to clipboardExpand all lines: .github/agents/release.agent.md
+48-13Lines changed: 48 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,10 +31,12 @@ This file is **templated** inside the scaffold. When you generate **{{theme_name
31
31
This agent is for **generated themes** created from the scaffold.
32
32
33
33
**If you are releasing the scaffold repository**, use:
34
+
34
35
-`.github/agents/release-scaffold.agent.md`
35
36
-`.github/workflows/release-scaffold.yml`
36
37
37
38
The release workflows (`.github/workflows/release.yml` and `agent-release.yml`) include verification steps that will fail if:
39
+
38
40
1. Scaffold-specific files are detected (`release-scaffold.agent.md`, `scripts/generate-theme.js`, etc.)
39
41
2. The workflow still contains unreplaced `{{theme_name}}` placeholders
40
42
@@ -63,19 +65,52 @@ Ensure every release is:
63
65
5.**Security:**`npm audit --audit-level=high` (and composer audit if applicable).
64
66
6.**Reporting:** concise readiness report with blockers, warnings, and next steps.
65
67
66
-
## Workflow
67
-
68
-
1.**Confirm target version** from `VERSION` or user input; enforce SemVer.
69
-
2.**Placeholder check:** ensure no `{{...}}` placeholders remain in the generated theme (fail fast).
70
-
3.**Version consistency:** compare `VERSION`, `package.json`, `composer.json`, and `style.css`.
71
-
4.**Quality gates (generated theme):**
72
-
-`npm run lint`
73
-
-`npm run format -- --check`
74
-
-`npm run test` (or suite available for the theme)
75
-
5.**Documentation review:**`CHANGELOG.md` has `[{{version}}] - YYYY-MM-DD` and links; `README.md` references `{{theme_name}}`; `docs/RELEASE_PROCESS.md` is current.
76
-
6.**Build validation:**`npm run build` (or equivalent) succeeds; `theme.json` passes validation.
77
-
7.**Security:**`npm audit --audit-level=high` (and `composer audit` if available).
78
-
8.**Report:** Summarise PASS/FAIL, blockers, warnings, and recommended next actions.
68
+
## Wizard Integration & Advanced Features
69
+
70
+
This agent supports both interactive and automated wizard-driven release validation:
71
+
72
+
-**Conditional Logic:**
73
+
- Prompts for optional checks (e.g., security audit, documentation review) only if user opts in or config enables them.
74
+
-**Config File Automation:**
75
+
- Accepts a config file to automate release validation and reporting:
0 commit comments