/plugin-kit:plugin-module-splitfrom plugin-kit
Splits a large Claude Code or Codex plugin into a small core plus optional modules to reduce startup context and avoid skill omission. Covers marketplace subdirectory sourcing, dependency field behavior, and vendored-skill placement.
Ships in plugin-kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Compression makes each catalog entry cheaper. Splitting changes how many load at all. Reach for a split when the catalog is large enough that users pay for capabilities they never invoke, or when Codex starts omitting skills.
Measure first with agent-auditor. If description bytes are the problem,
compression alone may be enough and costs no install migration.
Cardinality is the case for splitting. Codex allocates roughly two percent of
the selected model's context window to skills — context_window * 2 // 100,
about 5,440 tokens on a 272,000-token model — and that budget is shared across
every installed plugin, not allocated per plugin. A catalog with every
description stripped can still overflow it. Only loading fewer resources helps,
and only when users actually install fewer modules. A core that depends on
everything returns the catalog to its original size.
No second repository is needed. Both marketplaces resolve a plugin from a subdirectory of the marketplace repo.
Claude's marketplace accepts a bare relative path for entries in the same repo,
and git-subdir for another repo:
{ "name": "my-web", "source": "./modules/web-dev" }
{ "name": "my-web", "source": { "source": "git-subdir",
"url": "https://github.com/org/repo.git", "path": "modules/web-dev" } }
Codex uses the object form:
{ "name": "my-web", "source": { "source": "local", "path": "./modules/web-dev" } }
Each module directory carries its own .claude-plugin/plugin.json and
.codex-plugin/plugin.json, exactly as the repo root does. Resources move into
modules rather than being copied, so nothing can drift.
The test for every boundary is whether someone would plausibly install one side without the other. Build the evidence rather than guessing:
# which resources cite each other by name
grep -rhoE '(skill|agent)-name-pattern' skills/ agents/
Resources that cite each other belong together. Resources cited by many others belong in core. Grouping by provenance (all third-party skills in one module) forces users to install two distributions to get one coherent toolset.
plugin.json accepts a dependencies array of plugin names. It installs
correctly, and then the loader skips the plugin silently in any context
where the declared dependency is absent — no error, no warning, just a plugin
whose skills never appear.
Verify this before relying on it: run the module's own eval suite against the module alone. A module that scores zero with every case reporting that nothing applies, and full marks with the field removed, is showing you this behaviour.
Declare a dependency only when the module genuinely cannot function without the other plugin. References that merely recommend another plugin's skills resolve fine for anyone who has both, and cost nothing for anyone who does not.
Four things move with a resource and break quietly if they do not.
Codex agent adapters. Codex resolves custom agents from generated .toml
files, not by walking the plugin. A generator written for a single flat
agents/ directory emits nothing for agents that now live in modules, and those
agents disappear from Codex entirely while Claude keeps working. Teach the
generator the new layout and regenerate:
python3 scripts/codex-agents/generate.py
python3 scripts/codex-agents/generate.py --check
Agent adapter symlinks. An agents/<name>/AGENTS.md symlink pointing at
../<name>.md dangles the moment its target moves. Move the directory with the
agent.
Third-party skills. Marketplaces source a module with git-subdir, which
ships only the module directory and severs everything above it, so a symlink
that points outside the module (for example ../../../.agents/skills/X from
modules/<m>/skills/) dangles after install even though it resolves inside
the monorepo. The vendored copy must live inside the module at
modules/<m>/.agents/skills/X, linked as ../.agents/skills/X (one level up
from skills/ is the module root), with that module's own
skills-lock.json carrying the provenance. Extract the module
alone (git archive HEAD:modules/<m> | tar -x -C <tmp>) and confirm no
symlink dangles; scripts/check-plugin-extraction.py in this repo does that
for every module.
Bundled resources. Anything a desktop app, installer, or script resolves at
a fixed path stays in core. Check for hardcoded skills/<name> paths before
moving a skill.
Every relocated resource invalidates references written against its old
address. Build a rename map from resource name to new plugin, apply it across
every consumer repository, then add a check that fails on any plugin:resource
reference naming something its plugin does not provide. Without that check a
rename outruns its references and the failure only appears when an agent tries
to invoke a name that no longer resolves.
Test fixtures need care. A frozen characterization fixture records the ownership it captured, so a sweep that rewrites its expectations without its data breaks the test. Rewrite the assertion or the fixture, never one silently.
agent-auditor; record the baseline.benchmark-skills.What SKILL.md sets; muted values are Claude Code's defaults
plugin-kit@b-open-io is listed by b-open-io/claude-plugins — review the source before installing
npx claudepluginhub b-open-io/claude-plugins --plugin plugin-kit9 skills in this plugin
/agent-auditorAudit agents and skills across the plugin ecosystem for triggering, structure, progressive disclosure, permissions, and benchmark readiness. Apply for requests to audit agents, review skill quality, check skill health, validate plugin skills, or run periodic authoring maintenance./agent-decommissioningThis skill should be used when the user asks to "retire an agent", "decommission an agent", "remove an agent from the team", "shut down a bot", "remove a bot", "sunset an agent", or "take an agent offline permanently". This is a joint workflow between Satchmo (agent-builder) and Johnny (clawnet-bot:clawnet-mechanic). Satchmo handles plugin/code removal; Johnny handles infrastructure teardown (ClawNet bot, sandbox, BAP identity)./agent-onboardingThis skill should be used when the user asks to "create a new agent", "onboard a new agent", "add an agent to the team", "deploy a new bot", "register an agent with Paperclip", or "add this agent to the roster". Provides the complete end-to-end checklist for bringing a new agent onto the bOpen team — design, write, avatar, plugin, Paperclip registration, roster, and optional ClawNet bot deployment./benchmark-skillsRun skill benchmarks and write evals that score a skill against a no-skill baseline. Use for "benchmark this skill", "run the skill evals", "write an eval for this skill", or "did this skill actually help?"./plugin-settingsThis skill should be used when the user asks to "add plugin settings", "make a plugin configurable", "store per-project plugin configuration", "use settings.local.json", "create a plugin state file", "expose skill settings in Agent Master", or "add a skill interface". Distinguishes official Claude Code settings from project-owned configuration and documents bOpen Agent Master skill interface discovery./publish-requestUse this skill when preparing to publish a package, plugin, or skill and you need human approval first. Invoked when the user says "publish", "release", "ship", or "push to registry" but no approved Linear ticket exists yet. Runs preflight checks, creates or updates a Linear ticket with a structured release plan, moves it to Ready for Review, then stops — it does NOT execute the publish command.Other plugins' skills for the same job