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 agentmods add skills/grahama1970/agent-skills/best-practices-pythonnpx skills add grahama1970/agent-skills --skill best-practices-pythongit clone --depth 1 https://github.com/grahama1970/agent-skillsWrote 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/grahama1970/agent-skills/best-practices-python)<a href="https://agentmods.dev/skills/grahama1970/agent-skills/best-practices-python"><img src="https://agentmods.dev/badge/skills/grahama1970/agent-skills/best-practices-python.svg" alt="Measured on agentmods" 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.00055 | $0.06105 |
| Opus 5 | $0.00028 | $0.03053 |
| Sonnet 5 | $0.00011 | $0.01221 |
| Haiku 4.5 | $0.00006 | $0.00611 |
Grade A, and why
best-practices-python scanned grade A with 2 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
resp = requests.get("https://api.example.com") Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
subprocess.run(f"git show {ref}", shell=True) The source is not reproduced here
No licence file
A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.
What ships with it
60 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.
- AGENTS.md 39 KB
- analyze_packages.py 6.8 KB runs code
- assets/pyproject.snippet.toml 356 B
- assets/ruff-docstrings-hint.toml 253 B
- docs/AGENTS.md 38 KB
- docs/PACKAGES.md 7.3 KB
- docs/README.md 1.1 KB
- docs/research/01_IDEA.md 1.4 KB
- fixtures/agentic_eval.json 2.5 KB
- pyproject.toml 317 B
- README.md 639 B
- rules/_sections.md 1.1 KB
- rules/_template.md 334 B
- rules/async-limit-concurrency.md 664 B
- rules/async-no-blocking-in-event-loop.md 1.8 KB
- rules/async-prefer-asyncclient.md 651 B
- rules/async-single-asyncio-run.md 1.9 KB
- rules/async-timeouts-cancellation.md 548 B
- rules/conventions-dotenv-required.md 2.7 KB
- rules/conventions-functions-over-classes.md 744 B
- rules/conventions-httpx.md 623 B
- rules/conventions-loguru.md 2.4 KB
- rules/conventions-module-docstring-required.md 689 B
- rules/conventions-no-print.md 433 B
- rules/conventions-typer-cli.md 694 B
- rules/conventions-uv-pyproject.md 536 B
- rules/correctness-avoid-mutable-defaults.md 528 B
- rules/correctness-guard-invariants.md 515 B
- rules/correctness-no-bare-except.md 650 B
- rules/correctness-no-implicit-global-state.md 532 B
- rules/correctness-no-placeholder-error-handling.md 3.8 KB
- rules/correctness-raise-from.md 528 B
- rules/correctness-return-types.md 659 B
- rules/logging-bind-context.md 462 B
- rules/logging-no-giant-payloads.md 503 B
- rules/logging-use-exception.md 563 B
- rules/packaging-pin-major-deps.md 410 B
- rules/packaging-pyproject-central.md 475 B
- rules/packaging-uv-lockfile.md 432 B
- rules/perf-avoid-n2.md 642 B
- rules/perf-cache-pure.md 603 B
- rules/perf-stream-large-files.md 532 B
- rules/security-no-eval-exec.md 598 B
- rules/security-no-shell-true.md 520 B
- rules/security-redact-secrets.md 493 B
- rules/security-validate-untrusted-input.md 549 B
- rules/security-xml-safe-parsing.md 473 B
- rules/style-max-800-lines.md 2.2 KB
- rules/style-module-docstring.md 2.1 KB
- rules/style-pathlib.md 411 B
- rules/style-small-functions.md 563 B
- rules/testing-arrange-act-assert.md 520 B
- rules/testing-deterministic-time.md 553 B
- rules/testing-no-network-by-default.md 571 B
- rules/testing-non-mocked-sanity.md 693 B
- rules/testing-sanity-fixtures.md 598 B
- sanity.sh 2.4 KB runs code
- sanity/lint_dotenv.sh 3.6 KB runs code
- scripts/check_file_limits.py 1.2 KB runs code
- scripts/compile_agents.py 1.9 KB runs code
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.
- 2d ago Changed · +17 lines b8e81313b82e
- 5d ago First seen · 712 lines · 55 tokens per session scan A bfae9fdde7b6
best-practices-python is a skill published in the GitHub repository grahama1970/agent-skills (5 stars, last pushed today), with no licence file. It adds 55 tokens to every session and 6,105 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 2 findings (makes network calls, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
matlab
Build, review, migrate, and safely plan MATLAB or GNU Octave numerical workflows, including arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.
pennylane
Hardware-agnostic quantum ML framework with automatic differentiation. Use when training quantum circuits via gradients, building hybrid quantum-classical models, or needing device portability across IBM/Google/Rigetti/IonQ. Best for variational algorithms (VQE, QAOA), quantum neural networks, and integration with…
dd-code-generation
Use pup CLI for immediate Datadog operations or generate code for integration into applications.
rocm-kernels
Provides guidance for writing and benchmarking optimized Triton kernels for AMD GPUs (MI355X, R9700) on ROCm, targeting HuggingFace diffusers (LTX-Video, SD3, FLUX) and transformers. Core kernels: RMSNorm, RoPE 3D, GEGLU, AdaLN. Includes XCD swizzle, autotune, diffusers integration patterns, and LTX-Video pipeline…
holoscan-install-wheel
Install Holoscan SDK Python wheel via pip into a venv. Use for Python installs; not for native C++/apt or Conda installs.
typing-exclusion-worker
Python typing exclusion worker: remove assigned mypy exclusion modules in small scoped batches, fix typing issues, run validation, and produce a structured completion summary. Use when running parallel typing-debt workers or when asked to remove modules from pyproject mypy exclusion overrides.