bip-ms-audit
Audit a manuscript against its implementation(s) — read the paper and code in parallel, find places where formulas, algorithms, dimensions, or complexity…
от matsen★ 35 звёзд на GitHub
Установить bip-ms-audit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
/bip-ms-audit
Find places where the paper claims one thing and the code does another: tensor dimensions, formulas, complexity claims, parameter values against config files.
Not a proofreader (@scientific-tex-editor), a diff reviewer (@clean-code-reviewer), or a PR check (/bip-pr-review).
Run from a TeX repository with .ms-config.json (see /bip-ms).
The output is a report: change the paper or code, or file an issue, only when the user says to.
Usage
/bip-ms-audit # full audit: scan formulas/algorithms in main.tex against tracked_repos
/bip-ms-audit <section> # audit one section, e.g. "Methods" or "Step 1: Tree Traversal"
/bip-ms-audit --formula <label> # audit a specific labeled equation/figure
/bip-ms-audit --paper <file.tex> # explicit paper file (otherwise from .ms-config.json)
/bip-ms-audit --no-skeptic # skip the skeptic confirmation step (faster, less reliable)
Workflow
Step 1: Load config and identify scope
cat .ms-config.json
- Paper file:
.manuscript(e.g.,main.tex). - Code to audit against:
.tracked_repos[].local_path. - Scope: the user's argument; default is the full Methods/Algorithms section.
If .ms-config.json is missing, ask for the paper and code paths and offer to create the config (see /bip-ms).
Step 1b: Provenance check (when provenance.yaml sits beside the paper)
bip prov check --human --main <paper-file>
It runs every mechanical check against git objects of the ledger's repos and exits nonzero on any error.
The audit scope is then only its error and review findings: each names a tag id, its file:line and the entry's scope.
Give each subagent the sentence, the entry, and its scope, and have it judge whether the sentence says what the source shows for that population and stage.
info findings (unsourced entries, unused entries, runs whose producing commit is HEAD at collection, code claims that no longer hold at origin/main) go to the report without a subagent.
If nothing is at error or review, skip to the report.
The check cannot see a neighbouring-sentence change that alters a number's meaning, a flag overridden elsewhere (params/*.yml over nextflow.config), or a superseded result file still present.
A periodic full audit without the scope limit covers those.
Step 2: Partition the scope and fan out
Partition the scope and dispatch one general-purpose subagent per chunk in parallel (one message, several Agent calls), following SUBAGENT-SCAN.md (bipartite repo root).
- Whole paper: one subagent per top-level Methods / Algorithms section.
- One section: one per subsection, or per claim cluster (formula plus its text) if there are no subsections.
- One formula or label: one subagent.
Brief for each subagent:
Line-by-line investigation of paper section
<section>against tracked code repo(s)<local_path(s)>. This is not a scan. For every checkable claim in scope, read the implementation file in full withRead— not a grep excerpt — and cite the paper line and code line behind your verdict. A verdict without afile:linecitation on both sides will be rejected and re-dispatched.
- Read the paper section. List every falsifiable claim with its
file:line: dimensions, formulas, algorithm steps, hyperparameter values, counts/complexity, variable bindings, loss/metric definitions, data pipeline steps, theorem statements. Skip subjective claims ("our results suggest…").- Locate each claim's code counterpart:
rgto find the file, thenReadit. Common keyword maps: tensor dims →torch.zeros/np.zeros/torch.full; formulas →forward/loss/aggregation; hyperparameters →config.yaml/Snakefile/CLI defaults; loss/mask → training loop; data filtering → preprocessing pipeline/snakemake rules. If a claim has several implementations (e.g., a vectorized batch path and a tree-iteration reference path), check each; they often diverge from each other.- Give each claim a verdict:
MATCH— paper and code agreeMISMATCH— disagree on a substantive, falsifiable pointAMBIGUOUS— paper is unclear/underspecified; code makes a specific choiceMULTIPLE IMPLS DISAGREE— two code paths disagree with each other (and at most one matches the paper)STALE PAPER— paper describes an earlier code versionSTALE CODE— paper describes a fix code hasn't picked up
MATCHis the default. If your report is mostlyMISMATCH, you are misreading the code; re-check the worst before returning. Also check that a symbol means the same thing on both sides, not only that each side is plausible.Return under 500 words:
findings: per non-MATCHclaim, paper quote +file:line, code quote +file:line, verdict, one-sentence rationalematches: count ofMATCHverdictssurprises: claims you couldn't cite afile:linefor, names that mean different
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Agent - 02
Bash - 03
Read - 04
Glob - 05
Grep - 06
Edit - 07
Write
FAQ
Что делает скилл bip-ms-audit?
Audit a manuscript against its implementation(s) — read the paper and code in parallel, find places where formulas, algorithms, dimensions, or complexity claims diverge from what the code actually does. Use the skeptic agent to confirm surprising findings before reporting.
Как установить скилл bip-ms-audit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл bip-ms-audit запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis 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…