What problem does it solve?
The machina-python skill codifies and enforces the highest coding standards across the MachinaMeta workspace, eliminating ambiguity and drift by ensuring strict type hints, modern Python syntax, and security-conscious patterns.
Core Features & Use Cases
- Strict typing enforcement: requires complete type hints on all public APIs and returns concrete types, with abstract input types where appropriate.
- Modern Python compliance: promotes Python 3.10+ syntax (| unions, built-in generics) and removes deprecated typing constructs.
- Static analysis integration: integrates with mypy and Ruff to catch issues early during development, enabling continuous quality checks.
- Security-first workflow: enforces environment-based secrets, input validation, and avoidance of hard-coded credentials in code.
- Use Case: A team refactors a legacy module; the skill ensures all functions are annotated, keyword-only, and asynchronously safe, with automated checks.
Quick Start
Run the Hyper-perfect Python standards against new modules using the in-repo tooling (e.g., Just commands or CI) to validate type hints, syntax, and security policies.