just-works: Skill for Claude Code

.claude/skills/python-coding/SKILL.md

python-coding is a skill for Claude Code from Dynokostya/just-works. It costs 42 tokens per session (1,138 once invoked), scanned A, original, Apache-2.0.

A set of rules for writing and editing Python code, covering errors, resource handling, asynchronous code, data models, type safety, and security defaults. Python is a programming language, and the rules defer to conventions already established by the project.

In plain words
What is it for?
Use it when changing `.py` files to inspect the project's Python version and tooling, follow local style, handle errors explicitly, and use timezone-aware and security-safe APIs.
Why use it?
It prevents common bugs such as silently swallowed exceptions, timezone mistakes, and predictable security tokens. It also gives a consistent fallback when a project has no clear coding standards.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: positional $N argument.

This is Dynokostya/just-works's own configuration. It tells Claude Code how to work on just-works itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything just-works configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Dynokostya/just-works. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Dynokostya/just-works/main/.claude/skills/python-coding/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Dynokostya/just-works

Made for: Claude Code.

Wrote 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.

agentmods badge for python-coding

README.md
[![agentmods](https://agentmods.dev/badge/skills/dynokostya/just-works/python-coding/github.svg)](https://agentmods.dev/skills/dynokostya/just-works/python-coding)
Your own site
<a href="https://agentmods.dev/skills/dynokostya/just-works/python-coding"><img src="https://agentmods.dev/badge/skills/dynokostya/just-works/python-coding/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.

agentmods 80×15 button for python-coding

Your own site · 80×15
<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="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,138 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00042 $0.01138
Opus 5.5 $0.00017 $0.00455
Sonnet 5.5 $0.00008 $0.00228
Haiku 4.5 $0.00004 $0.00114

Measured 17d ago against content hash 3f7e67ff1591, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

python-coding scanned grade A with 1 finding 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 17d 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.

async def fetch(client: httpx.AsyncClient, url: str) -> dict[str, Any]:
.claude/skills/python-coding/SKILL.md · 89 lines

How it starts

The opening of the file, as written. The whole thing — 89 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Python Coding

Project conventions override these defaults. Read 2-3 nearby modules and pyproject.toml (Python target, linter, tooling) before writing.

Never rules

  • Never except: pass, and never a broad except Exception without re-raise or logging. Catch specific types; a broad catch makes a typo-induced KeyError look like a network failure.
  • Never use naive datetimes. datetime.now() and datetime.utcnow() (deprecated since 3.12) return naive values. Use datetime.now(tz=timezone.utc), and zoneinfo.ZoneInfo rather than pytz for other zones.
  • Never random for tokens, keys, or session IDs. Use secrets.
  • Never shell=True when any argument can contain external input. Pass an argument list.
  • Never trust external input in parsers or queries. Parameterize SQL instead of formatting strings, use yaml.safe_load, never pickle.load untrusted data, and never eval/exec external input (ast.literal_eval for literals).
  • Never block the event loop in async def. No time.sleep(), requests, or synchronous file I/O. Use asyncio.sleep(), httpx, or asyncio.to_thread().

Error handling

Re-raise at I/O boundaries with raise ... from e to keep the original traceback. Use from None only when the cause is irrelevant to the caller. Define custom exception types when callers must tell failure modes apart.

try:
    result = await db.fetchrow("SELECT * FROM users WHERE id = $1", user_id)
except asyncpg.PostgresError as e:
    raise DatabaseError(f"Failed to query user {user_id}") from e

Log a caught exception with its traceback: logger.exception("API call failed") inside the except block, or exc_info=True at lower levels. logger.error(f"...{e}") loses the traceback.

Resource cleanup

Use a context manager (or finally) for every client, connection pool, and file handle; never create httpx.AsyncClient() or a pool bare. Use AsyncExitStack when entering several async resources in one function.

Read the full file on GitHub · 89 lines

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. 17d ago Changed · -195 lines · -7 tokens per session 3f7e67ff1591
  2. 2mo ago First seen · 284 lines · 49 tokens per session scan A cbacd9774bd7

Subscribe to this mod's changes

python-coding is a skill published in the GitHub repository Dynokostya/just-works (14 stars, last pushed 10d ago), licensed Apache-2.0. It adds 42 tokens to every session and 1,138 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

python-coding compared with skills from other repositories

python-coding next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
python-codingDynokostya/just-worksSkill1410d agoApache-2.0A42Claude Code
matlabK-Dense-AI/scientific-agent-skillsSkill56k4d agoMITA44Claude Code
pennylaneK-Dense-AI/scientific-agent-skillsSkill56k4d agoMITA74Claude Code
holoscan-install-wheelNVIDIA/skillsSkill3.9kyesterdayApache-2.0A34Claude Code, Codex
future-self-liteTHU-MAIC/OpenMAICSkill43kyesterdayMITA20Claude Code, Codex
rocm-kernelshuggingface/kernelsSkill783yesterdayApache-2.0A93Claude Code
typing-exclusion-workergetsentry/skillsSkill1.1kyesterdayApache-2.0A57Claude Code