Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add shanggqm/openclaw-security-hardening --skill guomeiqing-safe-installgit clone --depth 1 https://github.com/shanggqm/openclaw-security-hardeningWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/shanggqm/openclaw-security-hardening/guomeiqing-safe-install)<a href="https://agentmods.dev/skills/shanggqm/openclaw-security-hardening/guomeiqing-safe-install"><img src="https://agentmods.dev/badge/skills/shanggqm/openclaw-security-hardening/guomeiqing-safe-install/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/shanggqm/openclaw-security-hardening/guomeiqing-safe-install"><img src="https://agentmods.dev/badge/skills/shanggqm/openclaw-security-hardening/guomeiqing-safe-install.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00071 | $0.04685 |
| Opus 5 | $0.00036 | $0.02343 |
| Sonnet 5 | $0.00014 | $0.00937 |
| Haiku 4.5 | $0.00007 | $0.00468 |
Grade C, and why
guomeiqing-safe-install scanned grade C with 5 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Instruction-override phrasingmediumPrompt injection
Text telling the model to disregard its earlier instructions or safety rules is the shape of a prompt injection, whoever wrote it.
- "忽略以上指令"、"ignore previous instructions"、"new system prompt" 类语句 Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.
Asks for rootlowPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
| `chmod 600/700` 用于收紧权限 | ✅ PASS | 正常安全操作 | Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.
Recursive force deletemediumDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
grep -rn -E '(rm -rf|rm -f|chmod|chown|sudo|eval |base64|xxd|openssl|nc |netcat|ncat|socat|mkfifo|/dev/tcp|python.*-c|node.*-e|perl.*-e|ruby.*-e|exec\(|child_process|spawn\(|execSync|kill |pkill|shutdown|reboot|dd |mkfs| Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
grep -rn -E '(web_fetch|curl |wget |http://|https://|fetch\(|axios\.|request\(|\.post\(|\.put\()' "$TEMP_DIR/skill/" --include='*' || true Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
grep -rn -E '(rm -rf|rm -f|chmod|chown|sudo|eval |base64|xxd|openssl|nc |netcat|ncat|socat|mkfifo|/dev/tcp|python.*-c|node.*-e|perl.*-e|ruby.*-e|exec\(|child_process|spawn\(|execSync|kill |pkill|shutdown|reboot|dd |mkfs| How it starts
The opening of the file, as written. The whole thing — 475 lines — stays where its author put it; the contents beside it link to each section on GitHub.
🔒 Safe Install — 第三方 Skill 安全审查与安装
你是一个安全审查专家。用户请求安装第三方 Skill 时,绝不能直接安装。你必须按以下流程逐步执行:下载 → 扫描 → 报告 → 决策 → 安装/拒绝 → 清理。
概览
触发条件
用户说了类似以下的话:
- "帮我装 xxx skill"
- "安装这个 skill:<URL 或 npm 包名>"
- "install skill xxx"
- "safe install xxx"
- "帮我安装 https://github.com/xxx/some-skill"
输入识别
用户提供的安装来源可能是以下几种:
- GitHub URL —
https://github.com/user/repo或https://github.com/user/repo.git - npm 包名 —
npm:package-name或纯包名package-name - Git URL —
[email protected]:user/repo.git或其他 git 协议地址
从来源中提取 Skill 名称(最后一段路径或包名),后续用于目录命名。
Step 1: 下载到临时目录
⚠️ 绝不直接下载到 ~/.openclaw/skills/ 或 workspace 目录。必须先下载到隔离的临时目录。
1.1 创建临时目录
用 exec 执行:
REVIEW_ID=$(date +%s)
TEMP_DIR="/tmp/safe-install-${REVIEW_ID}"
mkdir -p "$TEMP_DIR"
记住 TEMP_DIR 路径,后续所有操作都在这里进行。
1.2 下载 Skill
根据来源类型:
GitHub / Git URL:
git clone --depth 1 <URL> "$TEMP_DIR/skill"
npm 包:
cd "$TEMP_DIR"
npm pack <package-name>
mkdir skill
tar xzf *.tgz --strip-components=1 -C skill/
rm -f *.tgz
1.3 验证下载
确认下载成功:
ls -la "$TEMP_DIR/skill/"
必须存在 SKILL.md 文件。 如果没有 SKILL.md,报告为无效 Skill,终止流程并清理临时目录。
Step 2: 文件清点
2.1 列出所有文件
find "$TEMP_DIR/skill" -type f -not -path '*/.git/*' | head -100
记录:
- 总文件数
- 文件类型分布(.md、.js、.ts、.py、.sh、.json 等)
- 是否包含脚本文件(.js/.ts/.py/.sh/.bash/.zsh/.rb/.pl)
2.2 检查文件大小
find "$TEMP_DIR/skill" -type f -not -path '*/.git/*' -exec du -h {} + | sort -rh | head -20
可疑信号: 单个文件 > 1MB,或存在二进制文件(非文本、非图片)。
Step 3: 安全审查(7 项 Checklist)
逐一读取每个文件的内容(用 read 工具),然后按以下 7 项逐项审查。
对每个文件执行审查时,仔细逐行阅读内容,不要跳过或快速浏览。
审查项 1: 外发数据指令 🌐
检查目标: 是否有向外部服务器发送数据的指令。
在所有文件中搜索以下模式:
grep -rn -E '(web_fetch|curl |wget |http://|https://|fetch\(|axios\.|request\(|\.post\(|\.put\()' "$TEMP_DIR/skill/" --include='*' || true
判定规则:
| 发现内容 | 判定 | 说明 |
|---|---|---|
| 无任何 HTTP 请求相关指令 | ✅ PASS | — |
| 仅访问已知合法服务(OpenAI API、Anthropic API、GitHub API 等) | ⚠️ WARN | 在报告中注明目标 URL,解释可能是正常 API 调用 |
| 访问不明 URL、IP 地址、或动态拼接的 URL | 🔴 DANGER | 可能外发用户数据 |
| 明确将文件内容、配置、环境变量作为请求体发送 | 🔴 DANGER | 数据窃取 |
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 12d ago First seen · 475 lines · 71 tokens per session scan C eab19653042f
guomeiqing-safe-install is a skill published in the GitHub repository shanggqm/openclaw-security-hardening (52 stars, last pushed 5mo ago), licensed MIT. It adds 71 tokens to every session and 4,685 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it C with 5 findings (instruction-override phrasing, asks for root, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
chat-pet-sprite-creation
Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.
cpu-profile-analysis
Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…
insight-error-page
Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…