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/dynokostya/just-works/python-codingnpx skills add Dynokostya/just-works --skill python-codinggit clone --depth 1 https://github.com/Dynokostya/just-worksWrote 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/dynokostya/just-works/python-coding)<a href="https://agentmods.dev/skills/dynokostya/just-works/python-coding"><img src="https://agentmods.dev/badge/skills/dynokostya/just-works/python-coding.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.00049 | $0.02812 |
| Opus 5 | $0.00024 | $0.01406 |
| Sonnet 5 | $0.00010 | $0.00562 |
| Haiku 4.5 | $0.00005 | $0.00281 |
Grade A, and why
python-coding 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 yesterday.
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.
- **Never blocking calls in async** -- no `time.sleep()`, bare `open()`, or `requests.get()` inside `async def`. These block the entire event loop, freezing all concurrent tasks. Use `asyncio.sleep()`, `aiofiles`, `httpx Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
- **Never `shell=True` in `subprocess`** -- shell interpretation enables command injection if any argument contains user input. Use argument lists: `subprocess.run(["cmd", arg1, arg2])`. How it starts
The opening of the file, as written. The whole thing — 284 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Python Coding
Match the project's existing conventions. When uncertain, read 2-3 existing modules to infer the local style. Check pyproject.toml for Python version target, linter config, and tooling. These defaults apply only when the project has no established convention.
Never rules
These are unconditional. They prevent bugs and vulnerabilities regardless of project style.
- Never
except: passor bareexcept Exceptionwithout re-raise. Catch specific exception types. Broad catches silently swallow bugs — aKeyErrorfrom a typo looks the same as a network failure, and you'll spend hours debugging something the traceback would have told you instantly. - Never
datetime.now()ordatetime.utcnow()-- both produce naive datetimes that lose timezone info. Naive datetimes cause subtle bugs when code crosses timezone boundaries (servers, users, DST). Usedatetime.now(tz=timezone.utc). Usezoneinfo.ZoneInfofor other timezones, notpytz. - Never
randomfor security --randomuses a predictable PRNG; an attacker who observes a few outputs can predict future ones. Usesecrets.token_hex(),secrets.token_urlsafe(), orsecrets.token_bytes()for tokens, keys, session IDs. - Never
shell=Trueinsubprocess-- shell interpretation enables command injection if any argument contains user input. Use argument lists:subprocess.run(["cmd", arg1, arg2]). - Never interpolate or unsafely deserialize external input -- no string-formatted SQL (parameterized queries only), no
yaml.load()(useyaml.safe_load()), nopickle.load()on untrusted data (use JSON/MessagePack), noeval()/exec()(useast.literal_eval()for literals). All are injection or remote-code-execution vectors. - Never mutable default arguments --
def f(items=[])shares one list across all calls. Appending in one call mutates the default for every subsequent call. UseNonesentinel:def f(items: list[str] | None = None)thenif items is None: items = [](notitems = items or [], which also replaces a caller's passed-in empty list). - Never shadow builtins -- don't use
list,dict,id,type,input,hash,map,set,filteras variable names. Shadowing causes confusing errors when you later need the builtin in the same scope. - Never blocking calls in async -- no
time.sleep(), bareopen(), orrequests.get()insideasync def. These block the entire event loop, freezing all concurrent tasks. Useasyncio.sleep(),aiofiles,httpx. - Never
+=string concatenation in loops -- use"".join(parts). Strings are immutable, so repeated+=is quadratic in the general case; CPython has a narrow in-place optimization that often masks it, but it is implementation-specific and easily defeated.joinis reliably linear everywhere.
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.
- yesterday First seen · 284 lines · 49 tokens per session scan A cbacd9774bd7
python-coding is a skill published in the GitHub repository Dynokostya/just-works (14 stars, last pushed yesterday), licensed Apache-2.0. It adds 49 tokens to every session and 2,812 once invoked, about $0.0002 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-09-04.
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.
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.
python
Python development with ruff, mypy, pytest - TDD and type safety.
splitting-oversized-modules
Split an oversized Python module (a thousand-plus-line logic.py, models.py, api.py, or its test file) into a package of one module per concern, mechanically and provably without changing behavior. Use on a request to split / break up / decompose a god module or move functions out of one, once a human has agreed to…