mcpField
M
meta-plugin-creator

meta-plugin-creator

github.com/oakossAgent workflows2093 installsUpdated 10w ago
Repository

About meta-plugin-creator

meta-plugin-creator is a skill for building Claude Code plugins, aimed at developers who package and distribute agent capabilities. It covers manifests, component layout, validation, installation, and bundling MCP servers.

Key features

  1. 01Define plugin manifests and directory structure
  2. 02Organize skills, agents, commands, and hooks
  3. 03Configure MCP and LSP servers in plugins
  4. 04Validate plugins and choose install scopes

Use cases

  1. 01Share reusable capabilities across teams
  2. 02Package MCP servers with skills for distribution

MCP support

Explains how to configure MCP servers in Claude Code plugins through `.mcp.json`; they are discovered when the plugin is enabled.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/oakoss/agent-skills --skill meta-plugin-creator

After installing, type/meta-plugin-creatorin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
components.md
distribution.md
plugin-anatomy.md
scripts/
validate-plugin.py

Details

From the project README

Plugin Creator

Overview

Plugins are shareable packages that bundle skills, agents, commands, hooks, MCP servers, and LSP servers into installable units for Claude Code. A plugin requires only a .claude-plugin/plugin.json manifest at minimum; all other components are optional and auto-discovered from conventional directories at the plugin root.

When to use: Sharing functionality across projects or teams, distributing through marketplaces, versioning reusable agent capabilities, bundling MCP servers with skills.

When NOT to use: Single-project customizations (use .claude/ directory instead), quick experiments before packaging, personal workflows that do not need distribution.

Quick Reference

ComponentLocationFormatDiscovery
Manifest.claude-plugin/plugin.jsonJSONRequired
Skillsskills/*/SKILL.mdMarkdown + YAMLAuto by context
Commandscommands/*.mdMarkdown + YAMLAuto, namespaced
Agentsagents/*.mdMarkdown + YAMLAuto, /agents UI
Hookshooks/hooks.jsonJSONAuto on events
MCP servers.mcp.jsonJSONAuto on enable
LSP servers.lsp.jsonJSONAuto on enable
Output stylesCustom pathPer configVia manifest
Plugin env var${CLAUDE_PLUGIN_ROOT}Absolute pathAll configs/scripts
Project env${CLAUDE_PROJECT_DIR}Absolute pathAll configs/scripts
CLI test flag--plugin-dir ./my-pluginLocal devManual load
CLI validateclaude plugin validate .Local devManual check
Install scope--scope user|project|localCLI flagPer install

Common Mistakes

MistakeCorrect Pattern
Placing components inside .claude-plugin/Only plugin.json goes in .claude-plugin/; components at plugin root
Using absolute paths in configsUse ${CLAUDE_PLUGIN_ROOT} for all plugin file references
Missing plugin.json manifestCreate .claude-plugin/plugin.json with at least a name field
Path traversal with ../Keep all files inside the plugin directory
Non-executable hook scriptsRun chmod +x on all scripts referenced by hooks
Forgetting namespacingPlugin skills are invoked as /plugin-name:skill-name
Inline hooks missing event casingEvent names are case-sensitive: PostToolUse, not postToolUse
Expecting custom paths to replace defaultsCustom component paths supplement default directories, not replace them

Delegation

  • Plugin component creation: Build skills, agents, and commands following their respective standards
  • Pattern discovery: Use Explore agent to find existing plugin patterns in the codebase
  • Code review: Use Task agent for plugin structure validation

If the meta-skill-creator skill is available, delegate skill authoring within plugins to it. Otherwise, recommend: npx skills add oakoss/agent-skills --skill meta-skill-creator

References

Comments

Markdown supported