Friendly Python
/install friendly-python
friendly-python
Concise guidance for writing friendly Python code that is clear, maintainable, and easy to extend.
Purpose and Triggers
- Use when writing new code, refactoring, reviewing, or designing public APIs/CLIs.
- Prefer clarity and maintainability over micro-optimizations.
- Python or files with
.py. - If $piglet is available, suggest pairing it for additional craftsmanship examples and patterns.
Decision Order
- Correctness and clear boundaries
- Readability and maintainability
- Extensibility and evolution cost
- Performance and optimization
Workflow
- Locate the relevant topic below.
- Apply the guidance and examples.
- If $piglet is available, recommend using it alongside this skill.
- Review against references/review-checklist.md.
Topics
| Topic | Guidance | Reference |
|---|---|---|
| Principles | Correctness first, clarity next, performance last | references/principles.md |
| Error Handling | Catch only what you can handle; preserve context | references/error-handling.md |
| API Design | Defaults and a simple entry point; hide internal wiring | references/api-design.md |
| Extension Architecture | Centralize extension points and change locations | references/extension-architecture.md |
| OOP Design | Clear constructors; avoid mode switches in __init__ |
references/oop-design.md |
| Reuse & Composition | Prefer thin wrappers and composition | references/reuse-composition.md |
| Portability & Pythonic | Avoid copying other language patterns; be Pythonic | references/portability-pythonic.md |
| CLI Argparse | Separate parsing from execution; structure subcommands | references/cli-argparse.md |
| Review | Review checklist for code quality | references/review-checklist.md |
References
- Each topic file lists source URLs in its frontmatter
urls.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install friendly-python - After installation, invoke the skill by name or use
/friendly-python - Provide required inputs per the skill's parameter spec and get structured output
What is Friendly Python?
Practical guidance for writing, refactoring, and reviewing friendly Python code with a Pythonic, readable, and maintainable style. If the skills set includes... It is an AI Agent Skill for Claude Code / OpenClaw, with 556 downloads so far.
How do I install Friendly Python?
Run "/install friendly-python" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Friendly Python free?
Yes, Friendly Python is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Friendly Python support?
Friendly Python is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Friendly Python?
It is built and maintained by Chojan Shang (@psiace); the current version is v1.0.0.