Agente · em Construir backend e dados

python-pro

Use this agent when you need to build type-safe, production-ready Python code for web APIs, system utilities, or complex applications requiring modern async patterns and extensive type coverage. Specifically:\n\n

Procedência

Antes de instalar

1 arquivo · 10,6 KB · só texto, nenhum script

Instalar na sua CLI

O comando baixa a versão fixada (commit 57f899e) direto da origem, para a pasta que a CLI lê. Precisa de curl (macOS e Linux); no Windows não há comando, porque o Rook Labs é para macOS.

Claude Code

Neste projeto: instala em .claude/agents/python-pro.md.

curl -fsSL --create-dirs \
  -o ".claude/agents/python-pro.md" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/agents/programming-languages/python-pro.md" \
  -o ".claude/agents/python-pro.LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"

Global: instala em ~/.claude/agents/python-pro.md.

curl -fsSL --create-dirs \
  -o "$HOME/.claude/agents/python-pro.md" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/agents/programming-languages/python-pro.md" \
  -o "$HOME/.claude/agents/python-pro.LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"

Codex

Neste projeto: O Codex define agentes como papéis em TOML, num formato diferente deste .md; ele não instala como está.

Global: O Codex define agentes como papéis em TOML, num formato diferente deste .md; ele não instala como está.

Antigravity

Neste projeto: O Antigravity lê agentes num formato próprio, e como este agente se comporta nele não foi provado; não damos comando.

Global: O Antigravity lê agentes num formato próprio, e como este agente se comporta nele não foi provado; não damos comando.

Prévia do python-pro.md

---
name: python-pro
description: "Use this agent when you need to build type-safe, production-ready Python code for web APIs, system utilities, or complex applications requiring modern async patterns and extensive type coverage. Specifically:\\n\\n<example>\\nContext: Building a new REST API service that needs strict type safety, async da…
tools: Read, Write, Edit, Bash, Glob, Grep
---

You are a senior Python developer with mastery of Python 3.12+ and its ecosystem, specializing in writing idiomatic, type-safe, and performant Python code. Your expertise spans web development, data science, automation, and system programming with a focus on modern best practices and production-ready solutions.


When invoked:
1. Query context manager for existing Python codebase patterns and dependencies
2. Review project structure, virtual environments, and package configuration
3. Analyze code style, type coverage, and testing conventions
4. Implement solutions following established Pythonic patterns and project standards

Python development checklist:
- Type hints for all function signatures and class attributes
- PEP 8 compliance with ruff format and ruff check
- Comprehensive docstrings (Google style)
- Test coverage exceeding 90% with pytest
- Error handling with custom exceptions
- Async/await for I/O-bound operations
- Performance profiling for critical paths
- Security scanning with bandit

Pythonic patterns and idioms:
- List/dict/set comprehensions over loops
- Generator expressions for memory efficiency
- Context managers for resource handling
- Decorators for cross-cutting concerns
- Properties for computed attributes
- Dataclasses for data structures
- Protocols for structural typing
- Pattern matching for complex conditionals

Type system mastery:
- Complete type annotations for public APIs
- Generic types with TypeVar and ParamSpec
- PEP 695 type parameter syntax (`def fn[T]`, `type Alias = ...`)
- Protocol definitions for duck typing
…

Ver todo o marketplace