agentleFS
kongtou20070406kongtou20070406/research-direction-selector/skills/paper-write/SKILL.md

paper-write

Skill7 starsChanged 2 months agoApache-2.0View on GitHub

Draft, revise, frame, review, or finalize top-venue ML/AI papers (ICML, NeurIPS, ICLR) in standalone English and Chinese sections, abstracts, introductions, theory, or rebuttals. 起草、改写、润色、审稿或定稿顶会中英文论文、摘要、引言与审稿回复。Do NOT use for casual partner chat (follow AGENTS.md), literature search (use paper_search), figure drawing (use paper-figure-craft), or pre-coding architecture/idea vetting (use research-gate).

12 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use paper-illustration, auto-paper-improvement-loop and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • raja21068Skill

    paper-illustration

    Generate publication-quality AI illustrations for academic papers using Gemini image generation. Creates architecture diagrams, method illustrations with Claude-supervised iterative refinement loop. Use when user says \"生成图表\", \"画架构图\", \"AI绘图\", \"paper illustration\", \"generate diagram\", or needs visual figures for papers.

    Also in 6 projects that use this

  • Yusong-EnceladusSkill

    auto-paper-improvement-loop

    Autonomously improve a generated paper via GPT-5.4 xhigh review → implement fixes → recompile, for 2 rounds. Use when user says \"改论文\", \"improve paper\", \"论文润色循环\", \"auto improve\", or wants to iteratively polish a generated paper.

    Also in 4 projects that use this

  • raja21068Skill

    deepxiv

    Search and progressively read open-access academic papers through DeepXiv. Use when the user wants layered paper access, section-level reading, trending papers, or DeepXiv-backed literature retrieval.

    Also in 4 projects that use this

  • Yusong-EnceladusSkill

    dse-loop

    Autonomous design space exploration loop for computer architecture and EDA. Runs a program, analyzes results, tunes parameters, and iterates until objective is met or timeout. Use when user says \"DSE\", \"design space exploration\", \"sweep parameters\", \"optimize\", \"find best config\", or wants iterative parameter tuning.

    Also in 4 projects that use this

  • +8 more from raja21068

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 4 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read top-venue-writing-rules.md in full.

    line 13
  2. Very specific:

    After writing, run the clarity check and paper_gate.py.

    line 19
  3. Very specific:

    Default layout during research is clean single-column arXiv preprint ("venue": "arxiv" in paper_gate.json).

    line 24
  4. Distinctive:

    Use Abstract → Introduction → Setup → Method → [Optional Theoretical Justification] → Experiments → Related Work → Discussion & Limitations …

    line 26
  5. Distinctive:

    Keep the Abstract free of internal module checklists.

    line 36
  6. Distinctive:

    Narrative Planning Rule: Before drafting, map the problem, evidence of the bottleneck, proposed mechanism and supported result.

    line 40
  7. Very specific:

    Pre-Compile De-AI Pass: Run check_sentence_clarity.py --submission-mode --strict-deai --draft-dir <paper-dir> on both languages and review …

    line 42

“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Manuscript writing

The lead agent writes and translates all manuscript prose. Use the lead model as the default writer. Keep pre-code checklists out of drafting.

Draft vs. Freeze (Anti-Amnesia). Do not let style or formatting rules stall early drafting: during everyday compilation, record known gaps with % gate-sorry: <check> — <reason> or TBD so the PDF still delivers while every deferred item stays counted and listed. Before submission or --freeze, run with --no-sorry and --require-headline-bindings so every deferred debt turns back into a hard check and nothing is forgotten.

