К основному содержанию
скилл CX Codex

logic-audit — скилл для Claude Code: что делает и как установить

Скилл выявляет логические противоречия и пробелы в спецификациях, планах и текстах. Он проверяет утверждения по источникам и предлагает точечные исправления.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add srinitude/skills --skill logic-audit -a claude-code
Открыть на GitHub

Что делает logic-audit

Скилл сопоставляет требования, тезисы и доказательства в документах или политиках. Сначала он нормализует сущности и формулировки. Затем алгоритм строит карту зависимостей от исходных посылок к выводам и ищет разрывы логики. Для проверки фактов модель привлекает веб-источники, отсекая поисковые сниппеты как недостаточное подтверждение.

Найденные проблемы скилл заносит в реестр с оценкой влияния и статусом проверки. Вместо масштабного переписывания текста формируются минимальные точечные правки: уточнение границ условий, согласование требований или замена слабого аргумента. Если речь идёт об ошибках в программном коде, процедура лишь фиксирует логический контракт и передаёт отладку скиллу systematic-debugging.

Методика опирается на вспомогательные скиллы always-current-datetime, starting-point и outcome-bounded-work. Перед обращением к файлам пакета необходимо выполнить mise run validate, иначе валидация не пройдёт.

Какие задачи решает

  • найти скрытые противоречия в требованиях технического задания
  • устранить логические разрывы между аргументами и выводами
  • проверить внешние утверждения по первоисточникам через веб-поиск
  • согласовать конфликтующие правила регламентов или политик

Примеры запросов агенту

  • Проверь архитектурный план в docs/architecture.md на логические противоречия и пробелы в требованиях.
  • Найди нестыковки между проектным решением и технической спецификацией.
  • Согласуй конфликтующие требования к безопасности в policy.md без полной переписки файла.

Как установить logic-audit

1Через Skills CLI (Vercel)

npx skills add srinitude/skills --skill logic-audit -a claude-code

2Вручную: положить файлы

~/.claude/skills/logic-audit/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/logic-audit/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о logic-audit

Как установить logic-audit в Claude Code?

Выполните в терминале команду npx skills add srinitude/skills --skill logic-audit -a claude-code. Манифест будет сохранён в ~/.claude/skills/logic-audit/SKILL.md.

Что делает скилл logic-audit?

Он ищет смысловые противоречия, необоснованные допущения и недостающие звенья в рассуждениях. Проверка нацелена на проектную документацию, спецификации и планы.

Какие зависимости нужны для запуска logic-audit?

Для работы требуются скиллы always-current-datetime, starting-point и outcome-bounded-work. Перед использованием файлов каталога нужно запустить mise run validate.

Исходный текст

SKILL.md · MIT
---
name: logic-audit
description: 'Use when finding contradictions or reasoning gaps.'
license: MIT
metadata:
  author: Kiren Srinivasan
  version: '0.1.2'
  scope: 'user'
---

# Logic audit

## Outcome

Find and repair material contradictions and missing links across claims, requirements, evidence, actions, and proof. Preserve authority and intent. Don't invent premises, erase real uncertainty, or weaken an exact requirement.

## Trigger and boundary

Use when a user asks to find, explain, reconcile, or repair logical inconsistencies, omissions, unsupported claims, conflicting requirements, incomplete cases, or gaps between an objective and its proof.

Use it for prose, policies, plans, specifications, research, decisions, and mixed source sets. For code failures, hand root-cause execution to `systematic-debugging` after this skill identifies the logical contract. For a formal theorem, use a proof assistant or solver when available and limit claims to what it verifies. Routine fact lookup alone doesn't trigger this skill.

A full audit is bounded by the named source set and outcome. Never claim that an open world has no possible gap.

## Required composition

Before auditing:

1. Load `always-current-datetime` and acquire its clock anchor.
2. Load `starting-point` and build its private outcome map.
3. Load `outcome-bounded-work` and classify fixed requirements, proof duties, boundaries, forbidden outcomes, mandatory methods, candidate routes, and unknowns.
4. Keep the same `as_of` anchor throughout the audit. Reacquire only after a new direct user turn or local midnight.

These skills remain the owners of date handling, the outcome map, and invariant-versus-recipe classification. This skill owns consistency and gap analysis.

## Evidence setup

1. Name the exact source set, authority order, versions, dates, and excluded material.
2. Read each source in full when accessible. If truncation remains, mark the omitted range and don't pass the whole source.
3. Give every material statement a stable source ID in source order.
4. Classify each statement as definition, fact, assumption, requirement, boundary, exception, evidence, inference, action, conclusion, or unknown.
5. Normalize terms, entities, references, quantifiers, modal verbs, units, time windows, versions, and scope before calling two statements inconsistent.

## Web evidence contract

Use every available source-relevant web capability with a clear purpose. Do not fire low-level actions that cannot change the finding.

