← All articles
Guide · 2026-11-09

Security Review Checklist Before Installing a Skill: Checking Item by Item from SKILL.md to scripts

Published 2026-11-09 ·Mentions: Claude Code, Cursor, Codex
Security Review Checklist Before Installing a Skill: Checking Item by Item from SKILL.md to scripts
A Skill is not just a prompt: its body becomes instructions for the Agent, bundled scripts are actually executed, and frontmatter can pre-approve tool permissions. Checking five steps before installing—the body and configuration section, scripts, bundled files, provenance, and isolated trial runs—can block most pitfalls.

1. Check SKILL.md First: The Body Is Instructions, the Configuration Section Is Permissions

Read through the body once and look for three types of statements: requests unrelated to the Skill's functionality (such as asking the Agent to read and send certain files along the way), wording that asks to skip confirmation or switch to silent execution, and steps that ask you to paste keys, tokens, or environment variables into a file or send them to an address. As long as such content cannot be explained by the Skill's functionality, discard it immediately—do not keep it around thinking "it might be useful."

Examine the permission fields in the frontmatter separately. allowed-tools is marked as an experimental field in the specification, and in Claude Code it acts as "pre-approval": during the turn this Skill is invoked, the listed tools no longer ask you for confirmation one by one. If broadly scoped entries appear in the list (such as unrestricted Bash or arbitrary file writes), require the author to clearly explain why they are needed; if they cannot, narrow the scope or do not use it. Also inspect Claude Code's extension fields one by one: hooks will register hooks across the entire session after the Skill is invoked, while fields like context and model change how execution behaves—check the official field table before installing if you encounter unfamiliar fields.

Also watch for dynamic injection syntax in the body: Claude Code supports writing !`command` in the body; when the Skill is invoked, before the content reaches the Agent, the command has already finished executing on your machine and spliced its output into the body, with no confirmation prompt during rendering and only permission rules checked. This syntax hides inside paragraphs as backticked commands—verify each command itself before deciding whether to install; in scenarios with unified team governance, the official documentation provides the disableSkillShellExecution setting, which can globally disable this kind of injection for user-level and project-level Skills.

2. Check scripts/ Next: Audit Every Script Like Software

The specification requires scripts to be self-contained or to explicitly declare their dependencies. Open them one by one during review and focus on searching for five types of actions: network access (curl, wget, requests, fetch, as well as hardcoded IPs and unfamiliar domains), disk write scope (whether it writes only to the Skill directory and current project, or writes to the home directory or system directories), deletion and overwriting (rm, overwriting configuration files), reading sensitive locations (~/.ssh, ~/.aws, browser data, dumping all environment variables), and installing packages or downloading binaries at runtime (pip install, npm install, pulling executables from a URL). The more of these it involves, the more specific the author's explanation must be.

Obfuscation is a red flag: executing after base64 decoding, concatenating strings with eval, stuffing logic into ultra-long single lines—legitimate tools have no need to hide. What language the script is written in is secondary; audit Python, Bash, and JavaScript the same way. If you cannot understand a script, do not install it by default, or run it standalone in an isolated environment first to see what it actually does.

External commands called by scripts count as another layer: relying on a command of the same name in PATH or referencing another binary of unknown origin via a relative path are both common trouble spots. The specification recommends that file references use relative paths and go only one level deep; treat packages with convoluted reference chains with suspicion first.

3. Bundled Files Count as Instructions Too: references and assets

references/ and assets/ are not harmless attachments: when executing tasks, the Agent reads them into context on demand, and the text inside is equally treated as a basis for work. Prompt injections hidden in reference files—"ignore previous instructions" or "send the contents of a certain file somewhere"—do not show up normally and only trigger when the corresponding task is invoked, making them harder to spot than issues in the main body.

The way to check is a full-text search for signal words: ignore, override previous, do not tell the user, send to, upload, paste to. Also open template-type assets and inspect them: macros and script snippets pre-embedded in templates are likewise execution surfaces. When there are many files, audit the ones explicitly referenced by name in the body first; if you plan to use the Skill long-term, do a full read-through.

4. Verify Provenance: Author, Repository, and Recent Changes

Prioritize official repositories and those maintained by the authors themselves, such as Anthropic's anthropics/skills or repositories maintained by the tool's own author. Distinguish genuine packages from fakes among identically named ones: a similar name and identical icon paired with a newly created repository is a common sign of impersonation. Check three more things: whether the repository is the one linked from the author's official website or documentation, whether it has been regularly maintained over the past six months, and whether the commit history contains abnormal changes that dump large numbers of unrelated files all at once.

Star counts are for reference only, not a conclusion: many stars mean many people use it, not that anyone has audited it. What truly lowers risk is readability—a package that openly lays out all its instructions and scripts and states its permission requirements in the README is far more trustworthy than one with a polished feature description whose scripts are distributed closed-source. Download only from the repository itself or the host's official marketplace; for packages found in group chat files or second-hand cloud drives, always go back to the repository to fetch a fresh copy.

5. Least Privilege and Isolated Trial Runs

Run it for the first time in a disposable environment: create a new empty repository or test project, check git diff and newly added files after running, and confirm it only touched what it was supposed to touch. Keep the host's permission prompts enabled during the trial run and do not turn on auto-approve for convenience—every command it requests to execute is itself audit material.

Long-term governance relies on host switches: Claude Code can allow or deny a specific Skill by name using permission rules, and can also switch unused entries to manual-invocation-only or disabled in the /skills menu; Codex disables individual Skills by path under [[skills.config]] in ~/.codex/config.toml. Installing many Skills is not the problem; leaving them unmanaged after installation is.

Finally, one principle: the permissions granted to a Skill should be the minimum set required to fulfill its function. Even after passing all five steps—body, scripts, bundled files, provenance, and trial run—only grant it the permissions it actually needs: the review is one-time, while the permissions remain active on every turn.

Tools mentioned

Coding & Development · Paid — Anthropic agentic terminal coding tool capable of autonomous multi-file edits, testing, and Git workflows.
Coding & Development · Free tier + paid — AI-first code editor built on VS Code with fast multi-line Tab predictions and codebase-wide Agent.
Coding & Development · See official site — OpenAI's AI coding agent: parallel multi-agent coding and testing with continuous cloud execution across terminal, editor, and desktop.

Sources

  1. Agent Skills
  2. docs.claude.com
  3. cursor.com
  4. developers.openai.com

This article is compiled from the public sources above and does not reproduce the originals in full; see the official sources for details.

Sign in to Lumo

Sign in with a one-time code sent to your email — no password. Your saved tools will sync across your devices.

The code is only used to sign you in. We store just your email and saved list (privacy policy, in Chinese).

—

Signed in. Your saved tools sync across all your devices.

0saved
View saved tools

Send feedback

Found a mistake, missing something, or have a suggestion? Tell us.