@vintcessun: So this is how AI writing for academic papers can be done: not by direct polishing, but by first having the agent learn the target scenario, read excellent examples, and then record why each paragraph was written that way. PaperSpine uses a writing rationale matrix to turn writing into an auditable reasoning process, rather than black-box generation.…

X AI KOLs Timeline Tools

Summary

PaperSpine is a paper writing skill suite for Codex, Claude Code, and OpenClaw, which transforms AI writing into an auditable reasoning process through a writing rationale matrix, rather than black-box generation.

So this is how AI writing for academic papers can be done: not by direct polishing, but by first having the agent learn the target scenario, read excellent examples, and then record why each paragraph was written that way. PaperSpine uses a writing rationale matrix to turn writing into an auditable reasoning process, rather than black-box generation. This approach itself is very inspiring. https://t.co/umAvMQ4Usq
Original Article
View Cached Full Text

Cached at: 06/05/26, 01:15 PM

So academic paper AI writing can be done like this: not by directly polishing, but by first having the agent learn the target scenario, read excellent examples, then record why each paragraph is written that way. PaperSpine turns writing into an auditable reasoning process — via a writing rationale matrix — rather than a black-box generation. The idea itself is inspiring.

https://t.co/umAvMQ4Usq


WUBING2023/PaperSpine

Source: https://github.com/WUBING2023/PaperSpine

PaperSpine

English | 中文

📢 Maintenance paused (temporary) The author is very busy and will pause routine maintenance until early July. Issues / PRs / discussions will be replied to with a delay, then processed uniformly. Thanks for your understanding and support 🙏

PaperSpine demo video (Bilibili) (https://www.bilibili.com/video/BV1rjVa6ZEYu)

PaperSpine is a motivation-driven skill suite for paper and report writing, designed for Codex, Claude Code, and OpenClaw.

It fits writing tasks where target format matters: journal papers, conference papers, course or technical reports, surveys, competition papers. It requires the agent to first learn the target scenario and excellent examples before writing, and document why each writing unit is planned or revised that way.

Repository Structure

PaperSpine/
  dist/
    codex/
      skills/                   # Codex flat skill suite
      paper-spine/              # Legacy Codex self-contained compatibility package
    claude/
      skills/                   # Claude Code flat skill suite
        paper-spine/
        paper-spine-ui/
        paper-spine-intake/
        paper-spine-research/
        paper-spine-citation/
        paper-spine-rewrite/
        paper-spine-build/
        paper-spine-latex/
        paper-spine-audit/
        paper-spine-translate/
        paper-spine-humanize/
        paper-spine-update/
      commands/                 # Claude Code slash-command entry
        paperspine.md
    openclaw/
      skills/                   # OpenClaw flat skill suite
  src/
    scripts/                    # Shared deterministic helper scripts
    references/                 # Shared workflow reference docs
    agents/                     # Shared agent metadata sources
  .claude-plugin/               # Claude Code plugin metadata
  install.ps1                   # Windows install script
  install.sh                    # macOS / Linux install script
  README.md
  README.en.md

dist/ is what’s actually used for installation. src/ keeps shared scripts and reference docs for easier development and maintenance.

Quick Install

Windows PowerShell:

git clone https://github.com/WUBING2023/PaperSpine.git
cd PaperSpine
.\install.ps1 -Target all

Or install only for one host:

.\install.ps1 -Target codex
.\install.ps1 -Target claude
.\install.ps1 -Target openclaw
.\install.ps1 -Target all -CleanLegacy

-CleanLegacy removes common old PaperSpine directories such as nested PaperSpine, PaperSpineV2, and old paper-spine-* copies, preventing duplicate detection or missing skills.

After installing to Codex: Restart Codex. Then use $paper-spine to start the full workflow, or call individual branch skills like $paper-spine-research, $paper-spine-citation, $paper-spine-latex.

After installing to Claude Code: Restart or reload Claude Code, then use /paperspine.

After installing to OpenClaw: Restart or reload OpenClaw, then use paper-spine for the full workflow, or call any paper-spine-* branch skill.

The install script records the current version in ~/.paperspine/install_state.json and preserves ~/.paperspine/config.json including global config like UI language.

Manual Install

Codex now recommends using the flat suite so each branch can be called individually:

dist/codex/skills/*

Copy to:

~/.codex/skills/

Final Codex layout should be:

~/.codex/skills/paper-spine/SKILL.md
~/.codex/skills/paper-spine-research/SKILL.md
~/.codex/skills/paper-spine-citation/SKILL.md
~/.codex/skills/paper-spine-latex/SKILL.md
~/.codex/skills/paper-spine-update/SKILL.md

dist/codex/paper-spine is still kept as a legacy self-contained compatibility package, but the recommended new installation method is dist/codex/skills/*.

Claude Code needs flat skill folders and optional slash commands:

dist/claude/skills/*
dist/claude/commands/*.md

Copy to:

~/.claude/skills/
~/.claude/commands/

Final Claude Code layout should contain:

~/.claude/skills/paper-spine/SKILL.md
~/.claude/skills/paper-spine-ui/SKILL.md
~/.claude/skills/paper-spine-intake/SKILL.md
~/.claude/skills/paper-spine-research/SKILL.md
~/.claude/skills/paper-spine-citation/SKILL.md
~/.claude/skills/paper-spine-update/SKILL.md
~/.claude/commands/paperspine.md

OpenClaw needs skill folders containing SKILL.md:

dist/openclaw/skills/*

Copy to:

~/.openclaw/skills/

Final OpenClaw layout should contain:

~/.openclaw/skills/paper-spine/SKILL.md
~/.openclaw/skills/paper-spine-research/SKILL.md
~/.openclaw/skills/paper-spine-citation/SKILL.md
~/.openclaw/skills/paper-spine-update/SKILL.md

Claude Code Plugin Install

Claude Code can also use plugin metadata from .claude-plugin:

/plugin marketplace add https://github.com/WUBING2023/PaperSpine
/plugin install paper-spine
/reload-plugins

The plugin manifest points to the flat suite under dist/claude/skills, not the Codex single-skill directory.

Differences Between Codex, Claude Code, and OpenClaw

HostInstall UnitCommon EntryReason
Codexdist/codex/skills/*$paper-spine or $paper-spine-*Codex discovers flat skill folders, so full workflow and sub-skills are callable.
Claude Codedist/claude/skills/* + dist/claude/commands/*/paperspineClaude Code discovers skills by flat folder and supports slash-command helper entries.
OpenClawdist/openclaw/skills/*paper-spine or paper-spine-*OpenClaw skills are also directories containing SKILL.md, so the same flat suite applies.

Do not copy the entire repository into the skills folder. This is the main cause of duplicate or missing skills.

Main Workflow

PaperSpine has two parallel main workflows:

  1. Rewrite Existing: Improve an existing paper or report without reducing the task to simple polishing.
  2. Build From Materials: Construct a paper or report from a folder of materials, which can include instructions, images, PDFs, data summaries, partial drafts, and experiment descriptions.

Supports four target scenarios:

  • journal: Journal paper
  • conference: Conference paper
  • report/review: Course report, technical report, or survey
  • competition: Competition paper or report

Research depth:

  • flash: 3 target-scenario examples, 3 recent/high-quality papers in same domain, plus official requirements.
  • pro: 6 target-scenario examples, 6 recent/high-quality papers in same domain, plus official requirements.

Output language:

  • English
  • Chinese

When English output is selected, PaperSpine can also generate a translation_package that translates intermediate artifacts and the final Markdown output into Chinese.

Main Control and Branch Skills

PaperSpine consists of one main control skill plus multiple branch skills. The main paper-spine does not directly polish sentences but routes step-by-step:

  1. paper-spine-ui: Opens external terminal configuration UI.
  2. paper-spine-intake: Validates paper_spine_config.json.
  3. paper-spine-research: Learns the target scenario, local/specified reference materials, and excellent examples.
  4. paper-spine-citation: Builds a per-sentence claim-level citation support bank.
  5. paper-spine-rewrite or paper-spine-build: Rewrites existing paper or constructs paper from materials.
  6. paper-spine-latex: Generates and checks LaTeX, produces PDF when available, and handles optional Word output.
  7. paper-spine-audit: Checks artifact completeness, writing rationale depth, citation bank quality, translation coverage, and file health.
  8. paper-spine-translate: Produces complete translation_zh/ translation package with line-by-line translation.
  9. paper-spine-update: Checks latest version on GitHub main and updates local installation while preserving global config.

rewrite_existing and build_from_materials share research, citation, writing rationale matrix, LaTeX, translation, and audit logic.

Users can run the full workflow via paper-spine or call only a single branch:

  • paper-spine-ui: Configure one run.
  • paper-spine-intake: Validate or fix configuration.
  • paper-spine-research: Research target requirements and excellent example structures.
  • paper-spine-citation: Only build the citation support bank.
  • paper-spine-rewrite: Rewrite existing paper based on upstream artifacts.
  • paper-spine-build: Build paper from materials based on upstream artifacts.
  • paper-spine-latex: Assemble/check LaTeX, PDF, and optional Word.
  • paper-spine-translate: Produce translation_zh/ translation package.
  • paper-spine-audit: Audit artifacts, translation coverage, and writing rationale depth.
  • paper-spine-update: Check or update local PaperSpine installation.

Updating PaperSpine

After initial installation, to check for new versions, call the update branch skill:

$paper-spine-update

The update skill runs:

python scripts/paperspine_update.py --yes

It compares the version recorded in local ~/.paperspine/install_state.json with the version in dist/paperspine_version.json on GitHub main. If already up-to-date, it will indicate no update needed. If a new version is found, it downloads the GitHub archive, validates the PaperSpine directory structure, synchronously updates the skill folders for Codex, Claude Code, and OpenClaw, and preserves ~/.paperspine/config.json.

To only check without modifying the local installation, run:

python scripts/paperspine_update.py --check-only

Local Reference Material Reading

Reference material retrieval no longer relies only on the web. The config field reference_mode controls how PaperSpine starts reading literature and examples:

  • local_first (default): First indexes reference materials in the current working folder, then supplements via web as needed.
  • specified_paths: Only indexes folders or files specified in reference_paths, then supplements as needed.
  • web: Uses web collection when the user has no local reference materials.

Local reference paths are written to:

paper_rewriting_output/reference_materials/source_index.md

Helper script:

python src/scripts/reference_inventory.py . --output-dir paper_rewriting_output --mode local_first

PaperSpine can read user-provided PDFs, downloaded papers, BibTeX/RIS, templates, notes, school or competition documents. It cannot bypass paywalls or private database permissions.

Citation Support Bank

paper-spine-citation generates:

paper_rewriting_output/citation_support_bank.md

This is separate from studying excellent papers. Example papers are for learning structure and writing style; the citation support bank provides selectable candidate citations for sections like Introduction, Related Work, Discussion, limitations, application background, etc.

Default behavior:

  • citation_target_count: 20
  • Candidate pool size: citation_target_count * 3, default 60
  • Recent paper target: ~80% of candidates should be from the last three years; in 2026, a simple threshold is 2023 and later
  • Each candidate line must contain reference/BibTeX-style info, year, source, and one or two sentences supporting the argument in the main text

Check citation bank:

python src/scripts/citation_bank_check.py paper_rewriting_output/citation_support_bank.md --target-count 20 --markdown

Configuration UI

Claude Code recommends:

/paperspine

When the host terminal allows it, this command automatically starts the PaperSpine intake UI. The fallback is the Python wizard:

python src/scripts/intake_wizard.py

After configuration finishes, it generates:

paper_rewriting_output/paper_spine_config.json
paper_rewriting_output/paper_spine_config.md

Key Artifacts

A complete run should result in more than just the final paper — it should leave a fully auditable writing trail:

paper_rewriting_output/
  paper_spine_config.json
  paper_spine_config.md
  reference_materials/
    source_index.md
  research_dossier.md
  exemplar_learning_dossier.md
  style_profile.md
  sota_gap_map.md
  motivation_options_after_research.md
  citation_support_bank.md
  confirmed_motivation.md
  source_inventory.md
  evidence_bank.md
  figure_asset_map.md
  claim_register.md
  section_blueprints.md
  writing_rationale_matrix.md
  rewrite_matrix.md
  logic_transfer_audit.md
  latex_report.md
  final_artifact_manifest.md
  final_paper/
    main.tex
    references.bib
    figures/
    paper.docx              # Optional Word output
    paper.pdf               # Generated if local LaTeX compiler is available
  translation_package/       # Optional for English output

The most critical artifact is writing_rationale_matrix.md. It must explain each unit according to the real paper/report structure: what function does the unit serve, how does it serve the confirmed motivation, what SOTA or target-scenario examples were studied, what evidence was used, and what checks the final text should pass.

citation_support_bank.md is the second important reasoning artifact. It ensures every candidate citation, before entering the main text, is already tied to a specific sentence-level claim.

Check Commands

Check artifact completeness:

python src/scripts/artifact_check.py paper_rewriting_output --markdown --write

When copied inside a skill folder, it might also appear as:

python scripts/artifact_check.py paper_rewriting_output --markdown --write

Check LaTeX:

python src/scripts/latex_guard.py paper_rewriting_output/final_paper/main.tex --markdown

Check Word:

python src/scripts/word_guard.py paper_rewriting_output/final_paper/paper.docx --markdown

Check local reference material index:

python src/scripts/reference_inventory.py . --output-dir paper_rewriting_output --mode local_first

Check citation candidate coverage:

python src/scripts/citation_bank_check.py paper_rewriting_output/citation_support_bank.md --target-count 20 --markdown

Run project tests:

python -m unittest discover -s tests

Problems PaperSpine Tries to Avoid

  • Only changing sentences, not paper logic.
  • Writing journal papers, conference papers, course reports, surveys, and competition papers all in the same style.
  • Starting to write without confirming the motivation.
  • Adding claims without supporting evidence.
  • Only outputting main.tex without explaining why the article is designed that way.
  • Only translating part of the intermediate artifacts when the user requests a translation package.

License

MIT License. See LICENSE.


Standalone download: paper-spine-humanize (https://github.com/WUBING2023/PaperSpine/tree/main/dist/claude/skills/paper-spine-humanize) — a self-contained skill for reducing AI detection rate, usable independently without the full suite.

Similar Articles

@gaoren7716: Writing a thesis? It might get rewritten by a systematic AI system. Not just polishing or rewriting a sentence – from topic selection onward, there are 13 agents collaborating. Feature list: Deep Research (13-agent research team), Systematic Review (P…

X AI KOLs Timeline

Introduces an open-source AI tool called Academic Research Skills that automates the entire academic research process from topic selection to writing and peer review through collaboration of 13 agents. It can be installed as a Claude Code plugin, turning academic research into a standardized production line.

@wsl8297: The biggest fear when writing a paper with AI is not being unable to produce content, but that it looks complete while the research gap, literature support, and argument structure are actually unsound. Academic Paper Skills solves this problem. GitHub: https://github.com/lishix520/…

X AI KOLs Timeline

Academic Paper Skills is a paper writing skill framework for Claude Code, dividing the writing process into two phases: strategy and composition. It incorporates features like literature support, reviewer simulation, and quality checks to help users generate a first draft from a research idea.

@grgerwcwetwet: Unreal! Someone distilled all the writing techniques from 60 award-winning papers at top AI conferences into a single Skill! Check out the open-source project Best-Paper-Writing-Skill. The author studied 60 award-winning papers from three leading conferences—CVPR, ICCV, and NeurIPS—to specifically teach…

X AI KOLs Timeline

The open-source project Best-Paper-Writing-Skill distills writing strategies from 60 award-winning papers at three top conferences—CVPR, ICCV, and NeurIPS—into a single Skill. It supports Claude Code and Codex, can generate paper abstracts, introductions, methods and experiments sections, and figure plans, and includes a built-in checker to detect AI-sounding prose, fabricated data, and logical issues.

@nini_incrypto_: Recommended Paper Writing Skills 1 Research-Paper-Writing-Skills https://github.com/Master-cai/Research-Paper-Writing-Skills… This is a skill pack for machine learning/computing...

X AI KOLs Timeline

Recommends four open-source paper writing skill packs suitable for machine learning/computer vision/NLP and other fields, focusing on structure standardization, polishing and review, complete research workflow, and Chinese collaboration, supporting AI assistants such as Codex, Claude Code, and Gemini.

@sheriyuo: Actually, I have been writing papers purely with AI from the very beginning. Previously I used DeepSeek R1, now I use V4. Since I don't have English academic writing ability, but I can tell by eye whether a sentence or passage is appropriate. As for Chinese writing, I am fairly confident. So almost 9...

X AI KOLs Timeline

The user shared their experience of writing academic papers entirely using AI (DeepSeek R1 and V4), emphasizing that the Chinese outline and fine prompt tuning are key, and noting that manually editing AI-generated writing is more tiring than writing it themselves.