S
Skill Quality Gate
作者:注册老炮@MedXpert I SynomosAIv6
技能质量门禁:提交市场或上线前做 9 维校验(frontmatter 八字段/脚本可读/图标/README/无密钥/双语/触发词/门禁节/去敏),逐维 pass/fail,不过闸不发布。
下载量
272
点赞
68
价格
免费
技能文档
--- name: skill-quality-gate title: "Skill Quality Gate" slug: skill-quality-gate display_name: 技能质量门禁 display_name_en: Skill Quality Gate version: 1.0.1 agent_created: true author: SynomosAI license: MIT allowed-tools: Read, Glob, Grep, Write category: ai-engineering platforms: [windows, macos, linux, cli] platform_compatibility: [windows, macos, linux] copyright: SynomosAI description: 技能质量门禁:提交市场或上线前做 9 维校验(frontmatter 八字段/脚本可读/图标/README/无密钥/双语/触发词/门禁节/去敏),逐维 pass/fail,不过闸不发布。 description_zh: "技能质量门禁:把 skill/提示词/agent 配置提交市场或上线前做 9 维校验(frontmatter 八字段/脚本可读/图标/README/无密钥/双语/触发词/门禁节/去敏),逐维 pass/fail,不过闸不发布。" description_en: "Nine-dimension skill quality validation (frontmatter fields, scripts readable, icon, README, no secrets, bilingual, triggers, gate section, desensitized) before marketplace submission or go-live; per-dimension pass/fail, no release without passing the gate." classification: skillhub: ["security-compliance", "quality", "release-engineering"] clawhub: ["development"] iso_25010: ["Security"] read_when: - 要把 skill/提示词/agent 配置提交到市场或仓库前 - 不确定技能是否缺字段、能否发布 - 做发布闸门(去敏+质检)流程 - 收到「发布前检查下」类指令 risk_tier: medium risk_rationale: "调用 API/读写文件/本地执行,最小权限,密钥走 Secret;若实际涉对外代执行(push/发布/发送/上架)须人工复评,改 high 并走负责人批准。" tags: [skill-quality-gate, 技能质检, quality gate, 发布前检查, 门禁, security-compliance] ai_protocol: true spec: usk/1.0 interface: type: cli entry_point: scripts/quality_gate.py runtime: python3 call_pattern: args output_schema: stdout: structured per-dimension pass/fail report exit_code: rc=0 all pass / rc=1 some fail / rc=2 bad input changelog: "1.0.1: Bilingual rewrite (EN-first); read_when kept; attribution block neutralized; 1.0.0 initial" --- > 凡自治之物 · 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 1. frontmatter eight fields (name/display_name/display_name_en/description/slug/version/author/category) 2. scripts readable (.py compiles via py_compile) 3. icon (icon.png exists, ≤512, decodable) 4. README (bilingual intro) 5. no plaintext secrets (no api_key/ghp_/password) 6. bilingual (description and README contain EN+ZH) 7. triggers (SKILL.md has read_when or trigger words) 8. gate section (contains 铁律/门禁) 9. desensitized (no Windows user dir / intranet path / employer name) ## Two-step flow 1. Validate: run the 9-dim check, output per-dimension results and overall verdict. 2. 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 维校验 1. frontmatter 八字段齐全 2. 脚本可读(py_compile)3. 图标存在且可解 4. README 双语简介 5. 无明文密钥 6. description/README 中英双语 7. 含 read_when/触发词 8. 含门禁节 9. 无用户目录/内网路径/任职单位名。 ## 主流程(两步) 校验:跑 9 维输出逐维结果与总评;过闸:任一 fail 拦截并列修复项,全 pass 放行。 ## 铁律 不过闸不发;修复可追溯;每次门禁结果留痕。 ## 证据与安全声明 - 证据:TBD;版本:1.0.1;安全:未做独立安全扫描(TBD)。
使用说明
# skill-quality-gate · 技能质量门禁
[](https://github.com/zhaoxinghua09-cell/lgd-theory)
**EN** — A skill isn't shippable just because it's written. 9-dimension gate: frontmatter fields · script compiles · icon · README · no secrets · bilingual · triggers · gate section · desensitized. Fail any → block publish. Runnable `quality_gate.py`. Theoretical root: LGD — gated (gate before publish).
**中文** — 9 维校验卡一道闸:frontmatter 八字段/脚本可编译/图标/README/无密钥/双语/触发词/门禁节/去敏。任一 fail 即拦截发布。附可运行脚本。理论根基:LGD 有门禁。
## Why it beats "publish and pray"
| Pain | This skill |
|---|---|
| Skill won't run | py_compile check |
| Leaks secrets | Secret-pattern scan |
| No docs / no zh-en | README + bilingual check |
## What's inside
- `SKILL.md` — 9 dimensions + 2-step flow + 铁律
- `scripts/quality_gate.py` — zero-dependency CLI: gate a skill dir
```bash
python scripts/quality_gate.py --dir ./my-skill
```
## Benchmark vs alternatives
| Tool | It does | Gap this fills |
|---|---|---|
| Market auto-review | Opaque | Transparent 9-dim, local |
| "Looks fine" | Subjective | Deterministic pass/fail |
| Manual checklist | Forgetful | Scripted, repeatable |
Theoretical root: **LGD Three Laws** — gated. Pairs with `release-gate`.
---
© 2026 SynomosAI SynomosAI · 代码 MIT · 理论文本保留所有权利
---
## License & attribution
**分层许可(务必并读;代码许可不覆盖文档与理论文本)**
- **代码**(本包 `.py` 文件):**MIT**
- **本 `README.md` / `SKILL.md` 及其中的理论文本、方法论与一切理论表述**:**不在 MIT 覆盖范围内**,保留所有权利(All rights reserved)
```
© 2026 SynomosAI. All rights reserved.
理论署名 (attribution) : LGD(Lifecycle Governance Doctrine / 全程治理论)— SynomosAI initiative
名称状态 (name status) : "SynomosAI" — 未申请实体注册、未申请商标注册
(not a registered legal entity; no trademark registered)
生产参考部署 (production reference, self-reported) : 无(未声明外部生产参考部署)
← 非认证、非背书、非监管认可(not a certification or endorsement)
代码许可 (code license) : 本包未附 LICENSE 文件(许可待定)
本文本与理论表述不在任何代码许可覆盖范围内
引用格式 (cite as) : 本资产无 DOI
```
(上列为《LGD 对外表述规范》§3.2 统一块,**整体复制、未删改**;发布/重提前须照最新版本复核。)支持平台:Qoder · QoderWork · Claude · Codex 等 AI 编程助手