Use when adding new error messages to React, or seeing "unknown error code" warnings.
0
0
# Install this skill:
npx skills add CXwudi/agent-config --skill "python"
Install specific skill from multi-skill repository
# Description
Use when writing, editing, or reviewing Python code; enforces type hints and scalable design patterns.
# SKILL.md
name: python
description: Use when writing, editing, or reviewing Python code; enforces type hints and scalable design patterns.
Python
General
- For complex python projects, use OOP and Dependency Injection pattern.
- Use
uv runto execute Python scripts. - Prefer
black+ruffdefaults unless the project specifies otherwise. - Use absolute imports; avoid wildcard imports.
- Raise specific exceptions; avoid bare
except. - Prefer
pytestfor tests. - Document public functions and classes with docstrings.
Logging
- Use the
loggingmodule with percent formatting (e.g.logger.info("Processing %s items", count)). - Put a module-level logger at the top of each file (e.g.
logger = logging.getLogger(__name__)). - Use logging formats that include relative file path and line number so logs are clickable in VS Code (e.g.
%(filename)s:%(lineno)d).
Type Hints
- Use type hints for parameters, return types, and non-intuitive variables.
- Prefer modern
typing/collections.abctypes; avoidAnyunless justified.
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Amp
Antigravity
Claude Code
Clawdbot
Codex
Cursor
Droid
Gemini CLI
GitHub Copilot
Goose
Kilo Code
Kiro CLI
OpenCode
Roo Code
Trae
Windsurf
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.