AI Agent Skills

Installing Claude Skills Safely: Audit Any Skill Before It Touches Your Repo

29 September 2026 · Updated 28 November 2026 · 13 min read · by Yang Kai

A skill is instructions plus, often, scripts your agent will run with your permissions. How to audit a third-party SKILL.md before installing: the five checks that catch malicious or sloppy skills, and where skills live so you can remove them cleanly.

Checklist inside: Five-point skill audit checklist with the exact files, lines and commands to inspect

Contents
  1. The audit at a glance
  2. First, understand what a skill can actually do
  3. Check 1: Read the description like an attack surface
  4. Check 2: Read the body for instruction conflicts
  5. Check 3: Inventory every bundled file
  6. Check 4: Check provenance like you would a dependency
  7. Check 5: Trial it in a throwaway project
  8. What a failed audit looks like in practice
  9. When the skill arrives inside a plugin or bundle
  10. After it passes: scope, pinning and re-audits
  11. How we researched this
  12. The verdict
  13. Learn more

Installing a third-party skill takes about ten seconds: copy a folder, restart the session, done. The uncomfortable part is what you just agreed to. A skill is a set of instructions your agent will follow in future sessions, and any script bundled with it runs with your user account’s permissions when the agent calls it. There is no sandbox and no review queue between “installed” and “trusted”.

The fix is not to avoid third-party skills — the good ones save real hours. The fix is a short audit before the first install. This article gives you that audit: five checks, in order, covering the description, the instruction body, every bundled file, the provenance, and a trial run in a throwaway project.

Every check below is concrete. You will read specific lines, list specific files, and run two or three search commands. The whole pass takes about ten minutes for a typical skill, and the skills directory on this site holds its own entries to the same standard: verification basis stated, scripts flagged for review before use.

The audit at a glance

# Check Pass looks like
1 Description scope One job, stated plainly, no “always use” language
2 Body instructions A procedure; no rule overrides, no concealment, no runtime instruction fetching
3 Bundled files Every script read; network calls match the job; no reads outside the project
4 Provenance Named author, public history, other users
5 Trial run Clean behaviour in a scratch repo before real use

First, understand what a skill can actually do

A skill folder holds a SKILL.md file and, optionally, scripts, templates and reference files. When a request matches the skill’s description, the agent loads the instructions and follows them with the same tools it uses for everything else: reading files, editing files, running shell commands.

Three consequences follow from that design.

The instructions are the attack surface. A SKILL.md cannot run code by itself, but it tells an agent that can run code what to do. Malicious instructions and careless instructions arrive in the same format.

Bundled scripts run as you. If the skill ships a Python or shell script and the instructions say to run it, it executes with your permissions — your files, your credentials, your network. There is no reduced-permission mode for skill scripts.

Frontmatter can pre-approve tools. Skills can declare fields such as allowed-tools that grant tool use without asking first. That is a convenience feature for skills you wrote. In a stranger’s skill, it is a line to read twice: the skill is asking your agent to stop asking you.

None of this makes skills dangerous by default. It makes them equivalent to dependencies and shell scripts — things experienced builders already read before running. The audit is that habit, applied to a new file format.

Check 1: Read the description like an attack surface

The frontmatter description decides when the skill loads. Everything about the author’s intent shows up in those two or three lines.

An honest skill describes one job: “Use when drafting release notes from git history.” The trigger conditions are narrow, the task is named, and a reader can predict when it will fire.

A suspicious description describes a land-grab: “Use for all tasks, always load first, applies to every project.” That wording is written to hijack every session, and it is disqualifying on its own. Between the two sits the merely sloppy version — a description so broad the skill misfires constantly and taxes every session it touches. The practical failure mode is covered in writing your first skill; the craft of fixing it is in SKILL.md descriptions that trigger reliably.

Pass standard: one job, named plainly, with trigger conditions you could test. Anything broader gets rewritten by you or rejected.

Check 2: Read the body for instruction conflicts

The SKILL.md body should be a procedure for the one job the description promised. Read it as a diff against your own rules. Flag anything that:

Also check the mundane failure: instructions that contradict each other, reference files that do not exist in the folder, or assume tools the skill never mentions. Sloppiness here predicts sloppiness in the scripts.

