python
Python coding guidelines and best practices. Use when writing, reviewing, or refactoring Python code. Enforces PEP 8 style, syntax validation via py_compile, unit test execution, modern Python versions only (no EOL), uv for dependency management when available, and idiomatic Pythonic patterns.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/adarshdigievo/pythonWhat This Skill Does
The Python skill is a comprehensive development companion designed to maintain high-quality, idiomatic, and secure code. It acts as an automated mentor that enforces PEP 8 styling conventions, validates syntax, and ensures modern Python standards are met. By integrating seamlessly with your workflow, the skill helps you move beyond basic coding to writing maintainable, professional-grade software. It manages dependencies using the ultra-fast 'uv' tool, verifies code structure with linting utilities, and ensures your testing suite is robust.
Installation
To integrate this agent skill into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/adarshdigievo/python
Use Cases
- Refactoring: Transforming legacy code into modern, performant, and readable Pythonic patterns.
- Project Setup: Initializing new projects with correct structure, dependency management, and type hinting.
- Code Reviews: Automatically identifying anti-patterns such as mutable defaults, bare exceptions, or improper string concatenation.
- CI/CD Preparation: Automating syntax validation and test execution steps before commits are finalized.
Example Prompts
- "Review this function for Pythonic improvements and ensure it complies with PEP 8 and type hint standards."
- "Help me refactor this script to replace os.path with pathlib and use context managers for file handling."
- "Set up a new project structure for me using uv for dependency management and initialize a pytest testing suite."
Tips & Limitations
- Version Strictness: This skill strictly enforces Python 3.10+, meaning it will reject EOL or deprecated syntax. Ensure your project environment is updated accordingly.
- Tooling: While it supports standard pip, performance is significantly better when 'uv' is installed on your system. We recommend installing it to take advantage of faster virtual environment management.
- Review: Always perform a manual final review on critical business logic, even when the skill provides automated refactors. The skill is optimized for structure and style, but final architectural decisions should remain human-led.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-adarshdigievo-python": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, file-write, code-execution