cognitive-update — скилл для Claude Code: обновление состояния
Скилл cognitive-update для Claude Code обновляет цели, убеждения, модель себя и процедуры по явным свидетельствам. Агент подключает его для изменения когнитивного или runtime-состояния.
MIT ★ 26 обновлён 2026-11-16
npx skills add wrg32786/aigent-os --skill cognitive-update -a claude-codeЧто делает cognitive-update
Скилл меняет файлы состояния проекта: GOAL_STACK.json, BELIEF_STATE.jsonl, SELF_MODEL.json и PROCEDURES.jsonl. Он принимает обновления по явным заявлениям оператора с постоянной ссылкой на источник, результатам команд или тестов, внешним артефактам и повторяющимся наблюдениям. Одного утверждения агента недостаточно для долговременного изменения.
Скилл ограничивает запись этими четырьмя файлами и не меняет ACTIVE_STATE.json или STATE_EVENTS.jsonl. Перед записью он сравнивает хеши файлов с исходными, а после обновлений запускает проверку COGNITIVE_CONTRACT. Для ручного запуска протокола нужны Node.js, каталог aigent-root и временный снимок, созданный командой node daemons/nightly-contracts.mjs snapshot. Изменившийся после чтения хеш прерывает запись.
Какие задачи решает
- зафиксировать явную цель или блокер в
GOAL_STACK.json - добавить подтверждённое убеждение в
BELIEF_STATE.jsonl - обновить поле способности или ограничения в
SELF_MODEL.json - сохранить повторяемую процедуру в
PROCEDURES.jsonl - проверить изменения когнитивного состояния по снимку
Примеры запросов агенту
- Обнови когнитивное состояние по явным свидетельствам.
- Зафиксируй эту цель в
GOAL_STACK.jsonи проверь контракт. - Добавь повторяемую процедуру в
PROCEDURES.jsonlна основе наблюдений.
Как установить cognitive-update
1Через Skills CLI (Vercel)
npx skills add wrg32786/aigent-os --skill cognitive-update -a claude-code2Вручную: положить файлы
~/.claude/skills/cognitive-update/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/cognitive-update/
1Через Skills CLI (Vercel)
npx skills add wrg32786/aigent-os --skill cognitive-update -a codex2Вручную: положить файлы
.agents/skills/cognitive-update/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add wrg32786/aigent-os --skill cognitive-update -a cursor2Вручную: положить файлы
.cursor/skills/cognitive-update/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install wrg32786/aigent-os skills/cognitive-update2Вручную: положить файлы
.github/skills/cognitive-update/SKILL.md1Через Skills CLI (Vercel)
npx skills add wrg32786/aigent-os --skill cognitive-update -a gemini-cli2Командой платформы
gemini skills install https://github.com/wrg32786/aigent-os --path skills/cognitive-updateВручную: положить файлы
.devin/skills/cognitive-update/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add wrg32786/aigent-os --skill cognitive-update -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о cognitive-update
Как установить cognitive-update в Claude Code?
Выполни npx skills add wrg32786/aigent-os --skill cognitive-update -a claude-code. Файл скилла находится по пути ~/.claude/skills/cognitive-update/SKILL.md.
Что делает cognitive-update?
Он обновляет цели, убеждения, модель себя и процедуры только по явным свидетельствам. Перед записью проверяет, что исходные файлы не изменились.
Какие свидетельства принимает cognitive-update?
Явное заявление оператора со ссылкой на источник, результат команды или теста с кодом выхода, внешний артефакт либо два независимых наблюдения повторяющегося события. Записи Session Log и capsules сами по себе не подтверждают свои утверждения.
Исходный текст
SKILL.md · MIT
--- name: cognitive-update agent: none description: "Update GOAL_STACK, BELIEF_STATE, SELF_MODEL, and PROCEDURES from explicit evidence. Use when updating cognitive state or runtime state." allowed-tools: Read, Write, Bash user-invocable: true status: PRODUCTION - conservative and source-referenced triggers: - cognitive update - update cognitive state - runtime state update --- # /cognitive-update Nightly uses this shared protocol after `/system-check`. It never infers a durable state change from one agent-authored claim. ## Ownership fence This protocol may update only: - `vault/memory/runtime/GOAL_STACK.json` - `vault/memory/runtime/BELIEF_STATE.jsonl` (append-only) - `vault/memory/runtime/SELF_MODEL.json` - `vault/memory/runtime/PROCEDURES.jsonl` (append-only) The documented `memory/` fallback is valid for minimal installations. This protocol never writes `ACTIVE_STATE.json` or `STATE_EVENTS.jsonl`; the runtime state daemon owns those products. It never writes Dream or measurement ledgers. ## Evidence admission Direct updates require one of: - the operator's explicit goal, belief, or procedure statement with a durable source reference; - a repository-owned command or test invoked with explicit arguments and a literal exit code; - an external artifact that directly decides the claim; - two independent observed occurrences for a recurring capability or failure. Capsules and Session Log entries are discovery sources. They cannot verify their own confident claims. If evidence is incomplete, skip the durable update and stage an observation through the nightly evidence flow. ## File rules ### GOAL_STACK.json Move, append, or update only explicit goals, blockers, next actions, and completions. Completion requires success criteria plus an external artifact or operator confirmation. Preserve unknown fields and unrelated arrays. ### BELIEF_STATE.jsonl Append only. A revision reuses the original id and includes `revision_note`; a new belief receives max numeric `bNNN` plus one. Do not use line count. Serialize UTF-8 JSON and parse the appended line. ### SELF_MODEL.json Update only named capability, limitation, recurring-failure, reliability-risk, or achieved-learning-goal fields. When alias arrays coexist, update each alias pair in lockstep or fail `SELF_MODEL_ALIAS`. A one-off result is not a durable capability. ### PROCEDURES.jsonl Append only when the sequence occurred at least twice, the operator explicitly made it standing, or a non-obvious workflow was mechanically proven. Allocate max numeric `pNNN` plus one and parse after append. ## Write discipline Hash every source immediately after read and compare again before write. A hash change aborts rather than clobbering newer state. Preserve JSON formatting where practical; always serialize JSONL. A nightly fire uses the immutable snapshot created by `nightly-pass begin`. For explicit use, create an operating-system temp snapshot: ```text node daemons/nightly-contracts.mjs snapshot --root <aigent-root> \ --out <os-temp>/cognitive-contract-before.json ``` After any updates: ```text node daemons/nightly-contracts.mjs cognitive --root <aigent-root> \ --snapshot <os-temp>/cognitive-contract-before.json \ --new-belief-ids <csv> --new-procedure-ids <csv> \ --self-alias-additions <csv> ``` Only `COGNITIVE_CONTRACT PASS` is green. The validator re-parses all four products, proves append-only suffixes, derives allocated ids, validates new-row schemas, and derives alias additions and removals. Return: ```text COGNITIVE_UPDATE PASS goals=<N> beliefs=<N> self_model=<N> procedures=<N> skipped=<N> ```
© wrg32786 · MIT · wrg32786/aigent-os