Code development

From docxology/template · View interactive version

Code development is an AI agent skill from the GitHub repository docxology/template. Standards-compliant code for the Research Project Template — infrastructure or project src/, thin orchestrators, type hints, no mocks. USE WHEN implementing an algorithm, utility, analysis method, optimizer, new module in projects/*/src or infrastructure/, or user says add code following template ar

How to use this skill

Skill file

Code development

Natural invoke

Inputs to confirm

Workflow

  1. Place logic correctly — computation in infrastructure/ or projects/<n>/src/; scripts only orchestrate I/O and plotting.
  1. Implement — type hints on public APIs; get_logger(__name__); custom exceptions extending TemplateError; Google docstrings.
  1. Tests — real data, temp files, subprocess, or pytest-httpserver; no mocks (CODE0).
  1. Docs — update module/folder AGENTS.md + README.md when adding public surface.
  1. Verify — ruff/mypy on touched paths; pytest with coverage gate.

Deliverables

Verification commands

uv run python -m infrastructure.project.public_scope lint-paths | xargs uv run ruff check
uv run python -m infrastructure.project.public_scope source-paths | xargs uv run mypy
uv run pytest projects/<project>/tests/ --cov=projects/<project>/src --cov-fail-under=90 -q
# or infra:
uv run pytest tests/infra_tests/ --cov=infrastructure --cov-fail-under=60 -q

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.