python-expert

python-expert is a skill for Claude Code, Codex from DominikTobureto/awesome-grok-build. It costs 38 tokens per session (470 once invoked), scanned A, original, MIT.

A workflow guide for changing and maintaining Python projects, including FastAPI, Django, and Flask services. It covers tests, type checking, asynchronous code, packaging, dependencies, and performance.

In plain words
What is it for?
Use it for Python features and fixes, web APIs, pytest tests, package or dependency work, typing issues, asynchronous code, data scripts, and Python performance changes.
Why use it?
It helps developers follow the project's existing tools and conventions while making small, tested changes with explicit errors and typed interfaces.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it for Python features and fixes, web APIs, pytest tests, package or dependency work, typing issues, asynchronous code, data scripts, and Python performance changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dominiktobureto/awesome-grok-build/python-expert
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 DominikTobureto/awesome-grok-build --skill python-expert
Clone the repo
git clone --depth 1 https://github.com/DominikTobureto/awesome-grok-build

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/dominiktobureto/awesome-grok-build/python-expert/github.svg)](https://agentmods.dev/skills/dominiktobureto/awesome-grok-build/python-expert)
Your own site
<a href="https://agentmods.dev/skills/dominiktobureto/awesome-grok-build/python-expert"><img src="https://agentmods.dev/badge/skills/dominiktobureto/awesome-grok-build/python-expert/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-expert

Your own site · 80×15
<a href="https://agentmods.dev/skills/dominiktobureto/awesome-grok-build/python-expert"><img src="https://agentmods.dev/badge/skills/dominiktobureto/awesome-grok-build/python-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 470 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00038 $0.00470
Opus 5 $0.00019 $0.00235
Sonnet 5 $0.00008 $0.00094
Haiku 4.5 $0.00004 $0.00047

Measured 9d ago against content hash 6a60a396cc89, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

python-expert 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 9d 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.

.grok/skills/python-expert/SKILL.md · 53 lines

What it actually says

Python Expert

Ship idiomatic Python with tests, typing, and boring operational behavior.

Grok Build Mode

  • Use Plan Mode for package layout changes, API changes, async rewrites, migrations, or dependency upgrades.
  • Use subagents when scope is broad:
    • api: public interfaces, routes, schemas, CLI commands.
    • tests: pytest coverage and fixtures.
    • types: mypy/pyright/ruff/typing issues.
    • runtime: async, IO, DB queries, performance.
  • Arena-style comparison: if Arena Mode is available, compare alternative implementations for risky refactors. Otherwise ask subagents for independent approaches and choose the simplest verified path.

Workflow

  1. Detect project tooling from pyproject.toml, setup.cfg, tox.ini, noxfile.py, requirements*.txt, and CI.
  2. Follow existing style and framework patterns.
  3. Prefer small functions, explicit errors, and typed boundaries.
  4. Add or update pytest tests for changed behavior.
  5. Run the narrowest relevant command:
    • pytest path/to/test.py -q
    • ruff check .
    • ruff format .
    • mypy . or pyright
  6. Summarize changed files, tests, and residual risk.

Python Rules

  • Do not add dependencies without a plan.
  • Keep sync/async boundaries explicit.
  • Use context managers for files, network clients, DB sessions, and locks.
  • Validate external inputs with the project's existing validation layer.
  • Preserve public APIs unless a breaking change is approved.
  • Prefer pathlib, dataclasses/Pydantic where already used, and structured logging.

Example Prompts

Use python-expert. Add tests first, then fix this FastAPI bug. Run the narrowest pytest command.
Use python-expert with subagents for API, tests, types, and runtime. Plan before editing.
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. 9d ago First seen · 53 lines · 38 tokens per session scan A 6a60a396cc89

Subscribe to this mod's changes

python-expert is a skill published in the GitHub repository DominikTobureto/awesome-grok-build (60 stars, last pushed 16d ago), licensed MIT. It adds 38 tokens to every session and 470 once invoked, about $0.0002 per session on Opus 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-30.

Related

Other skills, from other repositories

claude-api

Anthropic Claude API patterns for Python and TypeScript. Covers Messages API, streaming, tool use, vision, extended thinking, batches, prompt caching, and Claude Agent SDK. Use when building applications with the Claude API or Anthropic SDKs.

hashgraph-online/awesome-codex-plugins · 53 tokens

fastapi

Use when building, reviewing, testing, securing or shipping a FastAPI / async Python service — routers, Pydantic v2 schemas, dependency injection, async SQLAlchemy 2.0, OAuth2/JWT, ASGITransport tests, production wiring. NOT language-level Python or packaging (that is python), NOT engine-level SQL (that is…

ericrisco/rsc-harness · 94 tokens

python

Use when the task is Python itself, in any framework or none: PEP 695 generics, mypy --strict typing, dataclass/Protocol/TypedDict/Enum choices, asyncio.TaskGroup, stdlib idioms, src/ layout + pyproject.toml with uv, ruff+mypy+pytest gate. NOT a FastAPI/ASGI service (that is fastapi), NOT a deep pytest suite (that is…

ericrisco/rsc-harness · 94 tokens

django

Use when building, reviewing, securing, testing or shipping a Django app — models, migrations, QuerySets/managers, FBV/CBV views, forms, the admin, settings split, and Django REST Framework (serializers, ModelViewSet, permissions). NOT async FastAPI/Pydantic services (that is fastapi), NOT Postgres schema/index work…

ericrisco/rsc-harness · 84 tokens

python-expert

Python development best practices and advanced patterns.

tao12345666333/ankaloop · 11 tokens

flask

Skill "flask" from rishapgandhi/python-skills, covering flask skill, stack, project structure, app factory and app/init.py.

rishapgandhi/python-skills · 0 tokens