Skills Constitution

当 Agent 接到专业任务(编码/爬虫/文件操作/API调用/数据分析/文档/部署/推送等)时,强制先查记忆层和技能索引,有匹配必用、无匹配必搜、答复时自动推荐(排除已装)。用于防止 Agent 跳过技能直接硬扛通用能力。跨平台通用(WorkBuddy/Claude/ChatGPT/Cursor/Gemini 等 20+ 框架)。完整版本史见 CHANGELOG.md。

234 stars 8 forksAI, LLMs & Agents

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add jiabaobei/skills-constitution --skill skills-constitution
Manual install
git clone --depth 1 https://github.com/jiabaobei/skills-constitution.git /tmp/skills-constitution
mkdir -p ~/.claude/skills
cp -r /tmp/skills-constitution/. ~/.claude/skills/skills-constitution

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# 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 项全过。
> **v2.30.0** — 任务边界重定义(用户钦定 2026-09-20:"任务开始三查一次,中途不再三查"):① 门禁 UserPromptSubmit 不再把"每条非追加式消息"当新任务 —— 新边界 = 同一对话(session_id 可用则校验,缺失退化为纯时间窗)+ 距最近活动 2 小时内;窗口内不重置状态、不重复要求三查。② 同对话另起新类型任务(新消息必需分类与当前任务完全不相交)→ 提示 Agent 询问用户是否重新三查,答复前按当前通行证放行。③ 「有匹配必用」不受"三查一次"限制:同任务每条消息凡有必需分类,提醒一行(约 40 字,省 token),相关技能必须调用。④ Stop 收尾校验每任务只做一次(针对首轮回复,保住 v2.27.5 防"零追责"目的),不再逐轮要求复述三查。新增验收脚本 `scripts/tests/gate_task_boundary.py`(13 项全过,可重复运行);既有回归 142/142 通过。
Read the full skill on GitHub

Details

Skill name
skills-constitution
License
MIT
Repo updated
18 October 2026

FAQ

What does the Skills Constitution skill do?

当 Agent 接到专业任务(编码/爬虫/文件操作/API调用/数据分析/文档/部署/推送等)时,强制先查记忆层和技能索引,有匹配必用、无匹配必搜、答复时自动推荐(排除已装)。用于防止 Agent 跳过技能直接硬扛通用能力。跨平台通用(WorkBuddy/Claude/ChatGPT/Cursor/Gemini 等 20+ 框架)。完整版本史见 CHANGELOG.md。

How do I install the Skills Constitution skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add jiabaobei/skills-constitution --skill skills-constitution. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Skills Constitution popular?

It lives in jiabaobei/skills-constitution, which has 234 GitHub stars and 8 forks.

Related skills

Pitchcraft

201

moshuying/pitchcraft

Structured persuasion for tech leads, PMs, and founders—not activity logs. Five scenarios (kickoff, status update, wrap-up, investor pitch, solution selling) on one 5-part framework (Hook→Context→Proposal→Evidence→Ask). AI prompts for missing materials and audience context; pre-submit checklist. Claude Code plugin; Cursor, Codex, and chat via prompts.

AI, LLMs & Agents19

Agentii Investment Intelligence

210

agentii-ai/agentii-investment-intelligence

Institutional-grade equity research skills for AI agents. 80 Claude-type skills across 14 verticals (equity-research-core, models-and-pitches, bio-pharm, scenarios, quantitative-analysis, idea-generation, options-derivatives, business-intelligence, industry-analysis, macro-strategy, portfolio-strategy, technical-analysis, risk-and-psychology, trading-as-business) powered by agentii.ai's agent-use-ready SEC filing data plane — SEC filings and 15K+ earnings call transcripts, 15.99M XBRL facts, and company profiles for 1,146+ US-public-equity tickers. Features the three-layer retrieval protocol (

AI, LLMs & Agents16

Council

222

kitze/council

Convene a council of AI coding agents before finalizing a plan. The agent you're talking to — whichever CLI is the lead (claude, codex, cursor, gemini, grok, opencode) — drafts a plan, presents it independently to every other agent CLI installed on the machine, each member gives ONE reply per turn, and the lead revises the plan for X turns before answering. Trigger words: council, convene the council, consult the other agents, ask the council, ask codex/cursor/gemini/grok what they think, second opinion from other agents, N turns of deliberation, deliberate before planning.

AI, LLMs & Agents

Skill Sublation

279

Sven-Mirana/sublation

技能扬弃 Sublation V5.0 完整版。把执行经验沉淀为观测、候选、验证、多 Agent 协作面板、默认关闭的受控唤醒意图、Skill 分类与 shadow 精准建议、用户批准、晋升和观察窗的可审计治理链路;仅在用户明确说出 sublation 或扬弃技能时触发。

AI, LLMs & Agents

Lintlang

144

hermes-labs-ai/lintlang

Use when writing or reviewing AI agent configs, system prompts, or tool definitions (JSON/YAML/Python) and you need to catch ambiguous tool descriptions, missing stop conditions, schema/description mismatches, or embedded prompts before they reach runtime. Deterministic static analysis, no LLM or network calls.

AI, LLMs & AgentsIn 1 list13

Mcd Party Officer

244

yzg1226/mcd-party-officer

麦当劳门店派对/包场/拼团的选址、成团调度与筹备助手。当用户想办生日派对、亲子派对、主题派对、品鉴会、读书会、麦麦体验营,或说「麦当劳派对」「派对拼团」「包场」「生日会怎么办」「哪家店能办派对」「还差几个人成团」「包场还是拼团划算」「帮我写拼团招募文案」「做一张派对邀请函」「孩子派对吃什么不超标」时使用。基于麦当劳官方 MCP(mcp.mcd.cn)的 party 系列工具:扫描全城场次、估算成团概率、对比包场与拼团成本、按官方营销活动日历挑最佳日期、审查儿童餐营养、生成招募卡与邀请函。

AI, LLMs & Agents

Browse the most popular Claude skills, all ai, llms & agents skills, or write your own with the skills generator.