Infrastructure module

From docxology/template · View interactive version

Infrastructure module is an AI agent skill from the GitHub repository docxology/template. Add or extend generic infrastructure/ packages — Layer 1 modules with SKILL.md, AGENTS.md, tests in tests/infra_tests/, 60% coverage. USE WHEN new reusable package under infrastructure/, extending validation/rendering/llm, or skill manifest entry — even without infrastructure_module prompt.

How to use this skill

Skill file

Infrastructure module

Natural invoke

Inputs to confirm

Workflow

  1. Layout — __init__.py, core logic module(s), optional cli.py, AGENTS.md, README.md, SKILL.md with YAML frontmatter.
  1. Implement — generic (no project-specific paths hard-coded); type hints; TemplateError hierarchy.
  1. Tests — tests/infra_tests/<package>/; no mocks; ≥60% on infrastructure/.
  1. Exports — re-exporting __init__.py must declare __all__ (MED5).
  1. Register skill — uv run python -m infrastructure.skills write after adding SKILL.md.
  1. Wire docs — update infrastructure/AGENTS.md module map if significant.

Deliverables

Verification commands

uv run pytest tests/infra_tests/<area>/ -v --cov=infrastructure --cov-fail-under=60
uv run python -m infrastructure.skills check
uv run python -m infrastructure.skills check --all-exports

When NOT to use

References

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.