Manuscript creation
Natural invoke
- "Create a new optimization research project and manuscript from this brief"
- "Scaffold projects/my_topic/ like template_code_project"
- "I have a research idea — set up manuscript + src + tests"
Inputs to confirm
- Research topic — objectives, methods, expected contributions (user provides).
- Exemplar — default
projects/templates/template_code_project/; Active Inference multi-track →template_active_inference; prose →template_prose_project; AutoResearch/readiness loop →template_autoresearch_project; meta-template / infrastructure introspection →template_template; search → publictemplate_search_project. Roster:docs/_generated/active_projects.mdandprojects/AGENTS.md. - Cross-ref style — Pandoc-crossref vs registry tokens (pick one; see manuscript-cross-references).
Workflow
Copy exemplar shape — match section numbering (
01_*vs00_*), not generic skeleton if exemplar differs.Manuscript files —
config.yaml,preamble.md,references.bib, ordered*.mdsections, glossary/references as exemplar does.Cross-refs — Pandoc:
@fig:,@eq:,@sec:,[@key]perdocs/guides/manuscript-semantics.md. Registry:refs/labels.yaml+[[FIG:]]tokens.src/— typed public APIs,get_logger, fixed seeds, custom exceptions where needed.scripts/— thin orchestrators only;MPLBACKEND=Agg; print output paths.tests/— no mocks; ≥90% onprojects/<name>/src.Docs — project AGENTS.md + README.md; link active_projects doc, do not hard-code roster.
One-shot alternative — for LLM scaffold of entire tree, see
docs/guides/new-project-one-shot-prompt.md.
Deliverables
- Full
projects/<name>/tree or delta from brief - How to run:
uv run pytest projects/<name>/tests/ --cov=...anduv run python scripts/pipeline/stage_01_test.py --project <name>
Verification commands
uv sync
uv run python scripts/pipeline/stage_01_test.py --project <name>
uv run python -m infrastructure.validation.cli markdown projects/<name>/manuscript/
When NOT to use
- Existing manuscript claim audit → manuscript-claim-verification
- Cross-ref-only fixes → manuscript-cross-references
References
Section checklist and examples: references/structure-checklist.md