/sci-paper:condense <file_path> [--report-only] [--field <name>] [--target <words|N%>]from sci-paper
Removes redundant, repeated, or unnecessary passages from documents. Executes a ranked sweep (delete > compress > rewrite) with a machine-built removal map and length gate. Use when a document is too long, repetitive, or padded.
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.
Normative authority:
docs/SCIPAPER_STANDARD.md. §5.3 (condense, do not accumulate) is the policy this skill executes; the policy text lives ONLY in the standard — this skill implements it and never restates a competing version. §6 rewrite eligibility defines the fidelity invariants every deletion and compression must preserve.
A whole-document sweep that removes all content which is unnecessary or
already stated elsewhere in the document, then proves the result with the
mechanical length gate. It is the plugin's redundancy/length action surface:
paper-review dimension I detects redundancy as findings; condense
executes the removal. --report-only stops after §1: the removal map is
returned with no deletion applied.
The map is not built by reading. tools/condense_map.py enumerates every
removable entry with the words it would free, and the pass is judged against
that count: a pass that dispositions every entry and meets the map's target
has condensed; a pass that reads the paper and trims a phrase here and there
has not. That failure mode — a sweep that removes a few percent by hand while
the map lists ten — is the reason the tool exists.
Boundary with /sci-paper:de-ai (canonical home: de-ai SKILL.md §0;
mirrored here verbatim):
de-ai removes the authorship fingerprint (L0-L4 signals, structural tells,
voice; its Pass-3 length cap only guards its own rewrites against growth).
condense removes redundancy and length (cross-document deduplication under
one-canonical-home-per-fact). At the overlap (verbose AI-isms such as
rule-of-three padding or connective stacking), de-ai DETECTS the tell; when
the right fix is deletion rather than rewrite, the deletion EXECUTES under
condense's ranked sweep.
genre_carve_out: true and leaves them out of the default target.kept carries a reason a reader could check (the survivor is the sole
support; the repeat is the carve-out; the "dead" label is consumed by an
include the map cannot see). An entry without a disposition is an entry
the pass skipped.condense-dead:* entries carry that grep, and any
deletion outside the map records its own.--field as in
/sci-paper:de-ai §1 (shared style-profile convention).cp -r <paper-dir> <scratch>/baseline/, then gate against
<scratch>/baseline/<root>.tex) or record the clean git ref and use
--git-ref. A root copied alone cannot resolve its \input children,
reads as ~0 words, and every section then registers as growth.python tools/condense_map.py <file> --format json --output <scratch>/condense-map.json.
Six scans, each entry with removable_words:
condense-restatement — a sentence whose content words are ≥ 80 %
covered by earlier sentences in union, with one earlier sentence (any
section) covering ≥ 60 % on its own: canonical home named, copy listed.condense-zero-gain — roadmap sentences ("In this section we..."),
assurance refrains, Note that / It is worth noting openers.condense-dead:{figure,table,label,macro,acronym} — defined or placed,
never consumed; the grep is the finding.condense-verbose — in order to, due to the fact that, hedge stacks
(may possibly), each with the words its replacement saves.condense-regloss — the same symbol glossed twice.condense-duplicate — a paragraph repeated across sections (Jaccard
≥ 0.60 of content words, both paragraphs ≥ 30 prose words).
condense_budget totals them: removable_total, removable_by_rule, and
default_target_words = restatement + zero-gain outside the carve-out.
The map is exhaustive for what it scans and blind to what it does not
(a claim restated in three sentences, a paragraph that only repeats a
figure caption); add those by reading, with the same fields.default_target_words; --target overrides it and is recorded.For each map entry, in rank order, record deleted / merged / kept:<reason>:
Section~\ref{...}); re-read both sites in context.python tools/rewrite_reward.py --field <field> --reference <claim-record> --original <span> --candidates ... — a
candidate that drops a protected invariant is ineligible regardless of its
brevity; among eligible candidates the shorter wins. --field is optional
(one field auto-detects; none or several run without a profile, the
learned score unmeasured at weight 0 with a stderr line saying so); exit 2
means invalid input or a crash, never a missing model. A value the claim
record states twice counts twice, so a condensation keeping one copy is
ineligible: distil the record before gating.Apply each change with a minimal Edit and re-read the affected region plus every cross-reference into it.
python tools/length_gate.py <file> --before <scratch>/baseline/<root>.tex --require-shrink <default_target_words> (a percentage such as 8% or a
fraction is also accepted; a target of 0 means the map found nothing to
cut and only the growth gate applies). Exit 0 requires both no unjustified growth and
a net cut of at least the target; a cut short of it is a strong
length-shrink-short finding with exit 1, and the pass may not close on
it — either remove more, or record which kept entries account for the gap.python tools/deai_residue.py <file> --before <scratch>/baseline/<root>.tex. A condensation must not leave a heading or
caption promising what the body no longer says; exit 1 blocks closing. The
static negative-label rule abstains below 400 prose words (the axis says
so); the diff rule runs regardless.Repeat §1-§3 over the whole document until two consecutive maps list no
entry outside the carve-out with a disposition other than kept. A single
clean sweep is not convergence; the first removal round exposes restatements
the map could not see while the copies stood.
# condense — Report
Target: <file> | Baseline: <snapshot/ref> | Sweeps: K (last 2 dry)
Map: <n entries>, removable <words> (<by rule>); target <words> (<default|--target>)
Net length delta: <words, per section and total>; length_gate --require-shrink: exit <0|1>
## Dispositions (every map entry)
- <rule> L<line>: <excerpt> — deleted | merged into <loc> | kept: <reason>
## Removed outside the map
- <content> : canonical home <loc>; copies removed <locs>; evidence <grep>
## Compressed spans
- <loc>: <before-words> -> <after-words>; eligible
## Gate findings
- <length-growth / length-shrink-short / residue findings and their recorded justifications>
No number, citation, claim, or sole-support fact was deleted.
kept: reason — the scraping pass that trims phrases and leaves the
repeated claims standing.length-shrink-short finding without naming the entries that account for
the shortfall./sci-paper:de-ai; condense only deletes and compresses.docs/SCIPAPER_STANDARD.md — §5.3 (the policy this skill executes), §6
(fidelity invariants), §0 (consequence classes and dispositions).tools/condense_map.py — the removal map and its budget (exit 0/2).tools/length_gate.py — the mechanical closing gate; --require-shrink
turns the map's target into an exit code.tools/deai_residue.py — the residue gate over the before/after pair.tools/rewrite_reward.py — eligibility + condensation ranking for
shortened rewrites./sci-paper:paper-review — dimension I findings are this skill's input
queue./sci-paper:de-ai — the authorship-fingerprint surface (boundary in §0).What SKILL.md sets; muted values are Claude Code's defaults
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 探索./calibrateMake the plugin yours. Walks the whole calibration chain for one field — corpus intake, profile extraction, per-axis calibration, optional model training, a held-out provenance measurement, and finding-level labelling against your own standard, style and target journal — then verifies the result. Every axis reports `measured`, `degraded` or `unmeasured` from its own floor; a stratum that cannot support a rate stays `unmeasured` rather than being given one. Produces evidence only: no threshold here creates a verdict, an authorship claim, or a paper PASS/FAIL. Use when: "calibrate" / "set up my corpus" / "train on my papers" / "adapt to my journal" / "why is this axis degraded" / 校准 / 建语料库 / 用我自己的论文训练 / 适配目标期刊 / 标注 / 这个轴为什么是 degraded.Other plugins' skills for the same job