diff --git a/docs/research/plugin-marketplace-architecture.md b/plugins/kyberforge/docs/plugin-marketplace-architecture.md similarity index 100% rename from docs/research/plugin-marketplace-architecture.md rename to plugins/kyberforge/docs/plugin-marketplace-architecture.md diff --git a/.agents/skills/create-plugin/META.md b/plugins/kyberforge/skills/create-plugin/META.md similarity index 100% rename from .agents/skills/create-plugin/META.md rename to plugins/kyberforge/skills/create-plugin/META.md diff --git a/.agents/skills/create-plugin/SKILL.md b/plugins/kyberforge/skills/create-plugin/SKILL.md similarity index 75% rename from .agents/skills/create-plugin/SKILL.md rename to plugins/kyberforge/skills/create-plugin/SKILL.md index 68b5165..6bc496b 100644 --- a/.agents/skills/create-plugin/SKILL.md +++ b/plugins/kyberforge/skills/create-plugin/SKILL.md @@ -24,7 +24,7 @@ metadata: ## Constraints -- Verify `templates/plugin/` exists at the repo root before doing anything — stop if missing; do not generate files from memory. +- Load the plugin template from `assets/plugin-template/` bundled inside this skill (`${CLAUDE_PLUGIN_ROOT}/skills/create-plugin/assets/plugin-template/`). Stop if the path is missing — do not generate files from memory. - Plugin name must be kebab-case and not a reserved name (`anthropic-*`, `claude-*`, `agent-skills`, `official-claude-plugins`) — halt and ask for a replacement before Gate A if violated. - Do not write any file until Gate A (plan approval) and Gate B (file contents approval) are both explicitly confirmed. - Replace all five placeholder markers — `PLUGIN_NAME`, `PLUGIN_DESCRIPTION`, `AUTHOR_NAME`, `AUTHOR_EMAIL`, `AUTHOR_URL` — in every copied file before Gate B review. No marker may appear in written output. @@ -41,11 +41,11 @@ metadata: 1. **Collect inputs.** Ask for plugin name, description, author name, author email, and author URL — one question at a time. Validate the plugin name: kebab-case format, not a reserved name, not already present in `plugins/` or `.claude-plugin/marketplace.json`. If any validation fails, stop and ask for a replacement before continuing. -2. **Check template.** Verify `templates/plugin/` exists at the repo root. If missing, stop and report the path — do not proceed or generate files from memory. +2. **Check template.** Load the bundled template from `assets/plugin-template/` inside this skill (`${CLAUDE_PLUGIN_ROOT}/skills/create-plugin/assets/plugin-template/`). If the path is missing, stop and report it — do not proceed or generate files from memory. -3. **Gate A — plan review.** Present: the list of files that will be written (derived from `templates/plugin/` with `PLUGIN_NAME` substituted into filenames), the new `plugins//` directory path, the marketplace entry that will be added to `.claude-plugin/marketplace.json`, and whether `.github/plugin/marketplace.json` will also be updated. Wait for explicit approval — do not proceed on "looks good" or silence. +3. **Gate A — plan review.** Present: the list of files that will be written (derived from `assets/plugin-template/` with `PLUGIN_NAME` substituted into filenames), the new `plugins//` directory path, the marketplace entry that will be added to `.claude-plugin/marketplace.json`, and whether `.github/plugin/marketplace.json` will also be updated. Wait for explicit approval — do not proceed on "looks good" or silence. -4. **Copy and substitute.** Copy `templates/plugin/` to `plugins//`. In every copied file, replace all occurrences of `PLUGIN_NAME`, `PLUGIN_DESCRIPTION`, `AUTHOR_NAME`, `AUTHOR_EMAIL`, and `AUTHOR_URL` with the collected values. Rename any file or directory whose name contains `PLUGIN_NAME`. +4. **Copy and substitute.** Copy `assets/plugin-template/` to `plugins//`. In every copied file, replace all occurrences of `PLUGIN_NAME`, `PLUGIN_DESCRIPTION`, `AUTHOR_NAME`, `AUTHOR_EMAIL`, and `AUTHOR_URL` with the collected values. Rename any file or directory whose name contains `PLUGIN_NAME`. 5. **Gate B — file contents review.** Show every file with its full substituted content. Wait for explicit approval — do not write until confirmed. @@ -57,7 +57,7 @@ metadata: ## Output format -- `plugins//` — directory tree copied from `templates/plugin/` with all placeholders substituted +- `plugins//` — directory tree copied from `assets/plugin-template/` with all placeholders substituted - `.claude-plugin/marketplace.json` — updated with the new plugin entry - `.github/plugin/marketplace.json` — updated with the same entry, only if it already existed - Inline validation report from `claude plugin validate .` @@ -68,7 +68,7 @@ metadata: ## Failure handling -- `templates/plugin/` not found — stop, report the path searched, do not generate from memory. +- `assets/plugin-template/` not found at `${CLAUDE_PLUGIN_ROOT}/skills/create-plugin/assets/plugin-template/` — stop, report the path, do not generate from memory. - Plugin name already exists in `plugins/` or `marketplace.json` — stop, report the conflict, ask for a different name. - Reserved name detected — stop, report the name and the reserved list, ask for a replacement before continuing. - `claude plugin validate .` unavailable — report that automated validation was skipped; suggest running it manually with `claude --plugin-dir ./plugins/`. @@ -76,7 +76,7 @@ metadata: ## Self-check - [ ] Plugin name validated: kebab-case, not reserved, not already present in `plugins/` or `marketplace.json` -- [ ] `templates/plugin/` verified to exist before any file generation +- [ ] `assets/plugin-template/` verified to exist at `${CLAUDE_PLUGIN_ROOT}/skills/create-plugin/assets/plugin-template/` before any file generation - [ ] Gate A presented with file list and marketplace entry — explicit approval received - [ ] All five markers substituted in all files — none appear in written output - [ ] Gate B presented with full substituted file contents — explicit approval received diff --git a/templates/plugin/.claude-plugin/plugin.json b/plugins/kyberforge/skills/create-plugin/assets/plugin-template/.claude-plugin/plugin.json similarity index 100% rename from templates/plugin/.claude-plugin/plugin.json rename to plugins/kyberforge/skills/create-plugin/assets/plugin-template/.claude-plugin/plugin.json diff --git a/templates/plugin/.mcp.json b/plugins/kyberforge/skills/create-plugin/assets/plugin-template/.mcp.json similarity index 100% rename from templates/plugin/.mcp.json rename to plugins/kyberforge/skills/create-plugin/assets/plugin-template/.mcp.json diff --git a/templates/plugin/README.md b/plugins/kyberforge/skills/create-plugin/assets/plugin-template/README.md similarity index 100% rename from templates/plugin/README.md rename to plugins/kyberforge/skills/create-plugin/assets/plugin-template/README.md diff --git a/templates/plugin/agents/PLUGIN_NAME.agent.md b/plugins/kyberforge/skills/create-plugin/assets/plugin-template/agents/PLUGIN_NAME.agent.md similarity index 100% rename from templates/plugin/agents/PLUGIN_NAME.agent.md rename to plugins/kyberforge/skills/create-plugin/assets/plugin-template/agents/PLUGIN_NAME.agent.md diff --git a/templates/plugin/agents/PLUGIN_NAME.md b/plugins/kyberforge/skills/create-plugin/assets/plugin-template/agents/PLUGIN_NAME.md similarity index 100% rename from templates/plugin/agents/PLUGIN_NAME.md rename to plugins/kyberforge/skills/create-plugin/assets/plugin-template/agents/PLUGIN_NAME.md diff --git a/templates/plugin/agents/README.md b/plugins/kyberforge/skills/create-plugin/assets/plugin-template/agents/README.md similarity index 100% rename from templates/plugin/agents/README.md rename to plugins/kyberforge/skills/create-plugin/assets/plugin-template/agents/README.md diff --git a/templates/plugin/bin/README.md b/plugins/kyberforge/skills/create-plugin/assets/plugin-template/bin/README.md similarity index 100% rename from templates/plugin/bin/README.md rename to plugins/kyberforge/skills/create-plugin/assets/plugin-template/bin/README.md diff --git a/templates/plugin/docs/README.md b/plugins/kyberforge/skills/create-plugin/assets/plugin-template/docs/README.md similarity index 100% rename from templates/plugin/docs/README.md rename to plugins/kyberforge/skills/create-plugin/assets/plugin-template/docs/README.md diff --git a/templates/plugin/hooks.json b/plugins/kyberforge/skills/create-plugin/assets/plugin-template/hooks.json similarity index 100% rename from templates/plugin/hooks.json rename to plugins/kyberforge/skills/create-plugin/assets/plugin-template/hooks.json diff --git a/templates/plugin/hooks/README.md b/plugins/kyberforge/skills/create-plugin/assets/plugin-template/hooks/README.md similarity index 100% rename from templates/plugin/hooks/README.md rename to plugins/kyberforge/skills/create-plugin/assets/plugin-template/hooks/README.md diff --git a/templates/plugin/hooks/hooks.json b/plugins/kyberforge/skills/create-plugin/assets/plugin-template/hooks/hooks.json similarity index 100% rename from templates/plugin/hooks/hooks.json rename to plugins/kyberforge/skills/create-plugin/assets/plugin-template/hooks/hooks.json diff --git a/templates/plugin/plugin.json b/plugins/kyberforge/skills/create-plugin/assets/plugin-template/plugin.json similarity index 100% rename from templates/plugin/plugin.json rename to plugins/kyberforge/skills/create-plugin/assets/plugin-template/plugin.json diff --git a/templates/plugin/skills/README.md b/plugins/kyberforge/skills/create-plugin/assets/plugin-template/skills/README.md similarity index 100% rename from templates/plugin/skills/README.md rename to plugins/kyberforge/skills/create-plugin/assets/plugin-template/skills/README.md diff --git a/.agents/skills/marketplace-architect/META.md b/plugins/kyberforge/skills/marketplace-architect/META.md similarity index 100% rename from .agents/skills/marketplace-architect/META.md rename to plugins/kyberforge/skills/marketplace-architect/META.md diff --git a/.agents/skills/marketplace-architect/SKILL.md b/plugins/kyberforge/skills/marketplace-architect/SKILL.md similarity index 100% rename from .agents/skills/marketplace-architect/SKILL.md rename to plugins/kyberforge/skills/marketplace-architect/SKILL.md diff --git a/.agents/skills/marketplace-architect/references/claude-code.md b/plugins/kyberforge/skills/marketplace-architect/references/claude-code.md similarity index 100% rename from .agents/skills/marketplace-architect/references/claude-code.md rename to plugins/kyberforge/skills/marketplace-architect/references/claude-code.md diff --git a/.agents/skills/marketplace-architect/references/copilot-cli.md b/plugins/kyberforge/skills/marketplace-architect/references/copilot-cli.md similarity index 100% rename from .agents/skills/marketplace-architect/references/copilot-cli.md rename to plugins/kyberforge/skills/marketplace-architect/references/copilot-cli.md diff --git a/.agents/skills/marketplace-architect/references/cross-compat.md b/plugins/kyberforge/skills/marketplace-architect/references/cross-compat.md similarity index 100% rename from .agents/skills/marketplace-architect/references/cross-compat.md rename to plugins/kyberforge/skills/marketplace-architect/references/cross-compat.md diff --git a/.agents/skills/marketplace-architect/scripts/gen_manifests.sh b/plugins/kyberforge/skills/marketplace-architect/scripts/gen_manifests.sh similarity index 100% rename from .agents/skills/marketplace-architect/scripts/gen_manifests.sh rename to plugins/kyberforge/skills/marketplace-architect/scripts/gen_manifests.sh diff --git a/.agents/skills/marketplace-architect/scripts/inventory.sh b/plugins/kyberforge/skills/marketplace-architect/scripts/inventory.sh similarity index 100% rename from .agents/skills/marketplace-architect/scripts/inventory.sh rename to plugins/kyberforge/skills/marketplace-architect/scripts/inventory.sh diff --git a/.agents/skills/marketplace-architect/scripts/validate.sh b/plugins/kyberforge/skills/marketplace-architect/scripts/validate.sh similarity index 100% rename from .agents/skills/marketplace-architect/scripts/validate.sh rename to plugins/kyberforge/skills/marketplace-architect/scripts/validate.sh diff --git a/.agents/skills/write-eval/SKILL.md b/plugins/kyberforge/skills/write-eval/SKILL.md similarity index 100% rename from .agents/skills/write-eval/SKILL.md rename to plugins/kyberforge/skills/write-eval/SKILL.md diff --git a/.agents/skills/write-skill/CATEGORIES.md b/plugins/kyberforge/skills/write-skill/CATEGORIES.md similarity index 100% rename from .agents/skills/write-skill/CATEGORIES.md rename to plugins/kyberforge/skills/write-skill/CATEGORIES.md diff --git a/.agents/skills/write-skill/META-TEMPLATE.md b/plugins/kyberforge/skills/write-skill/META-TEMPLATE.md similarity index 100% rename from .agents/skills/write-skill/META-TEMPLATE.md rename to plugins/kyberforge/skills/write-skill/META-TEMPLATE.md diff --git a/.agents/skills/write-skill/META.md b/plugins/kyberforge/skills/write-skill/META.md similarity index 100% rename from .agents/skills/write-skill/META.md rename to plugins/kyberforge/skills/write-skill/META.md diff --git a/.agents/skills/write-skill/SKILL-TEMPLATE.md b/plugins/kyberforge/skills/write-skill/SKILL-TEMPLATE.md similarity index 100% rename from .agents/skills/write-skill/SKILL-TEMPLATE.md rename to plugins/kyberforge/skills/write-skill/SKILL-TEMPLATE.md diff --git a/.agents/skills/write-skill/SKILL.md b/plugins/kyberforge/skills/write-skill/SKILL.md similarity index 100% rename from .agents/skills/write-skill/SKILL.md rename to plugins/kyberforge/skills/write-skill/SKILL.md diff --git a/.agents/evals/marketplace/plugin-create/eval.yaml b/plugins/kyberforge/tests/evals/create-plugin/eval.yaml similarity index 100% rename from .agents/evals/marketplace/plugin-create/eval.yaml rename to plugins/kyberforge/tests/evals/create-plugin/eval.yaml diff --git a/.agents/evals/marketplace/marketplace-architect/eval.yaml b/plugins/kyberforge/tests/evals/marketplace-architect/eval.yaml similarity index 100% rename from .agents/evals/marketplace/marketplace-architect/eval.yaml rename to plugins/kyberforge/tests/evals/marketplace-architect/eval.yaml diff --git a/.agents/evals/factory/write-eval/eval.yaml b/plugins/kyberforge/tests/evals/write-eval/eval.yaml similarity index 100% rename from .agents/evals/factory/write-eval/eval.yaml rename to plugins/kyberforge/tests/evals/write-eval/eval.yaml diff --git a/.agents/evals/factory/write-skill/eval.yaml b/plugins/kyberforge/tests/evals/write-skill/eval.yaml similarity index 100% rename from .agents/evals/factory/write-skill/eval.yaml rename to plugins/kyberforge/tests/evals/write-skill/eval.yaml diff --git a/.agents/skills/marketplace-architect/tests/test_scripts.sh b/plugins/kyberforge/tests/test_scripts.sh similarity index 100% rename from .agents/skills/marketplace-architect/tests/test_scripts.sh rename to plugins/kyberforge/tests/test_scripts.sh