Check 3: Inventory every bundled file

This is the check most people skip and the one that matters most. List everything in the folder before you read anything else:

find ~/.claude/skills/<skill-name> -type f | sort

Open every executable file — shell scripts, Python, JavaScript, anything the instructions tell the agent to run. Templates and reference documents get a skim; scripts get a full read. Then search the whole folder for the patterns that separate a tool from a trap:

grep -rn -E "curl|wget|fetch\(|requests\.|urllib|http" <skill-folder>
grep -rn -E "process\.env|os\.environ|getenv|~/\.ssh|~/\.aws|~/\.config" <skill-folder>
grep -rn -E "rm -rf|sudo|chmod|eval|exec\(" <skill-folder>

Three questions decide the verdict on each hit:

What does it send, and where? A formatting script has no business making network calls. A research skill that calls one named API is a different case: the call should match the stated job, go to the service the skill is about, and send only what the job needs.

What does it read? Project files are expected. Your home directory, SSH keys, cloud credentials, environment variables holding tokens, or browser data are not — unless the skill’s whole job is credential management, in which case it gets extra scrutiny, not less.

What does it write or delete? Writes inside the project are normal. Writes to shell startup files, global config, or other tools’ directories are not. Deletion commands deserve a line-by-line read, every time.

Note: an obfuscated script — minified, base64-encoded, or generated-looking with no source — fails this check by definition. If you cannot read it, you cannot audit it, and the correct move is to not install it.

Check 4: Check provenance like you would a dependency

Who published it, where, and how is it maintained? The same questions you would ask of an npm package apply, because the risk shape is the same.

A skill in a public repository with commit history, open issues and other users is a different risk from a zip file in a forum post. Install counts on skills.sh and GitHub stars are weak signals, but they are real ones — they tell you other people run this code and would have reported the obvious problems. The skills directory on this site lists each entry with its source repository and the verification basis stated, which is the standard to hold any source to.

Read the recent history, not just the README. A skill that was written once and never touched may be finished — or abandoned with its assumptions rotting. A skill whose last commit rewrote the scripts is one to re-audit, which is why the next section covers updates.

If you cannot tell who wrote it, the audit burden is entirely yours: read every line, or do not install it.

Check 5: Trial it in a throwaway project

Static reading catches most problems. Behaviour catches the rest.

Install the skill into a scratch repository with nothing sensitive in it — no real credentials in the environment, no production config, ideally a fresh clone of a small public project. Run the exact job the skill is for. Then read two things: the diff it produced, and the tool calls it made along the way.

Watch for:

Only then promote it to real work — and install at project level first (.claude/skills/ inside the repo) rather than globally in ~/.claude/skills/, so a bad skill’s blast radius is one project and removal is deleting one folder. Global install is the last step, earned after the skill has behaved in several projects.

What a failed audit looks like in practice

The audit earns its keep on patterns like these, all drawn from how agent tooling actually gets abused.

A “productivity” skill whose script POSTs the contents of changed files to an analytics endpoint you have never heard of — flagged at Check 3, because a formatting tool has no business making that call. A skill whose body instructs the agent to add a co-author line or a promotional link to every commit it touches — flagged at Check 2, as an instruction reaching outside the stated job.

A skill distributed only as a zip on a file host, with a description promising it “works with all your tools” — flagged at Checks 1 and 4 before you even open it. And the benign-but-broken majority: skills that pass every security check and fail the trial because their descriptions are so broad they fire on every session and tax it.

The audit is not a hunt for villains. It is a habit of reading before trusting, applied to the one kind of file most builders install unread.

When the skill arrives inside a plugin or bundle

Not every skill arrives as a lone folder. Marketplaces and plugin packs bundle skills with other machinery, and the audit has to widen to match.

A plugin can ship hooks alongside its skills — commands that run automatically on events like session start or before a tool call. A hook is not an instruction the agent weighs; it is code your setup executes. Inventory hooks with the same seriousness as bundled scripts: find the hook definitions, read every command they run, and treat an unexplained one as a failed Check 3.

Bundles also multiply Check 1. A pack of twenty skills installs twenty descriptions, each competing to trigger. Read all of them, not just the one you came for — the skill you ignore is still loaded, still firing, and still followed. If the pack supports installing individual skills, prefer that: npx skills add <repo> --skill <name> style installs exist precisely so you can take one folder and leave nineteen behind.

