Plugin Creator
Use this skill when a user wants a local Codewhale plugin bundle. Trusted and
enabled bundles may add declarative Skills, commands, agents, hooks, and MCP
servers (stdio and remote) through the existing engines. LSP, native
extensions, filesystem roots, and lifecycle mutation are inventory-only.
Workflow
- Pick a Codewhale-owned location:
- User bundle:
~/.codewhale/plugins/<plugin-name>/
- Workspace bundle:
<workspace>/.codewhale/plugins/<plugin-name>/
- Normalize the bundle name to lowercase hyphen-case.
- Create
plugin.toml:
schema_version = 1
[plugin]
name = "my-plugin"
version = "0.1.0"
description = "What this bundle provides"
[skills]
path = "skills"
- Put each Skill under
skills/<skill-name>/SKILL.md. Codewhale exposes it
as my-plugin:<skill-name>, never as an unqualified command.
- Add
[mcp_servers.<name>] only when the bundle needs an existing MCP
engine. Keep stdio commands and paths inside the bundle. Map local
environment values only as exact ${SOURCE_ENV} references. For remote MCP,
use HTTPS (or loopback HTTP), forbid URL user information/query/fragment,
use only environment-backed headers or bearer tokens, and declare the exact
normalized endpoint host set in [capabilities].network_hosts. Never place
credentials in the manifest.
- Commands (
commands/*.md), agents (agents/*.toml), and hooks
(hooks/*.toml) activate under the current policy — workspace bundles win
same-name collisions over user and built-in bundles. LSP, native
extensions, filesystem roots, and lifecycle mutation are inventory-only:
declare them only when inventorying future work. A bundle that declares
only unsupported surfaces cannot be enabled.
- Validate and review without executing bundle content:
/plugin validate <plugin-name>
/plugin show <plugin-name>
/plugin enable <plugin-name> to open the content/capability review
- run the exact
/plugin trust ... confirmation shown, then enable again
- Verify
/skills inspect reports plugin provenance and /plugin list
reports the expected trust and activation state. Trust stages the reviewed
content but does not activate it; enablement rebuilds the current
workspace's Skill/MCP catalogue immediately.
Every user and workspace bundle starts untrusted and disabled. Do not add a
marketplace, downloader, updater, compatibility scan, executable extension
runtime, or automatic trust flow; those surfaces are outside v0.9.1.
1---2name: plugin-creator-23description: Scaffold a local Codewhale plugin bundle with a versioned manifest, namespaced Skills, and an explicit trust review.4---56# Plugin Creator78Use this skill when a user wants a local Codewhale plugin bundle. Trusted and9enabled bundles may add declarative Skills, commands, agents, hooks, and MCP10servers (stdio and remote) through the existing engines. LSP, native11extensions, filesystem roots, and lifecycle mutation are inventory-only.1213## Workflow14151. Pick a Codewhale-owned location:16 - User bundle: `~/.codewhale/plugins/<plugin-name>/`17 - Workspace bundle: `<workspace>/.codewhale/plugins/<plugin-name>/`182. Normalize the bundle name to lowercase hyphen-case.193. Create `plugin.toml`:2021```toml22schema_version = 12324[plugin]25name = "my-plugin"26version = "0.1.0"27description = "What this bundle provides"2829[skills]30path = "skills"31```32334. Put each Skill under `skills/<skill-name>/SKILL.md`. Codewhale exposes it34 as `my-plugin:<skill-name>`, never as an unqualified command.355. Add `[mcp_servers.<name>]` only when the bundle needs an existing MCP36 engine. Keep stdio commands and paths inside the bundle. Map local37 environment values only as exact `${SOURCE_ENV}` references. For remote MCP,38 use HTTPS (or loopback HTTP), forbid URL user information/query/fragment,39 use only environment-backed headers or bearer tokens, and declare the exact40 normalized endpoint host set in `[capabilities].network_hosts`. Never place41 credentials in the manifest.426. Commands (`commands/*.md`), agents (`agents/*.toml`), and hooks43 (`hooks/*.toml`) activate under the current policy — workspace bundles win44 same-name collisions over user and built-in bundles. LSP, native45 extensions, filesystem roots, and lifecycle mutation are inventory-only:46 declare them only when inventorying future work. A bundle that declares47 only unsupported surfaces cannot be enabled.487. Validate and review without executing bundle content:49 - `/plugin validate <plugin-name>`50 - `/plugin show <plugin-name>`51 - `/plugin enable <plugin-name>` to open the content/capability review52 - run the exact `/plugin trust ...` confirmation shown, then enable again538. Verify `/skills inspect` reports plugin provenance and `/plugin list`54 reports the expected trust and activation state. Trust stages the reviewed55 content but does not activate it; enablement rebuilds the current56 workspace's Skill/MCP catalogue immediately.5758Every user and workspace bundle starts untrusted and disabled. Do not add a59marketplace, downloader, updater, compatibility scan, executable extension60runtime, or automatic trust flow; those surfaces are outside v0.9.1.