How I Vet a Claude Code Skill or Plugin Before It Runs
What I read before a Claude Code skill or plugin runs: a table of files, red flags and the managed setting that enforces each check, plus a real review.
In this post
TL;DR: A Claude Code skill or plugin is third-party code and instructions running inside your agent with your user’s privileges. Before one runs, I now open the manifest, every hooks file, every MCP config and every skill file, and I look for specific red flags. The table below pairs each artifact with what to read, what worries me, and the managed setting that enforces the check for a team. On November 21 I reviewed a popular open-source SEO skill pack and installed nothing. My Claude Code setup on my main Linux machine holds 13 plugins and 812 script files I haven’t read line by line. Docs checked 2026-11-21.
On November 21 I reviewed a skill pack with about 1,700 GitHub stars, because it had ideas I wanted for this site, like an internal link graph. This post is what I did instead of installing it, and the checklist I now use for anything that wants to run inside my agent.
A plugin is a package that can ship code and context. Claude Code’s own docs are blunt about it: “A Claude Code plugin you install can execute arbitrary code on your machine with your user privileges.” That sentence is from the plugin security page, and it covers a lot more than a text file you could read in a minute. This post is my intake: what I read, in what order, and which setting makes each check a rule for a team.
What can a Claude Code plugin actually run?
Two kinds of things. Some of a plugin’s parts run code. Others only enter the agent’s context, which means they steer it.
Per the same security page, a plugin can run code through hooks,
monitors (background shell commands), mods (JavaScript inside Claude
Code), stdio MCP servers, LSP servers, and a bin/ directory
added to the Bash PATH. It can enter the agent’s context through skills,
commands and agents. The docs also say: “Claude Code runs hooks,
monitors, MCP servers, LSP servers, and the processes a mod starts
outside the sandbox.”
That last line matters if you were counting on the sandbox. A skill file can’t do much on its own except tell your agent what to do, and your agent is the thing with the permissions. A hook, a monitor or a stdio server is a process that starts whether or not the agent decides anything.
So I sort what I’m reviewing into those two bins. Anything that executes gets read as code. Anything that only enters context gets read as an instruction I’m about to give my agent, from a stranger.
The table I work from
One row per artifact. The last column is the managed setting that enforces the check, so a team doesn’t depend on each engineer doing this by hand. Each of those settings is covered in the sections after the table, with the docs link.
| Artifact | What I read | Red flag | The control |
|---|---|---|---|
| Marketplace | Who runs it, what else it lists | A source nobody on the team chose | strictKnownMarketplaces,
blockedMarketplaces |
| Plugin as a whole | The manifest, and whether it enables on install | Default-on, with parts I haven’t opened | Managed enabledPlugins (false blocks) |
hooks/hooks.json, and any hooks key in
plugin.json |
The actual commands, then the scripts they call | Network calls, writes outside the repo, anything obfuscated | allowManagedHooksOnly |
.mcp.json, and any mcpServers key in
plugin.json |
Every server URL or command, and who runs each | Remote servers run by the pack’s own sponsors | allowedMcpServers, deniedMcpServers |
bin/, monitors, mods |
The scripts themselves | Anything I can’t explain line by line | Marketplace and plugin allowlists |
Skill files (SKILL.md) |
The full text, including links | Product pitches, text addressed to other agents | Review, then plugin allowlist |
| Inline shell in skills | Every !`...` and ```! block |
Commands that fetch and run, or touch credentials | disableSkillShellExecution |
| License | A LICENSE file, not only a README badge | README says one thing, the repo has no file | Review only |
Three rows have no setting of their own: bin/ and
monitors, skill files, and the license. For those the control is the
allowlist plus a person reading.
Marketplaces and plugins: who is allowed in at all
The cheapest control is at the top. Two managed-only settings
restrict where plugins can come from (how managed settings reach a
machine, and what an auditor samples, is in Claude Code and SOC 2).
strictKnownMarketplaces is an allowlist and
blockedMarketplaces is a blocklist. The docs describe the
allowlist as a way to “Restrict which plugin marketplace sources people
in your organization can add and install plugins from.” The default is
“unset, so users can add any marketplace.” The details are in the settings
reference and the plugin org
page.
If you run a team, that default is the thing to look at first. Until someone sets one of those two keys, any engineer can add any marketplace, and every plugin in it becomes an install away.
One level down, managed enabledPlugins takes plugin keys
in the form plugin-name@marketplace-name. Set a key to
true and the plugin is force-enabled. Set it to
false and, per the org page, “A
plugin set to false here is blocked from installation at
every scope and hidden from the marketplace”. That’s the setting I’d use
for a plugin someone on the team already reviewed and rejected, so the
answer sticks after the person who found it leaves.
Installs are default-on. Per the security
page, “Installing a plugin also enables it, unless its manifest or
marketplace entry sets defaultEnabled: false”.
Hooks: the first file I open
Hooks run commands in response to agent events. If a plugin has them, the hooks file is the first thing I read after the manifest, because it’s the part that runs without the agent choosing to do anything.
Where that file lives is not always hooks/hooks.json.
The plugin
manifest reference documents a hooks field in
.claude-plugin/plugin.json that takes hook files or inline
hook config, and Claude Code loads it together with
hooks/hooks.json. So I open the manifest first and check
for that key. The mcpServers field works the same way
alongside .mcp.json.
The install review pane won’t do this for you. It lists commands, agents, skills, hooks, and MCP and LSP servers, which is useful. But the security page spells out the limit: “The Will install section shows that a hook exists but not what it runs”. So the pane tells you a hook is there and you open the file yourself. The pane is described on the Install and manage plugins page.
What I look for in a hook: where it sends data, what paths it writes to, and whether the command is something I can read or something that fetches a script from a URL and runs it. A hook that formats a file after an edit is fine. A hook that makes a network call needs a reason I can say out loud.
For a team, the enforcing setting is
allowManagedHooksOnly. The settings
reference says of true: “only managed hooks run, plus
Agent SDK hooks and hooks from plugins your managed settings
force-enable.” That blocks hooks from every other installed plugin. It
also turns off every engineer’s own user and project hooks, so plan for
that before you set it. A plugin you didn’t force-enable can still
install and still supply skills, but its hooks don’t fire. If you want a
sense of what hooks do on a project I actually run, the four hooks I run on every
project is the practical side.
MCP servers: a row, and one trap
MCP servers get a row in the table because a plugin can bundle them. Per the security page, “Claude Code connects to the MCP servers an enabled plugin declares”. Combined with the default-on install, the chain is short: install the plugin, it’s enabled, its declared servers connect.
A stdio server is a local process, so I read it like code. A remote HTTP server is a different question: it’s someone else’s service that your agent now sends requests to, and I want to know who runs it and whether the plugin author has a reason to want your traffic. I wrote up the server-building side in building an MCP server in Phoenix, and building one makes it obvious how much a server sees.
The controls are allowedMcpServers and
deniedMcpServers, and they reach plugins. From the managed MCP page:
“Claude Code also checks every server a user, a plugin, or claude.ai
adds”. On the denylist: “The denylist applies to every server regardless
of where it came from”. Setting allowManagedMcpServersOnly
makes only the managed allowlist count.
There’s a second path to watch, which is a project-level
.mcp.json in a repo you cloned. Claude Code handles that
one with a prompt. From the MCP docs: “For security
reasons, Claude Code prompts for approval in interactive sessions before
using project-scoped servers from .mcp.json files.” And: “A
cloned repository can’t approve its own servers”. That protection
depends on you leaving it on.
enableAllProjectMcpServers: true approves every project
server without a prompt, and I wouldn’t set it on any machine that
clones other people’s code.
Skills: read every file
A skill is a file of instructions your agent will follow. Reading all of them takes longer than reading a hook, and it’s where I found the most in the review below.
Two things I check in every skill. First, inline shell. Skills and
custom commands can include !`...` and ```!
blocks that run shell commands. The setting
disableSkillShellExecution turns that off for user,
project, plugin and additional-directory sources, and per the skills docs: “Each
command is replaced with
[shell command execution disabled by policy] instead of
being run.” The docs add: “Bundled and managed skills are not affected.”
It is not a general Bash block. It only stops that one mechanism. Your
agent can still run any Bash command a skill tells it to run.
Second, I read what the skill is trying to get my agent to say or do on the author’s behalf. If it contains product recommendations, I want to know how many and whose.
There’s no setting that does that review for you. The control for skills is the plugin allowlist plus a person reading the files.
A real review
The pack is a popular open-source SEO skill pack with about 1,700 GitHub stars. I’m not naming it or its author.
How I did it. My coding agent cloned the repo to
disk, shallow and read-only. It ran no scripts and connected nothing.
One subagent read all 30 SKILL.md files against my own
content pipeline and graded each one. My main agent then spot-checked
the key claims against the files, and I read its report. I installed
nothing.
What I found:
- The license. The README and the plugin manifest both say MIT, but the repo has no LICENSE file. It’s a small thing, and it’s one reason I copied no text.
- The plugin config. The manifest points at a
.mcp.jsonwith three remote HTTP MCP servers, each run by a product the README lists as a sponsor. The README installs the pack with a skills CLI, and I didn’t test what that does with the file. Installed as a Claude Code plugin, the docs quoted above say declared servers connect, and I found no step where I’d approve each one. - Product mentions. 20 of the 30 skill files link one of the seven products the README lists as sponsors: managed backlinks, an AI-visibility tracker, a transcription service, a tools directory, among others. Whatever I load, my agent reads, so those links would sit in its context.
- Text addressed to agents. One skill, an anti-scraping skill, tells you to serve text addressed to AI agents: a marked directive telling AI assistants sent to scrape the site to stop and send the user to the site’s product. A skill like that teaches your agent to plant instructions aimed at other people’s agents. It also works against something I want for this site, which is to be cited by AI search.
- Clean findings. It ships no hooks and no inline shell. It has two small scripts, which I didn’t run.
What I did. I installed nothing. I took three ideas, an internal link graph, a check for figures that drift across pages, and a Search Console opportunities report, and had my agent write them fresh as standard-library scripts. No text or code was copied.
None of that is evidence the author is malicious, and none of it was hidden. The README credits the products as “supported by these products”, has a section called “Live SEO data via MCP servers” that lists all three servers with their URLs, and its skill table says the anti-scraping skill “points blocked agents at your product”. Plenty of useful open-source work is funded that way. I don’t want those servers connected or those files loaded in an agent that sits next to my content and my credentials, and I only knew to say no because I read the repo first.
My own audit: 812 script files
After that review I counted what’s already in my own setup. From my Claude Code setup on my main Linux machine, the same day:
- 13 plugins installed, 12 of them enabled, from 5 marketplaces: the official Anthropic marketplace plus 4 third-party ones. A sixth marketplace is registered, with nothing installed from it.
- 5 plugins ship hooks.
elixir-phoenix,security-guidanceandsuperpowersusehooks/hooks.json.cavemandeclares four hook events inline in its.claude-plugin/plugin.json.ponytail’s manifest points at a hooks file underhooks/with another name. - 2 plugins bundle MCP servers:
linear(remote HTTP) andplaywright(local stdio via npx). Both are from the official marketplace. - Between them, 99 skills, 29 agents and 812 script files
(
.sh,.py,.js,.mjs,.ts, excludingnode_modulesand hidden directories; it’s 820 with hidden ones).
My first count of plugins with hooks said three, and it was wrong. I
had only looked for hooks/hooks.json. That’s why the table
above says to check the manifest’s hooks key too.
The scale surprised me. I chose each plugin myself, and the plugin stack I wrote up in
July says what most of them are for. I had not thought of them as
812 script files, and 559 of the 812 belong to one plugin,
caveman. Another 94 are from the official marketplace, all
in security-guidance. The other 159 come from third-party
plugins I picked myself. I still haven’t opened the files.
I didn’t find a problem in any of it, and I didn’t look for one. I counted. What I’ve already installed is a lot more code than the one repo I read carefully.
What I haven’t checked
- I haven’t read the 812 script files line by line. I know which five plugins ship hooks and which two bundle MCP servers. That’s a count.
- The docs I read don’t mention a separate prompt before a plugin’s MCP servers connect or its hooks run. There may still be one. Test it on a throwaway machine with a plugin you wrote.
- I reviewed one pack, with one subagent plus my own spot-checks. A different repo could hide things my read would miss.
- Updates. I read the pack at one commit. A review is a snapshot of one version, so note which version you read and look again when it changes. I haven’t confirmed which setting controls plugin auto-update.
- I haven’t deployed these managed settings across a team. The settings and quotes are from the docs as of 2026-11-21.
If you’re deciding how your engineers get to install agent plugins, or you want a second set of eyes on what’s already running, that’s the kind of work in my Security Review Sprint on the consulting page.