python-coder

python-coder is a skill for Claude Code from DmitriyYukhanov/claude-plugins. It costs 31 tokens per session (1,096 once invoked), scanned A, original, MIT.

A Python coding guide for implementing features while following a project's existing conventions, PEP 8 style rules, and type-hinting practices.

In plain words
What is it for?
Use it to add or modify Python features, write typed and documented functions, handle errors, and validate changed files.
Why use it?
It reduces inconsistent code and catches problems by inspecting nearby code and running the project's checks on changes.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the python-dev plugin — 3 skills, 1 command, 1 agent shipped together

Good fit Use it to add or modify Python features, write typed and documented functions, handle errors, and validate changed files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dmitriyyukhanov/claude-plugins/python-coder
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.

Any agent
npx skills add DmitriyYukhanov/claude-plugins --skill python-coder
Clone the repo
git clone --depth 1 https://github.com/DmitriyYukhanov/claude-plugins

Made for: Claude Code.

Or install python-dev, the plugin that ships this one along with the rest of its 3 skills, 1 command, 1 agent.

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-coder

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dmitriyyukhanov/claude-plugins/python-coder"><img src="https://agentmods.dev/badge/skills/dmitriyyukhanov/claude-plugins/python-coder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,096 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.00031 $0.01096
Opus 5.5 $0.00012 $0.00438
Sonnet 5.5 $0.00006 $0.00219
Haiku 4.5 $0.00003 $0.00110

Measured 2mo ago against content hash 0bcbb6ac1356, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

python-coder 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 2mo 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.

response = requests.get(url, timeout=10)
plugins/python-dev/skills/python-coder/SKILL.md · 191 lines

How it starts

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

Python Coder Skill

You are a senior Python developer following strict coding guidelines.

Workflow

  1. Inspect existing conventions — read nearby code, pyproject.toml, linter configs before writing
  2. Edit minimum surface — change only what the task requires; don't refactor surrounding code
  3. Validate — run the project's linter/type-checker on changed files
  4. Stop on ambiguity — if the task is unclear or a change could be destructive, ask before proceeding

Core Principles

  • Respect project-local standards first (pyproject.toml, Ruff/Flake8, mypy/pyright, framework conventions)
  • Follow PEP 8 style guide
  • Use type hints for all function signatures
  • Write docstrings for public APIs
  • Keep functions short and focused
  • Handle errors explicitly

Type Hints

Always use type hints:

from collections.abc import Callable
from typing import TypeVar

T = TypeVar("T")

def process_items(
    items: list[str],
    transform: Callable[[str], T],
) -> list[T]:
    """Process items with transformation function."""
    return [transform(item) for item in items]

Functions

Structure

  • Short functions (<20 lines)
  • Single responsibility
  • Early returns for guard clauses
  • Type hints for parameters and return
def get_active_users(users: list[User]) -> list[User]:
    """Filter and return only active users."""
    if not users:
        return []

    return [user for user in users if user.is_active]

Docstrings

Use Google-style docstrings for public APIs:

def calculate_discount(price: float, percentage: float) -> float:
    """Calculate discounted price.

    Args:
        price: Original price in dollars.
        percentage: Discount percentage (0-100).

    Returns:
        Discounted price.

    Raises:
        ValueError: If percentage is not between 0 and 100.
    """
    if not 0 <= percentage <= 100:
        raise ValueError(f"Invalid percentage: {percentage}")

    return price * (1 - percentage / 100)

Read the full file on GitHub · 191 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. 2mo ago Changed · -9 lines 0bcbb6ac1356
  2. 3mo ago First seen · 200 lines · 31 tokens per session scan A aa257930f17c

Subscribe to this mod's changes

python-coder is a skill published in the GitHub repository DmitriyYukhanov/claude-plugins (8 stars, last pushed 1mo ago), licensed MIT. It adds 31 tokens to every session and 1,096 once invoked, about $0.0001 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-08-31.

Related

python-coder compared with skills from other repositories

python-coder next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
python-coderDmitriyYukhanov/claude-pluginsSkill81mo agoMITA31Claude Code
pythonxobotyi/cc-foundrySkill23yesterdayMITB38Claude Code
fastapi-expertAarvion-AI/stackwise-skillsSkill52mo agoMITA134Claude Code
python-backend-expertmathisk2095/jko-claude-pluginsSkill31mo agoMITA183Claude Code
milp-modeling-gurobihajibabaie/combinatorial-optimization-skillsSkill235mo agoMITA141Claude Code
clean-code-pythonCassetteTapeCrackle/claude-startersSkill11mo agoMITA39Claude Code
numpy-vectorization-for-optimizationhajibabaie/combinatorial-optimization-skillsSkill235mo agoMITB125Claude Code