Skip to content

Commit d09c075

Browse files
committed
Run husky precommit, stage and commit all files
1 parent 200c9e3 commit d09c075

File tree

121 files changed

+7773
-2871
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+7773
-2871
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@ permissions: ["read", "write", "execute", "shell", "filesystem"]
77

88
# Multi-Block Plugin Scaffold Generator
99

10+
11+
## Wizard Integration
12+
13+
This agent uses the interactive wizard implemented in [`scripts/lib/wizard.js`](../../scripts/lib/wizard.js) via the `runWizard` function. When run without a config file, the agent will prompt the user interactively to gather all required configuration data.
14+
15+
**Wizard usage:**
16+
- The agent imports and calls `runWizard` for interactive mode.
17+
- The wizard implementation is currently a placeholder and should be extended for full user input.
18+
19+
See also: [`scripts/agents/generate-plugin.agent.js`](../../scripts/agents/generate-plugin.agent.js)
20+
1021
I'm your comprehensive multi-block plugin generator. I'll guide you through an extensive discovery process to collect all the information needed to create a full-featured WordPress plugin with custom post types, taxonomies, blocks, and Secure Custom Fields integration.
1122

1223
## 🔍 IMPORTANT: Repository Context Detection

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ The following files MUST contain mustache variables and should NOT be processed:
107107
- Check CHANGELOG.md (ensure [Unreleased][X.Y.Z] transformation)
108108
- Validate CONTRIBUTING.md mentions current workflow
109109
- Check for broken internal links
110-
- Verify docs/GENERATE-PLUGIN.md is current
110+
- Verify docs/GENERATE_PLUGIN.md is current
111111

112112
5. **Plugin Generator Validation**
113113
- Run generator with sample config from `.github/schemas/examples/plugin-config.example.json`

