Template textbook

From docxology/template · View interactive version

Template textbook is an AI agent skill from the GitHub repository docxology/template. Authored textbook and separate draft scaffolding — units, chapters, labs, question banks, deterministic figures, and completion checks.

How to use this skill

Skill file

template-textbook

Project-scoped skill for the in-repo exemplar at

projects/templates/template_textbook/. Load this when working inside the project.

When to Use

or regenerating outputs.

no-mocks testing) still hold after changes.

Quick Reference

# From the repository root
uv run pytest projects/templates/template_textbook/tests --cov=projects/templates/template_textbook/src --cov-fail-under=90
# Structural scaffold gate (reports stubs but allows them)
uv run python projects/templates/template_textbook/scripts/audit_textbook_quality.py
# Canonical acceptance gate (requires zero draft markers in every configured section)
uv run python projects/templates/template_textbook/scripts/audit_textbook_quality.py --require-complete
uv run python scripts/pipeline/stage_02_analysis.py --project templates/template_textbook
uv run python scripts/pipeline/stage_03_render.py --project templates/template_textbook
uv run python scripts/pipeline/stage_04_validate.py --project templates/template_textbook
uv run python scripts/pipeline/stage_05_copy.py --project templates/template_textbook

Pitfalls

infrastructure/, not in scripts/.

computation.

source and config.

canonical acceptance uses --require-complete across chapters, companions,

front matter, and reference sections. Execute authored Python examples and

preserve source custody.

as working directory unless the child AGENTS.md states otherwise.

Cross-refs

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.