---
name: docxology/template-manuscript-creation
source: https://app.decimal.ai/s/docxology-template-manuscript-creation@1/SKILL.md
source_sha256: 64e1d65cb655
---

# 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/`](../../../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 → public `template_search_project`. Roster: [`docs/_generated/active_projects.md`](../../_generated/active_projects.md) and [`projects/AGENTS.md`](../../../projects/AGENTS.md#permanent-canonical-exemplars).
- **Cross-ref style** — Pandoc-crossref vs registry tokens (pick one; see [manuscript-cross-references](../manuscript-cross-references/SKILL.md)).

## Workflow

1. **Copy exemplar shape** — match section numbering (`01_*` vs `00_*`), not generic skeleton if exemplar differs.

2. **Manuscript files** — `config.yaml`, `preamble.md`, `references.bib`, ordered `*.md` sections, glossary/references as exemplar does.

3. **Cross-refs** — Pandoc: `@fig:`, `@eq:`, `@sec:`, `[@key]` per [`docs/guides/manuscript-semantics.md`](../../guides/manuscript-semantics.md). Registry: `refs/labels.yaml` + `[[FIG:]]` tokens.

4. **`src/`** — typed public APIs, `get_logger`, fixed seeds, custom exceptions where needed.

5. **`scripts/`** — thin orchestrators only; `MPLBACKEND=Agg`; print output paths.

6. **`tests/`** — no mocks; ≥90% on `projects/<name>/src`.

7. **Docs** — project AGENTS.md + README.md; link active_projects doc, do not hard-code roster.

8. **One-shot alternative** — for LLM scaffold of entire tree, see [`docs/guides/new-project-one-shot-prompt.md`](../../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=...` and `uv run python scripts/pipeline/stage_01_test.py --project <name>`

## Verification commands

```bash
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](../manuscript-claim-verification/SKILL.md)
- **Cross-ref-only fixes** → [manuscript-cross-references](../manuscript-cross-references/SKILL.md)

## References

Section checklist and legacy examples: [references/structure-checklist.md](references/structure-checklist.md)