Skip to the content.

Claude Plugins Marketplace: Free Claude Code Plugins and a Guide to Building Your Own

A small Claude Code plugin marketplace with four useful, tested plugins (a bash safety guard, commit and pull request writing skills, a work log with standup summaries, and a test gate), plus a complete, practical guide to creating Claude Code plugins and hosting your own marketplace: plugin.json, skills, slash commands, subagents, hooks, MCP servers, ${CLAUDE_PLUGIN_ROOT}, validation, versioning and team rollout.

It is for developers who use Claude Code and want either ready-made plugins or a working template to start their own.

Last reviewed: December 2026, against the Claude Code plugin docs. The plugin system changes often; when this README and the docs disagree, the docs win.

Contents

Install the marketplace

From your shell:

claude plugin marketplace add Ralpberry-Labs/claude-plugins-marketplace
claude plugin install bash-guard@ralpberry-plugins
claude plugin install commit-craft@ralpberry-plugins
claude plugin install work-log@ralpberry-plugins
claude plugin install test-gate@ralpberry-plugins

Or inside a Claude Code session:

/plugin marketplace add Ralpberry-Labs/claude-plugins-marketplace
/plugin

/plugin opens the plugin manager, where you can browse the marketplace, install, enable, disable and uninstall. After installing during a session, run /reload-plugins (or start a new session) to load the new components.

The install id is always <plugin-name>@<marketplace-name>. This marketplace is named ralpberry-plugins.

The plugins

Plugin Type What it does
bash-guard Hook Denies destructive shell commands before they run; per-project extra rules
commit-craft Skills /commit-craft:commit and /commit-craft:pr-description from the real diff
work-log Hook + skill Logs what Claude finished each turn (privately) and writes your standup
test-gate Hook + agent Runs tests before Claude ends a turn that changed code; read-only test-fixer subagent

All scripts are Python 3 standard library only. They are tested in tests/.

bash-guard

A PreToolUse hook on the Bash tool. It returns a deny decision, with a reason Claude can read, for commands that are almost never what you meant:

Rule id Blocks
rm-root rm -rf /, rm -rf ~, rm -rf $HOME
force-push git push --force / -f (use --force-with-lease)
push-main-force any force-push mentioning main or master
reset-hard-remote git reset --hard origin/main
git-clean-force git clean -f...
pipe-to-shell curl ... \| sh, wget ... \| bash
chmod-777 world-writable permissions
raw-disk-write dd ... of=/dev/...
mkfs creating filesystems
sql-drop DROP DATABASE/SCHEMA/TABLE, TRUNCATE TABLE

Per-project rules. Create .claude/bash-guard.json in your repo:

{
  "deny": [{ "pattern": "\\bterraform\\s+destroy\\b", "reason": "Destroy only runs from the pipeline." }],
  "ask":  [{ "pattern": "\\bkubectl\\s+delete\\b", "reason": "Deleting cluster resources." }],
  "disable": ["chmod-777"]
}

deny blocks, ask forces a permission prompt even when an allow rule would have approved the command, and disable turns off built-in rules by id. Patterns are Python regular expressions (escape backslashes in JSON).

Limits. Pattern matching on command text is a guard rail, not a sandbox. bash -c "$(echo cm0gLXJmIC8= | base64 -d)" will get past it. For hard isolation, combine it with Claude Code’s permission rules and sandboxing.

commit-craft

Two skills:

Both are also picked up automatically when you say things like “write the commit” or “draft the PR description”.

work-log

A Stop hook appends one line per finished turn to a private log: timestamp, the first meaningful line of Claude’s final message, and the files that are currently modified. Logs are stored in the plugin’s data directory (${CLAUDE_PLUGIN_DATA}/logs/), never in your repository, one file per project.

Then:

/work-log:standup

produces:

Yesterday:
- Added retry with backoff to the webhook sender
- Fixed the flaky login test (timezone-dependent fixture)
Today:
- Finish the rate limiter PR review comments
Blockers:
- None

It merges log entries with your own commits from git log, describes outcomes rather than activity, and asks you instead of inventing anything when the log is empty. Pass a number for a longer window: /work-log:standup 3.

test-gate

A Stop hook. When Claude tries to end a turn and code files have changed (per git status), it runs your test command. If tests fail, it blocks the stop with the last 60 lines of output, so Claude keeps working on the failure. It does nothing on turns that did not touch code, so questions stay fast.

The test command is auto-detected (npm/pnpm/yarn/bun test, pytest, go test ./..., cargo test, make test) or set in .claude/test-gate.json:

