/sci-paper:calibrate <field-name>from sci-paper
Calibrates the plugin's advisory axes for a specific academic field by building reference distributions from your own papers. Walks corpus intake, profile extraction, per-axis calibration, optional model training, and provenance measurement.
Ships in sci-paper. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Not a policy source.
docs/SCIPAPER_STANDARD.mddecides what good scientific prose is; nothing produced here can change that. Calibration supplies the reference distributions the advisory axes compare against, anddocs/architecture/EVALUATION.mdrecords what each one is worth. A corpus statistic cannot redefine a consequence class, create an authorship verdict, or turn an advisory into a blocker.
A fresh clone ships no corpus and no profile. Every measured axis in
this plugin is measured against a reference distribution built from papers you
supply, so out of the box the field-referenced axes are honestly unmeasured.
This skill is the path from that state to a calibrated one, for one field.
It refuses three things, and will say so rather than do them:
unmeasured. A rate computed from four observations is
worse than no rate, because it reads like the others.fulltext-* directory other than fulltext-arxiv
(EVALUATION §18.3).The field name is a directory name and nothing more; everything is scoped by it.
Pick the name of the literature you write into (wgl, condmat, epi, …).
A target journal is usually not a new field. Register measures domain
vocabulary; a letter is a format. A letter and a full paper in one field
share their words and differ in length and structure — which deai_salience
and deai_docstructure already measure per format (EVALUATION §18.5).
Create <field>-<variant> only when you have enough letters to resolve the
register gate: below 500 passages the axis is silent, and below the 1e-4 rate it
cannot express "rare" at all. A <field>-<variant> profile whose own bank
cannot resolve the gate automatically judges against <field> and names the
borrowed bank in every finding — so a thin variant profile is safe, not broken.
style-corpus/<field>/tier-1-top/ top-journal exemplars (weighted highest)
tier-2-mentor/ your advisor's or target author's papers
tier-3-reference/ other relevant field papers
fulltext-arxiv/ optional breadth corpus (unweighted)
fulltext-heldout/ optional evaluation set (NEVER calibration)
The three tier-* directories carry every weighted aggregate and the style
dossier. fulltext-arxiv/ is gathered unweighted and feeds the reference
distributions only, so breadth cannot restyle the imitation target.
Corpus content is copyright-sensitive and is gitignored by a blanket rule; it never leaves the machine. To pull a breadth corpus or a held-out set:
python tools/fetch_arxiv_abstracts.py --field <field> --fulltext \
--fulltext-dir fulltext-arxiv --journals apj,apjl,aa \
--max-papers 500 --sleep 3
python tools/fetch_arxiv_abstracts.py --field <field> --fulltext \
--fulltext-dir fulltext-heldout --journals apj,apjl,aa \
--max-papers 200 --sleep 3 --exclude-known
--exclude-known is what makes the second pull disjoint from the first. Verify
the disjointness before trusting any rate computed from it. The fetcher's
built-in query sets, keyword filter and journal table are [WGL]: for any other
field pass your own --query <term> (repeatable; it replaces them) and omit
--journals, or the pull fills your corpus with weak-lensing papers.
python tools/extract_style.py --field <field>
This writes the descriptive lexicon, sentence statistics, transition inventory,
style dossier, exemplar bank and register lexicon into style-profile/<field>/.
Keep the source field in your bank. Section-unit references are assembled
from the paragraph bank by grouping on it, so a record that cannot be attributed
to a document is dropped rather than pooled — pooling would join paragraphs from
unrelated papers into a section no author ever wrote.
Everything under that directory is generated and gitignored: it is rebuilt from
the corpus, never edited by hand.
A paper is a document, not a file. \include/\input fragments are folded
back into their root and a bundle contributes one paper. If your counts look
like "one paper per file", the assembly did not run.
Run these after every corpus change. Each prints its own floors; read them.
python tools/deai_salience.py --calibrate --field <field>
python tools/deai_structure.py --calibrate --field <field>
python tools/deai_register.py --calibrate --field <field>
python tools/deai_collocation.py --calibrate --field <field>
python tools/deai_anchoring.py --calibrate --field <field> --corpus-dir style-corpus/<field>
python tools/deai_docstructure.py --calibrate --field <field> --corpus-dir style-corpus/<field>
python tools/deai_discourse.py --calibrate --field <field>
| axis | what it needs | what happens below it |
|---|---|---|
L2.salience_hierarchy | ≥ 30 reference passages per section bucket; passages ≥ 30 words and ≥ 3 sentences | that bucket is degraded; a reference with no spread above the p90 gate abstains rather than flagging |
L2.sentence_structure | per-section reference fractions | measured for deterministic matches, degraded for strength — there is no calibrated strong-advisory operating point |
L0.register | ≥ 500 corpus passages, and enough of them to resolve a 1e-4 document-frequency rate | under 500 the axis is silent; unable to resolve the rate it is degraded, or borrows <field>'s bank and says so |
L2.collocation | the pair bank plus ≥ 30 reference sentences per section bucket | a bucket below the floor is skipped; with no usable bucket the axis is degraded, and without the bank or its baseline it is unmeasured |
L2.claim_anchoring | ≥ 30 documents per section class | classes below the floor are omitted from the band, honestly, rather than estimated |
L2.document_structure | ≥ 3 complete documents, each ≥ 3 sections with ≥ 2 substantial paragraphs | unmeasured; under the 20 documents a 5% tail needs, degraded; a manifold without a conformal block is left unscored and the axis degraded until --calibrate is rerun |
L2.cohesion | ≥ 30 reference paragraphs per bucket, each ≥ 3 sentences and ≥ 40 words | that bucket abstains; a reference with no spread below the p10 gate reports nothing rather than everything |
L2.hedging | ≥ 30 reference sections per bucket, each ≥ 150 words — and the bucket must be one the axis is calibrated for | degraded. It ships restricted to intro and method, the buckets where its gate was shown both to transfer and to separate (EVALUATION §19.3–19.4); a thin profile is degraded there too |
deai_anchoring and deai_docstructure read complete documents, so their
--calibrate requires --corpus-dir (exit 2 without it). Point it at the field
root or at fulltext-arxiv/. Aimed at the field root it collects the calibration corpus
and refuses every other fulltext-* directory, which is what keeps a
held-out set held out.
These need optional dependencies (requirements.txt) and are never required for
the model-free axes:
python tools/deai_oracle.py --calibrate --field <field> # UID baseline, GPU-hours
python tools/train_voice_model.py --field <field> # learned L3 triage
The UID baseline reads paragraphs of ≥ 25 tokens under a causal LM (GPT-2-large
by default; --model changes it) and is expensive — hours on a consumer GPU for
a 500-paper corpus. It supports comparative evidence only: the surprisal path is
measured to add nothing to the model-free manifold at document scale
(EVALUATION §9.8), so skipping it costs you no shipped capability.
The learned model ships degraded by design and has no operating point. Do not
read its score as a probability of anything.
With a held-out set in place, provenance is a label already: a refereed paper is text a human wrote and a referee accepted.
python tools/eval_findings.py --field <field>
Read the two axes differently. Register is an absolute rarity test, so its held-out rate is a false-positive rate. Salience is a percentile gate, so a non-zero rate is the design point and the number tests calibration transfer, not defectiveness. Neither is precision for the advice: publication does not mean every sentence is beyond improvement, so the register figure is an upper bound. That is what §7 is for.
This is the only step that needs a person, and it is the only one that can say
whether an advisory is good advice for you. It is entirely local: no
network, no API, no external service. Your labels are written to a JSONL file
you own, are read back only by score, and never enter style-profile/ or any
calibration input.
python tools/label_findings.py sample --field <field> \
--population mentor=style-corpus/<field>/fulltext-mentor \
--n 24 --out labels.jsonl
# fill in "label": true | false, guided by each row's own "question"
python tools/label_findings.py relabel --sheet labels.jsonl --frac 0.2 \
--out recheck.jsonl
python tools/label_findings.py score --sheet labels.jsonl --recheck recheck.jsonl
Four things about the sheet decide whether the effort is worth anything:
--population NAME=DIR is sampled
and scored on its own. Whichever population you name, it must sit outside
the calibration banks: on an in-sample paper most register flags are
suppressed by that paper's own bank membership (87.5% of the held-out set's,
the last row of the §17.4 table). Measured here — the
same axis yields 1 finding across three in-calibration papers and 8 across
fifteen held out. published is added for you from the held-out set unless
you name your own.unmeasured
however large the sheet is. Within a cell the draw is spread over documents
(at most a fifth of the cell from one paper when the population allows) and
the summary prints how many documents each cell came from.question;
read it rather than assuming.Your standard and target journal enter here, and only here. Judge each advisory against the prose you would submit to your journal. If your field writes methods sections that recite parameter grids, label those salience advisories false, and the measured precision will say so. That is the intended use: the numbers describe your judgement, not a universal one.
--population NAME=DIR accepts a directory of .tex files or a directory of
per-paper subdirectories — the shape every style-corpus/<field>/fulltext-*
pull has; a manuscript whose main.tex \inputs its sections is one paper, not
fifteen fragments. --drafts DIR is shorthand for --population draft=DIR.
To build a population from one author's papers, tools/fetch_arxiv_abstracts.py --fulltext --author "Surname" --author-is <regex> --max-authors N --fulltext-dir fulltext-<name> fetches into a directory calibration never
reads. --author-is is not optional in practice: au: matches a surname,
and a surname is not a person.
Sample size. Any cell under 20 labels reports unmeasured. The sampler
prints, before you start, every cell its populations cannot fill — and some
cannot be filled by any sheet size, only by more papers. Measured on the wgl
corpus: the entire 203-paper held-out set yields 33 hedging findings, because
hedging speaks only about introductions and methods and fires below a tenth
percentile, so a hedging cell needs most of that set. Salience and cohesion
fill from a handful of papers.
python tools/validate_plugin.py
python -m unittest discover -s tests
tests/test_published_figures.py renders every figure your documentation quotes
from the artifact it came from and fails if the document no longer carries it.
With no profile built it skips rather than passes: absence is reported as
absence.
Then write down, in your own evaluation record, every axis that is still
degraded or unmeasured and why. An axis that is silent because your
corpus is thin is a different fact from one that is silent because its premise
was refuted, and a record that blurs them is worth less than no record.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub skymanbp/sci-paper --plugin sci-paper12 skills in this plugin
/brainstormFully automatic radial exploration engine for divergent research ideation, or for exhaustively finding ways to solve one concrete hard problem. The data model is a phylogenetic tree: root = the starting point (topic / problem / current research state), node = one idea, depth = number of divergence layers, width = number of final results. Every node is brainstormed through twelve framing passes (first-principles, inversion, cross-disciplinary transport, adversarial, constraint relaxation, scale extrapolation, substitution, office-hours, contrarian, failure-driven, high-risk, meta), every branch gets a complete rigorous derivation (mathematics / physics / logic / literature check / feasibility / falsifiability), and divergence recurses until every deepest leaf is fully advanced. A mandatory glossary grill locks the root node's terminology to the project glossary (FACTS.md if available) before exploration starts. width / depth / rounds default to unlimited and stop on convergence criteria. Deferred or incomplete leaves ('defer', 'cost limits', 'future work', 'TODO') are hard-banned. Use when: "brainstorm" / "explore options" / "find research directions" / "how do I solve this problem" / 发散思考 / 找研究方向 / 怎么解决这个难题 / 穷尽某个研究问题的解法 / 论文 motivation 阶段需要 radial 探索./condenseWhole-document condensation. Removes every passage that is unnecessary or already stated elsewhere: claims and numbers repeated across sections, zero-information paragraphs, dead definitions and uncited figures, verbose constructions. Executes SCIPAPER_STANDARD §5.3 (condense, do not accumulate): the default direction of every edit is shorter — delete > compress in place > same-length rewrite, with growth last and only under a recorded justification. Each fact keeps exactly one canonical home; the copies are deleted or replaced by a cross-reference. The removal map is machine-built (condense_map.py), every entry is dispositioned, and the length gate proves the shrink against the map's target. Fidelity invariants (§6) are protected throughout. Use when: "condense" / "trim" / "too long" / "repetitive" / "cut the padding" / 精简 / 太长了 / 重复 / 废话太多 / 去冗余, or when a paper-review dimension-I redundancy finding needs to be executed./de-aiThe single de-AI skill. Chains three passes over one target file: (1) in-house de-AI subsystem measurement (L0 lexicon plus L1-L4 structural and learned signals), (2) a vendored humanizer structural-tell audit (AIScientists-Dev/academic-humanizer Layers 1-5 plus blader/humanizer patterns 2.12-2.16 and the Pass-2 self-interrogation), and (3) claim-first faithful rewriting under hard fidelity eligibility and the §5.3 length budget. Every number, formula and citation is preserved; it strips machine tells rather than adding personality. Use when: "de-AI" / "too AI" / "make it read like a human wrote it" / "rewrite in voice" / 太 AI 了 / 去 AI 感 / 像人写的 / 机器味太重, or when paper-review / final-review invokes it as the structural-tell audit step (--audit-only)./figure-reviewReview every paper figure from the compiled document at print-realistic 150 DPI. Verify figure/caption/data consistency, required labels, units, references, readability, accessibility, float placement, and cross-figure visual coherence. Report SCIPAPER_STANDARD typed findings: objective figure/build contradictions as integrity blockers and aesthetic or borderline readability concerns as advisories, never a universal PASS/WARN paper verdict. Use after figure changes or before submission./final-reviewPre-submission final-review orchestrator. Each round loads /sci-paper:paper and SCIPAPER_STANDARD as the framework, then runs paper-review (all A-R dimensions, including the narrative spine and adversarial escalation), figure-review, de-ai (--audit-only structural-tell audit) and the physics, mainline and logic measurement primitives in isolated worktrees. Merges sci-paper.feedback.v1 typed findings: scientific-integrity blockers must be resolved, L0 targets must reach zero, strong advisories must carry a disposition, and ordinary advisories plus unavailable axes stay visible in the report. Verifies that this disposition-complete state is stable across consecutive rounds rather than forcing all editorial feedback to zero, and never emits a universal paper PASS/FAIL. Use for: final review, submission-readiness evidence gathering, isolated orchestration of every review skill, 投稿前总审./logic逻辑与统计核查(测量原件,只产 finding,不改稿):claim graph 的循环论证、断链、偷换条件、充分/必要条件错误、未声明假设;样本与 split、CV/grouping、泄漏防护、metric、uncertainty、多重比较、prior 的可复现性;以及声明-证据纪律的审查端——动词强度不得超过证据强度。findings 走 sci-paper.feedback.v1。可单独运行,也是 /sci-paper:paper-review 维度 C 的唯一来源。Use for: 逻辑检查, 论证是否成立, 统计方法学, 数据泄漏, 多重比较, 声明证据纪律, claim-evidence, over-claim 检查。