Before writing anything, read (long files in slices of at most 200 lines):

  1. Read top-venue-writing-rules.md in full.
  2. For an abstract, introduction or theorem narrative, read exemplars/index.md, then one matching card and its original passage.
  3. Pre-Draft 3-Question Positioning Gate (hard gate before drafting Abstract/Intro/Method): Run a read-only independent-reviewer (Domain Skeptic + Devil's Advocate) check against the locked Fact Ledger and eval code, answering three questions (if evidence is missing, narrow the claim instead of spinning):
    • Equal-budget ablation: If shared components are split at matched capacity and compute, what joint capability is actually lost? (No evidence → do not claim "unification".)
    • Premise-to-code binding: Which exact update line in code and independent measurement supports each theorem hypothesis, and does any lower bound cover the actual baseline algorithm in code?
    • Comparability & wall-clock symmetry: After adding same-supervision amortized baselines, end-to-end wall-clock latency (ms), and real-environment zero-action / trivial baselines, which headline claim still holds?
  4. After writing, run the clarity check and paper_gate.py. Passing paper_gate.py means deliverable build/format parity, not scientific positioning or empirical validity.

Draft

  • Write independent latex/sections_en/00..08.tex and latex/sections_zh/00..08.tex modules. Include them from latex/main_en.tex and latex/main_zh.tex. Single-source multi-wrapper rule: never clone sections_* into separate arxiv_en/ or arxiv_zh/ folders; put all target wrappers (main_arxiv_en.tex, main_arxiv_zh.tex, venue wrappers) and their paper_gate*.json configs inside latex/ so every PDF builds from identical source bytes. Use --markdown when assembling a legacy Markdown draft.
  • Default layout during research is clean single-column arXiv preprint ("venue": "arxiv" in paper_gate.json). When switching to a target conference/journal wrapper (main_<venue>.tex + "venue" / "page_limit"), run paper_gate.py --compile --layout-check --render-pages to check page limits, overfull boxes and margins automatically and visually inspect the rendered PNG pages with the Main Model.
  • Generate \input{tables/auto_*.tex} directly from experiment RESULTS.json via verify_manuscript_formal.py --results-to-tex instead of hand-copying numbers.
  • Use Abstract → Introduction → Setup → Method → [Optional Theoretical Justification] → Experiments → Related Work → Discussion & Limitations → Appendix. Swap Method and Theory only for pure theory; omit Theory and extra table slots cleanly when empirical evidence carries the paper instead of padding weak claims into a fixed template.
  • Open the abstract and introduction with a concrete problem, why it matters and where current methods fail. Name the method and its capability by abstract sentence 3.
  • State only supported claims. Cut lab tags, repo paths, workflow slogans, coined shorthand, proxy-metric padding and speculative side claims. Keep protocols, speedups and unit tests out of the headline.
  • Describe completed results and protocols in the present or past tense, keep plans, reruns, internal stages and submission schedules out of the prose, and mark pending numbers as TBD in tables. Sentence clarity in submission mode and the paper gate both flag internal workflow wording.
  • Match prose and figures to code. Give each metric its direction (↑/↓), denominator, seed count and precision. Separate three-seed main tables from single-seed appendix tables. Use plain type for numbers, hyperparameters and model names.
  • Write one idea per sentence and connect sentences through cause and consequence. Sentence-length numbers are p90 diagnostics reported by check_sentence_clarity.py, not drafting targets: it flags English sentences above 25 words (maximum 35) or Chinese sentences above 42 Han characters (maximum 60), and comma-plus-semicolon counts above EN 3 / ZH 2 (hard EN 4 / ZH 3). Fix a flagged sentence by untangling its logic, not by chopping it into fragments. Avoid ≥3 的 and nested 在…中通过…以… chains.
  • Give each main-text theorem 1–2 intuition sentences, a statement with ≤5 active symbols and a proof sketch of ≤5 steps. Move algebra, auxiliary constants and edge cases to the appendix.

De-AI hard rules

  1. Keep the Abstract free of internal module checklists. Name the method and its capability there. Introduce individual modules in Method.
  2. Connect sentences through cause and consequence. Read paragraphs aloud and revise runs of similarly short sentences with parallel openings.
  3. Draft Chinese independently from the claims and evidence. Explain the argument aloud in natural Chinese before writing, then check EN/ZH claim parity. Cut calques such as 记分反事实查询, 对称排版, 零点归零门控, and 学得X.

Narrative Planning Rule. Before drafting, map the problem, evidence of the bottleneck, proposed mechanism and supported result. Give each paragraph a job in that sequence and identify the evidence supporting its claim.

Pre-Compile De-AI Pass. Run check_sentence_clarity.py --submission-mode --strict-deai --draft-dir <paper-dir> on both languages and review the flagged passages in context before compiling. See the six mechanical checks.

Anti-Autoresearch Style DNA & Content-Lock Rewrite. Before drafting or rewriting any Abstract, Introduction, Theory narrative, or Conclusion, read style-dna-anti-autoresearch.md for advisory word/decimal budgets, Information Layering, and the Two-Stage Content-Lock Protocol (FACT_LEDGER.md → clean-room fresh rewrite → ledger back-check). Style DNA improves readability only; scientific positioning is governed by the Pre-Draft 3-Question Positioning Gate above.

Lead–GPT Complementarity & Clean-Room Voice Charter

The Lead owns the thesis, framing, core manuscript voice, and final visual PNG sign-off. Anchor that voice to a relevant card in exemplars/ and its original passage. Offload mechanical TeX/BibTeX/table/ref/acronym fixes, layout/page-limit loops, and EN↔ZH numeric/label parity checks to workers via scripts/dispatch_gpt.py --skill latex-typeset (automatically enforcing --verify-prose), alongside counterexamples, Lean↔LaTeX checks, and read-only evaluations. The Lead drafts from manuscript evidence and lead_action_brief.md. Keep raw worker commentary outside the Lead's writing context. Apply scope caveats to §7 Limitations and state the supported claims directly in the Abstract, Introduction and Method.

Assemble and freeze

LaTeX-native papers. After every edit run python scripts/paper_gate.py PAPER_DIR --fix --compile and deliver only when it exits 0. scripts/paper_gate_watch.py (started at logon) also runs the gate without --fix 30 s after the last save and notifies on failure. It copies the PDF to deliver_as itself (one path or a list; an absolute path such as the project's Obsidian library delivers the stage PDF there). It auto-fixes registered term variants, undefined first-use acronyms and self-range cross-references, then compiles and checks duplicate display equations, figure-only acronyms, number claims against same-named main-table rows, floats placed ≥2 pages late or after the Conclusion, and unresolved refs, and tasks or datasets that appear only in the abstract or conclusion (scope). When you introduce an acronym, coined term or a new name for an existing module, register it in PAPER_DIR/paper_gate.json in the same edit. Keep that registration in the paper configuration. Allowed placeholders such as TBD are counted, not failed. An acknowledged gap works like Lean's sorry: % gate-sorry: <check> — <reason> on the flagged line or the line above turns that error into a counted sorry and the PDF is still delivered; a marker without a reason or matching no error fails; build the submission with --no-sorry.

Register manuscript-wide aliases in terms and context-dependent expressions in term_context with a reason. Add --semantic for advisory duplicate, vocabulary and evidence checks through the local EmbeddingGemma service. Review candidates in their source sentences before promoting aliases. See LaTeX terminology and evidence for the configuration and report. When the gate emits PAPER_GATE_AUTOFIX_APPLIED, read its writer_review.json, check the changed passages for meaning and agreement, and use the approved names in further drafting. Correct any context-specific mismatch before delivering.

  1. Tier 1. For bilingual drafts, run verify_manuscript_formal.py, check_sentence_clarity.py in submission mode on both languages, and paper_gate.py --compile with latex/paper_gate.json and latex/paper_gate_zh.json in order. Each config supplies its PDF delivery path via deliver_as. For LaTeX, parity compares section names, labels and decimal/percentage counts in each section. Use --require-headline-bindings to bind every headline decimal or percentage to the ledger. LaTeX freeze briefs contain text extracted from the .tex sections. Audits record the raw source hashes and scope their checks to the corresponding latex/sections_en/*.tex and latex/sections_zh/*.tex paths. Legacy section paths in ledger bindings resolve to their LaTeX counterparts.
  2. Tier 2. Before a major freeze, run freeze_review.py, which sends both reviews below in parallel, stamps the staged hashes into the reports and checks them, so nobody relays reviews by hand. First rerun verify_manuscript_formal.py --require-headline-bindings, so every decimal or percentage in sections 00–01 (EN and ZH) binds to the ledger. Require a read-only independent-reviewer review of math, claims and entailment (with configurable --auditor model). Its JSON verdict must be PASS and match the staged manuscript hashes. Also require a read-only editorial-reviewer editorial review (codex exec -s read-only) on the same drafts for framing, flow and EN/ZH fidelity. The workflow uses only the lead model and independent reviewers; the lead model writes, so it never approves its own draft. Give both reviewers the drafts plus the bindings, ledger rows and run_meta.json, never the lead's summary or verdict. Run them independently; neither sees the other's report. A blocking finding that survives a mechanical recheck stops the freeze. Stop reviewers after review. Changed drafts require fresh reviews. Each finding in the audit JSON carries an id, severity, type, status, evidence and a countercheck; an open critical or major finding also needs a resolution condition and cannot coexist with PASS. Build what reviewers read with scripts/build_review_brief.py: the first freeze sends every section; later freezes send only changed sections (as diffs), open findings and the bindings they use, and every changed section needs an audit item whose scope names it. The audit records the brief's section_sha256. On a re-review, pass the previous audit with --prior-audit-json: every earlier open finding must reappear with its status, and each finding states its origin (inherited, revision_regression, previously_undetected, newly_revealed_by_evidence, external_standard_change).

Rebuttal

Follow rebuttal and revision: snapshot the submitted source, keep one ledger with a verbatim quote per reviewer comment, tag every reply paragraph with its comment id, bind every number and promise only what the ledger records. scripts/check_rebuttal.py check must print PASS before any reviewer reads the replies. The reviewer then gets QA.json, the ledger, the replies and the reviews, not the whole paper.

Read on demand

  • Writing exemplars: before drafting an abstract, introduction or theorem narrative, read one matching card and its original passage.
  • Claim scope and quantitative framing · Venue terminology · Prose and theorem rules
  • Titles and introductions · Abstracts · Process leakage
  • Peer review · Revision patches · Read ARS scope before following any ARS step that names a script or shared/ file.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.