/mcook-plugin-builder:build-mcook-pluginfrom mcook-plugin-builder
Builds, ports, updates, or reviews plugins for the Myles Codex Plugins marketplace, including portable Agent Plugins 1.0.0 packages, OpenAI-native plugin packages, dual-format compatibility, and MCP 2026-07-28 readiness. Use when creating a reusable marketplace plugin or skill, adapting an external plugin, adding portable plugin.json or mcp.json files, reviewing MCP protocol compatibility, or preparing a plugin for validation and private release.
Ships in mcook-plugin-builder. 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.
Read when SKILL.md points to them; scripts run unread.
Build the smallest installable package that makes a reusable workflow easier to discover and apply. Keep one-off constraints in the task or AGENTS.md; use a skill for reusable procedure; package it when it belongs in this marketplace.
AGENTS.md, .agents/plugins/marketplace.json, the existing package, and the closest comparable plugin.plugin.json, fixed skills/, and optional root mcp.json..codex-plugin/plugin.json and optional .mcp.json, .app.json, or hooks.extensions.com.openai and the OpenAI compatibility files actually needed.2026-07-28, or dual-protocol. Package format never proves wire-protocol compatibility.Require Agent Plugins conformance for releases in this marketplace. Use a portable core plus OpenAI compatibility when the reusable components are Agent Skills or MCP servers. Select or retain an OpenAI-native-only package only through the documented exception in the release gate, including during a narrow fix.
$plugin-creator for the current OpenAI manifest and ingestion contract and $openai-docs for current Codex behavior, OpenAI packaging, or publication. Resolve those skill roots from the active catalog; never hard-code a home directory.$build-chatgpt-app with $openai-docs. For public submission, use $chatgpt-app-submission after implementation. Those workflows do not replace portable or marketplace validation.Place the package at the repository root. A portable-plus-OpenAI package normally looks like:
plugin-name/
├── plugin.json
├── .codex-plugin/plugin.json
├── skills/skill-name/
│ ├── SKILL.md
│ └── agents/openai.yaml
├── mcp.json
├── README.md
├── CHANGELOG.md
└── LICENSE
skills or mcpServers paths to root plugin.json.$schema identifiers in root plugin.json and mcp.json. Keep their specification versions matched.extensions.com.openai. Keep .codex-plugin/plugin.json for this marketplace's OpenAI compatibility; do not let it override portable identity or component locations.command token and separate args. Prefer uv for Python packages, ${PLUGIN_ROOT} for bundled read-only files, and ${PLUGIN_DATA} for virtual environments, caches, generated content, and other writable state. Do not embed credentials in env or headers..mcp.json only for explicit pre-portable OpenAI compatibility. Add .app.json or hooks only for real OpenAI-specific behavior.SKILL.md concise frontmatter with precise triggers. State inputs, workflow, result shape, and facts the agent must not infer. Keep the body procedural and under 500 lines.$name or /name"). When a step truly differs by host, put it in a short labeled per-host note and give the generic path first. Keep host-specific wiring in the host's manifest layer.agents/openai.yaml from the completed skill with skill-creator. Declare only real MCP dependencies.ATTRIBUTION.md only when external material requires it.The canonical catalog is .agents/plugins/marketplace.json. Append one entry without reordering existing plugins:
{
"name": "plugin-name",
"source": {
"source": "local",
"path": "./plugin-name"
},
"policy": {
"installation": "AVAILABLE",
"authentication": "ON_INSTALL"
},
"category": "Developer Tools"
}
The local source path is relative to the marketplace root, not the JSON file, and must remain inside that root. Preserve the catalog name and display name. For reviewed external packages, use the documented git-subdir or repository-root url source with a credential-free HTTPS GitHub repository URL and exactly one full 40-character commit ref or sha. Do not copy an external native package merely to make it portable. Validate catalog metadata with uv run <builder-skill-root>/scripts/validate_agent_plugin.py --marketplace-entry <name> --marketplace .agents/plugins/marketplace.json --marketplace-root .; this mode never fetches or executes the package and does not validate its contents. Separately inspect the pinned source and verify a fresh isolated installation, manifest/discovery, licenses and installed-byte identity before migrating a live installation. Keep Codex-to-Claude advisor packages out of the Claude catalog.
Append {"name": "plugin-name", "source": "./plugin-name"} to .cursor-plugin/marketplace.json for each local package meant for Cursor, including every package in the Claude catalog.
To also ship a package to Claude and Factory Droid, add .claude-plugin/plugin.json (same name, version, description as the portable manifest) and append matching entries to .claude-plugin/marketplace.json and .factory-plugin/marketplace.json. The Factory entry repeats the Claude entry's name, description, source, and category; Droid translates the .claude-plugin/ layout at install time.
Droid ignores components declared inside plugin.json. When the Claude manifest declares inline mcpServers, add an identical root .mcp.json (types stdio, http, or sse; ${CLAUDE_PLUGIN_ROOT} for bundled files). For each manifest agents path, add droids/<name>.md with the same body and Droid frontmatter: model: inherit, and tools listing only Droid tool IDs (Read, LS, Grep, Glob, Create, Edit, Execute, WebSearch, FetchUrl) or omitted. Exclude packages with top-level bin/ or Codex-only hooks from both catalogs. Validate with claude plugin validate <plugin-name> and uv run --with pyyaml==6.0.3 python -m unittest discover -s scripts/tests -p 'test_*_marketplace.py'.
Resolve <builder-skill-root>, <skill-creator-root>, and <plugin-creator-root> from the active skill catalog. Run only the checks applicable to the chosen targets:
uv run <builder-skill-root>/scripts/validate_agent_plugin.py plugin-name --marketplace .agents/plugins/marketplace.json --marketplace-root . --require-openai-overlay
uv run --with pyyaml==6.0.3 <skill-creator-root>/scripts/quick_validate.py plugin-name/skills/skill-name
uv run --with pyyaml==6.0.3 <plugin-creator-root>/scripts/validate_plugin.py plugin-name
git diff --check
git status --short
--require-openai-overlay for portable-only packages.<name>/ source packages and Codex's <name>/<version>/ cache layout; marketplace mapping arguments apply only to source packages.2026-07-28.Before any release, satisfy one of these two paths and record the validation commands and results for the exact release candidate:
Native-only exception section to the plugin README before release. For an external package, use repository-owned documentation linked from its marketplace documentation. Record the concrete client limitation or required capability that prevents a conforming package, why a portable core plus client extensions is insufficient, affected components and supported clients, tested client versions, and reproducible evidence with expected and observed behavior. Record the native validation and runtime checks that pass, their material gaps, and the condition for reconsidering portability. Existing native packaging, convenience, or a failing portable check alone is insufficient justification. Label the package native-only and make no Agent Plugins conformance claim.An undocumented or unsupported exception blocks release. A native-only exception does not waive applicable skill, client, marketplace, security, or runtime checks, or authorize release actions.
main, upgrade mcook-plugins-local, verify visibility, and reinstall only when requested. Start a new task before testing the installed skill.agents/openai.yaml (opens in a new tab)references/mcp-2026-07-28.md (opens in a new tab)references/package-targets.md (opens in a new tab)references/schemas/1.0.0/mcp.schema.json (opens in a new tab)references/schemas/1.0.0/plugin.schema.json (opens in a new tab)scripts/validate_agent_plugin.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub mylesmcook/mcook-plugins --plugin mcook-plugin-builder