Skip to content
Back to skills

Spine Build

ASecurity

Builds a paper or report from materials using the shared PaperSpine research, motivation, and rationale workflow.

  • 16 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 24, 2026
researchpythonshellbashgit

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned November 20, 2026

npx -y skills add FOURTEEN1416/academic-agent-toolkit --skill spine-build --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Spine Build?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Spine Build
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/fourteen1416-spine-build/badge)](https://www.skillsdirectory.com/skills/fourteen1416-spine-build)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: spine-build
description: "Builds a paper or report from materials using the shared PaperSpine research, motivation, and rationale workflow."
---


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

Use this skill when the user does not have a real manuscript draft yet and
instead provides a materials folder with experiment settings, results, figures,
notes, PDFs, Word files, TXT/Markdown reports, or partial drafts.

This workflow shares the same research, motivation confirmation, evidence bank,
section blueprint, and writing rationale matrix logic as `spine-rewrite`.
It is not a separate shortcut.

## Required Inputs

- `paper_rewriting_output/paper_spine_config.json`
- `materials_dir`
- target scene and output language
- `paper_rewriting_output/reference_materials/source_index.md`
- `paper_rewriting_output/research_dossier.md`
- `paper_rewriting_output/exemplar_learning_dossier.md`
- `paper_rewriting_output/style_profile.md`
- `paper_rewriting_output/sota_gap_map.md`
- `paper_rewriting_output/citation_support_bank.md`
- `paper_rewriting_output/confirmed_motivation.md` with user confirmation

If research or confirmed motivation is missing, do not draft. 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`. From-zero writing still needs literature support for
background, Introduction/overview, Discussion, limitations, and applications.

## First Pass

Run or emulate:

```bash
# Resolve scripts from this repository checkout, not the user's project cwd
# (a bare `python scripts/...` path is the most common reason the command fails).
REPO="$(git rev-parse --show-toplevel)"
python "$REPO/academic-toolkit/skills/spine-build/scripts/material_inventory.py" <materials_dir> --output-dir paper_rewriting_output
```

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 — resolve every `scripts/...` reference below as
`$REPO/academic-toolkit/skills/spine-build/scripts/...`.

Create `source_inventory.md` before making claims.

## Required Outputs

- `paper_rewriting_output/source_inventory.md`
- `paper_rewriting_output/evidence_bank.md`
- `paper_rewriting_output/figure_asset_map.md`
- `paper_rewriting_output/claim_register.md`
- `paper_rewriting_output/section_blueprints.md`
- `paper_rewriting_output/writing_rationale_matrix.md`
- manuscript draft as an intermediate artifact
- `paper_rewriting_output/final_paper/main.tex`
- `paper_rewriting_output/final_paper/paper.pdf` when a TeX engine is available
- `paper_rewriting_output/latex_report.md`
- `paper_rewriting_output/final_artifact_manifest.md`
- `paper_rewriting_output/translation_zh/` when `translation_package` is `zh` (via `spine-translate-zh`)

## Writing Rationale Matrix

Before final prose, create `writing_rationale_matrix.md` and read
`references/writing-rationale-matrix.md`. The matrix is the build plan. It must
be ordered by the target document's actual writing units, not by a fixed paper
template.

Use this table. Column headers are owned by the single source of truth
`references/writing-rationale-matrix.md` (same file as `spine-rewrite`'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/report will be checked against it. After that, split the
work into the smallest useful units for the selected scene:
abstract/summary moves, problem restatement, assumptions, model design, methods
choices, result/claim units, review synthesis blocks, validation blocks,
recommendations, headings, captions, or other argument-bearing fragments.

No row may be generic. Each row must state why that unit exists and how it is
connected to the confirmed motivation, learned examples, target-scene norms, or
user evidence. If a paragraph or figure claim needs a separate writing decision,
it needs its own row.

## 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.

## Build Rules

- `materials_dir` and the output path may contain spaces or non-ASCII characters
  (e.g. `exp_lab_en - 副本`). Always quote paths and avoid shell globbing such as
  `cp materials/* ...`; copy or read files with explicitly quoted paths, prefer
  Python `pathlib` or (on Windows) PowerShell for file operations. Unquoted
  globs silently break on such directories.
- Treat images as potential figure assets, not as verified evidence unless the
  user explains what they show.
- Use existing document/PDF skills for complex PDF, DOCX, or scanned material
  extraction when available.
- Do not fabricate missing experiments or results.
- Copy user-approved figure assets into the final LaTeX project's `figures/`
  folder and reference them with labels and captions.
- Follow `output_language`: `en` or `zh`.
- Use `citation_support_bank.md` to select citations sentence by sentence; do
  not treat citation candidates as user evidence or insert all candidates.
- Before routing through `spine-latex`, run `python "$REPO/academic-toolkit/skills/spine-build/scripts/integrity_audit.py" paper_rewriting_output --markdown --write` and `python "$REPO/academic-toolkit/skills/spine-build/scripts/structured_review.py" paper_rewriting_output --dispatch` (with `REPO="$(git rev-parse --show-toplevel)"` resolved first). After dispatch, launch three parallel review sub-agents per `review_prompts/dispatch.md`, then validate independence. Only proceed when all dimensions PASS.
- Gate tiering by the `tier` field from `paper_spine_config.json`: with
  `tier` set to `flash`, run `integrity_audit.py` only (still requiring no
  BLOCKED findings) and skip the structured-review dispatch plus the three
  parallel sub-agents — record the skipped review for the final audit. With
  `tier` set to `pro`, run the full gate as described above.
- Always finish by routing through `spine-latex`. A Markdown draft is not
  a final deliverable for this workflow.
- Build the final LaTeX project under `paper_rewriting_output/final_paper/`.
- If `word_output` is `docx`, generate `final_paper/paper.docx` and run
  `python "$REPO/academic-toolkit/skills/spine-build/scripts/word_guard.py" paper_rewriting_output/final_paper/paper.docx --markdown --output paper_rewriting_output/word_report.md`,
  saving `paper_rewriting_output/word_report.md`.
- If `output_language` is `en` and `translation_package` is `zh`, create a full
  `paper_rewriting_output/translation_zh/` package. This includes complete
  row-by-row translation of large intermediate files such as
  `writing_rationale_matrix.md`; partial translation or summary translation is
  a failure.

Read `references/writing-rationale-matrix.md` before building the manuscript.
`references/build-from-materials.md` does not exist in this repository or in
the upstream pin (registered in `ASSET-GAP.md`); when a referenced file is
missing, apply the matrix rules above instead of searching for the file.

Files in this skill

  • SKILL.md6.1 KB
  • references/UPSTREAM.md642 B
  • references/writing-rationale-matrix.md8.4 KB
  • scripts/integrity_audit.py32.9 KB
  • scripts/material_inventory.py4.1 KB
  • scripts/structured_review.py34.2 KB
  • scripts/word_guard.py39.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in research →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.