Command Palette

Search for a command to run...

Назад к скиллам
скилл № 90925

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от 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 with Read — not a grep excerpt — and cite the paper line and code line behind your verdict. A verdict without a file:line citation on both sides will be rejected and re-dispatched.

  1. 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…").
  2. Locate each claim's code counterpart: rg to find the file, then Read it. 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.
  3. Give each claim a verdict:
    • MATCH — paper and code agree
    • MISMATCH — disagree on a substantive, falsifiable point
    • AMBIGUOUS — paper is unclear/underspecified; code makes a specific choice
    • MULTIPLE IMPLS DISAGREE — two code paths disagree with each other (and at most one matches the paper)
    • STALE PAPER — paper describes an earlier code version
    • STALE CODE — paper describes a fix code hasn't picked up

MATCH is the default. If your report is mostly MISMATCH, 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-MATCH claim, paper quote + file:line, code quote + file:line, verdict, one-sentence rationale
  • matches: count of MATCH verdicts
  • surprises: claims you couldn't cite a file:line for, names that mean different
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

  1. 01Agent
  2. 02Bash
  3. 03Read
  4. 04Glob
  5. 05Grep
  6. 06Edit
  7. 07Write

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), без исполняемых скриптов.

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

Сравнить bip-ms-audit с