Reanchor
Check a session's working assumptions for drift: PRs, issues and branches a handoff or plan cites, base-branch moves, renamed skills. Use when resuming an old…
от melodic-software★ 34 звезды на GitHub
Установить Reanchor в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Reanchor
Purpose
Long-lived and resumed sessions act on stale premises: main has moved, a referenced PR merged or changed shape, a cited skill was renamed, an installed plugin shipped a new version, a locked plan references work that has since landed. This skill checks each premise the session's inputs depend on against the current state, reports what drifted, and hands back a corrected picture to plan from.
It verifies premises; it does not resume the work. Run it before continuing on
old inputs, then hand off by invoking /session-flow:keep-going via the Skill tool to actually pick the work
back up.
What it re-anchors
Read a handoff's premises section by section with
python3 -X utf8 "${CLAUDE_PLUGIN_ROOT}/scripts/save_point.py" read <file> --section "<name>":
every section but Prior sessions and Resume prompt can hold one (Decisions in force, Current rules,
Observations, Environment to re-establish and the rest), and a section moved to the archive file is
read from there.
- Handoff / plan premises. For every PR, issue, or branch a handoff or locked plan references, confirm it is still in the state the document claims: open vs merged/closed, same head, same base, not renamed. A plan that assumes an in-flight PR is often built on one that already landed.
- Base-branch drift. Check whether the working branch is now behind its
base. Derive the base from the base branch of the PR whose head is the current
working branch (or, absent such a PR, the remote's default HEAD), not another
referenced PR's base and not an assumed
main, and mark the check unverifiable if the base cannot be resolved. Fetch that resolved base ref explicitly and count against the just-fetched tip:git fetch <remote> <base-branch>, then measure againstFETCH_HEAD(e.g.git rev-list --count HEAD..FETCH_HEAD). A baregit fetch, or a count against a localorigin/<base>tracking ref, can read falsely clean in a single-branch or shallow checkout where that ref was never updated.FETCH_HEADalways holds what this fetch actually retrieved. If the fetch cannot run, report the check as unverifiable rather than assuming none. Unless the inputs record a base-tip or merge-base baseline, report the current divergence rather than claiming it all accrued since the inputs were written, the branch may already have been behind. - Renamed / retired / version-drifted surfaces. For the skills, plugins, and commands the session's inputs name, confirm they still exist under that name and, when the session is working inside a plugin's source tree, that the version effective in the current project's scope (honoring install-scope precedence, not merely the highest installed version a plugin listing reports; pointer: https://code.claude.com/docs/en/plugins/install#choose-an-install-scope) matches that source manifest; a rename or version bump silently invalidates cited invocations and assumed behavior. When a cited plugin's source manifest is not locatable in the working tree, report the version comparison as unverifiable rather than guessing Claude Code's internal cache layout.
- Stale memory-tier files. For the session's handoff / todo / working-memory files, flag entries whose subjects have since merged or landed, so the next step neither re-does settled work nor chases a closed thread.
- The recorded goal, and whether the planned work still serves it. A
handoff's
Original goalis a premise like any other, a documented claim about what the work is for, and the cross-link comparison below is the one test only reanchor performs (the other resume-path checks read a single document). Confirm it is present; confirm a document that chains from another carries the prior link's quote unchanged, read from that file rather than from the current document's own wording; then confirm the planned next actions still connect to it, stated in one sentence. A quote that was re-derived instead of copied is reported as drift between the links, the paraphrase is the drift, and it is invisible at any single hop because each rewording is individually plausible. List the links withpython3 -X utf8 "${CLAUDE_PLUGIN_ROOT}/scripts/save_point.py" chain <file> --json(pythonwhenpython3is absent, 3.10+): each link's file, shape and status. For a shape-3 or shape-4 link that comparison issave_point.py validate <link>: an exit 0 means that link's goal section starts with its predecessor's verbatim, and a FAIL line namingOriginal goalis the drift finding, so the links' text never needs reading. A linkchainreportsmissingorunreadableends the comparison there; name it in the report. For a shape-1 or shape-2 link, or whenvalidatecannot run, read the goal withsave_point.py read <link> --section "Original goal". An absentOriginal goalis itself a defect: neve
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- evals/evals.json
FAQ
Что делает скилл Reanchor?
Check a session's working assumptions for drift: PRs, issues and branches a handoff or plan cites, base-branch moves, renamed skills. Use when resuming an old plan or handoff: 'is this still current', 'has main moved since'. To resume: /session-flow:keep-going.
Как установить скилл Reanchor?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Reanchor запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…