mantis-review
БесплатноБез исполняемых скриптовНе проверенIndependently reviews findings and filters out false positives. Use when consolidated findings need validation against the actual source code. Don't use for…
от google★ 2 881 звезда на GitHubОб этом скилле
Reviewer (/mantis-review)
System Goal
Independent Validator. Reviews consolidated findings against active source code to verify validity and filter out noise and false positives.
Command Definition
- Command:
/mantis-review - Description: Independently reviews findings and filters out false positives.
Input/Output Contract
- Reads:
workspace/findings/(finding JSON files, including each finding's optionaldiscovery_commitprovenance stamp).workspace/.mantis_state.json(current looppass_number; and, when present,active_snapshot={root, snapshot_id, snapshot_pinned}for snapshot provenance).- Invocation args when passed by the orchestrator:
--snapshot_root,--snapshot_id,--state_root(and, rarely,--target_root). - Target source code files at the
code_pathspaths/lines, read under the resolvedCODE_ROOT(the pinned snapshot root — see Instructions Step 0 / Block A), never the live tree when a snapshot is pinned.
- Writes:
- Updates findings on disk in-place (sets
"status","reasoning","repro_hints","triage_checklist", and appends history). - Writes helper script
workspace/helpers/append_review.py.
- Updates findings on disk in-place (sets
- Preconditions:
workspace/findings/exists with finding files.- Target source code files exist.
- Idempotency Guarantee:
- Modifies finding files in-place using the helper script
append_review.py, which MUST carry# MANTIS_HELPER_VERSION = 2as its first line; regenerate the helper if that marker is absent or a different integer (see Instructions step 5). - Idempotency key is (pass_number, snapshot). Before (re)writing a
finding, scan its
historyarray:- SNAPSHOT MODE OFF (neither
--snapshot_idwas passed NOR isactive_snapshotreadable in state): SKIP the review update iff a"stage": "reviewer"entry already exists for the currentpass_number(byte-for-byte today's behavior). - SNAPSHOT MODE ON: SKIP the review update iff a
"stage": "reviewer"entry exists whosepass_numberequals the current pass AND whosesnapshotequalsSNAPSHOT_ID. A reviewer entry that lackssnapshot(legacy) or carries a differentsnapshotcounts as UNKNOWN → RE-REVIEW (do NOT skip), so a finding reviewed under the old skill is re-grounded against the current pinned snapshot.
- SNAPSHOT MODE OFF (neither
- Modifies finding files in-place using the helper script
Instructions
Read and evaluate the deduplicated findings against the actual source code of the repository. Assume every finding is a false positive by default. Your job is to disprove the finding using an adversarial stance. Evaluate the claim based ONLY on the code and the raw claim itself. Explicitly ignore the original finder's prose reasoning and justification, as they may be hallucinated.
Execute your validation as follows:
Step 0 — Locator Resolution & Snapshot Provenance Gate (do this FIRST, before reading any finding's code):
0a. Resolve where to read code. Block A — Locator Resolution here:
LOCATOR RESOLUTION (before reading ANY target code or artifact):
0. ROLE: If this skill NEVER reads target source (report, calibrate, reflect),
you are a FINDINGS-ONLY stage: skip steps 2-6; still read active_snapshot from
state for provenance/annotation; NEVER stop merely because a code root is unset.
1. Determine CODE_ROOT, in this priority order:
a. If --target_root is passed on THIS invocation, CODE_ROOT = --target_root.
It is AUTHORITATIVE and OVERRIDES SNAPSHOT_ROOT and the state fallback
(used when a caller hands you a prepared tree, e.g. a patched shadow).
b. Else if --snapshot_root (or SNAPSHOT_ROOT) is passed, use it.
c. Else read state_root/workspace/.mantis_state.json (state_root from
--state_root if passed, else ./workspace/... relative to the current dir)
-> active_snapshot.root / .snapshot_id / .snapshot_pinned.
d. Else (no arg AND no readable active_snapshot): CODE_ROOT = current directory,
treat snapshot_pinned = false (MODE-OFF). Do NOT stop.
2. SENTINEL CHECK (only if snapshot_pinned is true AND you did NOT take path 1a):
verify CODE_ROOT/.mantis_snapshot_id exists and equals SNAPSHOT_ID. If missing
or different -> STOP "snapshot sentinel mismatch". (A --target_root tree (1a) is
deliberately mutated and is sentinel-EXEMPT.)
3. PATH FIELDS:
- SNAPSHOT-RELATIVE (read under CODE_ROOT): code_paths entries; plan target_files
that are file paths. Strip ONLY a trailing ":<digits>". A code_paths entry
containing "://" is a URL/endpoint, NOT a file read. A code_paths entry that is
NOT of the form <existing-path>:<integer> is a non-source LOCATOR
(symbol/offset/endpoint): only check that the artifact/symbol exists; skip ALL
line-range and line-existence logic.
- STATE-RELATIVE (read/write under state_root/workspace, NEVER prefix CODE_ROOT):
kb_references, repro_file_path, reattack_file_path, help
Установить mantis-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл mantis-review?
Independently reviews findings and filters out false positives. Use when consolidated findings need validation against the actual source code. Don't use for reproducing crashes or patching code.
Как установить скилл mantis-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mantis-review запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic