Template autopoiesis

From docxology/template · View interactive version

Template autopoiesis is an AI agent skill from the GitHub repository docxology/template. Combinatoric grammar that deterministically generates whole runnable child projects (src/, tests/, scripts/, manuscript/) from a seed — recompute-based provenance verification and a falsifiable honesty manifest against green-by-construction test theater.

How to use this skill

Skill file

template-autopoiesis

Project-scoped skill for the in-repo exemplar at

projects/templates/template_autopoiesis/. Load this when working inside the

project.

When to Use

materializing child projects, or editing source.

recompute-verified provenance still hold after a grammar change.

Quick Reference

# From the repository root
uv run pytest projects/templates/template_autopoiesis/tests --cov=projects/templates/template_autopoiesis/src --cov-fail-under=90

# Materialize a child project from the grammar (writes a full runnable tree)
uv run python projects/templates/template_autopoiesis/scripts/autopoiesis.py materialize --out-root /tmp/children

# Realize a full archetype end-to-end (spec → child → seal)
uv run python projects/templates/template_autopoiesis/scripts/realize_child_full.py

# Seal a materialized child with QR provenance
uv run python projects/templates/template_autopoiesis/scripts/seal_child.py

Pitfalls

expand.py, materialize.py, realize.py, sealing.py, verify.py), not

in scripts/.

exemplar is that a child's provenance is re-derived from disk at verify

time, not read from a cached manifest.

grammar in manuscript/config.yaml.

requires output/data/coverage_full.json and writes

output/figures/figure_registry.json only after all four referenced PNGs exist.

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.