| name | python-scripting |
| description | Build production-quality Python scripts with strict standards for typing, testing, tooling, architecture, and review hygiene. |
Python Scripting Skill
Create high-quality Python scripts and small Python utilities with strict engineering discipline.
Required Reference Loading
Always load these before implementation:
references/coding-standards.md
references/testing-standards.md
references/tooling.md
references/architecture-patterns.md
references/code-review-checklist.md
If templates are needed, load:
templates/module-template.py
templates/cli-template.py
templates/pyproject-template.toml
Execution Workflow
- Clarify intent: module, CLI, automation script, or mini package.
- Pick layout from
architecture-patterns.md.
- Generate code from the matching template.
- Enforce coding rules (typing, docstrings, error handling, logging).
- Add tests using
pytest patterns and fixtures.
- Configure tooling from
tooling.md in pyproject.toml and hooks.
- Run quality gates mentally (ruff, mypy, tests, coverage).
- Output only ready-to-run files/commands.
Quality Bar (Non-Negotiable)
- Full type hints.
- No bare
except.
- Structured logging, no stray prints in libraries.
- Deterministic tests with fixtures.
- Coverage gate enabled.
- Lint + type-check clean.
Tooling & Accuracy
- Use Context7 MCP to verify third-party library APIs before coding.
- Use web search/scrape if behavior is uncertain or version-sensitive.
- Never guess signatures.
Output Contract
When asked to create scripts/projects, produce:
- File tree
- Complete file contents
- Test files
- Tooling config (
pyproject.toml, hooks when relevant)
- Run commands (
ruff, mypy, pytest, coverage)