Command Palette

Search for a command to run...

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

extract-statistic

Statistical analysis skill for papers and theses, with two modes: audit the statistics of one manuscript (test selection, assumptions, effect size) or mine…

БесплатноЗапускает вложенные скрипты
LARi-UQACот LARi-UQAC★ 16 звёзд на GitHub

Установить extract-statistic в Claude Code и Claude Desktop

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

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

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

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

Statistical analysis (audit + corpus mining)

A reusable statistical-analysis capability invoked by the academic agents. It has two modes, one input contract each, and a strict boundary: it produces findings, the host agent judges them through its own deliberation step. The full pipeline and flag catalogue live in references/statistical-audit-protocol.md; the domain checks live in references/domain-profiles.md. Read both before using this skill. This file is the entry point and contract.

When to use

  • Mode audit — a host auditor (paper-auditor, thesis-auditor) has parsed a manuscript and reaches its statistical-audit step. The skill audits every statistical claim already in that manuscript.
  • Mode mine — scopus-researcher has downloaded the corpus PDFs (Step 3b-PDF) and wants the reported statistics of those papers extracted and synthesized, so the gap map, Pareto matrix, and hypotheses target real statistical and methodological improvement opportunities for the next research project.

When NOT to use

  • As a standalone command typed by the user. The skill is invoked by the agents at their statistical step, not directly. (It still runs if a user points it at a file, but its outputs are designed to feed a host pipeline.)
  • On a thesis proposal: a proposal carries no results, so [thesis-proposal-auditor] does not embed it.
  • For broad statistical methodology tutoring unanchored to a manuscript or a corpus.

Cross-review boundary (do not run deliberation here)

This skill does not run a deliberation panel and does not call gemini_reviewer.py or github_reviewer.py. The host agents already run the mandatory deliberation step once on their near-final output; the statistical findings produced here are merged into the host plan and critiqued there. This is the single place cross-review happens — keeping one panel per run.

Modes

Mode audit — one manuscript's own statistics

  • Input: a .tex or .md manuscript path (+ a sibling .bib, + an optional data/ folder for ground-truth cross-validation). Resolve \input{}/\include{} recursively (up to 3 levels) and audit the merged document, exactly as the host auditors merge their input.
  • Pipeline (see the protocol reference): statistical inventory -> test-selection audit -> effect-size / power audit -> result-presentation audit -> cross-validation (text vs tables vs figures vs data/) -> domain checks for the active profile.
  • Domain profile: --profile engineering (default) or --profile cosmetic, or auto-detected from the manuscript (see references/domain-profiles.md).
  • Output:
    • <basename>_stats_report.md next to the manuscript (or stats_report_<YYYY-MM-DD>.md in the working directory for pasted text).
    • A list of [STATS …] flags the host folds into its plan (paper-auditor Section C subsection, thesis-auditor Section G).
  • Never modify the manuscript directly. Corrections are applied by the host plan / latex-writer.

Mode mine — corpus statistics from full-text PDFs

  • Input: a .bib (preferred) or an existing refs/ directory / refs/_manifest.json.
  • Steps:
    1. Ensure each retained paper's PDF is present — call .claude/skills/scopus/scripts/download_pdf.py (presence-gated; skips PDFs already in refs/).
    2. Parse every present PDF with scripts/extract_text.py (--stats-scan on) to get text, tables, and statistics candidates.
    3. Synthesize a corpus statistics table (dominant datasets + sample sizes, methods, metrics, evaluation protocols, reported effect / accuracy deltas) and a statistical-improvement opportunity list (for example: no paper reports variance over seeds; accuracy used on imbalanced data; no significance test on model-vs-model deltas; no effect size on benchmark gains).
  • Presence-gated: a paper whose PDF failed to download (listed in refs/_failed.md) contributes title/abstract-level statistics only and is flagged [STATS PDF-MISSING]; it never blocks the pipeline.
  • Output: <basename>_corpus_stats.md (human-readable table + opportunity list) and <basename>_corpus_stats.json (machine-readable, consumed by scopus-researcher). These route into scopus-researcher Step 9b (gap map), Step 9d (Pareto contribution columns), and Step 10 (hypotheses).

Prerequisites

  • PyMuPDF importable for mine mode PDF parsing - pymupdf4llm (LLM-ready Markdown, tables inline) and pymupdf (structured find_tables); both AGPL-3.0 (see scripts/requirements.txt, audited with pip-audit). A missing import disables PDF parsing; the mode degrades to abstract-level stats and flags it.
  • For PDF retrieval in mine mode:
Полный SKILL.md на GitHub

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

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

  1. 01Read
  2. 02Write
  3. 03Edit
  4. 04Bash

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

  • references/domain-profiles.md
  • references/statistical-audit-protocol.md
  • scripts/corpus_index.py
  • scripts/extract_text.py
  • scripts/parse_cache.py
  • scripts/requirements.txt

FAQ

Что делает скилл extract-statistic?

Statistical analysis skill for papers and theses, with two modes: audit the statistics of one manuscript (test selection, assumptions, effect size) or mine the reported statistics of a corpus. Mode audit: review the statistics of one manuscript (.tex/.md) — test selection, assumptions, effect size, presentation, and cross-validation between text, tables, and figures — and emit flagged findings for the host agent's plan. Mode mine: extract the reported statistics from the full-text PDFs of a corpus (download via download_pdf.py, parse via extract_text.py) and synthesize a corpus statistics table plus a statistical-improvement opportunity list. Used inside paper-auditor and thesis-auditor (audit) and scopus-researcher (mine). Engineering-default domain profiles with a selectable cosmetic profile. Trigger when an agent reaches its statistical-audit or corpus-statistics step.

Как установить скилл extract-statistic?

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

Скилл extract-statistic запускает скрипты?

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

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

Сравнить extract-statistic с