| 1 | # Claude Plugin Compatibility |
| 2 | |
| 3 | > 阅读简体中文版:[zh_hans/CLAUDE_PLUGIN_COMPAT.md](zh_hans/CLAUDE_PLUGIN_COMPAT.md) |
| 4 | |
| 5 | Codewhale treats Claude Code skill folders as instruction bundles when they are |
| 6 | plain `SKILL.md` directories. It does not run Claude Code plugin runtimes. |
| 7 | |
| 8 | ## Supported |
| 9 | |
| 10 | - Workspace or global `.claude/skills/<name>/SKILL.md` directories discovered by |
| 11 | the normal skill registry. |
| 12 | - GitHub or tarball installs that contain one selected skill directory such as |
| 13 | `skills/<name>/SKILL.md`, `.agents/skills/<name>/SKILL.md`, |
| 14 | `.claude/skills/<name>/SKILL.md`, or a nested package layout ending in |
| 15 | `skills/<name>/SKILL.md`. |
| 16 | - Companion files inside the selected skill directory, such as `references/`, |
| 17 | `examples/`, or scripts that are only used after the skill is explicitly |
| 18 | loaded and trusted. |
| 19 | |
| 20 | ## Compatible plugin bundles |
| 21 | |
| 22 | `/plugin install` accepts the declarative subset described in |
| 23 | [Installing plugins](PLUGINS.md): nested `.claude-plugin/plugin.json` metadata, |
| 24 | root skills, commands and agent profiles, plus inline MCP declarations or |
| 25 | `.mcp.json`. Local sources in Claude marketplace catalogs resolve from the |
| 26 | repository root outside `.claude-plugin`. |
| 27 | |
| 28 | Exact `${ENV_NAME}` MCP header references map to Codewhale's environment-backed |
| 29 | credentials, including `Authorization: Bearer ${ENV_NAME}`. Literal credential |
| 30 | values and compound header templates are rejected; importing never reads the |
| 31 | referenced environment variables. |
| 32 | |
| 33 | The importer uses Codewhale's existing adapters, review hashes and enablement. |
| 34 | A Claude marketplace's labels or defaults grant no authority. Bundles are not |
| 35 | scanned from another application's plugin roots or activated automatically. |
| 36 | |
| 37 | ## Unsupported runtime features |
| 38 | |
| 39 | The importer rejects hooks, LSP declarations, custom MCP file paths, and |
| 40 | `${CLAUDE_PLUGIN_ROOT}` expansion. It does not run plugin build steps, |
| 41 | TypeScript agents, dashboard servers, shared plugin state, or token-gated |
| 42 | service processes. Claude-specific frontmatter behavior such as `model: inherit` |
| 43 | is not an additional runtime contract. Remote MCP authentication still follows |
| 44 | Codewhale's existing plugin credential boundary; installation does not complete |
| 45 | OAuth or borrow another application's credentials. |
| 46 | |
| 47 | `/skill install` remains a separate one-skill operation: it rejects multi-skill |
| 48 | plugin archives rather than silently selecting one directory and dropping other |
| 49 | components. Use `/plugin install` for supported bundles, or migrate one explicit |
| 50 | skill directory when the repository depends on unsupported runtime behavior. |
| 51 | For example, a hybrid package such as |
| 52 | [`deja-vu`](https://github.com/vshulcz/deja-vu/tree/2b1baf0f79249429564150c2a39653aec2861260/extensions/codewhale) |
| 53 | ships `.claude-plugin/plugin.json`, `.mcp.json`, `skills/`, and `commands/` for |
| 54 | `/plugin install`, while wiring host lifecycle hooks separately in |
| 55 | `~/.codewhale/config.toml` because the Claude bundle importer rejects `hooks`. |
| 56 | Hooks in `config.toml` are your own shell commands and run outside plugin |
| 57 | review, hashes and enablement, so read each hook command before adding it. |
| 58 | |
| 59 | See [PLUGIN_BUNDLES.md](PLUGIN_BUNDLES.md) for discovery, review and activation. |
| 60 |