Agent skill

Contract First

by qshanx in qshanx/docs-governance

分前端/后端(或多个服务)多端开发的项目,用 CONTRACT.md 指向的唯一机器契约,各端只照它各做各的,防止字段漂移导致集成时白屏。支持单会话多 agent 和多终端各自跑两种模式。只要项目有前后端/多服务、接口字段老对不上、各端联调卡住、某端改了字段忘了通知别人、或前端为渲染一个页面要调一堆接口拼数据,就用这个…

MITAuto-check passedBackend & APIs

Install Contract First

skills CLI
$ npx skills add qshanx/docs-governance --skill contract-first -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install qshanx/docs-governance contract-first --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/qshanx/docs-governance.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/contract-first .claude/skills/contract-first && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
contract-first
GitHub stars
134
Token cost
~1.2k tokens
SKILL.md length
258 words
Files
1
Skills in repo
10
Repo updated
First seen
Licence
MIT

At a glance

分前端/后端(或多个服务)多端开发的项目,用 CONTRACT.md 指向的唯一机器契约,各端只照它各做各的,防止字段漂移导致集成时白屏。支持单会话多 agent 和多终端各自跑两种模式。只要项目有前后端/多服务、接口字段老对不上、各端联调卡住、某端改了字段忘了通知别人、或前端为渲染一个页面要调一堆接口拼数据,就用这个…

  • Works in 3 steps: 契约是唯一真相源,只有一个拥有者,且分两层 → 消费方需求先行(CDC 核心:别让提供方拍脑袋定) → 让契约机器可校验,谁偏离谁先红
  • Tasks that involve Integration testing
  • SKILL.md covers 什么时候启用, 两种协作模式(关键:选对你的现实), 三条核心纪律 and 工作流程, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Contract First is an agent skill from qshanx/docs-governance. 分前端/后端(或多个服务)多端开发的项目,用 CONTRACT.md 指向的唯一机器契约,各端只照它各做各的,防止字段漂移导致集成时白屏。支持单会话多 agent 和多终端各自跑两种模式。只要项目有前后端/多服务、接口字段老对不上、各端联调卡住、某端改了字段忘了通知别人、或前端为渲染一个页面要调一堆接口拼数据,就用这个 skill,哪怕用户没明说"契约"。这套方法论的学名是消费者驱动契约(Consumer-Driven Contracts, CDC)/ 契约测试。中文触发:契约式开发、接口契约、前后端协作、多终端协作、防字段漂移、接口对不上、联调、API 契约、字段命名不一致、集成白屏、唯一真相源、契约测试、CDC。English triggers: contract-first development, consumer-driven contracts, contract testing, API contract, frontend backend collaboration, multi-terminal, prevent field drift, provider verification.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Backend & APIs, covering Integration testing and API design. It works with OpenAPI. The repository describes itself as: Claude Code、Codex 与 ChatGPT 的文档驱动开发治理插件:防文档腐烂、维护上下文与决策、契约协作、测试与回归证据。 The licence is MIT.

When your agent uses it

  • Tasks that involve Integration testing
  • Tasks that involve API design

Example prompts

  • “/contract-first”

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. 契约是唯一真相源,只有一个拥有者,且分两层
  2. 消费方需求先行(CDC 核心:别让提供方拍脑袋定)
  3. 让契约机器可校验,谁偏离谁先红

What it can do on your machine

Read from SKILL.md and the folder at commit 520696e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Contract First loads about 1.2k tokens when it runs. Until then it costs about 131 tokens; SKILL.md has 258 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~131
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from qshanx/docs-governance at commit 520696e, republished under its MIT licence (© qshanx). 258 words, ~1,235 tokens.

