python-expert

python-expert is a skill for Claude Code, Codex from tao12345666333/ankaloop. It costs 11 tokens per session (270 once invoked), scanned A, original, Apache-2.0.

A reference guide for writing and maintaining Python software. Python is a programming language commonly used for applications, automation, data work, and services.

In plain words
What is it for?
Use it when designing Python modules, choosing data structures, writing typed functions and tests, organizing packages, or preparing a project for distribution.
Why use it?
It provides consistent advice on code style, modern language features, errors, tests, project layout, packaging, and dependencies.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/tao12345666333/ankaloop/python-expert
Any agent
npx skills add tao12345666333/ankaloop --skill python-expert
Clone the repo
git clone --depth 1 https://github.com/tao12345666333/ankaloop

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/tao12345666333/ankaloop/python-expert.svg)](https://agentmods.dev/skills/tao12345666333/ankaloop/python-expert)
Your own site
<a href="https://agentmods.dev/skills/tao12345666333/ankaloop/python-expert"><img src="https://agentmods.dev/badge/skills/tao12345666333/ankaloop/python-expert.svg" alt="Measured on agentmods" height="20"></a>
Per session 11 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 270 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00011 $0.00270
Opus 5 $0.00005 $0.00135
Sonnet 5 $0.00002 $0.00054
Haiku 4.5 $0.00001 $0.00027

Measured 5d ago against content hash 272884f43c4f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 5d 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.

examples/skills/python-expert/SKILL.md · 52 lines

What it actually says

Python Expert Skill

When working with Python code, apply these advanced patterns and best practices:

Code Style

  • Follow PEP 8 guidelines
  • Use type hints for function signatures
  • Prefer f-strings for string formatting
  • Use meaningful variable and function names

Modern Python Features

  • Use dataclasses for data containers
  • Prefer pathlib over os.path
  • Use context managers for resource management
  • Leverage generators for memory efficiency
  • Use structural pattern matching (Python 3.10+)

Error Handling

  • Use specific exception types
  • Provide meaningful error messages
  • Log errors appropriately
  • Consider using Result types for expected failures

Testing

  • Write unit tests with pytest
  • Use fixtures for test setup
  • Mock external dependencies
  • Aim for high test coverage

Project Structure

project/
├── src/
│   └── package/
│       ├── __init__.py
│       └── module.py
├── tests/
│   └── test_module.py
├── pyproject.toml
└── README.md

Packaging

  • Use pyproject.toml for configuration
  • Define clear dependencies
  • Use semantic versioning
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. 5d ago First seen · 52 lines · 11 tokens per session scan A 272884f43c4f

Subscribe to this mod's changes

python-expert is a skill published in the GitHub repository tao12345666333/ankaloop (44 stars, last pushed 6d ago), licensed Apache-2.0. It adds 11 tokens to every session and 270 once invoked, about $0.0001 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

python-conventions

Use when a ticket adds or changes Python code and it must follow the repo's Python conventions — PEP 8, full type hints, dataclasses, pythonic idioms, explicit error handling, and pytest with coverage. Invoke for "add this in Python", "fix the type/lint errors", "add the FastAPI/Django endpoint", or as the language…

tmj-90/gaffer · 84 tokens

api-route-design

Use when designing RESTful API endpoints in FastAPI or Python projects. Triggers for: creating GET/POST/PUT/DELETE endpoints, request validation with Pydantic, response formatting with JSON schemas, status code selection, pagination, filtering, or sorting parameters. NOT for: GraphQL APIs, WebSocket handlers, or…

nek1987/auto-agent-harness · 74 tokens

fastapi-router-creator

Create fastapi router creator operations. Auto-activating skill for Backend Development. Triggers on: fastapi router creator, fastapi router creator Part of the Backend Development skill category. Use when working with APIs or building integrations. Trigger with phrases like "fastapi router creator", "fastapi…

nek1987/auto-agent-harness · 71 tokens

httpx

A next-generation HTTP client for Python with both sync and async support, perfect for modern Python applications.

nek1987/auto-agent-harness · 22 tokens

google-agents-cli-adk-code

This skill should be used when the user wants to "write agent code", "build an agent with ADK", "add a tool", "create a callback", "define an agent", "use state management", or needs ADK (Agent Development Kit) Python API patterns and code examples. Part of the Google ADK skills suite. It provides a quick reference…

google/agents-cli · 129 tokens

coding

编写并运行 Python 代码,验证脚本逻辑和输出。.

bojieli/ai-agent-book · 18 tokens