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
- Config can specify which checks to run, custom version, or skip optional steps.
35
-
-**Dry-Run/Mock Mode:**
36
-
- Use `WIZARD_MODE=mock` or `--dry-run` to simulate all checks and reporting without modifying files.
37
-
- Useful for CI, validation, and pre-release rehearsal.
38
-
-**Validation & Error Recovery:**
39
-
- Each step validates its outcome (e.g., placeholder integrity, version alignment).
40
-
- If a check fails, the wizard reports the error, suggests fixes, and can re-run after correction.
41
-
-**Explicit Mapping:**
42
-
- Each wizard step maps to a config schema field and release check (see below).
27
+
This agent is tightly integrated with the **Release Scaffold Wizard** defined in `.github/prompts/create-release-scaffold.prompt.md` and implemented via `scripts/lib/wizard.js`.
28
+
29
+
-**Wizard Prompt:** All release-scaffold processes must use the wizard steps and config schema defined in `.github/prompts/create-release-scaffold.prompt.md`.
30
+
-**Wizard Interface:** Supports CLI, JSON, ENV, mock, and other interfaces as defined in `scripts/lib/wizard.js`.
31
+
-**Mustache Placeholder Protection:** Never strip or replace `{{mustache}}` placeholders in the scaffold repository. Placeholders are only replaced during theme generation, not in the scaffold itself. Validate placeholder presence before every release.
32
+
-**Conditional Logic:** Prompts for advanced checks (e.g., smoke test, schema validation) only if enabled in config or by user input.
33
+
-**Config File Automation:** Accepts a config file to automate release checks and reporting. See wizard prompt for schema.
34
+
-**Dry-Run/Mock Mode:** Use `WIZARD_MODE=mock` or `--dry-run` to simulate all checks and reporting without modifying files. Useful for CI, validation, and pre-release rehearsal.
35
+
-**Validation & Error Recovery:** Each step validates its outcome (e.g., placeholder integrity, version alignment). If a check fails, the wizard reports the error, suggests fixes, and can re-run after correction.
36
+
-**Explicit Mapping:** Each wizard step maps to a config schema field and release check (see wizard prompt).
37
+
38
+
See `.github/prompts/create-release-scaffold.prompt.md` for the canonical wizard steps and config schema.
Copy file name to clipboardExpand all lines: .github/instructions/folder-structure.instructions.md
+37-13Lines changed: 37 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,9 @@ applyTo: "**"
6
6
7
7
# Folder Structure Instructions
8
8
9
+
> **Critical Rule:**
10
+
> Never strip or replace `{{mustache}}` placeholders in the scaffold repository. Only replace them during theme generation, never in the scaffold itself.
11
+
9
12
## Overview
10
13
11
14
This document provides a comprehensive reference for the block-theme-scaffold project's folder structure, naming conventions, and organization principles.
@@ -66,23 +69,27 @@ block-theme-scaffold/
66
69
Contains all GitHub-specific and AI agent configuration files.
67
70
68
71
#### .github/agents/
72
+
69
73
-**Purpose:** AI agent specification documents
70
74
-**Naming:**`[agent-name].agent.md`
71
75
-**Contents:** Agent behavior, capabilities, and constraints
72
76
-**Mustache:** Contains `{{variables}}` in scaffold, replaced in generated themes
> Never strip or replace `{{mustache}}` placeholders in the scaffold repository. Only replace them during theme generation, never in the scaffold itself.
11
+
9
12
You are a theme generation assistant. Follow our mustache-driven scaffold patterns to collect inputs, validate them, and drive the generator scripts. Avoid hard-coding defaults, skipping validation, or leaving scaffold-only files in the generated output.
10
13
11
14
This file provides comprehensive instructions for AI agents using the `generate-theme.prompt.md` prompt to guide users through WordPress block theme generation using the mustache template system.
The Release Scaffold Wizard guides you step-by-step through preparing and publishing a new block theme scaffold release. Use this wizard for all release-scaffold.\* processes, including automation and manual runs.
0 commit comments