.github/agents/reporting.agent.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Reporting Agent
33
description: "AI agent for generating, organising, and managing reports in the .github/reports/ directory"
44
target: github-copilot
55
version: v1.0
6-
last_updated: 2025-12-15
6+
last_updated: "2025-12-15"
77
author: LightSpeedWP
88
maintainer: Ash Shaw
99
file_type: agent

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ file_type: "agent"
1010
category: "research"
1111
status: "active"
1212
visibility: "public"
13-
tags: ["research", "block-plugins", "wordpress", "block-editor", "planning", "automation", "theme.json"]
13+
tags: ["research", "block-plugins", "wordpress", "block-editor", "planning", "automation", "theme-json"]
1414
owners: ["lightspeedwp/maintainers"]
1515
tools: ["changes", "search/codebase", "edit/editFiles", "extensions", "fetch", "problems", "readFile", "runCommands", "runCommands/terminalLastCommand", "runCommands/terminalSelection", "usages", "search", "search/searchResults", "vscodeAPI", "new", "wordpress_docs", "wp_cli", "php_cs", "stylelint", "eslint", "context7"]
1616
metadata:

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ description: >-
33
How to author, format, and review agent specification files for the LightSpeed
44
multi-block plugin scaffold
55
applyTo: .github/agents/*.agent.md
6-
version: 1
7-
lastUpdated: 2025-12-11T00:00:00.000Z
6+
version: "1.0"
7+
lastUpdated: "2025-12-11"
88
references:
99
- ../custom-instructions.md
1010
---

.github/instructions/folder-structure.instructions.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,14 @@ Use this guide when creating, moving, or auditing files. It covers where to plac
8585
- Used by `inc/class-block-styles.php` to auto-register block variations
8686
- **Shipped**: Yes
8787

88+
**`generated-plugins/`** - Sample generator output
89+
90+
- Each subdirectory (e.g., `tour-operator/`) is a generated plugin snapshot used for testing and documentation.
91+
- Regenerate with `node scripts/generate-plugin.js` if the scaffold changes.
92+
- Keep these folders in `.gitignore` and do not edit them manually unless updating generated examples.
93+
94+
### Build & Development
95+
8896
### Build & Development
8997

9098
**`bin/`** - Shell scripts and entry points
@@ -129,6 +137,7 @@ Use this guide when creating, moving, or auditing files. It covers where to plac
129137
- `instructions/` - AI/Copilot rules
130138
- `prompts/` - AI prompt templates
131139
- `workflows/` - GitHub Actions CI/CD
140+
- `projects/` - Planning outcomes (active/completed/plans folders)
132141
- **Shipped**: No
133142

134143
### Runtime Data
@@ -153,7 +162,7 @@ Use this guide when creating, moving, or auditing files. It covers where to plac
153162
- **Shipped**: No
154163
- **Safe to delete**: Yes
155164

156-
**`reports/`** - Analysis reports
165+
**`.github/reports/`** - Analysis reports
157166

158167
- Migration reports
159168
- Audit results
@@ -231,9 +240,9 @@ Use this guide when creating, moving, or auditing files. It covers where to plac
231240

232241
**Report**:
233242

234-
- **Location**: `reports/`
243+
- **Location**: `.github/reports/`
235244
- **Format**: Markdown with date and context
236-
- **Example**: `reports/STYLELINT-MIGRATION.md`
245+
- **Example**: `.github/reports/STYLELINT-MIGRATION.md`
237246

238247
## Naming Conventions
239248

@@ -346,7 +355,7 @@ Never ship:
346355
- `bin/`
347356
- `logs/`
348357
- `tmp/`
349-
- `reports/`
358+
- `.github/reports/`
350359
- `node_modules/`
351360
- `vendor/`
352361
- All config files

.github/instructions/instructions.instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ description: >-
33
Guidelines for writing Copilot instruction files for the LightSpeed
44
multi-block plugin scaffold, focused on block plugin development
55
applyTo: '**/.github/instructions/*.instructions.md'
6-
version: 1
7-
lastUpdated: 2025-12-11T00:00:00.000Z
6+
version: "1.0"
7+
lastUpdated: "2025-12-11"
88
references:
99
- ../custom-instructions.md
1010
---

.github/instructions/reporting.instructions.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ These instructions define standards for creating, storing, and managing reports
3737

3838
## Report Types
3939

40+
Common categories include analysis, migration, performance, audit, consolidation, implementation, and research. Research outputs belong in `.github/reports/research/` and should follow the expectations described in `.github/instructions/task-researcher.instructions.md`.
41+
4042
## Examples
4143

4244
- `.github/reports/analysis/2025-12-11-instruction-audit.md`
@@ -352,7 +354,7 @@ fs.rmSync(tmpDir, { recursive: true, force: true });
352354

353355
### By Developers
354356

355-
1. **Create report** in `reports/` with proper naming
357+
1. **Create report** in `.github/reports/` with proper naming
356358
2. **Determine category** (e.g., `analysis`, `migration`).
357359
3. **Place in subdirectory**: Move the file to `.github/reports/{category}/`.
358360
4. **Include frontmatter** with all required fields.
@@ -362,7 +364,7 @@ fs.rmSync(tmpDir, { recursive: true, force: true });
362364

363365
### By Scripts/Agents
364366

365-
1. **Verify location**: Always use `reports/` directory
367+
1. **Verify location**: Always use `.github/reports/` directory
366368
2. **Create subdirectory** if needed (e.g., `tmp/reports/analysis/`)
367369
3. **Log execution** to `logs/` directory
368370
4. **Generate report** file with timestamp
@@ -427,7 +429,7 @@ logStream.end();
427429

428430
Agents MUST:
429431

430-
1. **Always use `reports/` location**: Never create reports in root
432+
1. **Always use `.github/reports/` location**: Never create reports in root
431433
2. **Determine category**: Identify the report category (e.g., `analysis`).
432434
3. **Save to subdirectory**: Save the report in `.github/reports/{category}/`.
433435
4. **Follow naming**: Use proper naming convention.
@@ -439,7 +441,7 @@ Agents MUST:
439441
```
440442
When generating reports:
441443
442-
1. Always save to `reports/` directory, NEVER to repository root
444+
1. Always save to `.github/reports/` directory, NEVER to repository root
443445
2. Use naming format: {TYPE}-{SUBJECT}-{TIMESTAMP}.md
444446
3. Include YAML frontmatter with title, description, category, audience, date
445447
4. Organize content with Executive Summary, Context, Findings, Recommendations
@@ -502,7 +504,7 @@ Required fields:
502504
503505
3. Choose name: {TYPE}-{SUBJECT}-{TIMESTAMP}.md
504506
505-
4. Create in reports/ directory
507+
4. Create in `.github/reports/` directory
506508
507509
5. Add frontmatter with metadata
508510
@@ -512,7 +514,7 @@ Required fields:
512514
513515
8. Commit to version control
514516
515-
9. Update reports/README.md with entry if major
517+
9. Update `.github/reports/README.md` with entry if major
516518
```
517519

518520
### Report Lifecycle
@@ -524,17 +526,17 @@ Analysis Phase
524526
└─ Script/Agent Runs
525527
526528
Report Generation
527-
├─ Create: reports/{TYPE}-{SUBJECT}-{TIMESTAMP}.md
529+
├─ Create: `.github/reports/{TYPE}-{SUBJECT}-{TIMESTAMP}.md`
528530
├─ Add Frontmatter: title, description, category, date
529531
└─ Structure: Summary, Context, Findings, Recommendations
530532
531533
Publication
532534
├─ Version Control: git add, git commit
533535
├─ Documentation: Reference in docs/ if needed
534-
└─ Update: reports/README.md entry
536+
└─ Update: `.github/reports/README.md` entry
535537
536538
Archive
537-
├─ Location: reports/ (permanent)
539+
├─ Location: `.github/reports/` (permanent)
538540
├─ Retention: Indefinite (historical record)
539541
└─ Cleanup: tmp/reports/{type}/ can be cleaned
540542
```

.github/instructions/scaffold-extensions.instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ When adding new placeholders:
465465
- Category (namespace, text, meta)
466466
- Example value
467467
- All files where it's used
468-
- [ ] Update `docs/GENERATE-PLUGIN.md` if it's user-facing
468+
- [ ] Update `docs/GENERATE_PLUGIN.md` if it's user-facing
469469
- [ ] Add example to this instruction file showing correct usage
470470
- [ ] Update `.github/agents/generate-plugin.agent.md` if it affects the generator interface
471471

.github/instructions/task-planner.instructions.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ You are a planning assistant. Follow our LightSpeed planning approach to break m
1717

1818
Use these rules when outlining implementation plans or task lists for this repository. Keep plans concise, aligned with repository constraints, and tailored to the current request.
1919

20+
This guidance is the canonical reference for human planners and AI planners such as Claude, Gemini, and Copilot. Always save new plan files and updates under `.github/projects/plans/` so the work remains discoverable and versioned alongside the repository.
21+
2022
## General Rules
2123

2224
- Keep plans short and sequential; avoid single-step or sprawling plans.
@@ -36,6 +38,12 @@ Use these rules when outlining implementation plans or task lists for this repos
3638
- Highlight risks or unknowns with a single clarifying question when necessary.
3739
- Include validation steps (tests, linters, build commands) that match the files being changed.
3840

41+
## Storage & Publication
42+
43+
- Save all plan documents inside `.github/projects/plans/`, using descriptive, date-stamped filenames that describe the initiative.
44+
- If you track progress, drop intermediate notes in `.github/projects/active/` and move finished plans to `.github/projects/completed/`.
45+
- Never drop new plans in `docs/plans/`; the directory has been retired in favour of the `.github/projects` hierarchy.
46+
3947
## Examples
4048

4149
- 1) Audit affected files; 2) Implement change; 3) Run `npm test`; 4) Summarise.

0 commit comments

Comments
 (0)