python-expert

python-expert is a skill for Claude Code, Codex from genkit-ai/genkit. It costs 26 tokens per session (221 once invoked), scanned A, original, Apache-2.0.

A set of conventions for writing clean, idiomatic Python code, including type hints, dataclasses, specific errors, and small focused changes.

In plain words
What is it for?
Use it whenever you read, write, or modify Python source files.
Why use it?
It keeps Python changes consistent and makes errors easier to understand, while avoiding hidden failures and unnecessary edits.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it whenever you read, write, or modify Python source files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/genkit-ai/genkit/python-expert
About the project

Genkit is an open-source framework for building AI-powered applications with JavaScript, Go, Python, and Dart. Developers use it to connect language models and other AI providers while implementing chatbots, automations, recommendations, multimodal features, structured outputs, tools, and agent workflows. The catalogue skills support development with Genkit.

genkit-ai/genkit · 6,523 stars · on GitHub · genkit.dev

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 genkit-ai/genkit --skill python-expert
Clone the repo
git clone --depth 1 https://github.com/genkit-ai/genkit

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/genkit-ai/genkit/python-expert/github.svg)](https://agentmods.dev/skills/genkit-ai/genkit/python-expert)
Your own site
<a href="https://agentmods.dev/skills/genkit-ai/genkit/python-expert"><img src="https://agentmods.dev/badge/skills/genkit-ai/genkit/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/genkit-ai/genkit/python-expert"><img src="https://agentmods.dev/badge/skills/genkit-ai/genkit/python-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 221 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.00026 $0.00221
Opus 5.5 $0.00010 $0.00088
Sonnet 5.5 $0.00005 $0.00044
Haiku 4.5 $0.00003 $0.00022

Measured 1mo ago against content hash 1260a0c3cb15, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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.

py/samples/middleware-coding-agent/skills/python-expert/SKILL.md · 17 lines

What it actually says

Python expert

When working with Python in this workspace, follow these conventions:

  • Type-hint everything. Parameters, returns, attributes, locals where the type isn't obvious.
  • Prefer dataclasses for simple data containers over hand-written __init__s.
  • Raise specific exceptions (ValueError, KeyError, LookupError) with informative messages. Avoid bare Exception.
  • Don't swallow errors. Don't except Exception: pass. Let unexpected errors propagate.
  • Match the surrounding style. If the file uses single quotes and 4-space indent, match it. Don't reformat unrelated lines.
  • Comments explain why, not what. Skip narration like # loop over items; only comment non-obvious intent.
  • Small, focused edits. When fixing a bug, change only what's necessary. Leave the rest of the file untouched so the diff stays readable.
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. 1mo ago First seen · 17 lines · 26 tokens per session scan A 1260a0c3cb15

Subscribe to this mod's changes

python-expert is a skill published in the GitHub repository genkit-ai/genkit (6,523 stars, last pushed yesterday), licensed Apache-2.0. It adds 26 tokens to every session and 221 once invoked, about $0.0001 per session on Opus 5.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

detect-framework

Detect Python agent frameworks from code imports and map them to Omnigent executor types. Load when the user has existing agent code to integrate.

omnigent-ai/omnigent · 31 tokens

create_jinx

Write a new .jinx file from inputs (name, description, inputs spec as JSON list of strings, python body). Agents use this mid-task to crystallize a repeated block of code into a reusable jinx. The jinx is written to the team's jinxes/lib dir by default and registered with the running team so it is immediately callable…

NPC-Worldwide/npcpy · 78 tokens

langgraph

LangGraph 1.x (LTS) Python workflow patterns for state management, delta channels, resilience (node timeouts, error handlers, graceful drain), routing, parallel execution, supervisor-worker, tool calling, checkpointing, human-in-loop, streaming (v2 format), subgraphs, and functional API. Use when building LangGraph…

yonatangross/orchestkit · 80 tokens

python-backend

Production Python async patterns including asyncio TaskGroup, FastAPI dependency injection and middleware, SQLAlchemy 2.0 async sessions, and database connection pool tuning. Python 3.11+ runtime concerns such as ExceptionGroup, cancellation semantics, and session rollback. Use when building async services, wiring…

yonatangross/orchestkit · 82 tokens

python-lib-analyzer

Analyze any Python library structure, explore modules, classes, and functions with signatures and documentation.

shibing624/agentica · 23 tokens

python-development

You MUST activate this skill when working on Python projects.

sammcj/agentic-coding · 13 tokens