Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- `docs/MCP-PLUGIN-GENERATION.md` (BPS-12): the contract for generating plugins through a local MCP server in Claude Desktop and Claude Code. It covers responsibilities, transport, client setup, destination rules, the four operations, approval binding, merge rules, errors, recovery, the supported configuration where the schema, generator and validator disagree, and the WordPress and Figma skills.
- Generated plugins get `package-lock.json` and `composer.lock` (BPS-10), written from the lockfiles proven in `lightspeedwp/ls-test` (`scripts/toolchain/standard-toolchain.package-lock.json` and `standard-toolchain.composer.lock`) with the plugin's name, version and Composer `content-hash`; for ls-test they are byte-identical to its own. `npm run toolchain:lockfiles` resolves them again after a toolchain change. `check:generation` installs with `npm ci` and runs `composer validate`, so a lockfile that no longer matches fails, then `composer install`, PHPCS, PHPStan and PHPUnit in each generated plugin; the CI job sets up PHP 8.4.
- Generated plugins get `guidelines/` (BPS-10, adapted from ThisOneTimeOnAcidCom): CSS architecture, an accessibility checklist, the testing strategy, and prompt and report guides. `compare-toolchain.js` compares `guidelines/`.
- Generated plugins get Spec Kit 1.0.13 (BPS-10, from ThisOneTimeOnAcidCom) with Claude Code, Codex and Gemini integrations, branch checks through `bin/check-branch-name.js`, and a constitution written for a block plugin. The generator keeps file permissions, copies `.gemini/commands/` and `.specify/workflows/` without rendering their `{{args}}` placeholders, and in template mode replaces the scaffold's own `.specify/`. `compare-toolchain.js` compares `.specify/`.
Expand Down
2 changes: 2 additions & 0 deletions docs/GENERATE_PLUGIN.md
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,8 @@ my-awesome-plugin/ ← Same repo, transformed

## Generation Methods

Generation through a local MCP server for Claude Desktop and Claude Code is planned. Its contract is in [MCP-PLUGIN-GENERATION.md](MCP-PLUGIN-GENERATION.md); until it ships, use one of the methods below.

### Method 1: Template Mode (In-Place Processing)

Use the scaffold as a GitHub template and process it directly:
Expand Down
Loading
Loading