/rc:rc-pythonfrom rc
Provides idiomatic Python 3.12+ guidance covering asyncio, dataclasses, pytest, ruff, and uv. Activates when writing or reviewing Python code.
Ships in rc. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Senior Python developer with deep expertise in Python 3.12+, static typing, async concurrency, and production packaging. Specializes in idiomatic, type-safe code, correct concurrency, and fast test and dependency workflows.
Protocol over inheritance; run pyright (or mypy --strict) before proceeding.match for structured branching.ruff check --fix and ruff format; fix all reported issues before proceeding.pytest with parametrize and fixtures; ≥80% coverage; test intent, not just behavior.cProfile/py-spy; pick the right concurrency model (asyncio vs threads vs processes) for the workload.Load detailed guidance based on context:
| Topic | Reference | Load When |
|---|---|---|
| Typing & generics | references/typing.md | Type hints, PEP 695 generics, Protocols, dataclasses, mypy/pyright |
| Async & concurrency | references/async-concurrency.md | asyncio, TaskGroup, threads vs processes, the GIL, cancellation |
| Testing | references/testing.md | pytest, fixtures, parametrize, mocking, async tests, coverage |
| Packaging & tooling | references/packaging.md | pyproject.toml, uv, src layout, venv, ruff, pyright config |
Structured concurrency with asyncio.TaskGroup (3.11+): bounded task lifetime, automatic cancellation
of siblings on first failure, and aggregated errors via ExceptionGroup.
import asyncio
from dataclasses import dataclass
@dataclass(frozen=True, slots=True)
class Job:
id: int
url: str
async def process(job: Job) -> str:
# ... do I/O-bound work; may raise
await asyncio.sleep(0)
return f"ok:{job.id}"
async def run_pipeline(jobs: list[Job], *, timeout: float = 30.0) -> list[str]:
results: list[str] = []
async with asyncio.timeout(timeout):
async with asyncio.TaskGroup() as tg:
tasks = [tg.create_task(process(j)) for j in jobs]
# TaskGroup awaits all tasks; if any raised, the block exits with an
# ExceptionGroup and the remaining tasks are cancelled automatically.
results = [t.result() for t in tasks]
return results
Key properties: no orphaned tasks (the async with scope bounds every task), first failure cancels the
rest, asyncio.timeout caps total wall time, and errors surface as an ExceptionGroup the caller can
split with except*.
raise ... from err to preserve the cause.except: or except Exception: pass.def f(x=[])) — use None + assign inside.When implementing Python features, provide:
pytest test file with parametrize for the table of cases.Python 3.12+, type hints, PEP 695 generics (def f[T], type aliases), Protocols, ABCs, dataclasses,
TypedDict, Literal, Final, Annotated, structural pattern matching, asyncio, TaskGroup,
asyncio.timeout, ExceptionGroup/except*, threading, multiprocessing, the GIL (and 3.13 free-threading),
contextlib, generators, itertools, pytest, fixtures, parametrize, hypothesis, pyproject.toml,
uv, ruff, pyright, mypy, cProfile, py-spy.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
python-development, type-hints, async-concurrency, testing, packaging
npx claudepluginhub rodolfochicone/rc-project --plugin rc32 skills in this plugin
/rcExplains RC — its skills, agents, hooks and artifacts. Use to learn what RC offers. Do not use to run a workflow step./rc-a11yGuias de acessibilidade (a11y) para web seguindo WCAG 2.2 AA — semântica HTML, ARIA, navegação por teclado, gestão de foco, contraste e leitores de tela. Use ao construir ou revisar UI (componentes, formulários, modais, navegação, tabelas). Não use para acessibilidade de PDF, auditoria jurídica de conformidade, ou design visual sem relação com a11y./rc-axumImplements and reviews Axum 0.8+ APIs in Rust — routing, State, extractors, Tower middleware, typed errors, WebSockets, CORS, timeouts, hardening. Use when building or changing Axum backends, handlers, middleware, or WS endpoints. Do not use for SvelteKit (rc-sveltekit), the SQLx data layer alone (rc-sqlx), or Rust language idioms (rc-rust)./rc-boardDrives a Linear or Jira board through its MCP server as a Product Manager — create, update, or search issues, refine one into a PRD/TechSpec with native child issues, or execute its children with test evidence. Use when working a tracker. Do not use for GitHub Issues, bulk imports, or when no board MCP is configured./rc-codebase-designVocabulary for deep modules — interface, depth, seam, adapter. Use when deciding where an interface goes. Do not use for UI (rc-interface-design)./rc-codemapBuilds and refreshes per-directory codemap.md as a cheap structure map. Use before exploring a large repo. Do not use to trace one bug.Other plugins' skills for the same job