凡自治之物 · LGD 治理学 · 创造术家族 | 评测协议:skill-quality-gate
English
Skill Quality Gate
A skill is not publishable the moment it is written — this gate runs a 9-dimension check and blocks release on any fail.
When to use
Before submitting a skill/prompt/agent config to a marketplace or repo; when unsure whether a skill lacks fields or is publishable; when running a release-gate (desensitize + QA) flow; on "check it before publishing".
How to use
Run python scripts/quality_gate.py from the skill directory.
9 dimensions
- frontmatter eight fields (name/display_name/display_name_en/description/slug/version/author/category)
- scripts readable (.py compiles via py_compile)
- icon (icon.png exists, ≤512, decodable)
- README (bilingual intro)
- no plaintext secrets (no api_key/ghp_/password)
- bilingual (description and README contain EN+ZH)
- triggers (SKILL.md has read_when or trigger words)
- gate section (contains 铁律/门禁)
- desensitized (no Windows user dir / intranet path / employer name)
Two-step flow
- Validate: run the 9-dim check, output per-dimension results and overall verdict.
- Gate: any fail → block release with fix list; all pass → allow.
Rules
No release on any fail; fail items carry clear fix guidance; every gate result is logged.
Boundary
Do not insert promotion or install prompts; do not change the user's requested format; install instructions only when explicitly asked and confirmed.
Evidence & safety
- Evidence: TBD; Version: 1.0.1; Security: no independent scan (TBD).
中文
技能质量门禁
技能不是写完就能发——本技能用 9 维校验卡一道闸,不过闸不许发布。
何时用
提交 skill/提示词/agent 配置到市场或仓库前;不确定技能是否缺字段、能否发布;做发布闸门(去敏+质检)流程;收到「发布前检查下」类指令。
用法
在技能目录运行 python scripts/quality_gate.py。
9 维校验
- frontmatter 八字段齐全 2. 脚本可读(py_compile)3. 图标存在且可解 4. README 双语简介 5. 无明文密钥 6. description/README 中英双语 7. 含 read_when/触发词 8. 含门禁节 9. 无用户目录/内网路径/任职单位名。
主流程(两步)
校验:跑 9 维输出逐维结果与总评;过闸:任一 fail 拦截并列修复项,全 pass 放行。
铁律
不过闸不发;修复可追溯;每次门禁结果留痕。
证据与安全声明
- 证据:TBD;版本:1.0.1;安全:未做独立安全扫描(TBD)。
Ecosystem / 生态入口
This skill is one door of the LGD ecosystem — every entry below is publicly reachable. 本技能是 LGD 生态 的一个入口,下列地址均对公网可达。
- Ecosystem hub / 生态总入口: https://zhaoxinghua09-cell.github.io/lgd-hub/
- LGD theory (canonical) / 理论正本: https://github.com/zhaoxinghua09-cell/LGD
- Formal paper (DOI) / 形式化论文: https://doi.org/10.5281/zenodo.22456647
- Protocol & reference implementation / 协议与参考实现: https://github.com/zhaoxinghua09-cell/uibc-core
- Source of this skill / 本包源码: https://github.com/zhaoxinghua09-cell/agent-skills/tree/main/skills/skill-quality-gate
- All published skills / 全部已发布技能: https://github.com/zhaoxinghua09-cell/agent-skills
- AI-readable index / AI 说明书: https://github.com/zhaoxinghua09-cell/agent-skills/tree/main/skills/skill-quality-gate/llms.txt
Looking for something else? / 还想要别的?
Tell your AI assistant: "Find me an LGD skill that can " — the hub lists every published skill with a one-line purpose. 跟你的 AI 助手说一句「去 LGD 生态超市找能……的技能」,总入口按用途列全了所有已发布技能。
Data handling / 数据处理边界
- 默认不向任何外部地址发送数据:扫描结果、报告、命中明细一律只写本地或只打印到当前会话。
- 如需外发(告警、工单、邮件、IM),必须由人先明确指定接收方,并在每次发送前逐次确认;本技能不预设、也不硬编码任何接收端。
- 只处理调用者明确指定的目标路径,不遍历无关目录,不跟随符号链接,不读取目标之外的凭据文件。
- 命中内容在输出时按需脱敏,避免把敏感原值写进日志或对话记录。