1. Inventory current search, source extraction, rendered browser, social-source, academic, and domain-source capabilities. Inspect an unfamiliar capability's contract before use.
2. Keep a capability ledger with one row per distinct source-relevant capability. Mark each `USED`, `NOT_APPLICABLE` with a reason, or `UNAVAILABLE` with the observed failure. Every available relevant capability must be used.
3. Use the search capability for discovery and query variation. Search official or first-party domains first when a claim has an authoritative owner.
4. Use the source extraction capability on candidate locations before treating them as evidence. A search snippet is a lead, not proof.
5. Use the rendered browser capability for JavaScript-only, authenticated, interactive, layout-dependent, console, or network evidence. Follow the host's established computer-use owner.
6. Use the social-source capability for claims about social posts, profiles, or threads. Use source-specific academic, market, map, repository, or platform capabilities when their corpus can change the finding.
7. Use a terminal HTTP client only as a recorded fallback after the normal web capability fails or lacks the needed response surface. Never turn a fallback into evidence without inspecting the returned source.
8. Record URL or source ID, publisher, publication or update date when available, access date, relevant claim IDs, and source limits.

Prefer primary sources. Use independent corroboration when error cost, dispute, or source incentives make one source insufficient. Keep current facts separate from historical evidence.

## Audit procedure

Resource gate: run `mise run validate` before using package files named here.

1. Build a dependency map from each conclusion or required outcome back to its premises, actions, owners, and evidence.
2. Run every applicable consistency class in `references/check-catalog.md` against each statement, pair, dependency chain, and authority layer.
3. Run every applicable gap class in that catalog against every required outcome, branch, interface, state transition, and proof claim.
4. Search for counterexamples and boundary cases before confirming a universal or exhaustive claim.
5. Verify externally checkable premises through the web evidence contract. Don't use source agreement as a substitute for valid inference.
6. Create one finding for each independent issue. Don't split one root issue into inflated duplicates.
7. Adjudicate each candidate as `CONFIRMED`, `PROBABLE`, `POSSIBLE`, `NOT_AN_ISSUE`, or `BLOCKED`.
8. Rank impact as `critical`, `high`, `medium`, or `low` based on the accepted outcome, not on wording intensity.
9. Repair the smallest coherent unit. Prefer clarification, scope correction, explicit premise, missing case, evidence replacement, or requirement reconciliation over a broad rewrite.
10. Rebuild the dependency map and rerun the audit on the repaired artifact.

## Finding ledger

Each finding must include:

- ID and source locator or statement IDs.
- Type and affected outcome or proof duty.
- Candidate conflict or missing link.
- Normalized reading and competing readings.
- Status, impact, and confidence.
- Evidence used, including web capability rows.
- Minimal repair and any side effects.
- Resolution state and remaining uncertainty.

A difference is not a contradiction until both statements have the same relevant entity, time, scope, meaning, authority context, and modality. Missing evidence is not proof that a claim is false.

## Repair rules

- Higher-priority instructions and explicit user requirements win.
- Preserve the strongest jointly satisfiable contract. Don't silently choose one side of an authority conflict.
- When a method is mandatory, use it. Label any alternative as an optional comparison and never substitute it silently.
- State new assumptions as assumptions and request approval when they change material action.
- Keep unresolved alternatives visible when evidence cannot choose among them.
- Separate source correction from implementation. Use the rightful editor and normal side-effect gates.
- When rewriting, load `meaning-preserving-rewrite` and preserve every accepted requirement and proof duty.

## Proof threshold

Return `PASS` only when all of these are true:

- The full bounded source set was read or every inaccessible range is excluded from the claim.
- No unresolved critical or high-impact contradiction remains.
- Every required outcome has a complete chain of premises, owner, action or inference, and deciding evidence.
- Every material external premise has current source evidence or is marked unresolved.
- The web capability ledger accounts for every available source-relevant capability.
- The repaired artifact survives the same checks plus at least one counterexample or negative case.
- Component checks are not presented as whole-outcome proof.

Use `PARTIAL` when useful findings are proved but the threshold is incomplete. Use `BLOCKED` when missing authority, source access, or evidence prevents a safe repair.

## Output

Lead with the result and `as_of` date. Then provide the bounded source set, finding ledger, repaired artifact or exact patch, unresolved items, web capability ledger, and final `PASS`, `PARTIAL`, or `BLOCKED` decision. Cite source IDs and URLs close to the claims they support.

## Common failures

- Treating different dates, scopes, definitions, or modalities as contradictions.
- Converting ambiguity into a hidden assumption.
- Fact-checking premises while ignoring an invalid inference.
- Listing gaps without tracing their effect on the outcome.
- Using search snippets, source counts, or model agreement as proof.
- Calling a repaired paragraph proof that execution works.
- Claiming completeness outside the bounded source set.

## Package resources

Use `assets/finding-ledger-template.md` when the user requests a durable ledger. Copy it outside the installed skill before filling it. Read `examples/direct-contradiction.md`, `examples/temporal-non-contradiction.md`, or `examples/blocked-source-access.md` for complete visible runs. Package maintainers use `references/generation-contract.md`, `mise run test`, and `evals/`, then run `mise run ci`; ordinary audits do not load those paths.

