template-code-development

Solid

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 architecture — even without docs/prompts. Not for end-to-end feature spanning manuscript + pipeline (use template-feature-addition).

Data & Documents 18 stars 1 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 84/100

Stars 20%
43
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Code development ## Natural invoke - "Implement gradient descent in template_code_project src/" - "Add a generic CSV validator in infrastructure/" - "New analysis method with tests and logging" ## Inputs to confirm - **Task** — what to implement. - **Layer** — `infrastructure` (generic, 60% cov) vs `project` (domain, 90% cov). - **Project** — if layer is project, from [`docs/_generated/active_projects.md`](../../_generated/active_projects.md). ## Workflow 1. **Place logic correctly** — computation in `infrastructure/` or `projects/<n>/src/`; scripts only orchestrate I/O and plotting. 2. **Implement** — type hints on public APIs; `get_logger(__name__)`; custom exceptions extending `TemplateError`; Google docstrings. 3. **Tests** — real data, temp files, subprocess, or pytest-httpserver; no mocks ([`docs/rules/testing_standards.md`](../../rules/testing_standards.md)). 4. **Docs** — update module/folder AGENTS.md + README.md when adding public surface. 5. **Verify** — ruff/mypy on touched paths; pytest with coverage gate. ## Deliverables - Module(s) with tests meeting coverage floor - List of files touched and verification command output ## Verification commands ```bash 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 test...

Details

Author
docxology
Repository
docxology/template
Created
11 months ago
Last Updated
today
Language
Python
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category