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.
npx skills add MCKRUZ/claude-code-sdlc --skill api-pattern-pythongit clone --depth 1 https://github.com/MCKRUZ/claude-code-sdlcWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/mckruz/claude-code-sdlc/api-pattern-python)<a href="https://agentmods.dev/skills/mckruz/claude-code-sdlc/api-pattern-python"><img src="https://agentmods.dev/badge/skills/mckruz/claude-code-sdlc/api-pattern-python/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/mckruz/claude-code-sdlc/api-pattern-python"><img src="https://agentmods.dev/badge/skills/mckruz/claude-code-sdlc/api-pattern-python.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00106 | $0.00953 |
| Opus 5.5 | $0.00042 | $0.00381 |
| Sonnet 5.5 | $0.00021 | $0.00191 |
| Haiku 4.5 | $0.00011 | $0.00095 |
Grade A, and why
api-pattern-python 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 63 lines — stays where its author put it; the contents beside it link to each section on GitHub.
API pattern — Python
Consistency is the point: the same kind of work looks the same everywhere, so the reviewer and the
next agent read it without re-learning. You do not invent structure — you locate the codebase's
canonical example and replicate it. The depth is in .claude/rules/project-structure.md.
Procedure
-
Find the canonical example. If the spec names one under "Reuse this pattern," read it. Otherwise
Grepfor the nearest sibling of the same shape and pick the most recent, most-tested one — not the oldest. Useful anchors:- the package's public surface:
src/*/__init__.py(what the codebase chooses to export) - a CLI command:
Grepforargparse,add_parser(,@click.command, or@app.command - a loader/parser of the same input kind:
Grepforyaml.safe_load,json.load,Path( - the project's exception base:
Grepforclass .*Error\(/Exception\) - the entry-point wiring:
[project.scripts]inpyproject.toml
- the package's public surface:
-
Extract the pattern, don't paraphrase it. Note, from the example:
- Layering — CLI/entry point (parses args, prints, sets the exit code) → service function (pure logic, returns values, raises domain errors) → I/O or client. Human output lives at the CLI layer only; the layer below it logs and returns.
- The signature — fully annotated params and return. What typed object it returns (dataclass /
TypedDict/ model), not a rawdict[str, Any]. - Validation — where external input is parsed into that typed object, at the boundary, once.
- Error model — which domain exception it raises and from which base; what it deliberately
does not catch. Confirm it never swallows (
except: pass) and never bare-excepts. - Logging —
logging.getLogger(__name__), structured, on failure paths. - Naming and placement —
snake_casemodule under the right package, one concern per module. - The test shape —
tests/test_<module>.py,test_scenario_expected_resultnames, fixtures (tmp_path,monkeypatch) over setup methods,@pytest.mark.parametrizefor variant cases.
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.
- 3mo ago First seen · 63 lines · 106 tokens per session scan A 7182a1c40d8d
api-pattern-python is a skill published in the GitHub repository MCKRUZ/claude-code-sdlc (8 stars, last pushed 1mo ago), licensed MIT. It adds 106 tokens to every session and 953 once invoked, about $0.0004 per session on Opus 5.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-31.
api-pattern-python compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| api-pattern-pythonMCKRUZ/claude-code-sdlc | Skill | 8 | 1mo ago | MIT | A | 106 | Claude Code |
| matlabK-Dense-AI/scientific-agent-skills | Skill | 59k | 2d ago | MIT | A | 44 | Claude Code |
| pennylaneK-Dense-AI/scientific-agent-skills | Skill | 59k | 2d ago | MIT | A | 74 | Claude Code |
| holoscan-install-wheelNVIDIA/skills | Skill | 4.3k | today | Apache-2.0 | A | 34 | Claude Code, Codex |
| python-engineering-guidelinesanywhere-labs/Agents-Anywhere | Skill | 3.9k | today | Apache-2.0 | A | 75 | Codex |
| future-self-liteTHU-MAIC/OpenMAIC | Skill | 46k | today | MIT | A | 20 | Claude Code, Codex |
| rocm-kernelshuggingface/kernels | Skill | 799 | today | Apache-2.0 | A | 93 | Claude Code |