Command Palette

Search for a command to run...

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

aim-sot

БесплатноЗапускает вложенные скриптыНе проверен

Tracks the source-of-truth for each part of the user's own project — registry schema, templates, and engine (consult / detect-propose / verify). Detects file…

Hidden-Historyот Hidden-History★ 41 звезда на GitHub

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

aim-sot — Source-of-Truth Subsystem

Manages a user-committed .sot/registry.yaml that declares where the canonical truth lives for each boundary of the user's project. Every entry is a pointer + provenance record — no copied source content ever.

Overview

The registry lives in the user's own repository at .sot/registry.yaml, committed alongside code and diff-reviewable by the team. The skill ships the schema, templates, and engine. No project-specific data is baked into the skill.

Modes

Three engine modes:

  • consult — read-only query engine over the user's committed .sot/registry.yaml. Subcommands: list (all entries), get <id> (full entry), where <id> (sot_location), who <id> (owner), drift <id> (drift_check). Global flags: --registry PATH (override path), --json (machine-readable output). Invoked via run-with-env.sh (Pattern B, BP-013). Script: _ai-memory/skills/aim-sot/scripts/aim_sot_consult.py.
  • detect-propose — hybrid auto-discover → propose: scans for candidate components, computes actual state, compares to the registry, and emits a proposed patch on drift or new candidates. Never writes the registry directly.
  • verify — 16-check gate (Schema · Referential · Completeness · Content). Mandatory before any apply; human approval (HITL) required. CI/pre-commit hook is opt-in only, never auto-installed.

Lifecycle

Create (bootstrap a new project)

  1. Discover — run detect-propose run (see Detect-Propose — Invocation); emits candidate proposals, never writes the registry.
  2. Author — apply the Authoring loop to each kept candidate; assemble into .sot/registry.yaml starting from templates/registry.yaml.template.
  3. Verify — run verify (see Verify — Invocation); 0 failures required. On a fresh registry the verdict is CONDITIONAL, not PASS — cold-start K1 skipped_no_baseline and advisory (C1) warnings are expected and do not block apply (see Verdicts); literal PASS needs an established baseline.
  4. Apply — human applies the registry after a clean verdict (HITL).

Update (ongoing — drift and new candidates)

  1. Detect — run detect-propose run; emits drift proposals and new-candidate proposals; never writes the registry.
  2. Author — apply the Authoring loop to any changed or new entries.
  3. Gate — run verify via the pre-apply proposal gate (see Usage — pre-apply proposal gate under Verify — Invocation); mandatory before applying.
  4. Apply — human applies; drift is never auto-applied.

Cross-cutting invariants

  • Propose-only — detect-propose never writes .sot/registry.yaml.
  • Verify gates apply — the 16-check verify gate is mandatory before any apply.
  • Human applies — every registry change requires explicit human action (HITL).
  • Never auto-rewrite — no mode auto-applies drift or candidate proposals.

Consult — Invocation

bash "${AI_MEMORY_INSTALL_DIR:-$HOME/.ai-memory}/scripts/memory/run-with-env.sh" \
  "${AI_MEMORY_INSTALL_DIR:-$HOME/.ai-memory}/_ai-memory/skills/aim-sot/scripts/aim_sot_consult.py" \
  <subcommand> [--json] [--registry PATH]

Detect-Propose — Invocation

bash "${AI_MEMORY_INSTALL_DIR:-$HOME/.ai-memory}/scripts/memory/run-with-env.sh" \
  "${AI_MEMORY_INSTALL_DIR:-$HOME/.ai-memory}/_ai-memory/skills/aim-sot/scripts/aim_sot_detect_propose.py" \
  run [--json] [--registry PATH] [--limit N] [--all] [--write-proposal] [--force]
# Rebuild the 5b derived memory cache explicitly:
bash "${AI_MEMORY_INSTALL_DIR:-$HOME/.ai-memory}/scripts/memory/run-with-env.sh" \
  "${AI_MEMORY_INSTALL_DIR:-$HOME/.ai-memory}/_ai-memory/skills/aim-sot/scripts/aim_sot_detect_propose.py" \
  reindex [--registry PATH]

Hard invariant: detect-propose NEVER writes .sot/registry.yaml — proposals only. The human applies edits manually; the registry is always committed and diff-reviewable.

First run — bootstrap from zero

When no .sot/registry.yaml exists yet, detect-propose run still runs the discovery scan and emits candidate proposals for the project (it does not bail). Bootstrapping a new project:

  1. Discover — run detect-propose run (optionally --all to lift the cap). The scan roots at the project root, or the current working directory when no registry is present, and prints discovered candidates. Add --write-proposal to also scaffold a ready-to-edit staging draft (see below).
  2. Author — for each candidate you keep, apply the Authoring loop (categorize by type → propose entries → write each description to the D1–D4 rubric → fix any FAIL before emit); assemble the results into a new .sot/registry.yaml starting from templates/registry.yaml.template (or from the --write-proposal draft).
  3. Verify — run aim-sot verify to gate the registry through the 16-check taxonomy.
  4. Approve — appl
Полный SKILL.md на GitHub

Установить aim-sot в Claude Code и Claude Desktop

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

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

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

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

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

Bash
Read

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

references/authoring-guide.mdreferences/drift-and-shadow-git.mdreferences/grading-exemplars.mdreferences/hook-setup.mdschema/registry.schema.jsonscripts/aim_sot_consult.pyscripts/aim_sot_detect_propose.pyscripts/aim_sot_shadow.pyscripts/aim_sot_verify.pytemplates/README.md.templatetemplates/registry.yaml.template

FAQ

Что делает скилл aim-sot?

Tracks the source-of-truth for each part of the user's own project — registry schema, templates, and engine (consult / detect-propose / verify). Detects file and directory drift (content-digest and directory tree-digest), runs a machine-local shadow-git history for change detection, and correlates code changes to stale docs (doc-drift via DOCOWNERS). Use when checking SOT drift, choosing a drift_strategy, setting up the shadow git, or reviewing doc-staleness findings. Do NOT use for AI Memory search or save operations, or for checking AI Memory system health (use aim-search, aim-save, or aim-status).

Как установить скилл aim-sot?

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

Скилл aim-sot запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить aim-sot с