Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

contract-acquisition

БесплатноБез исполняемых скриптовНе проверен

Acquire a platform's or library's real contract from its own toolchain oracles before authoring against an unfamiliar one — infrastructure, a CLI invocation…

eugenelimот eugenelim★ 35 звёзд на GitHub

Об этом скилле

Skill: contract-acquisition

This skill answers one question before you author anything against a platform or library you don't know cold: what is its real contract — the flag set, resource schema, naming and immutability rules, and packaging model of a platform; the versioned signatures, deprecations, and call-order / lifecycle constraints of a library — and where does that contract come from? The field-report failures this closes were not reasoning failures; they were contract failures: invented CLI flags, a violated naming regex, a wrong tool-schema shape, an immutable-field collision, a managed-runtime import model guessed wrong — and, on the software side, a non-existent signature, a removed keyword argument, a wrong return type, a call against a deprecated API. The fix is not to memorize more clouds or more libraries. It is to drive the toolchain's own deterministic oracles — the validate / plan / schema tools a stack ships, the type checker / compiler / introspection a language ships — and to ground authoring in what they return, declaring honestly how strong that oracle is.

This is the generalization of AGENTS.md's "Grep to verify a function exists before importing it": don't guess a flag, a schema field, a constraint, a signature, or a packaging assumption when the toolchain can tell you the truth deterministically. The bare grep confirms a symbol exists; this skill confirms its contract.

The four-way carve — who owns which infra question. Four distinct questions, four owners; keep the lines clean both ways.

  • contract-acquisition (this skill) — is the IaC / invocation correct against the platform's structural contract? (Does this flag exist, this field accept this value, this resource name match the regex, this property is immutable?)
  • cloud-implementation-craft (an operational-safety module) — will the call path even succeed? under-permissioning, timing / eventual-consistency, retry / cold-start, dependency ordering, packaging.
  • security-checklists — is this too open? over-permissioning and security config (IAM blast radius, public exposure, secrets in state).
  • the policy-as-code / CSPM scanner — is the config against policy? per-provider secure-config baselines from vendor-maintained rulesets.

A leaked credential is security-checklists; an under-scoped role that makes the call fail is cloud-implementation-craft; a non-existent flag or an immutable-field collision is this skill.

The four owners above are the infra-question owners. The software surface — an unfamiliar framework / library's contract (signatures, deprecations, call-order / lifecycle) — also rides this skill, across the same tiered protocol (T0 version → T1 type-checker / introspection oracle → T2 curated skill → T3 versioned docs → runtime probe), not just one tier.

Output rendering

Lead with the useful outcome or next action. Use warm, non-blaming language and everyday words. Define an unfamiliar term in a few plain words before naming it; keep proper names and exact technical terms intact. During tool work, do not narrate routine calls. Send an update only for safety, a blocker, a needed decision, a material scope change, a long wait, or an active host requirement. When requesting input, ask only for what is needed now. Ask dependent questions one at a time; otherwise group related questions. Offer no more than three clear choices when choices help. Shape the answer to the facts: one fact needs one sentence; related facts use prose; separate items use bullets; real sequences use numbered steps. For prose artifacts, use descriptive headings, short resumable sections, one fact per sentence, and no repeated summary. Emphasize at most one load-bearing point per section. Group long inventories instead of truncating them. Make the result stand alone. Do needed arithmetic, give real dates or times, and say what a file or link establishes instead of making the reader inspect it. For code and comments, prefer obvious structure and names. Comment on intent, constraints, or trade-offs that the code cannot state clearly. Use a table, tree, flow, or other visual only when it makes a relationship materially easier to understand. Report the current state, not the path taken. Omit dead ends, resolved trade-offs, hedges, and advice the user did not request. When editing maintained prose, consolidate repeated rules and navigation before adding another caveat. Silence and brevity never reduce the work, checks, or requested coverage. Preserve depth, evidence, constraints, warnings, code, diffs, errors, and exact names, paths, and counts. Keep verification compact: pass or fail, count, and runtime. Name a suite when it failed or when the name changes what the reader should do. Before sending, check that the reader can act without countin

Полный SKILL.md на GitHub

Установить contract-acquisition в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/oracle-table.md

FAQ

Что делает скилл contract-acquisition?

Acquire a platform's or library's real contract from its own toolchain oracles before authoring against an unfamiliar one — infrastructure, a CLI invocation, code on a managed runtime, or code against an unfamiliar framework or third-party library whose contract you don't hold. Triggers on "deploy to", "write the Terraform / Pulumi / CDK for", "provision", "what's the right resource shape", "why does this apply fail", "what's the signature / does this still exist in this version", "why does this library call raise". Runs a tiered, tool-keyed protocol — detect the stack or library + version, run the toolchain's validate / plan / synth or the type-checker / compiler + API-surface oracle, consult a curated skill, retrieve versioned docs, then a runtime probe — declares its oracle tier and degrades honestly to the probe when no strong static oracle exists. Do NOT use for code whose contract you already hold (use work-loop directly), nor to review a finished diff (rides quality-engineer).

Как установить скилл contract-acquisition?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл contract-acquisition запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить contract-acquisition с