Package Skills, Hooks and MCP Into a Claude Code Plugin
A SKILL.md that turns the skills, subagents, hooks and MCP servers in your .claude folder into an installable Claude Code plugin with a marketplace file, then validates and test-installs it.
Prompt
Installs to .agents/skills/package-skills-hooks-and-mcp-into-a-claude-code-plugin/
mkdir -p .agents/skills/package-skills-hooks-and-mcp-into-a-claude-code-plugin && curl -sL "https://prompts-gpt.com/prompts/package-skills-hooks-and-mcp-into-a-claude-code-plugin/raw" -o .agents/skills/package-skills-hooks-and-mcp-into-a-claude-code-plugin/SKILL.mdExample output
Tips and common edits
Why this works
- It names the two mistakes that most often break a first plugin: hooks.json without its hooks wrapper, and a marketplace entry name that differs from plugin.json.
- Running claude plugin validate and a real install is the acceptance test, so the result is proven to load rather than assumed.
- Moving tokens into a sensitive userConfig option keeps secrets out of a repository the whole team clones.
Save as .claude/skills/plugin-packager/SKILL.md and ask Claude Code to "turn our .claude folder into a plugin". Field names and validate commands checked against the Claude Code plugin docs in Nov 2026; re-run claude plugin validate after any Claude Code update.
Common edits
- Skip the marketplace and load the folder with claude --plugin-dir while you are still changing it.
- Host plugins from other repositories by giving the marketplace entry a github or git-subdir source instead of a relative path.
Reuse it: Use in a workflowAdapt in the builder
Prompt details
- By
- Prompts-GPT editors
- Published
Did this prompt work?
More like this
Block Dangerous Bash Commands: PreToolUse Hook With Tests
A SKILL.md that installs a Claude Code PreToolUse hook blocking rm -rf, force pushes, hard resets and DROP TABLE, plus a test script that proves each pattern blocks or allows.
Create MCP Tool Configuration for Claude Code
Generate a secure, ready-to-use MCP server configuration file for Claude Code to enable local database and observability access safely.
Claude Code Hook Writer: Auto-Run Lint, Typecheck or Tests After Edits
Produces a PostToolUse hook entry for settings.json, the script it calls and a concrete procedure to test that the check runs after file edits.
Rewrite a flat opening into three sharper angles
Turn a predictable opening paragraph into three distinct hooks that pull readers in immediately. Ideal for essays, articles, and newsletters.
Subagent Fan-Out Plan for a Large Codebase Migration
Plans a big migration so an orchestrating agent can split it into independent chunks for parallel subagents, each with a clear brief, a verification command and merge rules.
Short-Form Hook Test Plan for Reels, TikTok, and Shorts
Generates a set of testable hook variants and a measurement plan for a vertical video so a creator can decide which version to publish first and what to learn from results.
- Cut throat-clearing preambles from your drafts
- Write a Blog Intro That Hooks Readers in Under 100 Words
- Write a Full YouTube Video Script with a 15-Second Hook and Re-Hooks
- Write 15 Scroll-Stopping Hooks for One Topic, Grouped by Hook Type
- Agent Tool Names, Descriptions and JSON Schemas from API Docs
- Checkable Guardrail Rules for a Coding Agent: Blocked Commands, Approvals, Secrets and Hooks