skills-constitution skillA
skills-constitution is agent-read markdown (skill) from jiabaobei/skills-constitution: 当 Agent 接到专业任务(编码/爬虫/文件操作/API调用/数据分析/文档/部署/推送等)时,强制先查记忆层和技能索引,有匹配必用、无匹配必搜、答复时自动推荐(排除已装)。用于防止 Agent 跳过技能直接硬扛通用能力。跨平台通用(WorkBuddy/Claude/ChatGPT/Cursor/Gemini 等 20+ 框架)。完整版本史见 CHANGELOG.md。.
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
What the file says
# Skills 宪法(Skills Constitution) > **一句话定位**:凌驾于全部技能/工具/插件之上的**元规则**。所有能力调用必须先过这一关。 > > **v2.31.0(当前)** — **抗崩溃层**(2026-09-21 事故:钩子超时 → 平台 `UserPromptSubmit operation blocked by hook: Hook timed out after 15000ms / 20000ms` → 用户整条消息被拦死,感知为"系统崩溃")。**实测根因**:热路径每轮跑 **2 个 python 钩子**,而本机 python 解释器启动本身 0.7~2.5s(Defender 首扫),固定成本 3~7s 直逼 15s/20s 上限;再叠加 ① Stop 分支三处早返回把"通过即清除"堵死 → 旧违规永不清除、每轮重播;② 时间窗与警告耦合 → 跨时段把几天前的旧账当新警告弹。**新增五条防灾死规则**:R1 拉闸优先(开关文件/环境变量,任何事件在任何逻辑之前放行)、R2 异常放行(门禁自身任何异常 → 退出码 0)、R3 自修复豁免(门禁不得拦截对门禁自身的修复,破"自锁死")、R4 写失败可见 + 自动拉闸(连续 3 次写失败自动断电)、R5 耗时预算(超预算记 slow / 自动拉闸)。**新增** `scripts/emergency-off.sh` / `emergency-on.sh`(纯 bash 一键断电/合闸,不依赖 python)、`scripts/constitution-doctor.py`(7 项体检:拉闸状态/状态文件可写/注入缓存/违规卡死/钩子注册与超时值/**耗时实测**/健康日志)、`scripts/tests/gate_failsafe.py`(**26 项抗崩溃验收,发布前置门禁**)。违规语义改为**合规即清零**(写 `cleared_ts`/`cleared_task`,可审计不销毁历史)。**v2.30.0 任务边界设计(同对话+2h、三查一次、有匹配必用每轮、Stop 每任务一次)一行未动**,验收 13→17 项全过。 …
Read the whole file at its exact version.
How to install
mdr add jiabaobei/skills-constitution/skills-constitution@v2.31.0mdr add jiabaobei/skills-constitution/skills-constitution@sha256:46c51e6209150d25Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
[](https://markdownregistry.com/a/art_ufh73igafiwoar4w)
1 badge views in 30 days
Versions
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v2.31.0 latest | 2026-09-21 | bb13344 | 43,598 B | A | view · diff |
| v2.30.0 | 2026-09-20 | e6a528f | 39,139 B | A | view · diff |
| v2.29.1 | 2026-09-20 | 14c4f25 | 38,157 B | A | view · diff |
| v2.29.0 | 2026-09-19 | 1585387 | 37,482 B | A | view · diff |
| v2.28.1 | 2026-09-15 | d9ba997 | 34,096 B | A | view · diff |
| v2.28.0 | 2026-09-10 | 087cc72 | 34,096 B | A | view · diff |
| v2.27.6 | 2026-09-03 | 010de0a | 30,865 B | A | view · diff |
| v2.27.5 | 2026-09-03 | 4aef923 | 28,833 B | A | view · diff |
| v2.27.4 | 2026-09-03 | 6f50996 | 28,402 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (43598 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
jiabaobei/skills-constitution · 232 stars · license MIT · pushed 2026-09-21 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_ufh73igafiwoar4w GET https://markdownregistry.com/api/v1/resolve?ref=jiabaobei/skills-constitution/skills-constitution GET https://markdownregistry.com/api/v1/blob/46c51e6209150d25052f4a847ff9276c06bd3f7d4b1adc895dbd8fdda2d6d4ca
Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.