Download SKILL.mdSave it as .claude/skills/contract-first/SKILL.md (or your agent's skills folder).
name
contract-first
description
分前端/后端(或多个服务)多端开发的项目,用 CONTRACT.md 指向的唯一机器契约,各端只照它各做各的,防止字段漂移导致集成时白屏。支持单会话多 agent 和多终端各自跑两种模式。只要项目有前后端/多服务、接口字段老对不上、各端联调卡住、某端改了字段忘了通知别人、或前端为渲染一个页面要调一堆接口拼数据,就用这个 skill,哪怕用户没明说"契约"。这套方法论的学名是消费者驱动契约(Consumer-Driven Contracts, CDC)/ 契约测试。中文触发:契约式开发、接口契约、前后端协作、多终端协作、防字段漂移、接口对不上、联调、API 契约、字段命名不一致、集成白屏、唯一真相源、契约测试、CDC。English triggers: contract-first development, consumer-driven contracts, contract testing, API contract, frontend backend collaboration, multi-terminal, prevent field drift, provider verification.
metadata.origin
ECC

契约优先(Contract-First / Consumer-Driven Contracts)

多端并行开发的项目(前端 + 后端,或再加多个服务),最容易炸在"连接"那一刻:

后端把 userName 改成 user_name,忘了通知前端。两边各自"自测通过",一集成——白屏。两份文档各自为真,合起来是假的。

契约优先把接口当成一份唯一机器契约(由 CONTRACT.md 登记入口):所有数据接口只定义一次,各端照它各做各的,谁都不许私自偏离。它和 living-docs-governance 是姊妹篇——那套防"项目文档"漂移,这套防"端与端之间的接口"漂移。

学名:这套就是 消费者驱动契约(Consumer-Driven Contracts, CDC)/ 契约测试(contract testing)。"消费方需求先行"=CDC 核心;"后端写返回符合契约的测试"=提供者验证(provider verification);标杆工具是 Pact,契约规格常用 OpenAPI/Swagger。

什么时候启用

  • 项目分前端 + 后端(或多个服务),且各端可能并行开发。
  • 接口字段老对不上:userName vs user_name、类型不符、枚举值不一致。
  • 某端为渲染一个页面要调 5 个接口拼数据。
  • 某端改了接口忘了通知别人,集成时才发现。

不要用在只有单端、不存在跨端集成的项目上——那时退化成单层,用 living-docs-governance 即可。接口少、单人、不会漂移时也别上,过度工程化。

两种协作模式(关键:选对你的现实)

这套契约协作有两种落地方式,纪律一致、组织方式不同:

模式 A — 单会话多 agent(中心化派活)

一个支持多 agent 的会话里,契约拥有者派出前端 / 后端(及更多服务工人)并行干活,最后由它集成对账。Claude Code 可使用 contract-director、frontend-dev、backend-dev;Codex 可由当前 agent 持有契约并使用内置 worker,任务提示中明确端别、文件所有权和“只读契约”的边界。适合一人一个会话内推进、需要实时编排时。

模式 B — 多终端各自跑(去中心化,契约当异步媒介)⭐ 更贴近真实团队

终端1 跑前端、终端2 跑后端、终端N 跑某个服务,各端完全独立、上下文隔离,没有一个活的主任在线派活。协调的唯一媒介就是那份 CONTRACT.md 文件:

  • "主任"在这里退化成"契约拥有者"——就是定契约、有权改契约那个人/终端(很可能是你本人或某个指定终端),不是实时调度器。
  • 各端要改接口时,不存在"喊一个在线 agent",而是提一条"契约变更请求":写进约定位置(如 Issue,或 PROJECT_LOG.md 追加一条 contract-request),由契约拥有者评估后更新契约,各端再各自重新拉取对齐。
  • 适合双终端/多终端、多人、跨时区——这才是大多数真实前后端团队的样子。

两种模式的铁律完全相同:接口只在 CONTRACT.md 指向的机器契约定义一次;各端只读不改;要改接口必须先改契约,绝不在实现里私自偏离。

宿主适配:Claude Code 的 /contract 与自定义 agents 是交互适配层;Codex / ChatGPT 直接调用 $contract-first 并由当前 agent 执行同一流程。没有可用子 agent 时退化为顺序执行,不得因此跳过契约前置、提供方验证或集成对账。

三条核心纪律

1. 契约是唯一真相源,只有一个拥有者,且分两层

将协作约定与机器定义分开,字段只保留一个来源:

  • 入口与协作层(CONTRACT.md):登记机器契约路径、版本/hash、拥有者、生成/校验命令和兼容策略;不手抄字段表。
  • 机器定义层:沿用项目已有 OpenAPI / JSON Schema / GraphQL / protobuf。HTTP 项目无现有契约时可用 templates/openapi.example.json;方法、路径、字段、类型、错误响应只在机器契约定义,重复类型用引用复用。

跨接口字段约束通过机器契约的公共 schema 或类型定义复用。所有接口只在 CONTRACT.md 指向的机器契约定义一次,各端只读;改契约的权力归契约拥有者(模式 A 是 director,模式 B 是指定的人/终端)。要改接口 → 提契约变更请求 → 拥有者改契约 → 各端再对齐。绝不在实现里单方偏离契约——这是头号集成杀手。

2. 消费方需求先行(CDC 核心:别让提供方拍脑袋定)

接口是给消费方(如前端)用的,先看消费方渲染/使用需要什么,再定接口形状,而不是照着数据库表结构透传。定契约时优先问:

  • 这个页面/调用方实际需要哪些字段?一次请求能不能拿全?
  • 字段类型有没有坑?(19 位商品 ID 必须 string,用 number 会截零;金额用 number 保留 2 位;状态用枚举别用裸字符串)
  • 分页、错误码、空值怎么约定?
3. 让契约机器可校验,谁偏离谁先红
  • 机器契约必须能被对应格式的标准工具直接解析和校验;JSONC 响应示例、Markdown 字段表与内部 DTO 不能替代 schema。CONTRACT.md 使用 templates/CONTRACT.example.md 只登记权威入口。
  • 消费方拿它生成类型和 mock(提供方没好也能先把界面跑起来)。
  • 提供方拿它写**"返回必须符合契约"的校验测试**(即 provider verification)——提供方改实现不小心偏离了,自己的测试先红,炸在自己这边,炸不到别人。

工作流程

模式 A 由 contract-director 串起全流程;模式 B 下每端在自己终端各做第 1、2、4 步,第 3 步(定契约)和第 5 步(对账)由契约拥有者做。

  1. 先反问消歧义,再定契约。 定契约前,就模糊点反问消费方(字段语义、类型、空值怎么传、枚举到底有哪几个),把歧义消灭在动手前(借 Spec Kit 的 /clarify 思路)。然后按"消费方需求先行"更新唯一机器契约,并在 CONTRACT.md 登记入口和版本(模板见 templates/CONTRACT.example.md)。契约必须前置——绝不先写实现、再从代码事后导出契约,那样契约永远滞后、必然漂移。
  2. 各端以契约为强制起点开发。 每端读取机器契约对应段、只读不改。每个接口任务第一步就是读 CONTRACT.md 及其机器契约,不是凭记忆;复杂改动先声明"我打算怎么对齐契约",审过再写代码——在偏离前就拦下来。
  3. 要改接口 → 提契约变更请求。 不在实现里偷改。模式 A 回报 director;模式 B 写进约定位置(Issue 或 PROJECT_LOG.md 的 contract-request),由契约拥有者裁决后更新契约。破坏性变化必须同时写明兼容期、消费者迁移顺序、回滚条件和不可逆部分;缺失时不进入实现。
  4. 本端自检。 消费方回查所有用到的字段是否都在契约里;提供方跑契约校验测试。
  5. 集成对账。 逐字段核对:提供方返回 vs 契约、消费方用到的字段 vs 契约、字段名大小写/枚举值是否一致。对不上 → 指出哪边偏离、让其修正;若契约本身不合理 → 契约拥有者改契约再让各端对齐。
  6. 记账。 契约有变更 → 往 PROJECT_LOG.md 追加一行 ## [日期] contract | 改了什么接口、为什么(与 living-docs-governance 共用同一本流水账)。

例子

  • 字段名漂移:前端按契约用 userName,后端数据库列叫 user_name。后端在接口层做映射,对外一律按契约 userName,集成对得上。
  • 多终端不用互等:契约先定好,前端在终端1按契约造 mock 把整个下单页跑通,后端在终端2按契约写实现 + 校验测试,两边并行、互不打扰,联调时一次对齐。
  • 多终端改字段:终端1 前端发现少个字段,不去打断终端2,而是在契约"待定变更"区写一条请求;契约拥有者评估后更新 CONTRACT.md,两个终端各自重新拉取对齐。

相关

  • contract-director(契约拥有者/对账)、frontend-dev / backend-dev(各端工人)—— 执行这套方法论的 agent,两种模式通用。
  • living-docs-governance skill —— 防项目文档漂移的姊妹篇;两套共用一本 PROJECT_LOG.md。

角色边界与执行证据

  • 契约拥有者只维护契约、处理变更请求、按已选择模式分工与集成,不实现业务代码;派工注明文件所有权,各端不得回退其他协作者的改动。
  • 消费方只写分配的消费方目录;提供方只写分配的提供方目录。两者均只读契约,变更请求写到约定的 Issue/LOG,不越权编辑契约入口的“待定变更”区。
  • 消费方从同一机器契约生成或校验类型和 mock;没有提供方时可先做契约已定义范围内的页面,不能把新猜测字段塞入 mock 当真。
  • 提供方验证真实序列化响应,覆盖字段改名、大整数 ID、空值、枚举和错误结构;内部 DTO 或状态码为 200 不是足够证据。
  • 用 test-collaboration 将契约格式、消费者、提供者、真实联调四层证据关联到同一 TEST-ID 和契约版本;未跑真实联调时标缺口。
  • 模板参考 tests/test_contract_template.py 只证明模板格式和响应约束,不证明用户项目已经生成类型、实现服务或完成联调。

© qshanx, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/contract-first of qshanx/docs-governance.

Open the folder on GitHubat commit 520696e

Compare with similar skills

Contract First next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Contract First compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Contract First this skillqshanx/docs-governance134—~1.2kAutomated safety check: PassMIT
API DesignerJeffallan/claude-skills12k1 repos~2kAutomated safety check: PassMIT
Pangolin CRUD Endpointsfosrl/pangolin23k—~461Automated safety check: PassCustom licence
Designing APIsCloudAI-X/claude-workflow-v21.4k1 repos~1.2kAutomated safety check: PassMIT
Old Coder API DesignAmazingAng/old-coder749—~3.4kAutomated safety check: PassMIT
API Surface Reviewpolarsource/polar10k—~1.3kAutomated safety check: PassMIT

Similar skills

  • API Designer

    Jeffallan/claude-skills

    Designs REST and GraphQL APIs from resource modeling to an OpenAPI 3.1 contract, with versioning, pagination and RFC 7807 error handling.

    12k GitHub starsUsed in 1 repo~2k tokens
    Backend & APIsAuto-check passed
  • Use whenever asked to add, create, or scaffold a CRUD endpoint, router, or entity in this repo's server (create/list/get/update/delete handlers, new…

    23k GitHub stars~461 tokensUpdated today
    Backend & APIsAuto-check passed
  • Designing APIs

    CloudAI-X/claude-workflow-v2

    Designs REST and GraphQL APIs including endpoints, error handling, versioning, and documentation.

    1.4k GitHub starsUsed in 1 repo~1.2k tokens
    Backend & APIsAuto-check passed
  • Old Coder API Design

    AmazingAng/old-coder

    Reviews or designs an HTTP/JSON API's endpoints, auth, pagination, versioning and deprecations, guarding against inventing a bespoke interface or silently breaking consumers.

    749 GitHub stars~3.4k tokensUpdated 1 mo ago
    Backend & APIsAuto-check passed
  • API Surface Review

    polarsource/polar

    Review changes to Polar's API contract — Pydantic schemas, FastAPI endpoints, OpenAPI output and the generated SDKs.

    10k GitHub stars~1.3k tokensUpdated today
    Backend & APIsAuto-check passed
  • API Contract

    ChenyCHENYU/Robot_Admin

    A skill your agent uses when: generating TypeScript API layer (type definitions + request functions) from page-spec JSON or Swagger/OpenAPI docs.

    1k GitHub stars~1.9k tokensUpdated today
    Backend & APIsAuto-check passed

More from qshanx/docs-governance

All 10 skills in this repo
  • Agent Entrypoints

    qshanx/docs-governance

    根据项目事实与已确认讨论生成、精简或审查 AGENTS.md / CLAUDE.md,明确共享规则主文件、可执行约束、PRD / Spec 读取路标和验证入口。用于项目入口只有空模板、规范含糊、双入口冲突或需要设置 Agent 项目说明时。English triggers: AGENTS.md, CLAUDE.md, project instructions, agent entrypoint…

    134 GitHub stars~1.3k tokensUpdated today
    Auto-check passed
  • Module Regression

    qshanx/docs-governance

    大项目模块间联动回归——一份 REGRESSION.md 回归台账登记"每个模块的下游消费者 + 可执行的回归验收命令",每次改动后照台账跑回归审计,防"改一个模块悄悄弄坏其他模块"。判决靠退出码,不靠 AI 看着没问题。中文触发:模块回归、回归台账、回归审计、改A坏B、模块联动检查、影响面检查、模块牵连、下游验证、大项目改动检查。English triggers: module…

    134 GitHub stars~811 tokensUpdated today
    Auto-check passed
  • Docs Governance

    qshanx/docs-governance

    作为面向长期 AI 协作项目的知识、决策与验证治理总入口,把优秀 Agent 的一次性工作沉淀为可继承、可验证、可持续演进的项目集体能力;根据用户意图把任务路由到活文档、领域上下文与 ADR、变更影响、接口契约、测试资产、模块回归或闭环设计能力,并在大型变更中组织正确顺序。用于用户只说“文档治理”“项目治理”“帮我整理项目知识”“改完怎么收尾”而未指定具体…

    134 GitHub stars~485 tokensUpdated today
    Auto-check passed
  • Living Docs Governance

    qshanx/docs-governance

    把长期项目的文档当成一个小系统来维护,防止文档腐烂——四份各司其职的脊柱文件(CLAUDE.md 共享章程 / CLAUDEMAP.md 地图 / PROJECTSTATUS.md 健康仪表盘 / PROJECTLOG.md 流水账)+ Codex 的 AGENTS.md 入口桥接 + 固定读序,并按需连接 ARCHITECTURE、CONTEXT、ADR、契约、测试、回归和 Issue…

    134 GitHub stars~4.1k tokensUpdated today
    Auto-check passed
  • Loop Design Check

    qshanx/docs-governance

    把一个任务"写成"一个目标导向的 loop,并"检查"这个 loop 写得对不对、会不会跑飞——防止空转烧钱 / Goodhart 作弊 / 把错的干到底。两个动作:① 写 loop(先做减法判该不该建 → 定可判定目标 → 选回路类型 → 选骨架)② 体检 loop(过五个崩法 + 可判定性 + 边界 + 降级 + judge 独立 + 判断留人红线)。中文触发:写 loop、设计…

    134 GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Product Evolution

    qshanx/docs-governance

    在 docs 下建立或维护产品管理入口,登记材料来源,统一需求编号、状态与修订,连接需求池、单需求、版本及验收复盘,并只读审查需求演变是否可追溯。用于产品文档管理员、PRD 版本混乱、产品进展难以理解、已确认决定未回写或需要产品文档审查时。English triggers: product documentation manager, product evolution, PRD…

    134 GitHub stars~2.1k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Contract First

What does Contract First do?

分前端/后端(或多个服务)多端开发的项目,用 CONTRACT.md 指向的唯一机器契约,各端只照它各做各的,防止字段漂移导致集成时白屏。支持单会话多 agent 和多终端各自跑两种模式。只要项目有前后端/多服务、接口字段老对不上、各端联调卡住、某端改了字段忘了通知别人、或前端为渲染一个页面要调一堆接口拼数据,就用这个…. Contract First is an agent skill from qshanx/docs-governance.md 指向的唯一机器契约,各端只照它各做各的,防止字段漂移导致集成时白屏。支持单会话多 agent 和多终端各自跑两种模式。只要项目有前后端/多服务、接口字段老对不上、各端联调卡住、某端改了字段忘了通知别人、或前端为渲染一个页面要调一堆接口拼数据,就用这个 skill,哪怕用户没明说"契约"。这套方法论的学名是消费者驱动契约(Consumer-Driven Contracts, CDC)/ 契约测试。中文触发:契约式开发、接口契约、前后端协作、多终端协作、防字段漂移、接口对不上、联调、API 契约、字段命名不一致、集成白屏、唯一真相源、契约测试、CDC。English triggers: contract-first development, consumer-driven contracts, contract testing, API contract, frontend backend collaboration, multi-terminal, prevent field drift, provider verification.

When should I use Contract First?

Contract First fits situations like: tasks that involve Integration testing; tasks that involve API design.

How do I install Contract First in Claude Code?

Run `npx skills add qshanx/docs-governance --skill contract-first -a claude-code`. Or copy the skill folder (skills/contract-first in qshanx/docs-governance) into .claude/skills/contract-first in your project. Claude Code loads it when a task matches its description.

How do I install Contract First in Codex?

Run `npx skills add qshanx/docs-governance --skill contract-first -a codex`. Or copy the skill folder (skills/contract-first in qshanx/docs-governance) into .agents/skills/contract-first in your project. Codex loads it when a task matches its description.

Can I use Contract First in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add qshanx/docs-governance --skill contract-first -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/contract-first, .gemini/skills/contract-first, .github/skills/contract-first and .opencode/skills/contract-first in your project.

What does Contract First need to run?

SKILL.md names no scripts, command-line tools or credentials: Contract First is instructions for the agent only.

Does Contract First access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Contract First safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Contract First use?

Contract First is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Contract First use?

About 1.2k tokens (SKILL.md is roughly 4.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Contract First?

Skills that share tags, products or a category with Contract First: API Designer (Jeffallan/claude-skills, 12k stars), Pangolin CRUD Endpoints (fosrl/pangolin, 23k stars), Designing APIs (CloudAI-X/claude-workflow-v2, 1.4k stars) and Old Coder API Design (AmazingAng/old-coder, 749 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Contract First?

qshanx (a GitHub user) maintains it in qshanx/docs-governance, which has 134 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on October 9, 2026.

Source: qshanx/docs-governance on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.