정보
이 스킬은 참조 소스(예: 웹사이트)에서 테스트 계약을 생성하고 다른 표면(예: 앱이나 문서)이 이와 일치하는지 확인하여 불일치를 자동으로 포착합니다. 여러 플랫폼 간에 공유된 사실, 규칙 또는 값의 일관성을 강제하여 사용자에게 노출되는 모순을 방지하는 데 사용하세요. 이는 차이를 감지하기 위한 것으로, 어떤 버전이 정확한지 결정하는 용도가 아닙니다.
빠른 설치
Claude Code
추천npx skills add JasonColapietro/suede-creator-skills -a claude-code/plugin add https://github.com/JasonColapietro/suede-creator-skillsgit clone https://github.com/JasonColapietro/suede-creator-skills.git ~/.claude/skills/suede-parity-contractClaude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요
문서
Suede Parity Contract
Iron Law: generate the contract from the reference surface's live constants.
A contract you transcribe is a second copy, and second copies drift.
A contract you generate cannot disagree with the code it came from.
Silent drift is the failure this prevents. Nothing crashes when a threshold is copied wrong into a second language. The two surfaces simply start answering the same question differently, and a user finds out before you do.
Step 1 — Name one reference surface
Exactly one surface is the reference. Every other surface is a follower that asserts against it. Two references is two sources of truth with extra steps.
Pick the surface where the domain is most complete and most exercised, and write
that choice into the contract's reference field so nobody re-litigates it.
Step 2 — Build the contract by importing, never retyping
The builder imports the constants from the modules the application actually runs on and serializes them. Retyping a value into the builder reintroduces exactly the copy this skill exists to delete.
When a needed value is private, export it rather than duplicating it. That is a one-line change and it keeps the count of definitions at one.
Serialize with stable key order and a trailing newline, because followers vendor the file verbatim and a reformat shows up as a spurious diff.
Step 3 — Make staleness fail on the reference side
One test rebuilds the contract in memory and compares it to the committed file. Without it the JSON is a snapshot someone took once.
Give it a write mode so regeneration is one command, and put that command in the
contract's README and in the file's own note field:
CONTRACT_WRITE=1 <test runner> <contract test>
Compare parsed objects first so the failure names the key that moved, then compare raw bytes so a reformat is caught too.
Step 4 — Vendor byte-identical to each follower
Followers keep a copy at the same relative path. Prove it matches rather than assuming:
shasum -a 256 <reference>/contracts/<name>.json <follower>/contracts/<name>.json
Two identical hashes, or the copy is stale. Record the re-sync command in the follower's README so the next person does not invent one.
Step 5 — Assert through public behavior, not private internals
A follower test that reimplements the reference formula proves only that you can write the same bug twice.
Assert what a user experiences. For a ladder, feed the contract's rung values to the public accessor and check the level it returns. For a threshold, check the boundary and one step below it — a threshold asserted only from above still passes after it moves down.
Start the follower suite with a test that the contract loaded and is non-empty. A file that fails to load makes every assertion after it vacuously true.
Step 6 — Pin the divergences you already have
You will find existing differences. The contract's job on day one is to make them visible and hold them still, not to erase them.
Record each under knownDivergences with the value on each surface and a
reason that survives you leaving. Then add a guard asserting the divergence
list is exactly the expected set, so an entry added elsewhere is a failure
rather than a silence.
Each pinned divergence gets two assertions on the follower: that it still differs by the recorded amount, and that it does not equal the reference. The second one fires when someone closes the divergence and forgets the contract.
Halt format — a divergence found mid-build
Changing a shipped constant changes behavior for real users, and which surface is right is a product decision. At the moment you find one, stop and report:
Divergence: <key>. <reference surface> says <a>, <follower> says <b>.
Both shipped. <one line on what a user feels>.
1. Move <follower> to <a>
2. Move <reference> to <b>
3. Record it and decide later
Then wait. Do not pick for the user, and do not change either side as a side effect of writing a contract.
Step 7 — Prove non-vacuity on both sides, in this run
A parity test that cannot fail is worse than none, because it reads as evidence.
Reference side: change one constant, watch the staleness test fail naming that key, restore it, watch it pass. Follower side: edit one value in the vendored copy, watch exactly the matching assertion fail, restore.
Paste both the failing and the passing output. "The tests pass" is not proof that they can fail.
Step 8 — Closing a divergence is a two-repo operation
Both halves land or neither does:
- Change the constant on the surface that is moving.
- Delete the
knownDivergencesentry and regenerate the contract. - Re-sync the vendored copy to every follower.
- Replace that follower's pinning test with a plain equality assertion.
- Update the divergence-list guard to the new expected set.
Half of this leaves a red suite that names the missing half, which is the design working.
Versioning
Bump version only when the shape changes: a key added, removed, or
renamed. A changed value is never a version bump. A value is the thing the
contract exists to surface, and a follower should meet it as a failing
assertion rather than as a version it is allowed to skip.
Done means
Every line proven by a command in this run:
- The staleness test fails on a changed reference constant and names the key.
- Every follower's vendored copy hashes identical to the reference's.
- Every follower suite passes, and its contract-load test proves the file is really there.
- Both non-vacuity demonstrations from Step 7 have pasted output.
- The divergence-list guard names the same set the follower tests pin.
Boundaries
- Do not decide which surface's value is correct. Record, report, and let the user choose.
- Do not change a shipped constant as a side effect of writing a contract.
- Do not hand-edit a generated contract or a vendored copy. Edit the source constant and regenerate.
- Do not add a value to the contract that no follower asserts. An unasserted key reads as coverage and provides none.
- Do not put credentials, hostnames, or per-environment configuration in a parity contract. It carries domain constants that must agree everywhere.
- Do not let a follower's contract test reimplement the reference's formula. Assert the observable result.
Routing
- Need branch, worktree, or stale-mirror handling for the two repos this touches -> a private Suede Labs companion, not in this pack: suede-git-hygiene.
- Need the resulting tests wired as required checks or merge gates -> use
suede-ci-gate. - Need findings-only review of the contract diff -> use
suede-code-review. - Need findings plus an A-F ship verdict -> use
suede-code. - Need to root-cause why two surfaces behave differently when the constants already match -> a private Suede Labs companion, not in this pack: suede-debug.
- Need to plan a multi-file rollout across surfaces -> use
suede-graph-flo-xr, then return here for the contract itself. - From
suede-code-review: route "these two surfaces hold the same constant twice" findings back tosuede-parity-contract.
GitHub 저장소
자주 묻는 질문
suede-parity-contract Skill이란 무엇인가요?
suede-parity-contract은(는) JasonColapietro이(가) 만든 Claude Skill입니다. Skill은 Claude가 필요할 때 불러오는 지침과 리소스를 묶어 추가 프롬프트 없이 suede-parity-contract 관련 작업을 수행할 수 있게 합니다.
suede-parity-contract은(는) 어떻게 설치하나요?
이 페이지의 설치 명령을 사용하세요. suede-parity-contract을(를) Claude Code 플러그인으로 추가하거나 저장소를 skills 디렉터리에 복제한 다음 Claude를 다시 시작해 Skill을 불러옵니다.
suede-parity-contract은(는) 어떤 카테고리에 속하나요?
suede-parity-contract은(는) 메타 카테고리에 속합니다.
suede-parity-contract은(는) 무료로 사용할 수 있나요?
네. suede-parity-contract은(는) AIMCP에 등록되어 있으며 무료로 설치할 수 있습니다.
연관 스킬
이 스킬은 콘텐츠 콜렉션(Content Collections)을 위한 프로덕션 검증된 설정을 제공합니다. 콘텐츠 콜렉션은 Markdown/MDX 파일을 Zod 검증이 포함된 타입 안전한 데이터 콜렉션으로 변환해주는 TypeScript 최우선 도구입니다. 블로그, 문서 사이트 또는 콘텐츠 중심의 Vite + React 애플리케이션을 구축할 때 타입 안전성과 자동 콘텐츠 검증을 보장하기 위해 사용하세요. Vite 플러그인 구성과 MDX 컴파일부터 배포 최적화 및 스키마 검증에 이르기까지 모든 것을 다룹니다.
이 스킬은 개발자들이 Polymarket 예측 시장 플랫폼을 활용한 애플리케이션을 구축할 수 있도록 지원하며, 거래 및 시장 데이터를 위한 API 통합 기능을 포함합니다. 또한 WebSocket을 통한 실시간 데이터 스트리밍을 제공하여 실시간 거래와 시장 활동을 모니터링할 수 있습니다. 이를 통해 거래 전략을 구현하거나 실시간 시장 업데이트를 처리하는 도구를 생성하는 데 활용할 수 있습니다.
이 스킬은 개발자들이 명령어, 파일, LSP 작업 등 25개 이상의 이벤트 유형에 연결되는 OpenCode 플러그인을 만들 수 있도록 돕습니다. JavaScript/TypeScript 모듈을 위한 플러그인 구조, 이벤트 API 명세, 구현 패턴을 제공합니다. OpenCode AI 어시스턴트의 라이프사이클을 사용자 정의 이벤트 기반 로직으로 가로채거나, 모니터링하거나, 확장해야 할 때 사용하세요.
SGLang은 RadixAttention 프리픽스 캐싱을 활용하여 JSON, 정규식, 에이전트 워크플로우를 위한 고속 구조화 생성에 특화된 고성능 LLM 서빙 프레임워크입니다. 특히 반복되는 프리픽스가 있는 작업에서 상당히 빠른 추론 속도를 제공하여 복잡한 구조화 출력 및 다중 턴 대화에 이상적입니다. 제약 디코딩이 필요하거나 광범위한 프리픽스 공유가 있는 애플리케이션을 구축할 때는 vLLM과 같은 대안보다 SGLang을 선택하십시오.
