authoring-pluginpack-config
Use when someone wants to ship one set of agent skills/plugins to multiple AI apps (Claude Code, Cursor, Antigravity CLI, GitHub Copilot, OpenAI Codex CLI) from a single source, and needs to create or update a pluginpack.config.ts — choosing targets, source layout, MCP servers, and output directories.
- License 许可
- MIT
- 最近更新
- 2026-11-01
- Stars
- ★ 5
- Forks
- 0
01 前言 Front Matter
- name
- authoring-pluginpack-config
- description
- Use when someone wants to ship one set of agent skills/plugins to multiple AI apps (Claude Code, Cursor, Antigravity CLI, GitHub Copilot, OpenAI Codex CLI) from a single source, and needs to create or update a pluginpack.config.ts — choosing targets, source layout, MCP servers, and output directories.
03 SKILL.md 正文
Authoring a pluginpack config
pluginpack compiles one portable source into each app's native plugin format.
The config (pluginpack.config.ts) declares the source layout and the targets
to emit.
Fastest start
npx @gleanwork/pluginpack init scaffolds a pluginpack.config.ts and an
example source plugin. Then edit to taste.
Config shape
import { defineConfig } from "@gleanwork/pluginpack";
export default defineConfig({
name: "acme-plugins",
version: "0.1.0",
source: {
// Recommended: portable skills at the repo-level skills/ directory.
skills: "skills",
rootPlugin: { id: "core", description: "Acme portable skills." },
// Alternatively, richer source plugins live under plugins/<id>/.
// plugins: "plugins",
},
metadata: {
description: "Acme agent plugins.",
author: { name: "Acme" },
owner: { name: "Acme", email: "support@acme.com" },
license: "MIT",
},
targets: {
cursor: {
outDir: ".",
plugins: {
acme: {
from: ["core"],
path: "plugins/cursor/acme",
components: ["skills"],
},
},
},
claude: {
outDir: ".",
pluginRoot: "plugins/claude",
plugins: { acme: { from: ["core"] } },
},
antigravity: {
outDir: "plugins/antigravity",
plugins: { acme: { from: ["core"] } },
},
copilot: {
outDir: "plugins/copilot",
plugins: { acme: { from: ["core"] } },
},
codex: {
outDir: "plugins/codex",
plugins: { acme: { from: ["core"] } },
},
},
});
source.skillsis the portable surface;source.rootPlugin.idis the source plugin name targets reference viafrom.- Each emitted plugin's
fromlists the source plugin id(s) to include; multiple ids merge (a colliding file path is an error). path/pluginRootcontrol where a target places the emitted plugin.
Critical: avoid output collisions
claude and copilot both write .claude-plugin/marketplace.json, so they
cannot share an outDir. Give them distinct roots (e.g. claude at ., copilot
at plugins/copilot). pluginpack build errors on overlapping output paths.
MCP servers
Add a .mcp.json ({ "mcpServers": { "name": { ... } } }) at the source plugin
root, or an mcpServers key in plugin.pluginpack.json. pluginpack renders it
into each target's MCP dialect (plugin-root variable names and transport labels),
so author it once. Don't add a per-target copy just to change
${CLAUDE_PLUGIN_ROOT}.
Agent Plugins
codex emits Agent Plugins packages
(root plugin.json + mcp.json). Codex-only manifest fields such as
interface move under extensions["com.openai"] automatically. Set
format: "legacy" on the codex target only to keep the old
.codex-plugin/plugin.json layout for Codex releases older than 0.147.0.
format: "legacy" is deprecated in 0.12 and will be removed in 0.13. The agent-plugins target emits
portable packages. Without clients it writes no marketplace and can't include
agents, commands, rules, or hooks. With clients: { codex: {}, copilot: {} } it builds each package once and writes each client's marketplace. Listing
copilot allows agents, which go to com.github.copilot/agents/NAME.agent.md;
pluginpack doesn't place commands, rules, or hooks for any client yet.
The target-level manifest and per-plugin entry are errors on this target;
use clients.<client>.manifest and plugins.<name>.clients.<client>.entry. Put client manifest data
under manifest.extensions["<namespace>"], and Codex policy/category under
plugins.<name>.clients.codex.entry. Skill names must be lowercase letters,
digits, and hyphens and match their directory, or Agent Plugins clients skip
them.
Verify
After editing: pluginpack build then pluginpack validate --target <t>. See
the build-and-verify skill.
04 同仓库更多 Skills
release-notes
Draft release notes from a list of changes.
release-notes
Draft release notes from a list of changes.
release-notes
Draft release notes from a list of changes.
release-notes
Draft release notes from a list of changes.
release-notes
Draft release notes from a list of changes.
release-notes
Draft release notes from a list of changes.