/rcc:creating-pluginsfrom rcc
Scaffolds a new Claude Code plugin package with manifest, skills, agents, and marketplace entry. Use when creating a new plugin package.
Ships in rcc. 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.
Creating plugins IS scaffolding a distributable agent engineering package.
A plugin is the distribution unit for agent engineering — it bundles skills, commands, agents, hooks, MCP servers, and LSP configs into a single installable package. Plugins are not just "skill containers" — they can provide complete workflows with automated enforcement (hooks), external tool access (MCP), and language intelligence (LSP).
Core principle: Plugins are reusable across projects. Keep them focused and well-documented.
Follow task initialization protocol.
Tasks:
Announce: "Created 7 tasks. Starting execution..."
Goal: Understand what the plugin should contain.
Questions to ask:
Naming rules:
my-pluginhelper, utils, anthropic, claudeVerification: Can state plugin name and purpose in one sentence.
Goal: Scaffold the plugin directory.
<plugin-name>/
├── .claude-plugin/
│ └── plugin.json # Manifest
├── skills/ # Capabilities (auto-discovered)
│ └── <skill-name>/
│ ├── SKILL.md
│ └── references/ # On-demand loaded docs
├── commands/ # Slash command aliases (auto-discovered)
│ └── <command>.md
├── agents/ # Subagent definitions (auto-discovered)
│ └── <agent>.md
├── hooks/ # Lifecycle hooks (auto-discovered)
│ └── hooks.json
├── .mcp.json # MCP server configs (auto-discovered)
├── .lsp.json # Language server configs (auto-discovered)
└── README.md
In SKILL.md content (substituted at runtime):
| Variable | Purpose |
|---|---|
${CLAUDE_SKILL_DIR} | This skill's directory — use to reference bundled scripts/data regardless of CWD |
${CLAUDE_SESSION_ID} | Current session ID |
$ARGUMENTS / $N | Arguments passed when invoking the skill |
In hooks/hooks.json only — NOT available in SKILL.md content:
| Variable | Purpose |
|---|---|
${CLAUDE_PLUGIN_ROOT} | Plugin install directory (changes on update — do not write here) |
${CLAUDE_PLUGIN_DATA} | Persistent data directory that survives updates (~/.claude/plugins/data/{id}/) |
Skills can also inject live data using shell commands (execute as preprocessing before Claude sees content). See references/plugin-templates.md for exact shell-injection syntax (inline form, plugin-internal file form, multi-line fenced form, and PowerShell setup).
If the plugin includes scripts or hooks: Read cross-platform-scripts.md for mandatory cross-platform rules (paths, shell commands, line endings).
Verification: Directory structure created with all required paths.
Goal: Create the plugin.json manifest file.
Important: Read references/plugin-templates.md for manifest format, required fields, and marketplace structure.
Verification: plugin.json is valid JSON with required fields.
Goal: Create the first skill using the writing-skills workflow.
Important: Invoke the writing-skills skill.
Do not write SKILL.md directly. The writing-skills skill ensures:
Verification: Initial skill created and passes skill-reviewer.
Goal: Document the plugin for users.
Important: Read references/plugin-templates.md for README template.
Verification: README has installation instructions and skill list.
Goal: Plugin root CLAUDE.md lists every file containing this plugin's version string, so Claude can sync them correctly regardless of whether release automation is in place.
Why: Plugin has 3+ version fields (plugin.json, marketplace.json entry, README headers). Release-automation scripts (release-please, semantic-release) fail in various ways — cross-package path limits, marker scope collisions, CI permission issues. CLAUDE.md is authoritative session guidance; when a commit bumps version, Claude reads it and syncs every location. Scripts remain optional — not required by this skill.
Action:
plugin.json, marketplace entry, README headers in both languages)<plugin-root>/CLAUDE.md with a "Version Bump Locations" section listing:
plugin.json → version)fix: → patch, feat: → minor, feat!: / BREAKING CHANGE: → major)feat(plugin-name): for multi-plugin repos)Optional release automation: If the user explicitly asks for release-please / semantic-release, see references/plugin-templates.md for config templates. Do not prompt for it here — it is orthogonal to this task.
Verification: <plugin-root>/CLAUDE.md exists and lists every file containing a version string for this plugin.
Goal: Verify the plugin installs and works correctly.
Install locally:
claude plugin marketplace add <repo-path-or-url>
claude plugin install <plugin-name>@<marketplace-name>
Verify skills are discoverable and load correctly. Clean up: claude plugin uninstall <plugin-name> (or remove). Note: there is no claude plugin add command; the install flow is two-step (marketplace then plugin).
Verification: Plugin installs without errors, skills are discoverable and load correctly.
| Thought | Reality |
|---|---|
| "Add skills later" | Empty plugins are useless. Ship with at least one. |
| "Skip README" | Undocumented plugins don't get used. |
| "Skip testing" | Broken installs frustrate users. Test it. |
| "One big skill" | Multiple focused skills > one bloated skill. |
| "Version later" | Version from day 1. Semantic versioning matters. |
| "Skip plugin CLAUDE.md" | 3+ version fields drift silently. CLAUDE.md is the fallback when automation breaks. |
| "Automation will handle it" | Release-please etc. fail on cross-package paths, marker scopes, CI perms. Document so Claude can recover. |
Once your plugin is ready:
/plugin marketplace add username/repo
/plugin install plugin-name@marketplace-name
What SKILL.md sets; muted values are Claude Code's defaults
23 skills in this plugin
/advising-architectureValidates component-type choices for agent system work, classifying knowledge as CLAUDE.md vs rule vs skill vs agent vs hook and checking for conflicts. Use when starting any skill/agent/rule workflow to validate approach. Use when classifying knowledge type. Use when checking for component conflicts./analyzing-agent-systemsScans project structure and agent system components, runs 11-category weakness analysis, and produces actionable restructuring recommendations. Use when analyzing an existing agent system for weaknesses. Use when user says "analyze agent system", "check agent setup", "audit agent config". Use when called by migrating-agent-systems or refactoring-skills./npx claudepluginhub wayne930242/reflexive-claude-code --plugin rccOther plugins' skills for the same job