AGENT SKILL

Codewhale 插件包创建

plugin-creator

搭建本地 Codewhale 插件包,包含版本化的清单、带命名空间的 Skills,以及经过会话审批的信任审查。

License 许可
MIT
最近更新
2026-11-15
Stars
★ 4.1w
Forks
3.6k

01 前言 Front Matter

name
plugin-creator
description
Scaffold a local Codewhale plugin bundle with a versioned manifest, namespaced Skills, and a trust review that goes through the session's approval.

02 资源文件 4

03 SKILL.md 正文

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, filesystem roots, and lifecycle mutation are inventory-only. Native extensions (host code) are inventory-only unless the user has turned on the experimental [features] extension_host flag.

Workflow

  1. Pick a Codewhale-owned location:
    • User bundle: ~/.codewhale/plugins/<plugin-name>/
    • Workspace bundle: <workspace>/.codewhale/plugins/<plugin-name>/
  2. Normalize the bundle name to lowercase hyphen-case.
  3. Create plugin.json (Agent Plugins v1.0.0; a legacy plugin.toml stays readable, but new bundles use plugin.json):
{
  "$schema": "https://agent-plugins.org/schemas/plugin.json",
  "name": "my-plugin",
  "version": "0.1.0",
  "description": "What this bundle provides"
}
  1. Put each Skill under skills/<skill-name>/SKILL.md; Codewhale finds skills/ automatically and exposes each as my-plugin:<skill-name>, never as an unqualified command.
  2. Add MCP servers in a sibling mcp.json 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 under extensions["net.codewhale"]. Never place credentials in the manifest.
  3. Commands (commands/*.md), agents (agents/*.toml), and hooks (hooks/*.toml), declared under extensions["net.codewhale"], activate under the current policy — workspace bundles win same-name collisions over user and built-in bundles. LSP, filesystem roots, and lifecycle mutation are inventory-only: declare them only when inventorying future work. A native entry runs only under the experimental extension host; there it must be one .mjs, .js or .mts ES module file, /plugin validate rejects anything else, and its tools always use Required approval, never a plugin's read-only hint. Full Access, Bypass, or an exact session grant for the reviewed build can satisfy that gate without a prompt. A bundle that declares only unsupported surfaces cannot be enabled.
  4. Validate and review without executing bundle content:
    • /plugin validate <plugin-name>
    • /plugin show <plugin-name>
    • present these results; the person runs /plugin enable <plugin-name> to open the content/capability review, reviews it, runs the exact /plugin trust ... confirmation shown, then enables the bundle
    • exception: in Full Access, for a plugin you wrote yourself, you may trust and enable it without asking the person. Write it in an ordinary folder inside the current project (for example <workspace>/plugins/<plugin-name>/), not under .codewhale/plugins/ as in step 1, because codewhale install copies it into place and refuses a name that is already in use. Then run, in this order: codewhale install <folder>, codewhale plugins trust <name> (it prints the review and a review token), codewhale plugins trust <name> --review-token <token> --yes with the token from your own run, and codewhale plugins enable <name>. These are shell commands, so the session's approval applies to them like any other (Ask asks the person, Auto-Review's reviewer judges, Full Access runs them). The trust is recorded as approved by the agent, for this project only. A bundle that was not installed this way from inside the project is refused. Never do this for a plugin you did not write.
  5. 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. After enablement, follow the host's reload notice: use /reload or a new session to apply changes to a live session's pinned skills and tools.

Every user and workspace bundle starts untrusted and disabled. Reuse the existing /plugin marketplace, install, update, review and reload surfaces; do not add a parallel installer or registry. Catalog membership alone never installs, trusts or enables a plugin.

Plugins with code or a screen

For a plugin that runs code, adds tools of its own, or shows a screen, use the cordis-plugin-development skill when it is offered: it teaches the format that also loads in DeepSeek Harness. Host code runs only under the experimental [features] extension_host flag; start from the tested hello-extension example and docs/EXTENSIONS.md in the Codewhale repository, add a plugin.json beside the package for Codewhale's own kinds, and never change the shared process cwd. A person reviews and turns on a plugin as step 7 says. /plugin show <name> reports owner state, live tools and recent attributed diagnostics. Explain the shared-process and current platform sandbox limits without claiming isolation.

04 同仓库更多 Skills

codewhale-hq
codewhale-hq/Codewhale

editing-cordis-compositions

Use when creating, changing, or validating an agent preset or other Cordis composition for this harness, including deciding host versus preset placement and checking that an authored preset mounts.

★ 4.1w
codewhale-hq
codewhale-hq/Codewhale

cordis-plugin-development

Use when designing, reviewing, adding, enabling, disabling, installing, configuring, or debugging a plugin, bundle, feature, page, panel, tool, or MCP connection in the current Harness profile, including a shipped plugin that is disabled by default, and for any visual object, decoration, or widget request that names no other destination, which means an installed UI plugin rendered in the Harness Web UI.

★ 4.1w
codewhale-hq
codewhale-hq/Codewhale

cordis-composition-reference

Use when writing or reading a Cordis bundle patch or agent preset for this harness and you need the Loader YAML dialect (insert, override by id, group, disabled, isolate, !!js) or the list of installable Harness plugin packages and what each provides.

★ 4.1w
codewhale-hq
codewhale-hq/Codewhale

agent-experience

Use when writing or changing a model-facing tool definition (name, description, parameter schema, or its system-prompt section), and when designing skills, context loading, or multi-step workflows, to make information discoverable and use context efficiently.

★ 4.1w
codewhale-hq
codewhale-hq/Codewhale

GitHub PR 与议题队列审查

gh-find-prs

以只读方式梳理开放的 Codewhale PR 和议题队列:获取每一项,对照当前代码进行核查,并生成一份包含引用证据和应致谢对象的覆盖度与处置矩阵。

软件开发工程师代码仓库协作管理
★ 4.1w
codewhale-hq
codewhale-hq/Codewhale

GitHub 议题创建

gh-file-issue

用于提交新的 Codewhale GitHub 议题:将 bug 或想法转化为结构良好、可执行的议题,包含复现步骤、验收标准、标签和里程碑。

测试工程师代码仓库协作管理
★ 4.1w