Skip to content

Add Claude Code and Codex plugin support#12

Merged
shinpr merged 1 commit into
mainfrom
feat/plugin-support
May 15, 2026
Merged

Add Claude Code and Codex plugin support#12
shinpr merged 1 commit into
mainfrom
feat/plugin-support

Conversation

@shinpr

@shinpr shinpr commented May 15, 2026

Copy link
Copy Markdown
Owner

Summary

  • Package sub-agents as an installable plugin for Claude Code and Codex, in addition to keeping the existing install.sh flow for other Agent Skills clients (Cursor, Gemini, VS Code).
  • Plugin name: runner · Marketplace name: sub-agents-skills · Skill name: sub-agents. Invocation becomes /runner:sub-agents (Claude Code) and $sub-agents (Codex).
  • Bump version to 0.4.0 (minor) to reflect the new distribution surface.

Files Added

Path Purpose
.claude-plugin/plugin.json Claude Code per-plugin manifest
.claude-plugin/marketplace.json Claude Code marketplace (single-plugin, source: "./")
.codex-plugin/plugin.json Codex per-plugin manifest (interface metadata, skills: "./skills/")
.agents/plugins/marketplace.json Codex marketplace (local source)
skills/sub-agents/agents/openai.yaml Codex per-skill interface + implicit-invocation policy

Files Modified

  • README.md — Install section restructured into three blocks (Claude Code plugin / Codex plugin / other clients via install.sh); Claude Code / Codex / Agent Skills badges added.
  • pyproject.toml — version 0.3.10.4.0.

Design Notes

  • Single-plugin = repo-root pattern (à la linear-prism) chosen over the multi-plugin marketplace pattern (à la galley) because this repo ships exactly one skill. Both marketplace manifests point source at ./.
  • Skill location unchanged at skills/sub-agents/SKILL.md — both Claude and Codex auto-discover it. The existing install.sh path keeps working; plugin support is purely additive.
  • short_description in openai.yaml is intentionally shorter than the SKILL.md frontmatter description. Per OpenAI Codex docs the field is user-facing UI text shown in the plugin picker; the SKILL.md frontmatter remains the primary progressive-disclosure trigger.

Validation

Platform Command Result
Claude Code 2.1.142 claude plugin validate . passes (marketplace)
Claude Code 2.1.142 claude plugin validate .claude-plugin/plugin.json passes (plugin)
Codex CLI 0.130.0 codex plugin marketplace add . accepted (manifest valid); cleaned up afterwards

Test Plan

  • /plugin marketplace add shinpr/sub-agents-skills then /plugin install runner@sub-agents-skills in Claude Code; verify /runner:sub-agents invocation works
  • codex plugin marketplace add shinpr/sub-agents-skills then install Runner from the /plugins picker; verify \$sub-agents invocation works
  • ./install.sh --target ~/.cursor/skills still installs the skill into Cursor as before
  • Existing tests still pass

🤖 Generated with Claude Code

Package the sub-agents skill as an installable plugin for both Claude Code and
Codex, in addition to the existing install.sh path for other Agent Skills
clients.

- .claude-plugin/{plugin.json,marketplace.json}: Claude Code plugin and
  single-plugin marketplace manifests (source: "./")
- .codex-plugin/plugin.json: Codex per-plugin manifest with skills pointer and
  interface metadata (displayName, descriptions, default prompts)
- .agents/plugins/marketplace.json: Codex marketplace (local source)
- skills/sub-agents/agents/openai.yaml: Codex per-skill interface metadata and
  implicit-invocation policy
- README: install section split into Claude Code (plugin), Codex (plugin), and
  other clients (install.sh) blocks; Claude Code / Codex / Agent Skills badges
- pyproject.toml: bump version to 0.4.0

Plugin name is "runner", marketplace name is "sub-agents-skills" (matching the
repo), skill name stays "sub-agents". Invocation becomes /runner:sub-agents on
Claude Code and \$sub-agents on Codex.

Validated with `claude plugin validate` and `codex plugin marketplace add`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@shinpr shinpr self-assigned this May 15, 2026
@shinpr shinpr merged commit e9981a5 into main May 15, 2026
4 checks passed
@shinpr shinpr deleted the feat/plugin-support branch May 15, 2026 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant