AGENT SKILL

story-proj-adopt

Use when an existing thesis draft or Overleaf export should come under STORY. Inventories the draft, confirms a file map, copies (never moves) the source after the author commits a pre-adoption checkpoint, records the draft's claims, and verifies the resulting build without redesigning chapters. After adoption, story-syns-coach frames the thesis story.

License 许可
MIT
所属仓库
wanghao9610/STORY
最近更新
2026-10-11
Stars
★ 2
Forks
0

01 前言 Front Matter

name
story-proj-adopt
description
Use when an existing thesis draft or Overleaf export should come under STORY. Inventories the draft, confirms a file map, copies (never moves) the source after the author commits a pre-adoption checkpoint, records the draft's claims, and verifies the resulting build without redesigning chapters. After adoption, story-syns-coach frames the thesis story.
disable-model-invocation
true

03 SKILL.md 正文

Adopt an existing thesis

Shared conventions. Read docs/mds/story-workflow/writing-workflow-conventions.md in full before acting. Read .env once for the STORY_LANG, INVOLVE, and STORY_MAIN values this run needs, and reuse them. Resolve the language of replies and new Markdown under conventions §7: an explicit author request first, then a valid STORY_LANG, then the dialogue language, read from the author's latest own prose and never from a bare command or the English this run loads, or the invocation language when there is no user turn. Manuscript prose follows degree/profile.tex, and an existing file keeps its language. A clear instruction may select the target and scope and authorize the corresponding action within this skill's documented paths, and work already authorized in this run is not asked for again; it never replaces a confirmation point or an AGENTS.md §1 ask-first choice (conventions §7).

If % degree_level in degree/profile.tex is unknown, inventory may continue, but ask the author to confirm master or doctoral before mapping level-specific front matter, milestones, or requirements (conventions §1).

  1. Inventory the draft read-only: entry points, chapter inputs, front and back matter, figures, tables, bibliography files and their package (natbib or biblatex), document class and styles, build engine and commands, institutional-template signals (compared with % official_template in degree/profile.tex), and candidate evidence.
  2. Copy from the source (the path the author names, else this repository) into the confirmed targets; never move or modify it, inside this repository or outside. Originals stay in place; removing one later is a deletion (conventions §7).
  3. Propose a complete map into manus/fronts/, manus/chaps/, manus/backs/, manus/figs/, manus/tabs/, manus/bibs/, and manus/stys/, naming every path and reference rewrite. In it:
    • name every target as conventions §5 (Manuscript file names) spells it: chapters <nn>_<slug>.tex in the draft's chapter order, appendices <letter>_<slug>.tex, each figure file manus/figs/<owner>_<slug>.tex (wrapping a figure the draft sets inline), its graphic and sources manus/figs/srcs/<owner>_<slug>.*, and each table <owner>_<slug>.tex after the one file that includes it, front matter without a key, and a language twin ending in -zh, rewriting every \input, \include, and \includegraphics path to match;
    • map the draft's bibliography file or files to manus/bibs/reference.bib, merging several without dropping a citekey the manuscript uses, and rewrite the entry point's bibliography lines; a biblatex draft is an unresolved template decision, because the STORY class loads natbib;
    • map an institutional class the draft builds with into manus/stys/ as its build layer, keep the draft's title-page macros, load stys/story only if it compiles with that class (otherwise keep the draft's \todo or define one), and set a non-pdflatex engine with a % !TeX program = <engine> line in the entry point;
    • name the file that becomes the active entry point: manus/main.tex, or another file the author then selects with STORY_MAIN in .env.
  4. Copying files into manus/ and changing the entry point are a confirmation point: show the complete map and wait. Before applying it, run git status --short on every repository path the map reads or rewrites; if any is modified or untracked, or the repository has no commit, ask the author to commit first, and never commit yourself. Record git rev-parse HEAD as the pre-adoption commit.
  5. Apply only the confirmed map. Create notes/adopt.md for the first approved adoption, or update it in place on a rerun, spelling keys, headings, and tokens exactly as here (conventions §1): frontmatter source, source_kind: internal | external, pre_adoption_commit, and adopted: <system date>; headings File map (a Source | Target | Action | Status table, Action copy | rewrite, Status applied | pending | unresolved), Entry point and engine (with the class the entry point loads and, for an institutional class, that lint does not check its language option, and with the degree/profile.tex fields the entry point typesets), Bibliography, Unresolved mappings, and Build.
  6. Add the draft's quantitative or comparative statements to notes/claims.md with Stated in filled, as unsourced, or as drafted with Evidence filled when their evidence is already registered (conventions §3); an absent ledger takes the conventions §3 columns. List candidate evidence for story-evid-curator; this skill registers nothing.
  7. Build, then lint (conventions §8), recording both results under Build. Report unresolved mappings and compilation failures without guessing fixes: mark each unresolved row in notes/adopt.md, list it under Unresolved mappings, and add a tasks/adopt.md checkbox line keyed by its source path. After a failed build, leave the applied copies in place. If the author asks to roll back, restore only the rewritten files, by name, from the pre-adoption commit (git restore --source=<commit> -- <paths>), and list the new target paths for the author to confirm removing.

