contract-coding SKILL.md skillA

contract-coding from baixinghao/intent-gate is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add baixinghao/intent-gate/contract-coding@git:20261014.5d8eed4

Pins git:20261014.5d8eed4 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
baixinghao/intent-gate
Path
skills/contract-coding/SKILL.md
Versions recorded
3
Latest version
git:20261014.5d8eed4, committed Oct 14, 2026
First version recorded
Aug 12, 2026
Size
3,910 bytes
Repository stars
3
License
MIT

Use when implementing or modifying code for a requirement (实现需求/编码/写代码/开工) that has an intent-gate contract (.harness/requests/*/summary.md exists) - an addendum layer ON TOP of your existing coding skills/workflow (superpowers, project CLAUDE.md/AGENTS.md, etc.): it never replaces them, it only adds "code is generated FROM the mermaid contract, never against it". 中文触发:实现需求/开始编码/按图施工/写代码(当 .harness/requests/ 下存在契约时)。.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Contract-Driven Coding(附加层,非编码 skill)

> **本 skill 是附加层,不是编码 skill。** 你的项目自有编码 skill、superpowers、
> CLAUDE.md/AGENTS.md 规约继续拥有"怎么写代码"(架构、风格、模式)的全部决定权。
> 本 skill 只管一件事:**当 intent-gate 契约存在时,代码从契约生成,且绝不违背契约。**
> 代码风格/结构上的任何冲突,以项目自有规则为准;契约保真这件事,本 skill 不让步。

## 契约路由(多需求并存,🔴 禁止猜)

1. 人类点名了需求 → **精确匹配** `.harness/requests/{需求名}/`。没有同名目录 =
   该需求没有契约,走第 3 条——🔴 **禁止模糊匹配到别需求的契约**
   ("授信提交"套"提现确认"的 mermaid 是事故,不是便捷)。文件夹名即唯一标识,
   文件系统保证不重名,无需另造 ID。
2. 人类没点名 → 列出 `.harness/requests/` 下的契约清单让人类选,禁止自己挑。
3. 点名的需求无契约、但项目里已有其他契约(说明本工作流已启用)→
   告知人类"该需求还没有契约",给两条路:**先跑 `requirement-alignment` 出契约**,
   或人类明确说"不要契约直接写"——后者合法,人类指令优先。
   (仅当整个项目没有任何 `.harness/requests/` 时才完全静默、按原方式编码。)
4. 采用契约前**交叉验证**:任务的领域词汇(实体/动作)应命中契约的术语表;
   明显对不上 → 停,向人类确认是否拿错了契约。

## 开工门禁(机械项,无商量)

1. 路由确认契约后读 frontmatter:`status: approved` 才动工;
   `pending_review` / `blocked` → 停下报回人类。approved 只有两条合法来源:
   蓝军 PASS 或**人类直接拍板**——红蓝评审是可选项,人类说"不用评审,我拍板"
   即合法开工,任何人不得强制走红蓝。
2. 读 `_review/lint-report.md`:CRITICAL > 0 → 契约自身带机械错误,
   禁止对着它编码,报回人类先修契约。

🔴 **门禁拒绝的正确动作是停下报回人类**——契约状态是人类拍板的事,
不是"再分析一遍"的事。禁止因为 status ≠ approved 或 lint 未归零就转入
`requirement-alignment` 重启/续跑意图对齐流程。

## 从契约施工
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add baixinghao/intent-gate/contract-coding@sha256:7f2c37c3a369c6dc

The line at the top of this page pins the label git:20261014.5d8eed4, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_wnjpwrivfejddng5.svg)](https://markdownregistry.com/a/art_wnjpwrivfejddng5)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 3 versions of this file, between Aug 12, 2026 and Oct 14, 2026, about one every 31 days.

versioncommittedcommitsizeaudit
git:20261014.5d8eed4 latest2026-10-14 5d8eed4 3,910 BA view · diff
git:20260812.54dc0632026-08-12 54dc063 3,900 BA view · diff
git:20260812.ba2228a2026-08-12 ba2228a 3,608 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (3910 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

GitHub

baixinghao/intent-gate · 3 stars · license MIT · pushed 2026-10-25 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_wnjpwrivfejddng5
GET https://markdownregistry.com/api/v1/resolve?ref=baixinghao/intent-gate/contract-coding
GET https://markdownregistry.com/api/v1/blob/7f2c37c3a369c6dcc74f0708196c8a2a4d86ecdc09ddeff90ce7cd4c7082e373

Your AI assistant 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.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from baixinghao/intent-gate

DESIGN.md@docs DESIGN.md file
baixinghao/intent-gate · docs/DESIGN.md
git:20261013.89f945f · audit A · 3 stars
red-blue-review SKILL.md skill
baixinghao/intent-gate · skills/red-blue-review/SKILL.md · Use when the user asks for 红蓝对抗 / 蓝军评审 / 对抗评审 / 需求评审 (adversarial review of a requirement analysis), when the user asks…
git:20260810.957fd09 · audit A · 3 stars
requirement-alignment SKILL.md skill
baixinghao/intent-gate · skills/requirement-alignment/SKILL.md · Use when analyzing a requirement/PRD (分析需求/解析需求/解析PRD/分析PRD), building state machines (画状态机), sequence diagrams (时序图)…
git:20261013.89f945f · audit A · 3 stars
using-intent-gate SKILL.md skill
baixinghao/intent-gate · skills/using-intent-gate/SKILL.md · Use when analyzing requirements/PRDs, resolving business-rule ambiguity or conflicting requirements, making…
git:20261025.e05a450 · audit A · 3 stars

Every file in baixinghao/intent-gate

Browse by kind, by grade A, or by owner.