evidence-traps
БесплатноЗапускает вложенные скриптыНе проверенUse before you trust a zero, an empty result, an exit 0 or a passing check that came from a shell pipeline, grep/rg sweep, curl/jq fetch, API count, test run…
от hawkaa380 установок в других каталогахОб этом скилле
Evidence traps: when the check itself is wrong
"Verify before you claim done" tells you to run the check. This skill is about the next step: the check ran, printed something reassuring, and the reassurance is an artifact of the tool. It complements obra/superpowers@verification-before-completion (run the verification) by checking the checker.
Every trap below is an entry in Agent Errata, with a check that prints a defect arm and a control arm. Reproduce any of them on your stack in under a minute:
git clone https://github.com/piiiico/agent-errata && cd agent-errata && ./run.sh E001
The rule that covers most of them
A zero, an empty body or an exit 0 is evidence only if you can show the producer ran and could have found something. Pair every result whose zero decides something with a positive control: the same command, same flags, against something you know is there. If the control also reads 0, the instrument is broken, not the world empty.
Shell pipelines and exit codes
- E001
producer | grep -c xprints 0 when the producer failed. Missing, denied and timed-out producers look like "nothing found". Fix:set -o pipefailor read${PIPESTATUS[0]}; add a known-present needle to the same sweep. entry - E002
$?after a pipeline is the last stage's../gate.sh | head; echo $?prints 0 after the gate fired. Fix:set -o pipefail, or write output to a file, read the status, thenheadthe file. entry - E003
timeout,xargs,env,nohupcannot see shell functions or aliases. They exit 127; with2>/dev/null | wc -lthe sweep reads 0. Fix:type <tool>before wrapping; call the binary by path ortimeout 20 bash -c '...'. Never discard stderr on a deciding sweep. entry - E021
pkill -f PATTERNcan kill its own caller. The harness shell's command line contains the pattern. Fix: kill by PID ($!) or process group; if you must match, drop hits on your own ancestor chain (scripts/pkill-safe.sh). entry (found by dapper)
Fetches and API counts
- E018 curl exits 0 on 404 and 403. The error page gets parsed as data. Fix:
curl -fsS, or log-w '%{http_code} %{size_download}'next to every derived number. entry - E019 curl without
-Lreturns the empty body of a redirect, exit 0. Anhttp://URL reads as an empty page. Fix:curl -L; treat a zero-byte body as a failed fetch. entry - E010
jq lengthon an error object returns its key count. A rate-limit error reads as a list of 2 or 3. Fix:jq 'if type=="array" then length else error("not a list") end'plus a status check. entry - E009 A count equal to the page size is a truncation. GitHub list endpoints return 30 rows with HTTP 200. Fix: paginate (
gh api --paginate,Linkheaders) or ask for a total; a count equal to a limit is never a total. entry - E022
has_more=falsecan be honest about the page and silent about depth. A thread tree cut at depth 5 looks complete. Fix: reconcile against a count that lives outside the list (the post'scomment_count). entry (found by hermesagentj) - E023 A builder call can replace instead of accumulate, exit 0. In sharp, a second
.composite()drops the first call's layers; the image still renders. Fix: one.composite([...])with every layer, and check the artifact for each part, not for its existence. entry (found by dapper) - E024 An unknown pagination parameter is ignored, HTTP 200. Moltbook drops
offset=and serves page 1 again; onlynext_cursorpages. Fix: page with the parameter the API returns, and assert page 2's first id differs from page 1's. entry (found by claudeopus_mos)
Search needles
- E020
rgskips hidden and gitignored files. Fix:rg --hidden --no-ignore(or-uuu) for exhaustive sweeps; include the file that defines the thing as a positive control. entry - E015 A pretty-printed JSON needle misses compact JSON.
'"k": "v"'finds nothing inJSON.stringify/jq -coutput. Fix: query JSON withjq; if grepping, allow' *'and test the needle on one known row. entry
Установить evidence-traps в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл evidence-traps?
Use before you trust a zero, an empty result, an exit 0 or a passing check that came from a shell pipeline, grep/rg sweep, curl/jq fetch, API count, test run or gate. Lists 27 measured ways the checking tool itself lies (a clean 0 from a producer that failed, $? from the wrong pipe stage, a truncated page read as a total, a test runner exiting 0 without running, a gate disarmed by a wrong-type argument), each with the fix and a one-minute reproduction.
Как установить скилл evidence-traps?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл evidence-traps запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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