During adoption, create no notes/*.md artifact but notes/adopt.md and notes/claims.md, and do not redesign the chapter architecture.

Once the imported thesis builds, the Next action: is, while candidate evidence remains unregistered, the exact command for the author to type (story-evid-curator import source=<path> or story-evid-curator register path=<file>); otherwise it is story-syns-coach, which frames the story before story-outl-planner maps the adopted chapters.

04 同仓库更多 Skills

wanghao9610
wanghao9610/STORY

story-tabs-builder

Use to build or revise one thesis table (results, comparisons, mappings, synthesis) from fingerprinted evidence, with a source anchor on every quantitative or comparative row and synchronized claim, outline, and notation records. For a design whose message depends on visual encoding, use story-figs-designer.

★ 2
wanghao9610
wanghao9610/STORY

story-syns-coach

Use before outlining, when the thesis lacks a coherent argument, or to record an author-supplied publication reuse or permission fact. Shapes the thesis problem, central argument, research questions, arc, synthesis, and degree contributions from the author's intent and registered evidence, with the contribution, publication, and claim maps. For chapter architecture, use story-outl-planner.

★ 2
wanghao9610
wanghao9610/STORY

story-revs-resolver

Use after thesis feedback or an official outcome arrives from supervisors, coauthors, committees, examiners, defenses, corrections, or deposits. Converts it into an immutable-source point ledger, reasoned dispositions, tracked promises, and outcome records, without rewriting chapters. For a simulated review, use story-exam-reviewer.

★ 2
wanghao9610
wanghao9610/STORY

story-refs-curator

Use when a thesis needs a trustworthy source record — add, verify, deduplicate, or re-check bibliography entries, write reading notes, or find candidates for a chapter's unsupported literature assertions, verifying only from records fetched in the run. For auditing what the manuscript already cites, use story-cite-auditor.

★ 2
wanghao9610
wanghao9610/STORY

story-proj-adopt

Use when an existing thesis draft or Overleaf export should come under STORY. Inventories the draft, confirms a file map, copies (never moves) the source after the author commits a pre-adoption checkpoint, records the draft's claims, and verifies the resulting build without redesigning chapters. After adoption, story-syns-coach frames the thesis story.

★ 2
wanghao9610
wanghao9610/STORY

story-outl-planner

Use once the thesis story is finalized or the author chooses a provisional outline, and whenever chapter boundaries change. Turns the story and contribution map into chapter architecture, briefs, figure and table plans, and chapter scaffolds wired into the active entry point, mapping existing drafts instead of replacing them. For the thesis argument itself, use story-syns-coach.

★ 2