template-infrastructure-module

A set of instructions for creating reusable Python packages inside an infrastructure folder. It covers the package layout, public functions, documentation, tests, error types, and registration of new skills.

In plain words
What is it for?
Use it when adding a reusable infrastructure package, extending validation, rendering, or language-model utilities, or registering a new skill manifest.
Why use it?
It gives contributors a consistent way to add shared infrastructure code and check that it is tested and documented. It also explains the required verification commands.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/docxology/template/infrastructure-module
Any agent
npx skills add docxology/template --skill infrastructure-module
Clone the repo
git clone --depth 1 https://github.com/docxology/template

Made for: Claude Code, Codex.

Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 546 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00069 $0.00546
Opus 5 $0.00034 $0.00273
Sonnet 5 $0.00014 $0.00109
Haiku 4.5 $0.00007 $0.00055

Measured 2d ago against content hash b1fe6a4f4366, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

template-infrastructure-module scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/prompts/infrastructure-module/SKILL.md · 69 lines

What it actually says

Infrastructure module

Natural invoke

  • "Add infrastructure/foo/ package with CLI and tests"
  • "Extend infrastructure/validation with a new gate"
  • "New generic utility reusable across projects"

Inputs to confirm

  • Module name — under infrastructure/<package>/.
  • Public API — functions/classes to export in __init__.py and __all__.

Workflow

  1. Layout__init__.py, core logic module(s), optional cli.py, AGENTS.md, README.md, SKILL.md with YAML frontmatter.

  2. Implement — generic (no project-specific paths hard-coded); type hints; TemplateError hierarchy.

  3. Teststests/infra_tests/<package>/; no mocks; ≥60% on infrastructure/.

  4. Exports — re-exporting __init__.py must declare __all__ (MED5).

  5. Register skilluv run python -m infrastructure.skills write after adding SKILL.md.

  6. Wire docs — update infrastructure/AGENTS.md module map if significant.

Deliverables

  • Package tree + test path
  • Coverage snippet from pytest

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

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 69 lines · 69 tokens per session scan A b1fe6a4f4366

Subscribe to this mod's changes

template-infrastructure-module is a skill published in the GitHub repository docxology/template (19 stars, last pushed 2d ago), licensed Apache-2.0. It adds 69 tokens to every session and 546 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

exa-search

Use Exa MCP for current web, code/docs, company, people, and page-fetch research. Prefer current hosted tool schemas and note deprecated tools.

mxyhi/ok-skills · 33 tokens

ontoly-software-graph

Use Ontoly's deterministic Software Graph and MCP capabilities for repository architecture, request tracing, dependency analysis, configuration lookup, and impact analysis before falling back to source search.

mxyhi/ok-skills · 40 tokens

product-decision-agent

中文产品决策 Agent。用于中国大陆互联网产品、运营、增长、商业化、数据、项目推进和组织协作场景:产品规划、需求分析、PRD、需求优先级、排期、版本规划、Roadmap、MVP、灰度、上线、迭代、增长停滞、拉新、投放、渠道、裂变、CAC、LTV、ROI、留存、转化、DAU/MAU、GMV、漏斗、社区运营、内容供给、创作者、用户运营、活动运营、私域、会员、定价、指标异常、数据口径、埋点、A/B…

mxyhi/ok-skills · 265 tokens

kimi-webbridge

Kimi WebBridge lets AI control the user's real browser — navigate, click, type, read, screenshot, and interact with any website using the user's actual login sessions. Use this skill whenever the user wants to interact with websites, automate browser tasks, scrape web content, or perform any action requiring a real…

mxyhi/ok-skills · 113 tokens

telegram-patterns

Telegram-specific patterns and Telethon library usage.

leshchenko1979/fast-mcp-telegram · 12 tokens

async-python-patterns

When writing Python asyncio code — picking between gather / TaskGroup / wait, structured concurrency, timeouts, cancellation, sync-bridging — decision framework only, cookbook externalized.

event4u-app/agent-config · 41 tokens