Command Palette

Search for a command to run...

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

create-formal-verification-skill

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

WHEN a project needs its first reusable Everystate check for a race, retry or bounded state invariant; NOT for running or refreshing an existing check…

mintuzот mintuz★ 38 звёзд на GitHub

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

Create a formal verification skill

Deliver a repository-local skill that a developer can run after changing covered code. Inspect existing verification commands, CI, skill discovery and models before choosing files. Extend an existing project verifier when it already owns the flow.

  1. Start with the requested area or the most consequential ordering-dependent failure you can ground in the code. State one user-visible promise, its authority and the harm if it breaks. Identify all writers, including callbacks, retry and recovery paths. If the question requires unbounded proof, hardware behavior or exhaustive execution of arbitrary code, explain what evidence that requires before claiming coverage.
  2. Write a finite TLA+ model and configuration for Everystate. Map each action to a named source symbol. Split actions at observable suspension, transaction and ownership boundaries. Model distinct worker identity even when two workers share a logical key. Include relevant failure paths. Declare the bounds, initial states, environmental assumptions and excluded behavior. For liveness, justify fairness and progress assumptions.
  3. Pin a tested checker version. For example, with Node 20+, run npx --yes [email protected] -json Spec.tla from the model directory. Use the JSON verdict and the process exit code. For an invariant require exit 0 and status ok on the healthy configuration. Change one guard in a separate configuration and require exit 12, status invariant, and the intended invariant name. Use the appropriate verdict for a liveness or deadlock property. A parse error, timeout or missing binary is a failed gate. Explain each genuine counterexample as a sequence of product events.
  4. Connect the check to the implementation. Capture ordered JSONL observations at the production boundary, including action, worker identity and state needed to distinguish correct behavior. Run npx --yes [email protected] conform -json -trace run.jsonl Spec.tla. Check the verdict, expected observation count, matched count and ignored count. When a trace is impractical, use a deterministic regression test through the real entry point and identify the remaining gap. A hand-written trace only tests the model.
  5. Generate the local skill with discovery frontmatter, concrete commands and a per-property coverage record: source paths and symbols, reviewed commit, bounds, assumptions, negative control, implementation evidence and how to interpret failure. Put one runner behind the local verification flow and CI where the project already uses them. A missing required check makes the aggregate fail. Preserve current product failures as findings.
  6. Follow the generated instructions from a clean start. In a disposable copy, break the corresponding production guard and run the documented gate. Verify the failure identifies the intended property or behavior. Restore the copy and rerun. If only the model mutation fails, disclose that the implementation link is unverified. Report the actual runs, bounds, findings, and remaining gaps. Revisit the coverage record with maintain-formal-verification-skill after covered code changes.

Tool reference: Everystate formal verification.

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

Установить create-formal-verification-skill в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл create-formal-verification-skill?

WHEN a project needs its first reusable Everystate check for a race, retry or bounded state invariant; NOT for running or refreshing an existing check; creates a source-mapped project skill and a reproducible verification gate.

Как установить скилл create-formal-verification-skill?

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

Скилл create-formal-verification-skill запускает скрипты?

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

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

Сравнить create-formal-verification-skill с