Skill Admission Gate(技能上架安全闸门)
БесплатноЗапускает вложенные скриптыНе проверенScan a skill or plugin before installation and block destructive commands, remote execution, data exfiltration, prompt injection, obfuscated payloads and…
от zhaoxinghua09-cell438 установок в других каталогахОб этом скилле
凡自治之物 · LGD 治理学 · 创造术家族 | 评测协议:skill-quality-gate
English
When to use
Call this when you need to review a third-party skill, install a skill of unknown provenance, run pre-release security screening on an in-house skill, perform a supply-chain security assessment, or produce evidence that "this package is untampered and risk-assessed".
Usage
Entry script (run inside the skill directory): scan_skill.py.
Workflow
- Trigger: identify a skill-admission-gate task (see When to use).
- Execute: run scan_skill.py per Usage.
- Verify: check script output / exit code against expectations.
- Deliver: present results / artifacts to the user.
Executable implementation of the LGD Three Laws: registered (package fingerprint) · evidenced (scan evidence on record) · gated (verdicts and accepted risks must be signed). Rule set
1.0.0· stdlib only · offline-runnable · no API key.
I. Why it is needed
The security problem of the skill ecosystem is not "are there malicious packages" but "there is no admission gate":
- Skills can execute arbitrary code, access the filesystem and make network requests — their permission surface equals a local program;
- Yet their distribution often looks like "a block of documentation" — review intuition fails;
- Once installed, it runs on your machine as you.
Conclusion: skills need a deterministic, traceable, re-auditable security checkpoint, not "looks fine".
II. When to use it
| Scenario | Note |
|---|---|
| Before installing third-party skills | Especially packages of unknown provenance, no repo backing, no license |
| Before in-house skill release | Pairs with skill-release-gate as the security front gate |
| Supply-chain assessment | Batch-scan a skill root, produce a risk list |
| Evidence needed | Package fingerprint + file hashes + timestamp proving "this version unchanged" |
III. How to use
Single-skill review:
python scripts/scan_skill.py <skill-dir> [--json out.json]
Batch review (scan a skill root):
python scripts/scan_skill.py <skill-root> --batch --json batch-result.json
Output example:
skill: my-skill
verdict: WARN | BLOCK 0 | WARN 2 | accepted 0 | 6 files scanned
package fingerprint: cd23896eee940857
[WARN] EXF-04 script.py:41 requests.post("https://api.example.com/collect", ...)
Exit codes: 0 = no BLOCK; 1 = BLOCK (usable as CI gate).
IV. Rule set (v1.0.0)
| Group | Rules | Level | Detects |
|---|---|---|---|
| Destructive | DES-01~05 | BLOCK | recursive forced delete, del /s /f, shutil.rmtree, format/write device, fork bomb |
| Remote exec | EXE-01,02 | BLOCK | `curl |
| EXE-03,04 | WARN | eval(/exec(, post-base64-decode exec |
|
| Exfiltration | EXF-01,02 | BLOCK | reading private keys / credential files, reading local vaults and key-drop tools |
| EXF-03,04 | WARN | reading .env/env credentials, POST/PUT to external endpoints |
|
| Prompt injection | INJ-01,02 | BLOCK | "ignore previous instructions", "do not tell the user" |
| INJ-03~05 | WARN | silent execution, bypassing security/approvals, tricking users into pasting keys | |
| Obfuscation | OBF-01 | WARN | overlong Base64 strings (suspected payload) |
| Scope | SCP-01 | WARN | writing absolute paths outside the skill dir |
Verdict: any BLOCK hit → overall BLOCK; only WARN → WARN; none → PASS.
V. Accepted-risk mechanism (key design)
False positives are inevitable — e.g. a local-vault skill "reading
But "accepting a risk" must not be silent ignoring: it must be traceable and signed. Drop .admission-allow.json in the reviewed dir:
{
"schema": "skill-admission-allow/1.0",
"skill": "dpapi-local-vault",
"note": "This skill's function is a local credential vault; accessing that dir is its declared use.",
"allow": [
{
"rule": "EXF-02",
"reason": "Reading/writing <local-vault> is its sole declared use; keys never leave plaintext or the machine.",
"approved_by": "XLGD",
"date": "2026-09-12",
"mitigation": "This skill makes no network requests."
}
]
}
After declaration the rule moves to ACCEPTED (still appears in the report, no verdict impact) — this is "gated + evidenced".
VI. Evidence produced ("evidenced")
Every review outputs:
| Field | Meaning |
|---|---|
package_fingerprint_sha256 |
aggregate hash of all files — "was the package tampered" |
file_hashes[] |
sha256 + byte size per file |
rule_version |
rule-set version (rules evolve; record which version decided) |
timestamp_utc |
review time |
accepted_risks[] |
accepted risks with signer and reason |
Uses: release ledger, dispute forensics, version-regression comparison (fingerprint changed → re-review required).
VII. Boundaries & honesty
- Pattern matching has limits: this tool checks known patterns; it st
Установить Skill Admission Gate(技能上架安全闸门) в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGlobGrepBashWriteWebFetchFAQ
Что делает скилл Skill Admission Gate(技能上架安全闸门)?
Scan a skill or plugin before installation and block destructive commands, remote execution, data exfiltration, prompt injection, obfuscated payloads and scope overreach. 技能上架安全闸门——一个技能/插件在安装或上架前,先跑确定性安全审查:查破坏性命令、远程执行、数据外泄、提示注入、隐蔽行为、混淆载荷与作用域越界,产出「分级发现 + 闸门判定 + 包指纹证据」。当需要审查第三方 skill、安装来源不明的技能、给自研技能做发布前安检、做供应链安全评估、或需要出具"该包未被篡改且已评估风险"的证据时调用。核心三件事:①按规则集扫全部文件并分级(BLOCK/WARN)②支持"已接受风险"声明(.admission-allow.json,须署名留痕)③输出包指纹与文件哈希作为"有证"产物。触发词:技能安全、审查 skill、安装前检查、恶意技能、skill 安全扫描、上架闸门、供应链安全、这个技能安全吗、第三方技能、能不能装、木马、后门、提示注入。
Как установить скилл Skill Admission Gate(技能上架安全闸门)?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Skill Admission Gate(技能上架安全闸门) запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic