Spine rewrite

From FOURTEEN1416/academic-agent-toolkit · View interactive version

Spine rewrite is an AI agent skill from the GitHub repository FOURTEEN1416/academic-agent-toolkit. Rewrites an existing manuscript from confirmed motivation, research, paragraph-level rationale, and evidence. (internal /paperspine step)

How to use this skill

Skill file

<!--ACAT-ADAPTED: 资产回填自 WUBING2023/PaperSpine@1fe46f0e76aa(单技能拆分重组编排)。溯源见 references/UPSTREAM.md。2026-09-09 专项治理。-->

PaperSpine Rewrite

Use this skill when the user already has a draft and wants a substantive

manuscript improvement.

Required Inputs

If research or confirmed motivation is missing, do not rewrite. Return to

spine-research and ask the user to confirm the motivation after seeing

research-grounded options.

If citation_support_bank.md is missing or shallow, return to

spine-citation before final writing. Introduction, background, related

work, and Discussion claims should draw from that bank when they need

literature support.

Required Outputs

Original Logic Map

Before rewriting, map the existing manuscript in order:

| Original Unit | Current Text Role | Evidence Used | Motivation Link | Problem | Keep / Move / Rewrite / Delete |

|---|---|---|---|---|---|

This is required so the rewrite can be compared against the original logic, not

only against surface wording.

Writing Rationale Matrix

Before final prose, create writing_rationale_matrix.md and read

references/writing-rationale-matrix.md. The matrix is the rewrite plan. It

must be ordered by the manuscript's actual writing units, not by a fixed IMRaD

or journal-paper template.

Use this table. Column headers are owned by the single source of truth

references/writing-rationale-matrix.md (same file as spine-build's copy);

repeat them exactly:

| Row ID | Manuscript Unit | Current Problem or Planned Function | Motivation Link | Reference/SOTA Pattern Learned | Target Scene or Venue Norm | User Evidence or Citation Anchor | Planned Change/Text Move | Final Text Check |

|---|---|---|---|---|---|---|---|---|

The first data row must deeply justify the whole-work framework or throughline:

why this controlling structure is chosen, how SOTA/target examples informed it,

how it follows the confirmed motivation, which user evidence anchors it, and how

the final manuscript will be checked against it. After that, split the draft

into the smallest useful units for this target scene:

paragraphs, paragraph groups, result/claim units, model steps, assumptions,

review synthesis blocks, competition solution blocks, headings, captions, or

other argument-bearing fragments. Do not force reports, reviews, or competition

papers into Abstract/Introduction/Methods/Results/Discussion if that is not the

right structure.

Each row must explain concrete anchors across multiple dimensions. Acceptable

reasons include: confirms or narrows the central motivation, transfers a

structural move from a strong example without copying wording, matches

target-scene expectation, moves evidence next to the claim, fixes a weak

transition, creates a front/back echo, or constrains a claim to available

evidence. If a row cannot teach the user why this writing move is better, it is

too shallow.

Humanize Tier

If paper_spine_config.json has humanize_tier set to light, medium, or

heavy, route to spine-humanize before writing. The humanize skill

provides tier-specific writing constraints enforced during all prose generation.

Rewrite Rules

paragraphs.

already serves the confirmed motivation.

unless the user asks to change structure.

specific sentence. Do not add citation clusters without a clear claim.

each change is structural, rhetorical, evidence-related, or only language.

Pre-LaTeX Gate

Before routing output to spine-latex, run:

# Resolve scripts from this repository checkout, not the user's project cwd
# (a bare `python scripts/...` path is the most common reason the gate fails).
REPO="$(git rev-parse --show-toplevel)"
python "$REPO/academic-toolkit/skills/spine-rewrite/scripts/integrity_audit.py" paper_rewriting_output --markdown --write
python "$REPO/academic-toolkit/skills/spine-rewrite/scripts/structured_review.py" paper_rewriting_output --dispatch

Same-name guard scripts exist in several spine skill directories (registered

in academic-toolkit/data/duplicate_assets_registry.json); use this skill's

own copies shown above.

integrity_audit.md must show no BLOCKED findings. After dispatch, launch

three parallel review sub-agents per review_prompts/dispatch.md. Validate

independence with structured_review.py --validate review_prompts.

Tier the gate by the tier field from paper_spine_config.json:

structured-review dispatch, three parallel review sub-agents, and

independence validation.

findings); skip the structured_review.py dispatch and the three parallel

sub-agent review. Record the skipped review in the final audit notes so the

simplification is visible.

Read references/writing-rationale-matrix.md,

references/motivation-thread-writing.md, references/deep-imitation-protocol.md,

and references/rewrite-matrix.md when doing substantive rewriting.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.