thinking-map-territory — скилл для Claude Code: проверка кода вместо
Скилл заставляет агента проверить живой код или данные, когда документация, тест или метрика расходятся с наблюдаемым поведением.
npx skills add tjboudreaux/cc-thinking-skills --skill thinking-map-territory -a claude-codeЧто делает thinking-map-territory
Документы, тесты, диаграммы, комментарии и метрики — это карта. Работающий код и реальные данные — территория. Когда они расходятся, скилл требует проверить территорию и обновить модель, а не подгонять реальность под описание.
Процедура состоит из шести шагов. Сначала агент называет карту: конкретный документ, тест, метрику или допущение, причём цитирует утверждение, а не пересказывает. Потом определяет проверку, которая подтвердит или опровергнет claim, смотрит на источник и свежесть карты, наблюдает территорию — читает код, запускает его, делает запрос к данным или воспроизводит поведение. В конце фиксирует расхождение и решает, что править: код, карту или и то и другое. Результат выводится по шаблону с полями Map, Territory check, Observation, Delta, Updated model, Action и Uncovered.
Скилл не для случаев, когда карта и есть артефакт задачи — правка документа, диаграммы или спецификации. Не нужен он и там, где карта генеративная и дрейфа нет, например сгенерированные типы. Если расхождение не меняет решение, достаточно пометить его и идти дальше. Для конкурирующих гипотез о причинах после подтверждения территории автор советует переключаться на скилл scientific-method, а для построения эксплойтов — на red-team.
Какие задачи решает
- разобраться, почему тесты проходят, а поведение в проде неверное
- проверить утверждение о системе, которое опирается на пересказ, а не на код
- понять, устарела ли схема или метрика после изменения конфига
- найти путь в коде, который не покрыт ни одной картой
- остановить теоретизирование до того, как посмотреть на реальное поведение
Примеры запросов агенту
- поведение сервиса не совпадает с описанием в README — проверь территорию
- тест зелёный, но вручную всё падает, разберись по шагам скилла
- прежде чем объяснять причину, посмотри живой код и данные
Как установить thinking-map-territory
1Через Skills CLI (Vercel)
npx skills add tjboudreaux/cc-thinking-skills --skill thinking-map-territory -a claude-code2Вручную: положить файлы
~/.claude/skills/thinking-map-territory/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/thinking-map-territory/
1Через Skills CLI (Vercel)
npx skills add tjboudreaux/cc-thinking-skills --skill thinking-map-territory -a codex2Вручную: положить файлы
.agents/skills/thinking-map-territory/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add tjboudreaux/cc-thinking-skills --skill thinking-map-territory -a cursor2Вручную: положить файлы
.cursor/skills/thinking-map-territory/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install tjboudreaux/cc-thinking-skills thinking-map-territory2Вручную: положить файлы
.github/skills/thinking-map-territory/SKILL.md1Через Skills CLI (Vercel)
npx skills add tjboudreaux/cc-thinking-skills --skill thinking-map-territory -a gemini-cli2Командой платформы
gemini skills install https://github.com/tjboudreaux/cc-thinking-skills --path skills/thinking-map-territoryВручную: положить файлы
.devin/skills/thinking-map-territory/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add tjboudreaux/cc-thinking-skills --skill thinking-map-territory -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о thinking-map-territory
Как установить thinking-map-territory в Claude?
Выполните npx skills add tjboudreaux/cc-thinking-skills --skill thinking-map-territory -a claude-code. Скилл окажется в ~/.claude/skills/thinking-map-territory/SKILL.md.
Что делает thinking-map-territory?
Когда утверждение, документ, тест или метрика расходятся с наблюдаемым поведением, скилл разворачивает агента от теории к проверке живого кода или данных. Территория получает приоритет над картой.
Чем этот скилл отличается от scientific-method?
thinking-map-territory только разрешает конфликт между моделью и наблюдением. Когда территория уже подтверждена и появились конкурирующие гипотезы о причинах, автор советует переходить на scientific-method.
Исходный текст
SKILL.md · MIT
--- name: thinking-map-territory description: When a claim, doc, test, metric, or assumption conflicts with observed behavior, stop theorizing from the map and verify the live code or data; let territory overrule. disable-model-invocation: true --- # Map Territory Docs, tests, diagrams, metrics, comments, and mental models are maps. Running code and actual data are the territory. When they disagree, verify territory and update the model — never force reality to match the description. ## When to Use - Observed behavior contradicts a doc, test expectation, diagram, comment, dashboard, or prior assumption. - A claim about the system rests on a secondary source rather than current code or data. - Tests pass but production or manual behavior is wrong. - You are about to theorize why something happens before inspecting what happens. - A decision depends on whether a model, schema, or metric is still current. ## When NOT to Use - The map is the artifact you are asked to edit (doc, diagram, spec) — that artifact is the task territory. - Same path already verified this session — reuse that observation. - Map is authoritative and generative (codegen types, derived schema) with no claimed drift. - The mismatch cannot change the decision — note and move on. - Competing causal hypotheses after territory is confirmed — switch to scientific-method. - Security exploit construction — use red-team; this skill only settles model-versus-observation. ## Procedure 1. **Name the map.** State the exact representation trusted: which doc, test, metric, diagram, comment, or assumption. Quote the claim, not a paraphrase. 2. **Name the territory check.** Specify the observation that would prove or disprove the claim: code path, runtime value, query, reproduction, recent change, or live metric. 3. **Verify source and freshness.** Confirm origin of the map (author, generator, last update) and whether it could be stale relative to deploy, config, or data change. Prefer primary current sources over summaries. 4. **Observe the territory.** Read the real code path, run or instrument it, query real data, or reproduce the behavior. Do not predict from signatures or names alone. 5. **Record the delta and update.** If territory contradicts the map, territory wins for shipped behavior. Document the gap, revise the model, then decide the fix (code, map, or both). Note unmapped paths — likely next failure sites. 6. **Stop when settled.** Once the claim is confirmed or overturned with a concrete observation, stop re-checking the same path. ## Output ```text Map: <claim + source + freshness> Territory check: <what was inspected/run/queried> Observation: <concrete result, not interpretation> Delta: <aligned | map wrong | territory incomplete> Updated model: <corrected understanding> Action: <fix code | update map | no decision impact> Uncovered: <paths no map covers> ``` ## Verification - Falsify if you reasoned from the map without a territory observation, trusted a stale secondary source, or forced code to match a wrong doc without checking either. - Stop when the contradiction is resolved or irrelevant to the decision. - Over-application guard: do not re-verify the whole system when editing the map, when the map is the generative source of truth, or when the gap cannot change the next action.
© tjboudreaux · MIT · tjboudreaux/cc-thinking-skills