{ "command": "pytest -q -x tests/unit", "timeout": 300, "enabled": true }

Loop protection: when Claude is already continuing because of a stop hook (stop_hook_active), the gate lets it stop; Claude Code also caps consecutive stop-hook continuations. Keep the command fast; a unit-test subset is usually right.

The plugin also ships a test-fixer subagent: read-only tools, diagnoses each failure (test wrong or code wrong?), checks git diff for the cause, and proposes the smallest fix with a confidence level.


Build your own plugin

A plugin is a folder that bundles Claude Code extensions so they can be installed, versioned and shared as one unit. If you already have skills in .claude/skills/, hooks in settings.json or agents in .claude/agents/, a plugin is the way to give them to other people.

What a plugin can contain

Component Default location What it is
Manifest .claude-plugin/plugin.json Name, version, metadata. Optional but recommended
Skills skills/<name>/SKILL.md Instructions Claude loads when relevant; also /plugin-name:skill-name commands
Commands commands/*.md Older flat command files; prefer skills for new plugins
Agents agents/*.md Subagents with their own prompt, tools and model
Hooks hooks/hooks.json Lifecycle hooks (PreToolUse, PostToolUse, Stop, SessionStart, …)
MCP servers .mcp.json Tools from MCP servers that start with the plugin
LSP servers .lsp.json Language servers for code intelligence
Output styles output-styles/ Alternative response styles
Executables bin/ Added to the Bash tool’s PATH while the plugin is enabled

Everything except the manifest goes at the plugin root, not inside .claude-plugin/. That is the most common mistake.

A CLAUDE.md at the plugin root is not loaded as context. Put always-relevant instructions in a skill instead.

Step by step: your first plugin

Copy the starter in templates/starter-plugin/ or build it by hand:

1. Create the layout

mkdir -p my-plugin/.claude-plugin my-plugin/skills/hello my-plugin/hooks

2. Write the manifest (my-plugin/.claude-plugin/plugin.json)

{
  "name": "my-plugin",
  "version": "0.1.0",
  "description": "One sentence about what this plugin does.",
  "author": { "name": "Your Name" },
  "license": "MIT"
}

3. Add a skill (my-plugin/skills/hello/SKILL.md)

---
name: hello
description: Greets the user and lists what this plugin can do. Use when the user asks what my-plugin does.
---

Say hello, then list this plugin's skills and hooks in one short paragraph.

4. Add a hook (my-plugin/hooks/hooks.json). Note the top-level "hooks" wrapper; a file without it fails to load.

{
  "hooks": {
    "SessionStart": [
      {
        "matcher": "startup",
        "hooks": [{ "type": "command", "command": "echo 'my-plugin is active.'" }]
      }
    ]
  }
}

5. Validate

claude plugin validate ./my-plugin

6. Try it without installing

claude --plugin-dir ./my-plugin

Then run /my-plugin:hello. Edit files and run /reload-plugins to pick up changes without restarting.

7. Share it by putting it in a marketplace (next sections), or by sending the folder or a .zip to someone who loads it with --plugin-dir.

plugin.json reference (the fields you will use)

Field Notes
name Required. Kebab-case. Every component is namespaced under it (my-plugin:hello). Names starting with claude-, anthropic- or cc-plugin-, and names that pass as official Anthropic plugins, are reserved and rejected by claude plugin validate
version A version string. If set, users stay on that version until you change it (see Versioning)
description One line shown in /plugin
author Object with name (required), optional email, url
homepage, repository, license, keywords Metadata for people browsing
skills Extra skill directories, added to the default skills/
commands, agents, outputStyles Custom paths that replace the default folder
hooks, mcpServers, lspServers Extra files or inline config, merged with the defaults
userConfig Values Claude Code prompts the user for when the plugin is enabled (API endpoints, tokens). Sensitive values go to the OS credential store
dependencies Other plugins that must be enabled for this one to work

All component paths are relative to the plugin root and must start with ./. Paths may not escape the plugin directory.

Newer fields such as displayName, engines and network are only understood by recent Claude Code versions; older versions reject unknown keys in the manifest. Leave them out unless you need them, and run claude plugin validate on the oldest Claude Code version you want to support.

Writing plugin hooks

Plugin hooks use the same events, matchers, JSON input and outputs as hooks in settings.json. The differences:

Hook output cheat sheet:

You want to Do
Allow silently exit 0, print nothing
Block a tool call with a reason print {"hookSpecificOutput": {"hookEventName": "PreToolUse", "permissionDecision": "deny", "permissionDecisionReason": "..."}}, or exit 2 with the reason on stderr
Force a permission prompt same, with "permissionDecision": "ask"
Add context for Claude SessionStart / UserPromptSubmit: print plain text. Others: hookSpecificOutput.additionalContext
Keep Claude working at Stop print {"decision": "block", "reason": "..."}; check stop_hook_active to avoid loops
Warn the user {"systemMessage": "..."}

Exit code 1 is a non-blocking error: the action still happens. If your hook enforces a policy, never rely on exit 1.

Write hooks defensively: tolerate malformed input, set a timeout, never print secrets, and stay fast (a PreToolUse hook runs before every matching tool call).

Plugin skills, commands and agents

Keep skill descriptions specific. Every enabled plugin adds its descriptions to Claude’s context, and vague descriptions trigger at the wrong times.

Bundling an MCP server

Put a .mcp.json at the plugin root:

{
  "mcpServers": {
    "inventory": {
      "command": "node",
      "args": ["${CLAUDE_PLUGIN_ROOT}/server/index.js"],
      "env": { "INVENTORY_URL": "${user_config.inventory_url}" }
    }
  }
}

and declare the option in plugin.json so users are prompted for it:

{
  "userConfig": {
    "inventory_url": {
      "type": "string",
      "title": "Inventory API URL",
      "description": "Base URL of your inventory service"
    }
  }
}

The tools then show up as mcp__plugin_<plugin-name>_<server-name>__<tool>. Use that full name in permission rules and hook matchers.

For dependencies such as node_modules, install them into ${CLAUDE_PLUGIN_DATA} (it survives plugin updates), not into ${CLAUDE_PLUGIN_ROOT} (replaced on every update).

Paths and environment variables

Variable Points to Use for
${CLAUDE_PLUGIN_ROOT} The installed copy of this plugin version Bundled scripts, configs, binaries. Read-only in practice
${CLAUDE_PLUGIN_DATA} ~/.claude/plugins/data/<id>/, kept across updates Caches, logs, installed dependencies
${CLAUDE_PROJECT_DIR} The project root of the current session Reading project config such as .claude/bash-guard.json

These are not set for commands Claude runs through the Bash tool, only for hooks, MCP/LSP servers and inside skill/agent content.


Create and host a marketplace

A marketplace is a git repository (or folder, or URL) with .claude-plugin/marketplace.json listing plugins and where to fetch them. This repository is one; see .claude-plugin/marketplace.json.

Minimal file:

{
  "name": "acme-tools",
  "owner": { "name": "Acme Platform Team" },
  "plugins": [
    {
      "name": "deploy-helper",
      "source": "./plugins/deploy-helper",
      "description": "Deploy and rollback skills for Acme services"
    }
  ]
}

Rules that save hours:

  1. name, owner and plugins are required. Each entry needs name and source.
  2. Relative source paths start at the marketplace root (the folder that contains .claude-plugin/) and must not use ...
  3. Keep the entry name identical to the plugin’s own plugin.json name.
  4. Pick a distinctive marketplace name; users cannot add two marketplaces with the same name, and official Anthropic marketplace names are reserved.

Plugin sources other than relative paths:

Source Example
Its own GitHub repo { "source": "github", "repo": "acme/deploy-helper" }
A folder in another repo { "source": "git-subdir", "url": "acme/monorepo", "path": "tools/deploy-helper" }
Any git URL { "source": "url", "url": "https://gitlab.example.com/acme/deploy-helper.git" }
Also supported archive (zip over HTTPS), npm, command

Git-based sources can be pinned with ref (branch or tag) or sha.

Test locally before you push:

claude plugin validate ./my-marketplace
claude plugin marketplace add ./my-marketplace
claude plugin install deploy-helper@acme-tools
claude plugin list

Then push to GitHub; users run claude plugin marketplace add <owner>/<repo>. For other git hosts, give the full clone URL. A bare marketplace.json URL also works, but then every entry needs a source that can be fetched on its own (relative paths fail).

Versioning and updates

Users receive a new copy of a plugin only when its version changes:

Users update with /plugin marketplace update <marketplace> in a session or claude plugin update <plugin>@<marketplace> in the shell. Background auto-update is off by default and is turned on per marketplace under Marketplaces in /plugin, or by an admin in managed settings.

Renaming a plugin breaks existing installs unless you add a renames map to marketplace.json ({"old-name": "new-name"}, or null for removed plugins). To change only the label people see, change displayName (on recent versions) and keep name.

Roll out to a team

Testing and debugging plugins

Problem What to try
Manifest errors claude plugin validate <dir>; add --strict in CI on recent versions to fail on warnings
Plugin installed but nothing happens /plugin > Errors tab; /reload-plugins; check components are at the plugin root, not in .claude-plugin/
Hook does not fire /hooks to see loaded hooks; claude --debug; confirm the matcher (Bash, Edit|Write)
Hook script errors Pipe sample JSON into it by hand: echo '{"tool_name":"Bash","tool_input":{"command":"ls"}}' \| python3 scripts/bash_guard.py
Skill not offered Check /skills; the description must describe when to use it
“Plugin not found in marketplace” Entry name differs from what users typed, or a rename without a renames map
Works locally, fails for users A relative source in a URL-hosted marketplace, a missing file excluded by .gitignore, or files in Git LFS (clones skip LFS content)
Plugin is broken and blocks your session Start with claude --safe-mode to disable all customizations, then fix or disable it

Unit-test your hook scripts the same way this repo does: call the decision function directly, and run the script as a subprocess with JSON on stdin.

python3 -m unittest discover -s tests -v

Plugin vs project configuration

  Project .claude/ folder Plugin
Scope One repository Any project where it is enabled
Distribution Committed with the code Marketplace install, versioned
Naming /skill-name /plugin-name:skill-name (no collisions)
Updates With each commit When the plugin version changes
Enable/disable as a unit No Yes
Best for Repo-specific skills, hooks and settings Reusable tooling shared across repos and teams

Start in .claude/ while you iterate, then move the pieces into a plugin when a second repository wants them.

Design checklist for good plugins

Repository layout

.claude-plugin/marketplace.json      the marketplace catalog
plugins/
  bash-guard/    .claude-plugin/plugin.json, hooks/hooks.json, scripts/bash_guard.py
  commit-craft/  .claude-plugin/plugin.json, skills/commit/, skills/pr-description/
  work-log/      .claude-plugin/plugin.json, hooks/hooks.json, scripts/work_log.py, skills/standup/
  test-gate/     .claude-plugin/plugin.json, hooks/hooks.json, scripts/test_gate.py, agents/test-fixer.md
templates/starter-plugin/            copy this to start your own
tests/test_plugins.py                unit and end-to-end tests (stdlib only)

FAQ

What is a Claude Code plugin? A folder (usually a git repository) that bundles skills, subagents, hooks, MCP servers, LSP servers and other extensions with a .claude-plugin/plugin.json manifest, so they can be installed, versioned and enabled or disabled as one unit.

Plugin vs marketplace? A plugin is the bundle. A marketplace is a catalog (.claude-plugin/marketplace.json) that lists plugins and where to fetch them. This repository is both: a marketplace containing four plugins.

How do I update installed plugins? /plugin marketplace update ralpberry-plugins in a session or claude plugin update <plugin>@ralpberry-plugins in the shell. Turn on auto-update for the marketplace under Marketplaces in /plugin.

Are plugins safe? Plugins can run code (hooks, MCP servers, scripts) with your permissions. Read a plugin’s hooks and scripts before installing it, prefer marketplaces you trust, and keep plugins you do not use disabled.

Can a plugin add an MCP server? Yes, with a .mcp.json at the plugin root or mcpServers in plugin.json. Its tools are named mcp__plugin_<plugin>_<server>__<tool>.

Why can I not name my plugin claude-something? Names starting with claude-, anthropic- or cc-plugin- (and names that pass as official Anthropic plugins) are reserved; claude plugin validate rejects them.

Do plugins work in the GitHub Action? Yes. anthropics/claude-code-action@v1 accepts plugin_marketplaces and plugins inputs; invoke plugin skills in the prompt as /plugin-name:skill-name.

How do I disable one plugin temporarily? /plugin > Installed > disable, or claude plugin disable <name>@<marketplace>. claude --safe-mode starts with all customizations off.

Where to go next

Contributing

PRs are welcome: bug fixes, new bash-guard rules with tests, better test-command detection, or a new small plugin that does one thing well. Every plugin must pass claude plugin validate, every script needs tests that run with the Python standard library, and docs should match the current Claude Code behavior. Please keep claims accurate and link to the official docs for anything version-specific.

If this helped you, a star helps others find it.

More free resources

Part of the Ralpberry Labs open-source collection. See also Top 100 Open Source.