vstack-s3-model — скилл для Claude Code: модель и установка
Скилл vstack-s3-model для Claude Code строит модель переходов по закреплённому коду. Он задаёт действия среды и движка, проверяет условия и сохраняет видимые промежуточные шаги.
MIT ★ 89 обновлён 2026-11-16
/plugin marketplace add hao-ai-lab/vstack
/plugin install vstack@hao-ai-lab-vstackЧто делает vstack-s3-model
Скилл помогает собрать проверяемую модель переходов по замороженным контрактам и картам исходного кода. Он связывает действия и методы учёта со строками и ревизиями, а константы берёт из закреплённого кода, когда это возможно.
Отдельные общие записи остаются отдельными шагами модели; Next задаётся как их дизъюнкция. Для внешних событий вроде отмены, разрыва соединения и тайм-аута описываются действия среды и ответы движка. Для критических путей нужны свидетели достижимости, а предположения о зависимостях отображения перечисляются в заголовке ASSUMES.
Скилл также задаёт проверки инвариантов, справедливости и завершения, помогает сохранить пути отказа и проверить комбинации переключателей. Скрипты scripts/assumptions_check.sh и scripts/op_mirror.sh проверяют ограниченный синтаксис, но не разбирают TLA+ семантически. Универсального проверяющего привязки к исходникам нет; часть проверок выполняется вручную.
Какие задачи решает
- связать действия модели со строками и ревизиями исходного кода
- сохранить отдельные шаги для видимых общих записей
- описать внешние стимулы и ответы движка
- проверить достижимость критических путей и инварианты
Примеры запросов агенту
- Построй модель переходов по закреплённому коду и свяжи действия со строками и ревизиями.
- Опиши отмену и тайм-аут как действия среды, а ответы движка — отдельно.
- Проверь границы действий, завершение и условия блокировки в модели.
Как установить vstack-s3-model
1Через маркетплейс плагинов
/plugin marketplace add hao-ai-lab/vstack/plugin install vstack@hao-ai-lab-vstackКоманда ставит плагин vstack целиком, со всеми его скиллами
2Через Skills CLI (Vercel)
npx skills add hao-ai-lab/vstack --skill vstack-s3-model -a claude-code3Вручную: положить файлы
~/.claude/skills/vstack-s3-model/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/vstack-s3-model/
1Через Skills CLI (Vercel)
npx skills add hao-ai-lab/vstack --skill vstack-s3-model -a codex2Вручную: положить файлы
.agents/skills/vstack-s3-model/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add hao-ai-lab/vstack --skill vstack-s3-model -a cursor2Вручную: положить файлы
.cursor/skills/vstack-s3-model/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install hao-ai-lab/vstack skills/vstack-s3-model2Вручную: положить файлы
.github/skills/vstack-s3-model/SKILL.md1Через Skills CLI (Vercel)
npx skills add hao-ai-lab/vstack --skill vstack-s3-model -a gemini-cli2Командой платформы
gemini skills install https://github.com/hao-ai-lab/vstack --path skills/vstack-s3-modelВручную: положить файлы
.devin/skills/vstack-s3-model/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о vstack-s3-model
Как установить vstack-s3-model в Claude Code?
Добавь маркетплейс командой /plugin marketplace add hao-ai-lab/vstack, затем установи плагин: /plugin install vstack@hao-ai-lab-vstack.
Что делает vstack-s3-model?
Помогает строить модель переходов по закреплённому коду: связывает действия с исходными строками, сохраняет межпоточные чередования и задаёт проверки среды и движка.
Как vstack-s3-model обрабатывает внешние события?
Стимулы среды, например отмена или тайм-аут, моделируются действиями Env_*, а ответы движка — действиями Engine_*. Справедливость задаётся только для действий движка, кроме отдельно названных контрольных конфигураций.
Исходный текст
SKILL.md · MIT
--- name: vstack-s3-model description: "Construct state transitions or computation descriptors from pinned code without hiding interleavings or unchecked assumptions." --- # S3 — Build an anchored model Read [Layer 0: shared operating rules](../../docs/layer-0.md), this stage and the assigned input bundle. ## Role and write scope The worker owns a new model version and append-only notes, never upstream pins or gold expectations. ## 1. Input Frozen contracts from S2 and maps from S0, with hashes. ## 2. Procedure 1. Fill [the case playbook](../../templates/case-playbook.md). Bind every action, descriptor and ledger method to source lines and revision. For the full adequacy readout, write each modeled guard and state update as a named operator and list it in the [anchor map](../../docs/model-adequacy.md#anchor-map). 2. Extract constants from pinned source when possible; do not let a correct verdict hide a transcribed constant error. 3. Preserve atomicity: two separately visible shared writes are two model steps. Name actions; make `Next` their disjunction; keep deadlock checking and an explicit legitimate terminal action. 4. Use switches for historical bugs and repair components in one model. `Bug*` needs a real historic revision; use `Mut*` otherwise. Check complete switch combinations against the source revision. 5. Give critical paths reachability witnesses (`W_*`, see [anti-vacuity checks](../../docs/exposure-gate.md#anti-vacuity-checks)). Declare unchecked mapping dependencies in one `ASSUMES` header and ensure every using configuration checks them; this comment is not permission to add proof axioms. 6. Finish invariant discovery and have the coordinator pin its full definition before deductive proof. Prove this calibrated model; prove bridges from proof-layer helpers to its pinned definitions. Do not replace the model. 7. Model the environment by the rules below. ### Open environment Model each external stimulus `E` (cancel, disconnect, session close, admin pause, cache flush, weight update, timeout expiry) as `Env_*` actions and the engine's responses as `Engine_*` actions; one action may carry both when the code dispatches them together. | Rule | Requirement | |---|---| | Input enabled | For each `E`, define `InputEnabled_<E> == EnvPremise_<E> => ENABLED Handle_<E>` and check it as an invariant. `EnvPremise_<E>` holds while the environment's own finite budget lasts and the object exists from the client's side (for example `nAbort < MaxAbort` and the request is still open for its client). `Handle_<E>` is any action that takes `E`: handles it now, records it as pending, or rejects it by a code branch. TLC evaluates `ENABLED` in invariants; with a checker that cannot, cover every branch explicitly or give each branch a reachability witness. | | Guard rule | Every enabling guard of every action, `Engine_*` included, is either the condition the code evaluates at its `file:line@commit` anchor or a registered finite bound or `\* ASSUMES:` premise. Anything else is illegal pruning; keep real failure paths, such as a full allocator raising or asserting. | | Caller contracts | Restrict a call order only when the engine's documentation forbids it and the code rejects it. Name the restriction `EnvContract_<name>`, declare it in the `\* ASSUMES:` header with the documentation quoted verbatim and its source, and run a robustness control without it. Report a violation in that control as a robustness finding outside the documented contract. | | Fairness | Put `WF`/`SF` on `Engine_*` actions only. Environment actions get no fairness except in a named control. Every liveness check registers `EnvEventuallyQuiet`: a finite total of arrivals, or a named constant after which the environment stops. | | Restrictions | Named environment timing restrictions follow the [asymmetric rule](../../docs/run-review.md#environment-restrictions-and-freedoms): hunt and control configurations only, never a configuration reported as passing. | ## 3. Exit checks - Check every source anchor. The source workflow has case-specific checkers; no generic anchor checker is bundled. - Review action boundaries, named `Next`, termination and deadlock settings manually. - Check every `InputEnabled_<E>` invariant and every `W_*` witness in each delivered configuration. Review each guard against its anchor or registered bound; this is partly manual. - `scripts/assumptions_check.sh MANIFEST` checks the supported header/config syntax. `scripts/op_mirror.sh` checks only its documented record-update dialect; neither is a semantic TLA+ parser. - Confirm that frozen inputs remain unchanged. ## 4. Rollback A missing writer returns to S0 with its source location. A contract defect returns to S2. Do not patch upstream artifacts to fit the new model. Use [a rollback ticket](../../templates/rollback.md). ## Concrete Examples In a PD KV slot lifecycle, dequeue accounting and the following status check may be separately visible. Preserve that interleaving instead of merging both into one atomic model step.
© Hao AI Lab · MIT · hao-ai-lab/vstack