Before copying third-party Claude Code skills into your repo, check auto-execution and licensing

This article has been automatically translated.
Loading article...
Merry Christmas & Happy New Year!
Loading article...

This article has been automatically translated.
A colleague drops a GitHub link in the group chat and says this Claude Code skill is great: just copy the folder into the repo and the agent will write tests and open PRs according to the spec. You copy, paste, commit, and get back to work. The problem: what you just put in the repo isn't only a prompt.
Agent Skills is an extension mechanism for Claude Code: a folder holds SKILL.md and other files, and when Claude reads them it calls tools and runs commands following the steps inside. The people using them are mainly engineers wiring Claude Code into their daily development workflow. This article is based on a Zenn inspection record published on December 3, 2026; the author checked 163 public skills across anthropics/skills、obra/superpowers、addyosmani/agent-skills and other collections on 2026-10-31, and in the end adopted only 10. The conclusion is blunt: treat third-party skills as "installing software," not as a piece of documentation.
Many people's mental model of a skill is "a piece of explanatory text for the model to read," so they figure copying a Markdown file carries little risk. That model misses half the picture. When a skill is invoked, Claude calls tools and runs commands following its steps, and the content of the skill turns into real actions.
Anthropic's own Agent Skills documentation also advises in its security section: use only skills you wrote yourself or that come from Anthropic; for skills of unknown origin, inspect every file before use.
So when you open a candidate skill, the first question isn't "is it professionally written" but: if Claude follows it exactly, what actions will it perform on my machine? If you can't answer that, don't copy it into the repo yet.
最反直觉的一点在这里。按 Claude Code 的技能文档,SKILL.md 里的 ` !<command> ` 会在技能内容被发送给 Claude 之前由 shell 执行,输出替换进正文。
举个假设例子:技能里写着 ` !gh pr diff 。你调用技能,shell 先跑 gh pr diff`,结果替换进正文,Claude 看到的已经是输出。模型根本没有机会说“这条命令不对劲”。如果换成别的命令,同样会在你没看到的情况下先跑。
The author's hard rule: if someone else's skill contains a ! command, reject it no matter what the content is. When trying things out on your own machine, you can turn this behavior off with "disableSkillShellExecution": true in settings, but the author states explicitly that bundled skills and admin skills are exempt from this, so it isn't a universal switch.
A skill's front matter can contain hooks. According to the documentation, they are registered when the skill is invoked and stay alive until the session ends. In other words, you invoke the skill once, and every subsequent tool call may trigger someone else's command.
The author also groups hooks.json in plugins, MCP/LSP server configuration, and .claude/settings*.json into the same category: they run as soon as they're enabled, so reject them all.
allowed-tools lets a skill use the listed tools without confirmation during the turn in which it is invoked. Citing the documentation, the author notes that workspace trust (the confirmation when you first open a folder) has no effect on this field, and it still takes effect on a first run with -p.
For broad Bash allowances such as Bash(*) or Bash(curl *) , the author's handling is to defer. What's worth noting here is that the three mechanisms operate on different time scales: ! commands finish before the model reads the content, hooks last until the session ends, and allowed-tools only affects the turn in which the skill is invoked. Stacked together, they mean a single invocation can bring both "executes on the spot" and "no confirmation later" consequences.
A skill is a textual work, and copying is copying. Citing GitHub's documentation, the author notes that a repository without a license falls under copyright law's default rules: no one may copy, distribute, or modify it. So "no license stated" doesn't mean "use it freely"—it means "you can't use it."
A common mistake is to look only at the LICENSE in the repository root and stop there. In a skill collection, each folder may have a different license, so the correct order is:
The author's rough tiering: permissive licenses like MIT, BSD, Apache-2.0, and CC0 can be copied (keeping the copyright notice and LICENSE), and you can also rewrite them borrowing the ideas; copyleft licenses like GPL, AGPL, and CC-BY-SA are rejected even for a rewrite that borrows the ideas; no license, NC/ND, and custom terms are likewise rejected.
The author's approach is to first use a self-written static script to mechanically find auto-execution points and licenses, then have a human or agent read all the files end to end. The script's findings are only "proposals"; the person who read the files makes the call.
At this step, look for what the script can't catch:
Installing packages over the network at runtime with npx、uvx、pip install is classified by the author as defer rather than pass, with a written statement of "under what conditions it may be introduced."
Adopting doesn't mean copying verbatim. Of the 10 skills the author actually adopted, 5 were rewritten in Japanese borrowing the ideas, and none copy the upstream text.
Concretely: pin the version to the upstream commit SHA rather than auto-updating with the branch; one skill per commit so a problem can be rolled back individually; write UPSTREAM.md in the skill folder recording the repository, SHA, license, and what was changed. Skills not adopted also go into the register, with the date, SHA, verdict, and reason—this avoids re-reviewing and leaves a record of "what would have to change for it to be adoptable."
Rewriting has a side benefit: it lets you remove English commands from the steps and parts that conflict with team rules.
The original author's spot check only involved reading; they never ran the code of the skills being checked. The criteria in the article come from the author's personal practice and Anthropic documentation, not an official audit standard.disableSkillShellExecution being ineffective for built-in skills and admin skills also means it cannot replace manual review.
In addition, the author notes that a skill's name and description enter the context in every session, with each skill taking up about 100 tokens. So even if a candidate that "overlaps with existing skills" is safe, it still takes up space that other information could use, which is one of the reasons he classified overlapping items as deferred.