paperlint 16.8.0 → 17.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLAUDE.md +10 -2
- package/CONTRIBUTING.md +1 -1
- package/README.md +17 -14
- package/dist/adapters/latex/abstract.d.ts +7 -1
- package/dist/adapters/latex/abstract.d.ts.map +1 -1
- package/dist/adapters/latex/abstract.js +19 -4
- package/dist/adapters/latex/abstract.js.map +1 -1
- package/dist/adapters/latex/captions.d.ts +6 -5
- package/dist/adapters/latex/captions.d.ts.map +1 -1
- package/dist/adapters/latex/captions.js +14 -30
- package/dist/adapters/latex/captions.js.map +1 -1
- package/dist/adapters/latex/index.d.ts +1 -1
- package/dist/adapters/latex/index.d.ts.map +1 -1
- package/dist/adapters/latex/index.js +5 -2
- package/dist/adapters/latex/index.js.map +1 -1
- package/dist/adapters/latex/prose.d.ts +6 -0
- package/dist/adapters/latex/prose.d.ts.map +1 -1
- package/dist/adapters/latex/prose.js +18 -12
- package/dist/adapters/latex/prose.js.map +1 -1
- package/dist/cli.d.ts +6 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +16 -8
- package/dist/cli.js.map +1 -1
- package/dist/domain/register.d.ts +23 -1
- package/dist/domain/register.d.ts.map +1 -1
- package/dist/domain/register.js +37 -14
- package/dist/domain/register.js.map +1 -1
- package/dist/domain/term-definitions.d.ts +48 -0
- package/dist/domain/term-definitions.d.ts.map +1 -0
- package/dist/domain/term-definitions.js +228 -0
- package/dist/domain/term-definitions.js.map +1 -0
- package/dist/domain/tex-document.d.ts +11 -0
- package/dist/domain/tex-document.d.ts.map +1 -1
- package/dist/domain/tex-document.js.map +1 -1
- package/dist/eslint-rules/review-frontmatter.js +5 -5
- package/dist/eslint-rules/review-frontmatter.schema.json +15 -8
- package/dist/eslint-rules/sibling-frontmatter.d.ts.map +1 -1
- package/dist/folder-venue-rule.d.ts +1 -1
- package/dist/folder-venue-rule.d.ts.map +1 -1
- package/dist/folder-venue-rule.js +4 -2
- package/dist/folder-venue-rule.js.map +1 -1
- package/dist/hooks-notice.d.ts +3 -3
- package/dist/hooks-notice.d.ts.map +1 -1
- package/dist/hooks-notice.js +41 -8
- package/dist/hooks-notice.js.map +1 -1
- package/dist/link-skills.d.ts +5 -0
- package/dist/link-skills.d.ts.map +1 -1
- package/dist/link-skills.js +7 -0
- package/dist/link-skills.js.map +1 -1
- package/dist/ports/latex.d.ts +11 -1
- package/dist/ports/latex.d.ts.map +1 -1
- package/dist/presets.d.ts +21 -2
- package/dist/presets.d.ts.map +1 -1
- package/dist/presets.js +66 -17
- package/dist/presets.js.map +1 -1
- package/dist/readability.d.ts +12 -2
- package/dist/readability.d.ts.map +1 -1
- package/dist/readability.js +76 -3
- package/dist/readability.js.map +1 -1
- package/dist/register-bands.d.ts +16 -5
- package/dist/register-bands.d.ts.map +1 -1
- package/dist/register-bands.js +56 -17
- package/dist/register-bands.js.map +1 -1
- package/dist/skills/argument-arc/scripts/headings-core.d.ts +12 -0
- package/dist/skills/argument-arc/scripts/headings.d.ts +2 -0
- package/dist/skills/cold-read-diff/scripts/cold-read-core.d.ts +12 -0
- package/dist/skills/cold-read-diff/scripts/readers.d.ts +2 -1
- package/dist/term-definition-rules.d.ts +26 -0
- package/dist/term-definition-rules.d.ts.map +1 -0
- package/dist/term-definition-rules.js +137 -0
- package/dist/term-definition-rules.js.map +1 -0
- package/dist/tex-paper.d.ts +6 -0
- package/dist/tex-paper.d.ts.map +1 -1
- package/dist/tex-paper.js +10 -0
- package/dist/tex-paper.js.map +1 -1
- package/dist/tex-requirements.d.ts +2 -0
- package/dist/tex-requirements.d.ts.map +1 -1
- package/dist/tex-requirements.js +9 -0
- package/dist/tex-requirements.js.map +1 -1
- package/dist/tex-venue-rules.d.ts +3 -2
- package/dist/tex-venue-rules.d.ts.map +1 -1
- package/dist/tex-venue-rules.js +3 -2
- package/dist/tex-venue-rules.js.map +1 -1
- package/docs/configuration.md +2 -2
- package/{skills/paper-pipeline/references → docs/design}/acceptance-gate.md +50 -53
- package/docs/design/paper-pipeline-history.md +217 -0
- package/docs/design/skill-provenance.md +132 -0
- package/docs/design/study-modes.md +1 -1
- package/docs/design/verify-citations-history.md +135 -0
- package/docs/design/writing-exemplars.md +19 -0
- package/docs/install.md +7 -4
- package/docs/layout.md +5 -4
- package/docs/optional-rules.md +4 -0
- package/docs/osf-artifact.md +54 -0
- package/docs/pipeline.md +171 -0
- package/docs/render.md +82 -0
- package/docs/rules/paper/folder-venue-leftover.md +10 -7
- package/docs/rules/tex/contrast-frames.md +1 -2
- package/docs/rules/tex/max-caption-words.md +82 -0
- package/docs/rules/tex/max-paragraph-words.md +2 -2
- package/docs/rules/tex/negated-sentences.md +96 -0
- package/docs/rules/tex/term-before-definition.md +103 -0
- package/docs/rules/tex/term-defined-twice.md +62 -0
- package/docs/rules/tex/venue-leftover.md +13 -1
- package/docs/rules.md +23 -18
- package/docs/skills.md +16 -21
- package/docs/submission.md +14 -0
- package/docs/texlive-install-decision.md +1 -1
- package/docs/toolchain.md +11 -11
- package/eslint-rules/review-frontmatter.schema.json +15 -8
- package/eslint-rules/review-frontmatter.test.mjs +8 -5
- package/eslint-rules/review-frontmatter.ts +5 -5
- package/eslint.config.mjs +1 -5
- package/hooks/paper-status-gates.sh +21 -4
- package/hooks/paper-status-gates.test.ts +51 -0
- package/lib/skill-checks.test.mjs +2 -6
- package/lib/skill-trigger-cases.mjs +12 -97
- package/lib/skill-trigger-cases.test.ts +0 -6
- package/package.json +3 -1
- package/presets/acm-sigconf.md +1 -1
- package/presets/agenticdev.jsonc +5 -2
- package/presets/agenticdev.md +4 -2
- package/presets/aidc.jsonc +14 -1
- package/presets/aidc.md +3 -2
- package/presets/aisec.jsonc +9 -3
- package/presets/aisec.md +4 -1
- package/presets/ase.jsonc +145 -0
- package/presets/ase.md +178 -0
- package/presets/ccs.jsonc +87 -0
- package/presets/ccs.md +184 -0
- package/presets/icse.jsonc +100 -0
- package/presets/icse.md +126 -0
- package/presets/ieee-conference.md +1 -1
- package/presets/sp.jsonc +152 -0
- package/presets/sp.md +160 -0
- package/presets/venue-profile.schema.json +22 -3
- package/scripts/harness-api.frozen.json +0 -4
- package/scripts/pipeline.ts +481 -0
- package/skills/CLAUDE.md +2 -2
- package/skills/CLAUDE.md.spec.ts +26 -1
- package/skills/analyze-sibling-paper/SKILL.md +2 -20
- package/skills/analyze-sibling-paper/SKILL.md.spec.ts +9 -19
- package/skills/argument-arc/SKILL.md +32 -18
- package/skills/argument-arc/SKILL.md.spec.ts +43 -17
- package/skills/argument-arc/scripts/headings-core.js +46 -0
- package/skills/argument-arc/scripts/headings-core.ts +65 -0
- package/skills/argument-arc/scripts/headings.js +15 -0
- package/skills/argument-arc/scripts/headings.test.ts +105 -0
- package/skills/argument-arc/scripts/headings.ts +20 -0
- package/skills/build-benchmark/SKILL.md +1 -12
- package/skills/build-benchmark/SKILL.md.spec.ts +15 -11
- package/skills/build-label-page/SKILL.md.spec.ts +11 -0
- package/skills/camera-ready/SKILL.md +1 -8
- package/skills/camera-ready/SKILL.md.spec.ts +8 -7
- package/skills/cold-read-diff/SKILL.md +36 -25
- package/skills/cold-read-diff/SKILL.md.spec.ts +44 -24
- package/skills/cold-read-diff/scripts/cold-read-core.js +63 -6
- package/skills/cold-read-diff/scripts/cold-read-core.ts +81 -6
- package/skills/cold-read-diff/scripts/cold-read.js +1 -1
- package/skills/cold-read-diff/scripts/cold-read.test.ts +66 -0
- package/skills/cold-read-diff/scripts/cold-read.ts +1 -1
- package/skills/cold-read-diff/scripts/readers.js +2 -1
- package/skills/cold-read-diff/scripts/readers.ts +2 -1
- package/skills/draft-paper/SKILL.md +16 -29
- package/skills/draft-paper/SKILL.md.spec.ts +27 -28
- package/skills/extend-paper/SKILL.md +7 -16
- package/skills/extend-paper/SKILL.md.spec.ts +18 -15
- package/skills/find-venue/SKILL.md +11 -24
- package/skills/find-venue/SKILL.md.spec.ts +19 -23
- package/skills/harden-paper/SKILL.md +62 -290
- package/skills/harden-paper/SKILL.md.spec.ts +82 -304
- package/skills/harden-paper/harden-paper.harness.mjs +1 -2
- package/skills/jobs.ts +25 -0
- package/skills/label-agent-runs/SKILL.md.spec.ts +10 -0
- package/skills/map-prior-work/SKILL.md +5 -4
- package/skills/map-prior-work/SKILL.md.spec.ts +13 -3
- package/skills/paper-pipeline/SKILL.md +80 -278
- package/skills/paper-pipeline/SKILL.md.spec.ts +130 -276
- package/skills/paper-pipeline/description-language.eval.mjs +0 -22
- package/skills/paper-pipeline/framing-vs-vocabulary.eval.mjs +0 -29
- package/skills/paper-pipeline/paper-pipeline.harness.mjs +0 -16
- package/skills/paper-pipeline/pipeline-firing.eval.mjs +7 -29
- package/skills/paper-pipeline/pipeline-language.eval.mjs +0 -52
- package/skills/paper-pipeline/references/artifact-checklist.md +6 -1
- package/skills/paper-pipeline/references/body-vs-appendix.md +3 -4
- package/skills/paper-pipeline/references/pipeline-status-template.md +8 -10
- package/skills/paper-pipeline/references/review-ratchet.md +4 -7
- package/skills/paper-pipeline/references/venue-bar.md +1 -2
- package/skills/paper-pipeline/references/writing-craft.md +21 -281
- package/skills/paper-status/SKILL.md +17 -20
- package/skills/paper-status/SKILL.md.spec.ts +23 -19
- package/skills/pc-panel-review/SKILL.md +66 -93
- package/skills/pc-panel-review/SKILL.md.spec.ts +75 -92
- package/skills/plan-paper-timeline/SKILL.md +7 -29
- package/skills/plan-paper-timeline/SKILL.md.spec.ts +16 -28
- package/skills/plan-paper-timeline/plan-paper-timeline.effects.harness.mjs +2 -2
- package/skills/render-paper/check-render.sh +2 -2
- package/skills/render-paper/render-paper.harness.mjs +4 -20
- package/skills/research-ideate/SKILL.md +15 -32
- package/skills/research-ideate/SKILL.md.spec.ts +25 -31
- package/skills/rewrite-unclear/SKILL.md +15 -14
- package/skills/rewrite-unclear/SKILL.md.spec.ts +24 -15
- package/skills/rewrite-unclear/rewrite-unclear.eval.ts +2 -3
- package/skills/run-agent-grid/SKILL.md +3 -3
- package/skills/run-agent-grid/SKILL.md.spec.ts +10 -2
- package/skills/study-accepted-papers/SKILL.md +5 -5
- package/skills/study-accepted-papers/SKILL.md.spec.ts +27 -4
- package/skills/submit-paper/SKILL.md +37 -31
- package/skills/submit-paper/SKILL.md.spec.ts +46 -30
- package/skills/submit-paper/check-deanon.sh +1 -1
- package/skills/tighten-paper/SKILL.md +43 -68
- package/skills/tighten-paper/SKILL.md.spec.ts +51 -67
- package/skills/verify-citations/SKILL.md +18 -112
- package/skills/verify-citations/SKILL.md.spec.ts +27 -114
- package/src/adapters/latex/abstract.test.ts +42 -0
- package/src/adapters/latex/abstract.ts +23 -6
- package/src/adapters/latex/captions.test.ts +36 -38
- package/src/adapters/latex/captions.ts +16 -33
- package/src/adapters/latex/index.test.ts +11 -0
- package/src/adapters/latex/index.ts +5 -2
- package/src/adapters/latex/prose.ts +23 -11
- package/src/cli.ts +26 -5
- package/src/domain/register.test.ts +65 -0
- package/src/domain/register.ts +72 -16
- package/src/domain/term-definitions.test.ts +240 -0
- package/src/domain/term-definitions.ts +329 -0
- package/src/domain/tex-document.ts +12 -0
- package/src/domain/venue-name.test.ts +4 -4
- package/src/folder-venue-rule.test.ts +23 -2
- package/src/folder-venue-rule.ts +8 -8
- package/src/hooks-notice.test.ts +127 -0
- package/src/hooks-notice.ts +50 -10
- package/src/link-skills.ts +9 -0
- package/src/new-paper.test.ts +2 -2
- package/src/paper-settings-commands.test.ts +1 -1
- package/src/ports/latex.ts +11 -0
- package/src/preset-card-rule.test.ts +4 -0
- package/src/presets.test.ts +141 -4
- package/src/presets.ts +113 -22
- package/src/readability.test.ts +92 -0
- package/src/readability.ts +113 -5
- package/src/register-bands.test.ts +81 -1
- package/src/register-bands.ts +88 -23
- package/src/rule-cases.test.ts +122 -2
- package/src/term-definition-rules.test.ts +150 -0
- package/src/term-definition-rules.ts +189 -0
- package/src/tex-paper.test.ts +18 -1
- package/src/tex-paper.ts +11 -0
- package/src/tex-requirements.ts +15 -0
- package/src/tex-venue-rules.test.ts +45 -1
- package/src/tex-venue-rules.ts +8 -3
- package/src/venue-rules.test.ts +2 -2
- package/templates/paper/PIPELINE-STATUS.md +19 -19
- package/dist/paper-prose.d.ts +0 -17
- package/dist/paper-prose.d.ts.map +0 -1
- package/dist/paper-prose.js +0 -46
- package/dist/paper-prose.js.map +0 -1
- package/skills/grade-paper-writing/SKILL.md +0 -494
- package/skills/grade-paper-writing/SKILL.md.spec.ts +0 -501
- package/skills/grade-paper-writing/__snapshots__/prose-lint.test.ts.snap +0 -84
- package/skills/grade-paper-writing/fixtures/control_gopen.txt +0 -1
- package/skills/grade-paper-writing/fixtures/control_human_paper.txt +0 -1
- package/skills/grade-paper-writing/fixtures/rewrite.txt +0 -1
- package/skills/grade-paper-writing/fixtures/specimen.txt +0 -1
- package/skills/grade-paper-writing/fixtures/structure-checks.md +0 -22
- package/skills/grade-paper-writing/grade-paper-writing.eval.mjs +0 -19
- package/skills/grade-paper-writing/grade-paper-writing.harness.mjs +0 -23
- package/skills/grade-paper-writing/prose-lint.mjs +0 -602
- package/skills/grade-paper-writing/prose-lint.test.ts +0 -413
- package/skills/osf-artifact-upload/SKILL.md +0 -58
- package/skills/osf-artifact-upload/SKILL.md.spec.ts +0 -65
- package/skills/osf-artifact-upload/osf-artifact-upload.eval.mjs +0 -22
- package/skills/osf-artifact-upload/osf-artifact-upload.harness.ts +0 -102
- package/skills/paper-adversarial-review/SKILL.md +0 -100
- package/skills/paper-adversarial-review/SKILL.md.spec.ts +0 -107
- package/skills/paper-adversarial-review/paper-adversarial-review.eval.mjs +0 -19
- package/skills/paper-adversarial-review/paper-adversarial-review.harness.mjs +0 -24
- package/skills/paper-pipeline/grade-paper-writing-ablation.eval.mjs +0 -1274
- package/skills/paper-pipeline/references/credit-criteria.md +0 -69
- package/skills/paper-pipeline/references/occupancy-2026-08-06-probe/README.md +0 -35
- package/skills/paper-pipeline/references/occupancy-2026-08-06-probe/run_retext.mjs +0 -24
- package/skills/paper-pipeline/references/occupancy-2026-08-06-probe/sentences.txt +0 -11
- package/skills/paper-pipeline/references/occupancy-2026-08-06-probe/test_sentences.py +0 -25
- package/skills/paper-pipeline/references/occupancy-2026-08-06-prose-checkers.md +0 -538
- package/skills/paper-pipeline/references/occupancy-2026-08-06-reproducible-tooling.md +0 -431
- package/skills/paper-pipeline/references/occupancy-2026-08-06-staleness-and-orchestration.md +0 -592
- package/skills/paper-pipeline/repro/2026-08-08-parent-replication.mjs +0 -92
- package/skills/render-paper/SKILL.md +0 -123
- package/skills/render-paper/SKILL.md.spec.ts +0 -130
- package/skills/render-paper/render-paper.eval.mjs +0 -19
- package/skills/submission-portal/SKILL.md +0 -129
- package/skills/submission-portal/SKILL.md.spec.ts +0 -134
- package/skills/submission-portal/submission-portal.eval.mjs +0 -15
- package/skills/submission-portal/submission-portal.test.ts +0 -12
- package/skills/sweep-design-space/SKILL.md +0 -232
- package/skills/sweep-design-space/SKILL.md.spec.ts +0 -248
- package/skills/sweep-design-space/sweep-design-space.eval.mjs +0 -19
- package/skills/sweep-design-space/sweep-design-space.harness.mjs +0 -23
- package/src/paper-prose.test.ts +0 -78
- package/src/paper-prose.ts +0 -67
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 2026-08-08-parent-replication.mjs — DID THE PARENT'S 12% HOLD, OR WAS IT TIME-BOUND?
|
|
3
|
-
*
|
|
4
|
-
* Run: node .claude/skills/paper-pipeline/repro/2026-08-08-parent-replication.mjs
|
|
5
|
-
*
|
|
6
|
-
* WHY THIS EXISTS. `grade-paper-writing-ablation.eval.mjs`'s CONTROL ARM (A0 — the verbatim
|
|
7
|
-
* description, the parent's own eight AH+SH prompts, the parent's fixture, the same 37 skills)
|
|
8
|
-
* returned 13/24 = 54%. The parent (`framing-vs-vocabulary.eval.mjs`, same day) measured those same
|
|
9
|
-
* eight prompts at AH 3/12 and SH 2/12 = 5/24 = 21%, and that 21%/12% is the entire premise of the
|
|
10
|
-
* ablation — and of two SKILL.md edits made earlier the same day that cite it as measured fact.
|
|
11
|
-
*
|
|
12
|
-
* A control that contradicts the experiment it was built to explain outranks every arm, so this
|
|
13
|
-
* settles which number is real, and it does it through the PARENT'S OWN CODE, not a reimplementation:
|
|
14
|
-
*
|
|
15
|
-
* - It reads `framing-vs-vocabulary.eval.mjs` and applies exactly TWO textual patches, each of
|
|
16
|
-
* which must match exactly once or this script aborts:
|
|
17
|
-
* 1. the MAIN LOOP is filtered to `grade-paper-writing` and to cells AH + SH;
|
|
18
|
-
* 2. the output JSON path is changed so the parent's own result file is never overwritten.
|
|
19
|
-
* Everything else — fixture, roster, guards, allowedTools, trials, concurrency, spacing, timeout,
|
|
20
|
-
* the `fired` predicate, the skillsDir (the REAL `.claude/skills`) — is the parent's, unmodified.
|
|
21
|
-
* Note patch 1 deliberately filters the LOOP and not `CELLS`/`CASES` themselves: the parent's
|
|
22
|
-
* preflight guards compute overlap contrasts across all four cells and all three skills, and
|
|
23
|
-
* narrowing the constants would disable the guards instead of the runs.
|
|
24
|
-
* - The patched copy is written to the session scratchpad with a `node_modules` symlink, so
|
|
25
|
-
* `.claude/skills/` is not touched and the parent file is read-only throughout.
|
|
26
|
-
*
|
|
27
|
-
* READING IT
|
|
28
|
-
* ~54% the parent's 21% for this skill was time-bound or otherwise unstable, and the "dead skill"
|
|
29
|
-
* premise is about MEASUREMENT STABILITY, not about the description. The two SKILL.md
|
|
30
|
-
* paragraphs citing 12% need correcting.
|
|
31
|
-
* ~21% the difference lives in the ablation's harness setup (a copied skills dir, per-arm
|
|
32
|
-
* packaging) and NO ablation arm is comparable to the parent's numbers — the arms remain
|
|
33
|
-
* internally comparable to each other and to A0, and nothing else.
|
|
34
|
-
*
|
|
35
|
-
* 24 runs, ~$3.4 API-equivalent at the measured rate. n = 24 resolves a factor of two; that is
|
|
36
|
-
* exactly the size of the disagreement (21% vs 54%), which is why 24 is enough here.
|
|
37
|
-
*/
|
|
38
|
-
|
|
39
|
-
import { readFileSync, writeFileSync, mkdirSync, symlinkSync, existsSync, rmSync } from "node:fs";
|
|
40
|
-
import { join } from "node:path";
|
|
41
|
-
import { tmpdir } from "node:os";
|
|
42
|
-
import { spawnSync } from "node:child_process";
|
|
43
|
-
|
|
44
|
-
const ROOT = process.env.CLAUDE_PROJECT_DIR ?? process.cwd();
|
|
45
|
-
const PARENT = join(ROOT, ".claude", "skills", "paper-pipeline", "framing-vs-vocabulary.eval.mjs");
|
|
46
|
-
const SCRATCH =
|
|
47
|
-
process.env.ABLATION_SCRATCH ?? join(tmpdir(), "parent-repl");
|
|
48
|
-
|
|
49
|
-
const src = readFileSync(PARENT, "utf-8");
|
|
50
|
-
|
|
51
|
-
const PATCHES = [
|
|
52
|
-
{
|
|
53
|
-
what: "filter the MAIN LOOP to grade-paper-writing, cells AH+SH (guards untouched)",
|
|
54
|
-
from: "const results = [];\nfor (const c of CASES) {\n for (const k of CELLS) {",
|
|
55
|
-
to:
|
|
56
|
-
"const results = [];\n" +
|
|
57
|
-
'for (const c of CASES.filter((c) => c.skill === "grade-paper-writing")) {\n' +
|
|
58
|
-
' for (const k of CELLS.filter((k) => k === "AH" || k === "SH")) {',
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
what: "redirect the JSON output so the parent's own result file survives",
|
|
62
|
-
from: '"2026-08-08-framing-vs-vocabulary.json"',
|
|
63
|
-
to: '"2026-08-08-parent-replication-gpw.json"',
|
|
64
|
-
},
|
|
65
|
-
];
|
|
66
|
-
|
|
67
|
-
let patched = src;
|
|
68
|
-
for (const p of PATCHES) {
|
|
69
|
-
const n = patched.split(p.from).length - 1;
|
|
70
|
-
if (n !== 1)
|
|
71
|
-
throw new Error(`PATCH MATCHED ${n} TIMES (must be exactly 1): ${p.what}\n---\n${p.from}\n---`);
|
|
72
|
-
patched = patched.replace(p.from, p.to);
|
|
73
|
-
console.log(`patched: ${p.what}`);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
rmSync(SCRATCH, { recursive: true, force: true });
|
|
77
|
-
mkdirSync(SCRATCH, { recursive: true });
|
|
78
|
-
const target = join(SCRATCH, "replication.mjs");
|
|
79
|
-
writeFileSync(target, patched);
|
|
80
|
-
if (!existsSync(join(SCRATCH, "node_modules")))
|
|
81
|
-
symlinkSync(join(ROOT, "node_modules"), join(SCRATCH, "node_modules"), "dir");
|
|
82
|
-
|
|
83
|
-
console.log(`\nrunning the PARENT'S code, grade-paper-writing AH+SH only, 3 trials = 24 runs`);
|
|
84
|
-
console.log(` parent : ${PARENT}`);
|
|
85
|
-
console.log(` patched: ${target}\n`);
|
|
86
|
-
|
|
87
|
-
const r = spawnSync(process.execPath, [target, "--mode", "main"], {
|
|
88
|
-
stdio: "inherit",
|
|
89
|
-
env: { ...process.env, CLAUDE_PROJECT_DIR: ROOT },
|
|
90
|
-
cwd: ROOT,
|
|
91
|
-
});
|
|
92
|
-
process.exit(r.status ?? 1);
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: render-paper
|
|
3
|
-
description: Compile a LaTeX paper (ACM/IEEE/arXiv) to PDF and render its pages to high-DPI PNGs for mobile/on-screen review. Use whenever asked to "render / compile / show / screenshot" a .tex paper, or to produce phone-readable page images of a draft (e.g. ACM/IEEE workshop submissions). Encodes the toolchain + the gotchas already hit (font-expansion crash, filecontents bib, bibtex cycle).
|
|
4
|
-
allowed-tools: [Read, Write, Edit, Grep, Glob, Bash, SendUserFile]
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
<!-- vigiles:sha256:ff8dca1e1be3977e compiled from skills/render-paper/SKILL.md.spec.ts -->
|
|
8
|
-
|
|
9
|
-
# render-paper — .tex → PDF → readable page PNGs
|
|
10
|
-
|
|
11
|
-
Turns a LaTeX source into (a) a compiled PDF and (b) per-page PNG images crisp enough to read
|
|
12
|
-
the font on a phone. Encodes the exact toolchain and the failures already debugged, so it works
|
|
13
|
-
first try.
|
|
14
|
-
|
|
15
|
-
## 🔴 This is a COMMAND, not a stage
|
|
16
|
-
|
|
17
|
-
You run it twenty times a day. It has no position in the pipeline and nothing waits its turn to reach
|
|
18
|
-
it: **any `.tex` edit is the trigger** — render, then eyeball pages 1–2 before believing
|
|
19
|
-
anything you say about the paper. Scorecard row **`render`** (in the CONTINUOUS section of
|
|
20
|
-
`paper-pipeline`) records the last render and its page count; that page count is the hard input the
|
|
21
|
-
`tighten-paper` structure gate is blocked on, which is the only sense in which anything "comes after"
|
|
22
|
-
this.
|
|
23
|
-
|
|
24
|
-
*It used to carry a number in a stage list, which made a compile look like a milestone you pass once.
|
|
25
|
-
That list was replaced on 2026-08-03; nothing about the toolchain below changed.*
|
|
26
|
-
|
|
27
|
-
## Toolchain (one command, not a checklist)
|
|
28
|
-
- **Compiler:** TeX Live, installed by paperlint with exactly the packages the venue profiles declare:
|
|
29
|
-
```
|
|
30
|
-
npx paperlint toolchain # into ~/.cache/paperlint/texlive (PAPERLINT_TEXLIVE_DIR overrides); idempotent
|
|
31
|
-
npx paperlint toolchain --check # report what is missing, change nothing
|
|
32
|
-
```
|
|
33
|
-
Measured 2026-09-24: 3 min from an empty directory, 269 MB, TeX Live 2026, 47 packages verified
|
|
34
|
-
by `kpsewhich` against the files each profile names. The last line it prints is `bin: <dir>` —
|
|
35
|
-
put that directory first on PATH before calling `pdflatex` or `check-render.sh` by hand.
|
|
36
|
-
|
|
37
|
-
🔴 The package list lives in the venue profiles (`presets/*.jsonc` in the package, the
|
|
38
|
-
`tex` block; `tex-base.jsonc` for every paper) and nowhere else. A new venue that needs a new
|
|
39
|
-
package gets it there — never in a script, never here. A TeX Live without `libertine` builds an
|
|
40
|
-
acmart paper GREEN in Computer Modern; that is why the files are checked, not the exit code.
|
|
41
|
-
- **Reading the PDF** needs nothing installed: `paperlint build` and `extract-pdf-facts.mjs` use pdf.js,
|
|
42
|
-
which comes with paperlint. Page size, columns and font sizes come from banal (HotCRP's page-geometry
|
|
43
|
-
script), which `npx paperlint toolchain` installs and which runs on pdf.js output — it needs `perl`,
|
|
44
|
-
and no poppler. Without banal those facts are `null` and the build says so.
|
|
45
|
-
- **Renderer:** `pip install --quiet pymupdf` (system rasterizers and ghostscript are often missing or
|
|
46
|
-
404 on apt here; pymupdf is reliable). No `playwright install`, no external fetches.
|
|
47
|
-
|
|
48
|
-
## Compile (full bibtex cycle — needed or citations show as `[?]`)
|
|
49
|
-
```
|
|
50
|
-
npx paperlint build <paper-dir>
|
|
51
|
-
```
|
|
52
|
-
It picks a TeX Live that has every package the venue declares (paperlint's own, else one on PATH),
|
|
53
|
-
runs pdflatex and bibtex until the references settle, fails on an undefined `\ref`/`\cite`
|
|
54
|
-
through `paper-guards.tex`, then measures the PDF into `_build/paper.facts.json` (fonts, Type 3,
|
|
55
|
-
the last page's column heights). It judges nothing: a venue that needs a balanced last page turns
|
|
56
|
-
on the optional lint rule `pdf/last-page-balance` (see `docs/optional-rules.md` in the package). Without a
|
|
57
|
-
terminal and without a qualifying TeX Live it stops with one line naming `npx paperlint toolchain`.
|
|
58
|
-
Check the last log anyway: `grep -iE "Fatal|Output written" ` and
|
|
59
|
-
`grep -ciE "Undefined control|Citation.*undefined|Reference.*undefined"` (must be 0).
|
|
60
|
-
|
|
61
|
-
### MECHANICAL RENDER GATE (run this — do not just eyeball)
|
|
62
|
-
Eyeballing a page or two misses `Overfull \hbox` defects on later pages (text/tables bleeding
|
|
63
|
-
past the column into the margin — the #1 "wtf, formatting is broken" bug). LaTeX reports every one
|
|
64
|
-
in the `.log`; **`check-render.sh` parses them so it's a checked fact, not a hope:**
|
|
65
|
-
```
|
|
66
|
-
bash .claude/skills/render-paper/check-render.sh <paper-dir> [texbasename=paper] [threshold_pt=5]
|
|
67
|
-
```
|
|
68
|
-
It compiles, then FAILS (exit 1) on: any `Overfull \hbox` ≥ threshold (visible overflow), any
|
|
69
|
-
`Overfull \vbox`, or any undefined reference/citation/control-sequence. **A paper is not "renders
|
|
70
|
-
clean" until this exits 0.** Common fixes when it fails:
|
|
71
|
-
- **Long `\texttt{...}` / literal commands / URLs overflowing** → wrap in `\seqsplit{}`, or use
|
|
72
|
-
`\url{}` (breakable), or a `p{width}`/`>{\ttfamily\small}p{width}` table column instead of `l`,
|
|
73
|
-
or shrink the block with `\small`/`\footnotesize`.
|
|
74
|
-
- **Wide table** → `\small` + fixed-width `p{}` columns so cells wrap; or `\resizebox{\columnwidth}{!}{...}`.
|
|
75
|
-
- Re-run the gate until PASS.
|
|
76
|
-
|
|
77
|
-
## KNOWN GOTCHAS (already hit — apply proactively)
|
|
78
|
-
1. **`pdfTeX error (font expansion): auto expansion is only possible with scalable fonts`** — acmart +
|
|
79
|
-
microtype want Libertine outlines that `texlive-fonts-recommended` may lack. Fix: add
|
|
80
|
-
`\microtypesetup{expansion=false}` in the preamble (after `\documentclass`). This is the #1 crash.
|
|
81
|
-
2. **`Undefined control sequence \lesssim` / `\gtrsim`** — need `amssymb`; either `\usepackage{amssymb}`
|
|
82
|
-
or replace with `\le`/`\ge`.
|
|
83
|
-
3. **Bibliography via embedded `\begin{filecontents*}[overwrite]{refs.bib}...`** before
|
|
84
|
-
`\documentclass` works and keeps the paper one-file; still run the full bibtex cycle above.
|
|
85
|
-
⚠️ **The block IS the source of truth — it `overwrite`s `refs.bib` on every build.** Editing `refs.bib`
|
|
86
|
-
directly does nothing (regenerated away); fix citations INSIDE the filecontents block in the `.tex`.
|
|
87
|
-
Consider `.gitignore`-ing the generated `refs.bib` so it can't drift from the block.
|
|
88
|
-
4. **Double-blind:** ACM uses `\documentclass[sigconf,review,anonymous]{acmart}`; keep author
|
|
89
|
-
`Anonymous Author(s)` for the review PDF.
|
|
90
|
-
5. **`.gitignore`** the build junk (`*.aux *.log *.out *.bbl *.blg`); keep `paper.pdf` if you want it
|
|
91
|
-
version-controlled, else ignore it too.
|
|
92
|
-
6. **Multi-token shell commands in `\texttt{}` break at their internal space** — `\texttt{rm -rf}` can wrap
|
|
93
|
-
as `rm` ⏎ `-rf`, which reads as broken typesetting. This is a LEGAL break, so it raises **no** Overfull
|
|
94
|
-
warning and the render gate is blind to it. Fix: non-breaking ties — `\texttt{rm~-rf~/}` (or wrap in
|
|
95
|
-
`\mbox{}`). The space *before an argument* (`rm~-rf node\_modules`) stays breakable — only tie the
|
|
96
|
-
command tokens. `check-render.sh` now greps for a literal space inside `\texttt{…}` and warns.
|
|
97
|
-
7. **Page-limit / body-end: trust the RENDERED References-start page, NOT `\newlabel{tmpbodyend}` in the
|
|
98
|
-
`.aux`.** The aux label lags one compile (it reflects the *previous* build's pagination), so it triggers
|
|
99
|
-
false page-limit alarms — this session it read "p11" while the body genuinely ended on p10. To check the
|
|
100
|
-
body length: open the built PDF, find the page where the `\section*{References}`/`REFERENCES` heading
|
|
101
|
-
first appears (that page = last body page). `python3 -c "import fitz;d=fitz.open('paper.pdf');[print('refs p',i+1) for i in range(d.page_count) if 'REFERENCES' in d[i].get_text()][:1]"`. Never gate a page-limit decision on the aux value.
|
|
102
|
-
|
|
103
|
-
## Render pages to PNGs
|
|
104
|
-
```
|
|
105
|
-
python3 -c "import fitz; d=fitz.open('paper.pdf'); \
|
|
106
|
-
[d[i].get_pixmap(dpi=200).save(f'/<scratch>/p{i+1}.png') for i in range(d.page_count)]; \
|
|
107
|
-
print('rendered', d.page_count)"
|
|
108
|
-
```
|
|
109
|
-
- **DPI 200** = phone-readable (zoomable); use 150 for quick previews, 300 for print-check.
|
|
110
|
-
- Write PNGs to the session scratchpad, not the repo.
|
|
111
|
-
- **The mechanical gate above (`check-render.sh`) is the primary defense** for text/table overflow and
|
|
112
|
-
undefined refs — run it first, on the whole document, and get it to PASS.
|
|
113
|
-
- **Then eyeball EVERY page** (not just 1–2) for the defects the log CANNOT flag: **figure-internal
|
|
114
|
-
label collisions** (TikZ/pgfplots nodes overlapping axis labels or each other — e.g. a legend
|
|
115
|
-
landing on an axis tick), color/legibility, misaligned sub-figures. These do not raise an Overfull
|
|
116
|
-
warning, so a human scan of each figure is still required. Fix and re-render until clean.
|
|
117
|
-
|
|
118
|
-
## Deliver
|
|
119
|
-
- Send the PNGs with `SendUserFile` (`display: render`) so the user can read on phone; caption what
|
|
120
|
-
changed since the last render. Send the PDF too (`display: attach`) if they want the file.
|
|
121
|
-
|
|
122
|
-
## Compose with
|
|
123
|
-
- `paper-adversarial-review` / `pc-panel-review` (incl. its venue-fit mode) — review the rendered draft.
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
// Compiled to SKILL.md by `vigiles compile`. Edit THIS file, never the markdown.
|
|
2
|
-
//
|
|
3
|
-
// Adopted 2026-08-17 as part of the second batch. The body is the previous SKILL.md
|
|
4
|
-
// VERBATIM, so the compiled diff shows only what the compiler adds. No `disallowedTools`
|
|
5
|
-
// fence yet: the field exists on `SkillSpec` as of the branch `claude/skill-disallowed-tools`
|
|
6
|
-
// but is not in a release the consumer installs, so adding it here would not compile.
|
|
7
|
-
import { experimental_skill } from "vigiles/spec";
|
|
8
|
-
|
|
9
|
-
export default experimental_skill({
|
|
10
|
-
name: "render-paper",
|
|
11
|
-
description:
|
|
12
|
-
'Compile a LaTeX paper (ACM/IEEE/arXiv) to PDF and render its pages to high-DPI PNGs for mobile/on-screen review. Use whenever asked to "render / compile / show / screenshot" a .tex paper, or to produce phone-readable page images of a draft (e.g. ACM/IEEE workshop submissions). Encodes the toolchain + the gotchas already hit (font-expansion crash, filecontents bib, bibtex cycle).',
|
|
13
|
-
tools: ["Read", "Write", "Edit", "Grep", "Glob", "Bash", "SendUserFile"],
|
|
14
|
-
body: `
|
|
15
|
-
# render-paper — .tex → PDF → readable page PNGs
|
|
16
|
-
|
|
17
|
-
Turns a LaTeX source into (a) a compiled PDF and (b) per-page PNG images crisp enough to read
|
|
18
|
-
the font on a phone. Encodes the exact toolchain and the failures already debugged, so it works
|
|
19
|
-
first try.
|
|
20
|
-
|
|
21
|
-
## 🔴 This is a COMMAND, not a stage
|
|
22
|
-
|
|
23
|
-
You run it twenty times a day. It has no position in the pipeline and nothing waits its turn to reach
|
|
24
|
-
it: **any \`.tex\` edit is the trigger** — render, then eyeball pages 1–2 before believing
|
|
25
|
-
anything you say about the paper. Scorecard row **\`render\`** (in the CONTINUOUS section of
|
|
26
|
-
\`paper-pipeline\`) records the last render and its page count; that page count is the hard input the
|
|
27
|
-
\`tighten-paper\` structure gate is blocked on, which is the only sense in which anything "comes after"
|
|
28
|
-
this.
|
|
29
|
-
|
|
30
|
-
*It used to carry a number in a stage list, which made a compile look like a milestone you pass once.
|
|
31
|
-
That list was replaced on 2026-08-03; nothing about the toolchain below changed.*
|
|
32
|
-
|
|
33
|
-
## Toolchain (one command, not a checklist)
|
|
34
|
-
- **Compiler:** TeX Live, installed by paperlint with exactly the packages the venue profiles declare:
|
|
35
|
-
\`\`\`
|
|
36
|
-
npx paperlint toolchain # into ~/.cache/paperlint/texlive (PAPERLINT_TEXLIVE_DIR overrides); idempotent
|
|
37
|
-
npx paperlint toolchain --check # report what is missing, change nothing
|
|
38
|
-
\`\`\`
|
|
39
|
-
Measured 2026-09-24: 3 min from an empty directory, 269 MB, TeX Live 2026, 47 packages verified
|
|
40
|
-
by \`kpsewhich\` against the files each profile names. The last line it prints is \`bin: <dir>\` —
|
|
41
|
-
put that directory first on PATH before calling \`pdflatex\` or \`check-render.sh\` by hand.
|
|
42
|
-
|
|
43
|
-
🔴 The package list lives in the venue profiles (\`presets/*.jsonc\` in the package, the
|
|
44
|
-
\`tex\` block; \`tex-base.jsonc\` for every paper) and nowhere else. A new venue that needs a new
|
|
45
|
-
package gets it there — never in a script, never here. A TeX Live without \`libertine\` builds an
|
|
46
|
-
acmart paper GREEN in Computer Modern; that is why the files are checked, not the exit code.
|
|
47
|
-
- **Reading the PDF** needs nothing installed: \`paperlint build\` and \`extract-pdf-facts.mjs\` use pdf.js,
|
|
48
|
-
which comes with paperlint. Page size, columns and font sizes come from banal (HotCRP's page-geometry
|
|
49
|
-
script), which \`npx paperlint toolchain\` installs and which runs on pdf.js output — it needs \`perl\`,
|
|
50
|
-
and no poppler. Without banal those facts are \`null\` and the build says so.
|
|
51
|
-
- **Renderer:** \`pip install --quiet pymupdf\` (system rasterizers and ghostscript are often missing or
|
|
52
|
-
404 on apt here; pymupdf is reliable). No \`playwright install\`, no external fetches.
|
|
53
|
-
|
|
54
|
-
## Compile (full bibtex cycle — needed or citations show as \`[?]\`)
|
|
55
|
-
\`\`\`
|
|
56
|
-
npx paperlint build <paper-dir>
|
|
57
|
-
\`\`\`
|
|
58
|
-
It picks a TeX Live that has every package the venue declares (paperlint's own, else one on PATH),
|
|
59
|
-
runs pdflatex and bibtex until the references settle, fails on an undefined \`\\ref\`/\`\\cite\`
|
|
60
|
-
through \`paper-guards.tex\`, then measures the PDF into \`_build/paper.facts.json\` (fonts, Type 3,
|
|
61
|
-
the last page's column heights). It judges nothing: a venue that needs a balanced last page turns
|
|
62
|
-
on the optional lint rule \`pdf/last-page-balance\` (see \`docs/optional-rules.md\` in the package). Without a
|
|
63
|
-
terminal and without a qualifying TeX Live it stops with one line naming \`npx paperlint toolchain\`.
|
|
64
|
-
Check the last log anyway: \`grep -iE "Fatal|Output written" \` and
|
|
65
|
-
\`grep -ciE "Undefined control|Citation.*undefined|Reference.*undefined"\` (must be 0).
|
|
66
|
-
|
|
67
|
-
### MECHANICAL RENDER GATE (run this — do not just eyeball)
|
|
68
|
-
Eyeballing a page or two misses \`Overfull \\hbox\` defects on later pages (text/tables bleeding
|
|
69
|
-
past the column into the margin — the #1 "wtf, formatting is broken" bug). LaTeX reports every one
|
|
70
|
-
in the \`.log\`; **\`check-render.sh\` parses them so it's a checked fact, not a hope:**
|
|
71
|
-
\`\`\`
|
|
72
|
-
bash .claude/skills/render-paper/check-render.sh <paper-dir> [texbasename=paper] [threshold_pt=5]
|
|
73
|
-
\`\`\`
|
|
74
|
-
It compiles, then FAILS (exit 1) on: any \`Overfull \\hbox\` ≥ threshold (visible overflow), any
|
|
75
|
-
\`Overfull \\vbox\`, or any undefined reference/citation/control-sequence. **A paper is not "renders
|
|
76
|
-
clean" until this exits 0.** Common fixes when it fails:
|
|
77
|
-
- **Long \`\\texttt{...}\` / literal commands / URLs overflowing** → wrap in \`\\seqsplit{}\`, or use
|
|
78
|
-
\`\\url{}\` (breakable), or a \`p{width}\`/\`>{\\ttfamily\\small}p{width}\` table column instead of \`l\`,
|
|
79
|
-
or shrink the block with \`\\small\`/\`\\footnotesize\`.
|
|
80
|
-
- **Wide table** → \`\\small\` + fixed-width \`p{}\` columns so cells wrap; or \`\\resizebox{\\columnwidth}{!}{...}\`.
|
|
81
|
-
- Re-run the gate until PASS.
|
|
82
|
-
|
|
83
|
-
## KNOWN GOTCHAS (already hit — apply proactively)
|
|
84
|
-
1. **\`pdfTeX error (font expansion): auto expansion is only possible with scalable fonts\`** — acmart +
|
|
85
|
-
microtype want Libertine outlines that \`texlive-fonts-recommended\` may lack. Fix: add
|
|
86
|
-
\`\\microtypesetup{expansion=false}\` in the preamble (after \`\\documentclass\`). This is the #1 crash.
|
|
87
|
-
2. **\`Undefined control sequence \\lesssim\` / \`\\gtrsim\`** — need \`amssymb\`; either \`\\usepackage{amssymb}\`
|
|
88
|
-
or replace with \`\\le\`/\`\\ge\`.
|
|
89
|
-
3. **Bibliography via embedded \`\\begin{filecontents*}[overwrite]{refs.bib}...\`** before
|
|
90
|
-
\`\\documentclass\` works and keeps the paper one-file; still run the full bibtex cycle above.
|
|
91
|
-
⚠️ **The block IS the source of truth — it \`overwrite\`s \`refs.bib\` on every build.** Editing \`refs.bib\`
|
|
92
|
-
directly does nothing (regenerated away); fix citations INSIDE the filecontents block in the \`.tex\`.
|
|
93
|
-
Consider \`.gitignore\`-ing the generated \`refs.bib\` so it can't drift from the block.
|
|
94
|
-
4. **Double-blind:** ACM uses \`\\documentclass[sigconf,review,anonymous]{acmart}\`; keep author
|
|
95
|
-
\`Anonymous Author(s)\` for the review PDF.
|
|
96
|
-
5. **\`.gitignore\`** the build junk (\`*.aux *.log *.out *.bbl *.blg\`); keep \`paper.pdf\` if you want it
|
|
97
|
-
version-controlled, else ignore it too.
|
|
98
|
-
6. **Multi-token shell commands in \`\\texttt{}\` break at their internal space** — \`\\texttt{rm -rf}\` can wrap
|
|
99
|
-
as \`rm\` ⏎ \`-rf\`, which reads as broken typesetting. This is a LEGAL break, so it raises **no** Overfull
|
|
100
|
-
warning and the render gate is blind to it. Fix: non-breaking ties — \`\\texttt{rm~-rf~/}\` (or wrap in
|
|
101
|
-
\`\\mbox{}\`). The space *before an argument* (\`rm~-rf node\\_modules\`) stays breakable — only tie the
|
|
102
|
-
command tokens. \`check-render.sh\` now greps for a literal space inside \`\\texttt{…}\` and warns.
|
|
103
|
-
7. **Page-limit / body-end: trust the RENDERED References-start page, NOT \`\\newlabel{tmpbodyend}\` in the
|
|
104
|
-
\`.aux\`.** The aux label lags one compile (it reflects the *previous* build's pagination), so it triggers
|
|
105
|
-
false page-limit alarms — this session it read "p11" while the body genuinely ended on p10. To check the
|
|
106
|
-
body length: open the built PDF, find the page where the \`\\section*{References}\`/\`REFERENCES\` heading
|
|
107
|
-
first appears (that page = last body page). \`python3 -c "import fitz;d=fitz.open('paper.pdf');[print('refs p',i+1) for i in range(d.page_count) if 'REFERENCES' in d[i].get_text()][:1]"\`. Never gate a page-limit decision on the aux value.
|
|
108
|
-
|
|
109
|
-
## Render pages to PNGs
|
|
110
|
-
\`\`\`
|
|
111
|
-
python3 -c "import fitz; d=fitz.open('paper.pdf'); \\
|
|
112
|
-
[d[i].get_pixmap(dpi=200).save(f'/<scratch>/p{i+1}.png') for i in range(d.page_count)]; \\
|
|
113
|
-
print('rendered', d.page_count)"
|
|
114
|
-
\`\`\`
|
|
115
|
-
- **DPI 200** = phone-readable (zoomable); use 150 for quick previews, 300 for print-check.
|
|
116
|
-
- Write PNGs to the session scratchpad, not the repo.
|
|
117
|
-
- **The mechanical gate above (\`check-render.sh\`) is the primary defense** for text/table overflow and
|
|
118
|
-
undefined refs — run it first, on the whole document, and get it to PASS.
|
|
119
|
-
- **Then eyeball EVERY page** (not just 1–2) for the defects the log CANNOT flag: **figure-internal
|
|
120
|
-
label collisions** (TikZ/pgfplots nodes overlapping axis labels or each other — e.g. a legend
|
|
121
|
-
landing on an axis tick), color/legibility, misaligned sub-figures. These do not raise an Overfull
|
|
122
|
-
warning, so a human scan of each figure is still required. Fix and re-render until clean.
|
|
123
|
-
|
|
124
|
-
## Deliver
|
|
125
|
-
- Send the PNGs with \`SendUserFile\` (\`display: render\`) so the user can read on phone; caption what
|
|
126
|
-
changed since the last render. Send the PDF too (\`display: attach\`) if they want the file.
|
|
127
|
-
|
|
128
|
-
## Compose with
|
|
129
|
-
- \`paper-adversarial-review\` / \`pc-panel-review\` (incl. its venue-fit mode) — review the rendered draft.`,
|
|
130
|
-
});
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* render-paper — the PAID tier: does this skill's description actually fire?
|
|
3
|
-
*
|
|
4
|
-
* COLOCATED ON PURPOSE (vigiles decides coverage by placement as of 2026-08-11).
|
|
5
|
-
* The prompts live in `.claude/lib/skill-trigger-cases.mjs` so all 21 cases
|
|
6
|
-
* are reviewed as one table where collisions between siblings are visible;
|
|
7
|
-
* copying them here would recreate the drift that rule exists to prevent.
|
|
8
|
-
*
|
|
9
|
-
* Measures recall (fires on its own territory) AND precision (stays quiet on a
|
|
10
|
-
* colliding sibling's territory), against the REAL `.claude` harness so the skill
|
|
11
|
-
* competes with every other installed description — an isolated run overstates
|
|
12
|
-
* recall and understates false positives.
|
|
13
|
-
*
|
|
14
|
-
* Costs money; not CI.
|
|
15
|
-
* node .claude/skills/render-paper/render-paper.eval.mjs [trials]
|
|
16
|
-
*/
|
|
17
|
-
import { runSkillTriggerEval } from "../../lib/skill-eval-kit.mjs";
|
|
18
|
-
|
|
19
|
-
await runSkillTriggerEval("render-paper");
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: submission-portal
|
|
3
|
-
description: "Create, read or change a paper's submission on the venue's HotCRP portal via `paperlint submission new|show|update|topics`: register the paper, choose its topics and PC conflicts, replace the PDF or abstract, mark it submitted, and verify by sha256 that the portal holds the latest build. Use when the paper is not yet on HotCRP, when its topics or conflicts are unset, when its PDF or abstract there needs replacing, when asked whether it is truly submitted, or before a deadline. Composes with submit-paper (what to submit)."
|
|
4
|
-
allowed-tools: [Read, Grep, Glob, Bash, Edit, AskUserQuestion]
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
<!-- vigiles:sha256:9b1400eb8ee2c221 compiled from skills/submission-portal/SKILL.md.spec.ts -->
|
|
8
|
-
|
|
9
|
-
# submission-portal — create, read and update the submission on the portal, then prove it landed
|
|
10
|
-
|
|
11
|
-
`paperlint submission` creates, reads and updates the paper's submission on the venue's portal.
|
|
12
|
-
Only HotCRP is supported; for any other portal the command says so and the upload is done by hand.
|
|
13
|
-
|
|
14
|
-
## What the command does, and what stays on the site
|
|
15
|
-
|
|
16
|
-
`submission new` creates the submission with the title, the abstract, the authors and the PDF;
|
|
17
|
-
`new` and `update` also send the paper's `"fields"` — its answers to the venue's own form
|
|
18
|
-
fields (topics, PC conflicts, a corresponding author …), which the venue preset records in
|
|
19
|
-
`"submission_fields"` (`paperlint:msr` does). A value the form does not offer is refused before
|
|
20
|
-
anything is sent, and so is a paper that leaves a required field unfilled (the command names each);
|
|
21
|
-
a topic the portal did not take prints `NOT TAKEN` and fails the command. A field is a checkbox
|
|
22
|
-
(`true`), a choice (one option, spelled as listed), checkboxes, a whole number, a number, text,
|
|
23
|
-
multi-line text, an author's email or PC conflicts; file uploads stay on the site. What
|
|
24
|
-
the preset records no field for stays on the site: the command prints that list, with the
|
|
25
|
-
submission's page, after `new`.
|
|
26
|
-
|
|
27
|
-
## Token
|
|
28
|
-
|
|
29
|
-
One variable per site: `HOTCRP_TOKEN_MSR2027` for `msr2027.hotcrp.com`; for a site not on
|
|
30
|
-
hotcrp.com, its whole host (with a port other than the default) and path. A plain `HOTCRP_TOKEN` is not read. When the command reports
|
|
31
|
-
a missing, misnamed or refused token, **relay its message to the author verbatim and stop**: it
|
|
32
|
-
already says where on the site to make one, which permissions to tick, and which variable to set.
|
|
33
|
-
🔴 Never ask for the token in chat, never print it, never write it to a file — the author sets it in
|
|
34
|
-
their own environment.
|
|
35
|
-
|
|
36
|
-
## What must be in place
|
|
37
|
-
|
|
38
|
-
- **The venue preset declares the portal**: `"portal": { "kind": "hotcrp", "url": "<the site>" }`
|
|
39
|
-
(`paperlint:aidc` and `paperlint:msr` have it).
|
|
40
|
-
- **For `new`: `"authors"` in the paper's `paperlint.json`** — `[{ "name", "email",
|
|
41
|
-
"affiliation" }]`, every author in the paper's order. The author writes this list; never fill it
|
|
42
|
-
in from the paper, a profile or memory.
|
|
43
|
-
- **For `show` and `update`: `"submission": { "id": <number> }`** — `new --save` writes it.
|
|
44
|
-
- **`"fields"` in the paper's `paperlint.json`**, keyed as the preset's `"submission_fields"`
|
|
45
|
-
names them: `{ "topics": ["<an option, spelled as listed>"], "paper_type": "<one option, spelled
|
|
46
|
-
as listed>", "attest": true, "pages": 8, "pc_conflicts": { "<pc email>": "<conflict type>" },
|
|
47
|
-
"ACMCorAut": "<an author's email>" }`. Written only with the author's choices, below; every
|
|
48
|
-
required field must be there before `update --submit`, or the command refuses and names them.
|
|
49
|
-
|
|
50
|
-
A missing key or token stops the command with exit 2 and a line naming what to set — fix exactly that.
|
|
51
|
-
|
|
52
|
-
## The procedure — always in this order
|
|
53
|
-
|
|
54
|
-
`papers/my-paper` stands for the paper's folder.
|
|
55
|
-
|
|
56
|
-
0. **Topics, chosen with the author.** `npx paperlint submission topics papers/my-paper` reads the
|
|
57
|
-
topics the portal offers and marks each against the preset (exit 1 when they differ — then the
|
|
58
|
-
preset is stale: say so, and record the portal's list). Read the paper's abstract and
|
|
59
|
-
contribution, pick the topics that fit, and **ask with `AskUserQuestion`** (`multiSelect: true`,
|
|
60
|
-
your proposed topics first, each with one line on why it fits; the author may pick others).
|
|
61
|
-
Write only the chosen ones into `"fields": { "topics": [...] }`, spelled exactly as listed.
|
|
62
|
-
The same for every other field the preset records (`ACMCorAut`: ask which author).
|
|
63
|
-
1. **Create it, once — only while the paper has no `submission` id.**
|
|
64
|
-
`npx paperlint submission new papers/my-paper` is a dry run: the portal checks it and keeps
|
|
65
|
-
nothing. It prints the title, the authors, the whole abstract (read from the source's
|
|
66
|
-
`\begin{abstract}`) and each `field` it sends. Read them with the author; an abstract the
|
|
67
|
-
command cannot read, or one that reads wrong, is given as a plain-text file with
|
|
68
|
-
`--abstract <file>`.
|
|
69
|
-
2. **Ask, then send.** Ask the author with `AskUserQuestion` — options "Yes, send it" and "No" —
|
|
70
|
-
naming the paper folder (its full path, as the hook prints it), the PDF and its sha256, the body
|
|
71
|
-
pages, and quoting the dry run's venue
|
|
72
|
-
check (its lint findings, or "venue rules at their default options: no errors"), plus what goes
|
|
73
|
-
(title, authors, abstract, each field). On a yes, run
|
|
74
|
-
`npx paperlint submission new papers/my-paper --save`. Then the printed "still to do" list
|
|
75
|
-
with the author.
|
|
76
|
-
3. **Read it.** `npx paperlint submission show papers/my-paper` — status, the PDF the portal holds,
|
|
77
|
-
and `match`: whether it is the local build. Rebuild first if the local PDF is stale.
|
|
78
|
-
4. **Dry run the change.** `npx paperlint submission update papers/my-paper` (`--abstract <file>`,
|
|
79
|
-
`--submit` to mark it submitted); it sends the paper's `"fields"` too. Exit 1 means the portal
|
|
80
|
-
would refuse it, or did not take a topic — report why, stop.
|
|
81
|
-
5. **Ask, then send.** Ask the author with `AskUserQuestion` as in step 2: the question names the
|
|
82
|
-
paper folder (full path), the PDF's sha256 and quotes the dry run's venue check, and says what changes. On a yes, run the same
|
|
83
|
-
command with `--save`. Where the `submission-confirm` hook is installed, a send without that
|
|
84
|
-
yes is stopped, and the hook says what to ask, with the folder and the sha256 filled in; ask exactly that. One
|
|
85
|
-
yes covers one send: to send again, or to send a second paper in the same command, ask again. A refusal by the command itself (exit 2) means
|
|
86
|
-
the last build is not of this PDF: rebuild, dry run again.
|
|
87
|
-
6. **Prove it landed.** `show` again: `match` must read `yes — the portal holds this build`, and
|
|
88
|
-
the status must be what was intended. Anything else is not done — say so.
|
|
89
|
-
|
|
90
|
-
If `versions/<cycle>/approved.tex` exists, `--save` refuses while the source differs from it (the dry run prints that line): re-approving with `paperlint versions approve` is the author's decision, never the agent's.
|
|
91
|
-
|
|
92
|
-
🔴 `--save` creates or changes a real submission that reviewers will see: never without the
|
|
93
|
-
author's own yes, never "to test", never because a dry run passed. Before every `--save`, ask the
|
|
94
|
-
author with `AskUserQuestion`, naming the paper folder, the PDF's sha256 and quoting the dry run's venue check; where
|
|
95
|
-
the `submission-confirm` hook is installed, it stops any send without that yes.
|
|
96
|
-
|
|
97
|
-
```bash
|
|
98
|
-
npx paperlint build papers/my-paper
|
|
99
|
-
npx paperlint submission topics papers/my-paper
|
|
100
|
-
# … AskUserQuestion: which topics; the chosen ones into "fields" …
|
|
101
|
-
# only while the paper has no submission id:
|
|
102
|
-
npx paperlint submission new papers/my-paper
|
|
103
|
-
# … AskUserQuestion naming the folder, the PDF's sha256 and the venue check; the author says yes …
|
|
104
|
-
npx paperlint submission new papers/my-paper --save
|
|
105
|
-
npx paperlint submission show papers/my-paper
|
|
106
|
-
npx paperlint submission update papers/my-paper --submit
|
|
107
|
-
# … AskUserQuestion naming the folder, the PDF's sha256 and the venue check; the author says yes …
|
|
108
|
-
npx paperlint submission update papers/my-paper --submit --save
|
|
109
|
-
npx paperlint submission show papers/my-paper
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
## Reading the answers
|
|
113
|
-
|
|
114
|
-
- `match yes` is the only proof the reviewers get the local build; `submitted` alone says nothing
|
|
115
|
-
about WHICH PDF.
|
|
116
|
-
- `portal says: …` lines are the portal's own words; quote them.
|
|
117
|
-
- `portal says: pc_conflicts: You may have missed conflicts of interest with …` — HotCRP guesses
|
|
118
|
-
these from the authors' and the PC's profiles, chiefly an affiliation string they share (two
|
|
119
|
-
"Independent Researcher"s are flagged though they are strangers). Show each name to the author with
|
|
120
|
-
that explanation and ask; **never** mark a conflict from the warning alone. A real conflict goes
|
|
121
|
-
into `"fields": { "pc_conflicts": { "<their email>": "<type>" } }` with the author's word.
|
|
122
|
-
- `NOT TAKEN` — the portal kept none of that field's options: the spelling is not the portal's.
|
|
123
|
-
Run `submission topics` and fix the value.
|
|
124
|
-
- `SAVE WITHHELD` or `NOTHING CREATED` — the portal saved nothing.
|
|
125
|
-
|
|
126
|
-
## What this skill does not do
|
|
127
|
-
|
|
128
|
-
It does not decide whether the paper is ready (`harden-paper`), anonymize it, or set the fields the
|
|
129
|
-
venue preset does not record — see `submit-paper`.
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
// Compiled to SKILL.md by `vigiles compile`. Edit THIS file, never the markdown.
|
|
2
|
-
import { experimental_skill } from "vigiles/spec";
|
|
3
|
-
|
|
4
|
-
export default experimental_skill({
|
|
5
|
-
name: "submission-portal",
|
|
6
|
-
description:
|
|
7
|
-
"Create, read or change a paper's submission on the venue's HotCRP portal via `paperlint submission new|show|update|topics`: register the paper, choose its topics and PC conflicts, replace the PDF or abstract, mark it submitted, and verify by sha256 that the portal holds the latest build. Use when the paper is not yet on HotCRP, when its topics or conflicts are unset, when its PDF or abstract there needs replacing, when asked whether it is truly submitted, or before a deadline. Composes with submit-paper (what to submit).",
|
|
8
|
-
tools: ["Read", "Grep", "Glob", "Bash", "Edit", "AskUserQuestion"],
|
|
9
|
-
// The `npx paperlint submission …` commands in the body are not verified at compile time until
|
|
10
|
-
// zernie/vigiles#395 (cmd() for the package's own CLI): keep them in step with src/cli.ts by hand.
|
|
11
|
-
// Do not re-add a test that re-parses the compiled SKILL.md — that check belongs in vigiles.
|
|
12
|
-
body: `
|
|
13
|
-
# submission-portal — create, read and update the submission on the portal, then prove it landed
|
|
14
|
-
|
|
15
|
-
\`paperlint submission\` creates, reads and updates the paper's submission on the venue's portal.
|
|
16
|
-
Only HotCRP is supported; for any other portal the command says so and the upload is done by hand.
|
|
17
|
-
|
|
18
|
-
## What the command does, and what stays on the site
|
|
19
|
-
|
|
20
|
-
\`submission new\` creates the submission with the title, the abstract, the authors and the PDF;
|
|
21
|
-
\`new\` and \`update\` also send the paper's \`"fields"\` — its answers to the venue's own form
|
|
22
|
-
fields (topics, PC conflicts, a corresponding author …), which the venue preset records in
|
|
23
|
-
\`"submission_fields"\` (\`paperlint:msr\` does). A value the form does not offer is refused before
|
|
24
|
-
anything is sent, and so is a paper that leaves a required field unfilled (the command names each);
|
|
25
|
-
a topic the portal did not take prints \`NOT TAKEN\` and fails the command. A field is a checkbox
|
|
26
|
-
(\`true\`), a choice (one option, spelled as listed), checkboxes, a whole number, a number, text,
|
|
27
|
-
multi-line text, an author's email or PC conflicts; file uploads stay on the site. What
|
|
28
|
-
the preset records no field for stays on the site: the command prints that list, with the
|
|
29
|
-
submission's page, after \`new\`.
|
|
30
|
-
|
|
31
|
-
## Token
|
|
32
|
-
|
|
33
|
-
One variable per site: \`HOTCRP_TOKEN_MSR2027\` for \`msr2027.hotcrp.com\`; for a site not on
|
|
34
|
-
hotcrp.com, its whole host (with a port other than the default) and path. A plain \`HOTCRP_TOKEN\` is not read. When the command reports
|
|
35
|
-
a missing, misnamed or refused token, **relay its message to the author verbatim and stop**: it
|
|
36
|
-
already says where on the site to make one, which permissions to tick, and which variable to set.
|
|
37
|
-
🔴 Never ask for the token in chat, never print it, never write it to a file — the author sets it in
|
|
38
|
-
their own environment.
|
|
39
|
-
|
|
40
|
-
## What must be in place
|
|
41
|
-
|
|
42
|
-
- **The venue preset declares the portal**: \`"portal": { "kind": "hotcrp", "url": "<the site>" }\`
|
|
43
|
-
(\`paperlint:aidc\` and \`paperlint:msr\` have it).
|
|
44
|
-
- **For \`new\`: \`"authors"\` in the paper's \`paperlint.json\`** — \`[{ "name", "email",
|
|
45
|
-
"affiliation" }]\`, every author in the paper's order. The author writes this list; never fill it
|
|
46
|
-
in from the paper, a profile or memory.
|
|
47
|
-
- **For \`show\` and \`update\`: \`"submission": { "id": <number> }\`** — \`new --save\` writes it.
|
|
48
|
-
- **\`"fields"\` in the paper's \`paperlint.json\`**, keyed as the preset's \`"submission_fields"\`
|
|
49
|
-
names them: \`{ "topics": ["<an option, spelled as listed>"], "paper_type": "<one option, spelled
|
|
50
|
-
as listed>", "attest": true, "pages": 8, "pc_conflicts": { "<pc email>": "<conflict type>" },
|
|
51
|
-
"ACMCorAut": "<an author's email>" }\`. Written only with the author's choices, below; every
|
|
52
|
-
required field must be there before \`update --submit\`, or the command refuses and names them.
|
|
53
|
-
|
|
54
|
-
A missing key or token stops the command with exit 2 and a line naming what to set — fix exactly that.
|
|
55
|
-
|
|
56
|
-
## The procedure — always in this order
|
|
57
|
-
|
|
58
|
-
\`papers/my-paper\` stands for the paper's folder.
|
|
59
|
-
|
|
60
|
-
0. **Topics, chosen with the author.** \`npx paperlint submission topics papers/my-paper\` reads the
|
|
61
|
-
topics the portal offers and marks each against the preset (exit 1 when they differ — then the
|
|
62
|
-
preset is stale: say so, and record the portal's list). Read the paper's abstract and
|
|
63
|
-
contribution, pick the topics that fit, and **ask with \`AskUserQuestion\`** (\`multiSelect: true\`,
|
|
64
|
-
your proposed topics first, each with one line on why it fits; the author may pick others).
|
|
65
|
-
Write only the chosen ones into \`"fields": { "topics": [...] }\`, spelled exactly as listed.
|
|
66
|
-
The same for every other field the preset records (\`ACMCorAut\`: ask which author).
|
|
67
|
-
1. **Create it, once — only while the paper has no \`submission\` id.**
|
|
68
|
-
\`npx paperlint submission new papers/my-paper\` is a dry run: the portal checks it and keeps
|
|
69
|
-
nothing. It prints the title, the authors, the whole abstract (read from the source's
|
|
70
|
-
\`\\begin{abstract}\`) and each \`field\` it sends. Read them with the author; an abstract the
|
|
71
|
-
command cannot read, or one that reads wrong, is given as a plain-text file with
|
|
72
|
-
\`--abstract <file>\`.
|
|
73
|
-
2. **Ask, then send.** Ask the author with \`AskUserQuestion\` — options "Yes, send it" and "No" —
|
|
74
|
-
naming the paper folder (its full path, as the hook prints it), the PDF and its sha256, the body
|
|
75
|
-
pages, and quoting the dry run's venue
|
|
76
|
-
check (its lint findings, or "venue rules at their default options: no errors"), plus what goes
|
|
77
|
-
(title, authors, abstract, each field). On a yes, run
|
|
78
|
-
\`npx paperlint submission new papers/my-paper --save\`. Then the printed "still to do" list
|
|
79
|
-
with the author.
|
|
80
|
-
3. **Read it.** \`npx paperlint submission show papers/my-paper\` — status, the PDF the portal holds,
|
|
81
|
-
and \`match\`: whether it is the local build. Rebuild first if the local PDF is stale.
|
|
82
|
-
4. **Dry run the change.** \`npx paperlint submission update papers/my-paper\` (\`--abstract <file>\`,
|
|
83
|
-
\`--submit\` to mark it submitted); it sends the paper's \`"fields"\` too. Exit 1 means the portal
|
|
84
|
-
would refuse it, or did not take a topic — report why, stop.
|
|
85
|
-
5. **Ask, then send.** Ask the author with \`AskUserQuestion\` as in step 2: the question names the
|
|
86
|
-
paper folder (full path), the PDF's sha256 and quotes the dry run's venue check, and says what changes. On a yes, run the same
|
|
87
|
-
command with \`--save\`. Where the \`submission-confirm\` hook is installed, a send without that
|
|
88
|
-
yes is stopped, and the hook says what to ask, with the folder and the sha256 filled in; ask exactly that. One
|
|
89
|
-
yes covers one send: to send again, or to send a second paper in the same command, ask again. A refusal by the command itself (exit 2) means
|
|
90
|
-
the last build is not of this PDF: rebuild, dry run again.
|
|
91
|
-
6. **Prove it landed.** \`show\` again: \`match\` must read \`yes — the portal holds this build\`, and
|
|
92
|
-
the status must be what was intended. Anything else is not done — say so.
|
|
93
|
-
|
|
94
|
-
If \`versions/<cycle>/approved.tex\` exists, \`--save\` refuses while the source differs from it (the dry run prints that line): re-approving with \`paperlint versions approve\` is the author's decision, never the agent's.
|
|
95
|
-
|
|
96
|
-
🔴 \`--save\` creates or changes a real submission that reviewers will see: never without the
|
|
97
|
-
author's own yes, never "to test", never because a dry run passed. Before every \`--save\`, ask the
|
|
98
|
-
author with \`AskUserQuestion\`, naming the paper folder, the PDF's sha256 and quoting the dry run's venue check; where
|
|
99
|
-
the \`submission-confirm\` hook is installed, it stops any send without that yes.
|
|
100
|
-
|
|
101
|
-
\`\`\`bash
|
|
102
|
-
npx paperlint build papers/my-paper
|
|
103
|
-
npx paperlint submission topics papers/my-paper
|
|
104
|
-
# … AskUserQuestion: which topics; the chosen ones into "fields" …
|
|
105
|
-
# only while the paper has no submission id:
|
|
106
|
-
npx paperlint submission new papers/my-paper
|
|
107
|
-
# … AskUserQuestion naming the folder, the PDF's sha256 and the venue check; the author says yes …
|
|
108
|
-
npx paperlint submission new papers/my-paper --save
|
|
109
|
-
npx paperlint submission show papers/my-paper
|
|
110
|
-
npx paperlint submission update papers/my-paper --submit
|
|
111
|
-
# … AskUserQuestion naming the folder, the PDF's sha256 and the venue check; the author says yes …
|
|
112
|
-
npx paperlint submission update papers/my-paper --submit --save
|
|
113
|
-
npx paperlint submission show papers/my-paper
|
|
114
|
-
\`\`\`
|
|
115
|
-
|
|
116
|
-
## Reading the answers
|
|
117
|
-
|
|
118
|
-
- \`match yes\` is the only proof the reviewers get the local build; \`submitted\` alone says nothing
|
|
119
|
-
about WHICH PDF.
|
|
120
|
-
- \`portal says: …\` lines are the portal's own words; quote them.
|
|
121
|
-
- \`portal says: pc_conflicts: You may have missed conflicts of interest with …\` — HotCRP guesses
|
|
122
|
-
these from the authors' and the PC's profiles, chiefly an affiliation string they share (two
|
|
123
|
-
"Independent Researcher"s are flagged though they are strangers). Show each name to the author with
|
|
124
|
-
that explanation and ask; **never** mark a conflict from the warning alone. A real conflict goes
|
|
125
|
-
into \`"fields": { "pc_conflicts": { "<their email>": "<type>" } }\` with the author's word.
|
|
126
|
-
- \`NOT TAKEN\` — the portal kept none of that field's options: the spelling is not the portal's.
|
|
127
|
-
Run \`submission topics\` and fix the value.
|
|
128
|
-
- \`SAVE WITHHELD\` or \`NOTHING CREATED\` — the portal saved nothing.
|
|
129
|
-
|
|
130
|
-
## What this skill does not do
|
|
131
|
-
|
|
132
|
-
It does not decide whether the paper is ready (\`harden-paper\`), anonymize it, or set the fields the
|
|
133
|
-
venue preset does not record — see \`submit-paper\`.`,
|
|
134
|
-
});
|