/python-backend:python-expertfrom python-backend
Guides PEP 8 compliance, modern static type hinting (Python 3.10+ PEP 604, Protocols), generator pipelines, memory optimization (slots, dataclasses), structured concurrency (asyncio TaskGroup), and production error handling in Python applications.
Ships in python-backend. 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.
This skill guides the design and implementation of modern, idiomatic (Pythonic), type-safe, and high-performance Python (3.10+) applications. It acts as a Senior Python Core Architect enforcing modern syntax standards (PEP 604 unions, @dataclass(slots=True)), zero-copy generator pipelines (itertools), structured async concurrency (asyncio.TaskGroup), and disciplined defensive error handling.
mypy, pyright, PEP 604 unions A | B, typing.Protocol).__slots__, streaming generators for large datasets).asyncio).fastapi-expert for HTTP route serialization.database-migration-expert.build-and-ci-gates.list[T], dict[K, V], set[T]) instead of legacy typing.List / typing.Dict.T | None instead of Optional[T].typing.Protocol to enforce duck typing with strict static analysis (mypy).@dataclass(slots=True, frozen=True) for lightweight, immutable data transfer objects.yield) and itertools pipeline functions (islice, chain) rather than buffering full lists in RAM.collections.deque for $O(1)$ append/pop operations on both ends (never list.pop(0) which is $O(N)$).asyncio.TaskGroup() (Python 3.11+) or scoped task management for concurrent asynchronous tasks.asyncio.to_thread().raise CustomError(...) from err) to preserve root cause tracebacks.except: or silent pass.def func(items=[])). Use items: list[T] | None = None.with / async with).logging.getLogger(__name__) with structured context rather than raw print() statements.# Static typing verification
mypy --strict src/
# Linter and formatting check
ruff check src/
ruff format --check src/
mypy and ruff in the workspace shell to verify type safety.def add_item(target=[])).except: catching BaseException and masking system exits.requests.get, time.sleep) inside async def coroutines.__slots__ or @dataclass(slots=True).list.pop(0) in loops causing $O(N^2)$ algorithmic degradation.mypy --strict passes with zero type errors.asyncio.TaskGroup or safe concurrency boundaries without thread blocking.from err.For detailed code patterns, memory benchmarks, and anti-pattern comparisons:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
python-3.10, type-hinting, pep-604, asyncio, memory-optimization, code-quality
npx claudepluginhub jggomez/expert-ai-developer-skills --plugin python-backend11 skills in this plugin
/build-and-ci-gatesImplements linters, code formatters, and automated build pipelines (CI/CD) to prevent syntax errors, enforce style consistency, and prevent failing builds from being merged. Use this skill when asked to add linters, configure docker builds, or set up GitHub Actions workflows./context-captureUse when finishing a task at State 5 (Ship & Finish) or when the user explicitly asks to "save context", "guarda contexto", "record decisions", or "hand off" — writes ultra-compact persistent memory to context/memory/ and ensures target-project root AGENTS.md (<= 90 lines) stays wired to DESIGN.md and MEMORY.md across Claude Code and Google Antigravity./context-restoreUse at session start (State 0) or when asked to "load context", "catch up", or "what was done before" — prioritizes LLM Wiki Progressive Disclosure (context/memory/MEMORY.md) across Claude Code and Google Antigravity while supporting user-confirmed restore for scripted sessions (context/sessions/)./database-migration-expertManages database schema migrations, seed data scripts, and table versioning in Python backends (Alembic, SQL). Use this skill when asked to change DB schemas, write migrations, or write seeding scripts./design-spec-expertDrafts concise Backend / API Design Specifications and Software Design Documents (docs/<feature-name>/api-spec.md or SDD <= 70 lines) before coding when introducing new endpoints, schemas, or services./loop-engineeringImplements 3-Tier Adaptive SDLC state machines, capability-gated discovery, target-project AGENTS.md bootstrapping, isolated parallel worker execution (Disjoint Mode A / Git Worktree Mode B), and 3-loop self-correcting review gates.Other plugins' skills for the same job