Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

replicate-paper

БесплатноЗапускает вложенные скриптыНе проверен

Use when a published empirical finance or accounting result has to be reproduced from data — 'replicate Table 2 of X', 'does this paper replicate', 'reproduce…

edwinhuот edwinhu★ 28 звёзд на GitHub

Об этом скилле

replicate-paper — locked reproduction, then a fenced, disclosed in-design search

What this skill carries — grep references/ for any subject the names below miss: !d=${CLAUDE_SKILL_DIR}; command -v skill-toc >/dev/null 2>&1 && exec skill-toc "$d"; s=$HOME/.claude/skills/plugin-utils/bin/skill-toc; [ -x "$s" ] && exec "$s" "$d"; echo "(skill-toc unavailable: references and scripts are NOT listed here — install the plugin-utils plugin, or start a new session so its bin/ reaches PATH)"

Templates: ${CLAUDE_SKILL_DIR}/templates/check.sh, ${CLAUDE_SKILL_DIR}/templates/PROMPT.md, ${CLAUDE_SKILL_DIR}/templates/ledger.csv. Worked example (ADKO not reproduced, Antoniou fragile hit): ${CLAUDE_SKILL_DIR}/references/worked-example.md. Scoreboard rows and the appendix paragraph: ${CLAUDE_SKILL_DIR}/references/closing-and-disclosure.md.

A replication is a locked reproduction of the paper's printed cells on the paper's own sample. When it fails, the user may authorise an in-design search (the AGK rule): deviations only inside the paper's own design, every specification priced and ledgered, the count disclosed beside any hit. A hit found that way is a searched specification, never a locked result.

fetch paper ─► cite cells & definitions (page/line) ─► lock predictions + bar (user) ─► md5 the lock
   ─► reproduce on the paper's own window ──pass──► extension rows ─► done
                     │ fail
                     ▼
   AskUserQuestion: in-design search? ──no──► record the non-replication ─► done
                     │ yes
                     ▼
   scaffold grind_<id>/ (check.sh, frozen.md5, ledger, PROMPT.md) ─► check.sh at baseline exits 1
   ─► grind.sh run --gate <leads_exhausted key> --wait-alert 1
        ├─ check exits 0 ─► verify hit vs printed table ─► user: accept as fragile? ─► robustness rows ─► disclose
        │                         └─ second gated cell owed? ─► phase 2 (PROMPT2, new journal)
        └─ leads_exhausted filed ─► grind.sh stop ─► record NOT reproduced, with the count
## IRON LAW: NO ESTIMATE BEFORE THE LOCK, AND NO BAR CHANGE AFTER AN ESTIMATE

The bar — which cells, sign, |t|, CI, window — is written, user-approved and md5-frozen before the first coefficient is computed. After that, only the user changes it, and their words go verbatim into check.sh's header. A bar chosen after seeing estimates is a specification search reported as a replication: it hands the user a result that the next referee takes apart, which is the opposite of help. If an estimate makes you want to move the bar, that wish is the finding — report it.

1. Obtain the paper and cite it

  • Get the version of record through the fetch-paper skill; pdftotext -layout it to a .txt beside the PDF so every cite is a line number. Only a working paper on disk → say so in check.sh's header ("WP values may differ"). Prevents: a build from memory of the paper, and a fence nobody can adjudicate.
  • Every cell, filter, variable definition, window and winsorizing rule the build uses is cited by page or .txt line. Prevents: an "allowed reading" that the paper never offered.

2. Lock predictions and the pass bar

  • Write prediction_locked.md (bar cell(s), published sign, p threshold, window(s), class/measure rule, pre-specified robustness, any predictions) and get it approved through AskUserQuestion. md5 it into frozen.md5 before estimating. Prevents: the bar drifting toward the estimate.
  • Derive the published SE: se = |b|/|t|; when only p is printed, se = |b|/z with z = Φ⁻¹(1 − p/2); 95% CI = b ± 1.96·se. State the derivation and the rounding of the printed coefficient in the header. Stars only → the CI is undetermined; ask the user, do not invent one.
  • Gate only cells significant in print. A published null is scored by the matched-null rule (ours insignificant at 5% passes), never as a hit. Prevents: AGK 2019 Table 4 — a "done" inside a null's CI, rejected by the user because a null's CI admits almost anything.
  • Joint rule over every printed-significant cell the user gates. One step must carry them all IN; hits on different steps never combine. Ask which cells are gated before the loop starts. Prevents: CHL g_34, DROA IN with BHAR OUT on the same row.

3. Reproduce on the paper's own sample and window first

  • The locked reproduction runs on the paper's sample and window before any extension; extension windows are separate rows with their own predictions. Data that do not reach the paper's window → the first job is the pull, not a different gated window. Prevents: gating a window the paper never estimated; the Antoniou hit came from restoring 2003-2016, not from any construction switch.
  • WRDS through the wrds skill: SAS on the SGE grid via qsub only, never Postgres; a one-year test job, inspected, then one pull per source over the whole window, split by year lo
Полный SKILL.md на GitHub

Установить replicate-paper в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

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

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

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/closing-and-disclosure.mdreferences/worked-example.mdtemplates/PROMPT.mdtemplates/check.shtemplates/ledger.csv

FAQ

Что делает скилл replicate-paper?

Use when a published empirical finance or accounting result has to be reproduced from data — 'replicate Table 2 of X', 'does this paper replicate', 'reproduce their main result', 'can we get their coefficient', 'our estimate doesn't match the paper', 'grind this replication', 'run an in-design search on this paper', 'apply the AGK rule to X', 'search inside their design until it hits or the leads run out', 'is this hit fragile'. Use proactively whenever a task compares our estimate to a printed coefficient, even if the user never says 'replicate'. NEGATIVE ROUTING: packaging work for a court or expert production is expert-production; building a dataset or model with no published target is ds; the bare out-of-session loop mechanics are grind.

Как установить скилл replicate-paper?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл replicate-paper запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить replicate-paper с