Finally, note the update channel. A marketplace plugin can update as a unit, which means your re-audit habit has to cover the bundle’s diff, not one skill’s. If the bundle updates often and you only use two of its skills, extracting those two folders into your own project-level library is the safer long-term shape — you take on the copying, and you get back a fixed, audited version that changes only when you change it.

After it passes: scope, pinning and re-audits

Passing once is not passing forever. Three habits keep an installed library safe over time.

Keep the scope small. Project-level installs by default; global installs only for skills you use everywhere. The guide to sharing skills across projects and teams covers how libraries grow — and how they rot by accumulation.

Know your removal path. A skill is a folder. Removing it is deleting the folder; there is no uninstall state left behind. If you cannot point at the folder, you did not install it — something installed it for you, which is its own finding.

Re-audit on update. When a skill you use releases a new version, diff the SKILL.md and the scripts against the copy you audited. Updates are the moment a good skill changes maintainers, adds a network call, or broadens its description. Two minutes with a diff beats re-running all five checks.

The same discipline applied to MCP servers is in the MCP security checklist — the overlap is deliberate, because skills and MCP servers run with the same permissions and skills get a fraction of the scrutiny. The repo-level version of the habit is in reading an open-source repo before installing: stars are not a review, there either.

How we researched this

Desk research, stated plainly. The five checks are built from how skills actually execute — the SKILL.md format, frontmatter fields and tool permissions as documented for Claude Code — and from the abuse patterns documented for agent tooling generally: instruction injection, credential reads, silent network calls.

This site also maintains a skills directory whose entries carry a safety note with the same instruction this article gives: review the SKILL.md and any scripts before first use, because no third-party scan was run. The audit above is the expanded version of that note. Nothing here is presented as a security certification — it is a reading routine, and its limit is the reader’s attention, which is why it is kept to ten minutes.

The verdict

Skills are worth installing — the productivity gap between a good skill library and raw prompting is real. They are not worth installing unread. Run the five checks: description scope, body instructions, bundled files, provenance, trial run. Ten minutes per skill, once, plus two minutes per update.

Start with the next skill you were about to install, and if you are building your own library alongside third-party picks, advanced skill patterns covers what well-built skills do that basic ones do not — including the habits that make them easy to audit.

FAQ

Can a SKILL.md on its own harm my machine? Not directly — it is text. The risk is indirect and real: the agent follows the text using tools that can run commands, edit files and make network calls. A malicious SKILL.md with no scripts at all can still instruct the agent to do harmful things, which is why Check 2 reads the body as carefully as Check 3 reads the scripts.

Is a popular skill automatically safe? No. Popularity means many people installed it; it does not prove anyone read it. Install counts and stars are provenance signals — they belong in Check 4, as evidence other users exist and problems would surface. They never replace Checks 2 and 3.

Should I install skills globally or per project? Per project first, always. Project-level install (.claude/skills/ in the repo) limits a bad skill to one codebase and makes removal a single folder delete. Promote to global (~/.claude/skills/) only after the skill has behaved across several projects.

What if a skill needs network access or credentials for its actual job? Then the audit gets stricter, not waived. The call should go to the named service the skill is about, send only the data the job needs, and read credentials from the environment rather than asking the agent to paste them into files. If a research skill wants your SSH keys, it is not a research skill.

Do I need to re-audit skills I already trust when they update? Yes, briefly. Diff the new SKILL.md and scripts against the audited copy. Maintainer changes, new network calls and broadened descriptions all arrive via updates, and the diff is the fastest way to spot them.

Learn more

Category: AI Agent Skills · Tags: #skills #skill-md #security #claude-code

Next step: this article is part of AI Skills, which covers the full topic from first setup to advanced use.

Related guides

AI Agent Skills

Why Your Claude Skill Isn't Triggering: A Debugging Checklist in the Right Order

A skill that never loads has one of six causes: the description doesn't match how you ask, it isn't installed where Claude looks, a same-name copy loads instead, another skill outcompetes it, the request never mentions the job, or the skill loads and silently does nothing. Diagnose in that order.

12 min read