## Progressive disclosure

Resource gate: run `mise run validate` before using package files named here.

`PD-101`: `references/check-catalog.md` owns the detailed inconsistency and gap taxonomy. Load it before a full audit or when a candidate doesn't fit the core classes. This file owns the trigger, procedure, and backlink.

`PD-102`: `references/eval-cases.json` owns objective pressure cases and acceptance. Load it before testing, reviewing, or changing this skill. This file owns runtime behavior and links back to that evaluation owner.

`PD-201`: `references/generation-contract.md` owns portable package structure, source lineage, examples, and evaluation proof. Package maintainers load it before changing those surfaces. This file owns the public procedure and backlink.

## Factory execution contract

The accepted outcome is: Find and repair material claim contradictions through a dependency-aware contradiction ledger and fresh repair proof. Preserve current contradiction ledger behavior while changing its smallest owner.

1. Freeze the current package with `mise run ci` and record its digest.
2. Run `mise run domain-research-policy`, then judge the current contradiction ledger sources and counterevidence.
3. Run `mise run agentic-request` for the named contradiction ledger operation. Keep semantic choices with the model.
4. Run `mise run decision-policy`, `mise run ci`, and the behavioral evals. Return to the lowest failed owner.
5. Run `mise run invocation-policy -- <receipt>` and account for every task or its domain-specific non-use.
6. Optionally run `mise run improvement-policy`. Keep one changed dimension only if no protected dimension regresses.

Load `assets/use-case-contract.json` through `mise run use-case-policy` and `evals/evals.json` through `mise run evals` only when their contracts are needed.

Mise owns repeatable mechanics, ordering, receipts, and checks. The model owns interpretation, causal judgment, creative work, and direct perception that code cannot supply. Stop on missing authority, stale evidence, or a failed gate.

© Kiren Srinivasan · MIT · srinitude/skills

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

Все скиллы по теме «Настройка агента: память, контекст, субагенты» →
setup-matt-pocock-skills Matt Pocock Скилл настраивает репозиторий для инженерных скиллов Matt Pocock: задаёт трекер задач, метки триажа и расположение доменной документации. Запустите его перед первым использованием остальных скиллов. 1 052 851установок ask-matt Matt Pocock Помогает выбрать подходящий скилл или рабочий поток из набора Matt Pocock. Пригодится, когда непонятно, с чего начать задачу: от идеи до разбора бага. 766 587установок to-tickets Matt Pocock Разбивает план, спецификацию или переписку на небольшие сквозные задачи и отмечает, какие из них блокируют остальные. Пригодится, когда нужно согласовать порядок работы до публикации задач в трекере. 711 230установок writing-plans Jesse Vincent Скилл превращает требования к многошаговой задаче в подробный план реализации до начала работы с кодом. Пригодится, когда исполнителю нужно зафиксировать файлы, интерфейсы и проверки. CX Codex 282 859установок caveman-review JuliusBrussee Пишет замечания к коду одной строкой: место, проблема, исправление. Пригодится, когда ревью диффа или PR надо пройти быстро и без воды. CX Codex +1 411 800установок caveman-compress JuliusBrussee Сжимает CLAUDE.md, списки задач и другие текстовые файлы в краткий формат, сохраняя читаемую резервную копию. CX Codex +1 411 500установок

Из того же набора17

always-current-datetime Скилл обновляет локальную дату и время перед каждым прямым ответом. Нужен агенту, который работает с относительными датами, сроками и временными зонами. CX Codex +1 558установок outcome-bounded-work Скилл отделяет обязательный результат и доказательства от заменяемого способа работы. Пригодится для разбора задач, планов и инструкций с лишними рецептами. CX Codex +1 555установок meaning-preserving-rewrite Упрощает формулировки регламентов, инструкций и планов без потери нормативных требований. Помогает сократить текст, сохранив каждую оговорку. CX Codex +1 545установок timebox Скилл для ИИ-агента, который берётся за задачу только если успевает довести её до конца и проверить результат к названному сроку. CX Codex +1 544установок would-humans-actually Скилл оценивает вероятность реальных действий людей на базе эмпирических данных. Отделяет высказанные намерения от фактического поведения. CX Codex +1 543установок simplify-skill Упрощает разросшиеся скиллы агентов без потери логики и контрактов. Помогает убрать случайную сложность инструкций, когда поведение ломать нельзя. CX Codex +1 540установок mobile-first-website-design Скилл ведёт агента по лендингам и маркетинговым страницам: сначала структура без стилей, потом айдентика, потом вёрстка от самого узкого экрана. CX Codex +1 318установок prompt-enhancer Переписывает ваш промпт в более чёткую и конкретную версию, но не выполняет его. Пригодится, когда запрос звучит расплывчато. CX Codex +1 314установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой