Friendly Python for Openclaw

A comprehensive guide for AI agents to write, refactor, and review Python code with a focus on readability and maintainability.

psiace
v1.0.0
Mar 20, 2026
0
1.5k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install friendly-python

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install friendly-python using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Friendly Python?

Friendly Python is a specialized module within the Openclaw Skills ecosystem designed to move beyond basic syntax and toward high-level craftsmanship. It provides AI coding agents with a structured framework for making architectural decisions that prioritize long-term maintainability and clarity over premature optimization. By applying this skill, developers ensure that their Pythonic output adheres to industry best practices, making codebases easier to extend and review.

This skill is particularly effective when used in collaborative environments where clear boundaries and sensible defaults are required for public APIs and CLIs. It transforms the way agents approach refactoring by enforcing a specific decision order that favors correctness and readability, ensuring that every line of code serves a clear, maintainable purpose.

Friendly Python Use Cases

  • Designing public APIs and CLI tools with clean entry points and hidden internal logic.
  • Refactoring legacy Python scripts into modern, readable, and Pythonic architectures.
  • Performing automated code reviews using a structured checklist to ensure quality control.
  • Developing extensible software systems that minimize the cost of future evolution.

How Friendly Python Works

  1. Identify the specific Python task, such as writing new functions, refactoring OOP structures, or designing CLI interfaces.
  2. Consult the relevant topic guide within the skill to apply principles like correctness-first and context-preserving error handling.
  3. Integrate with supplementary tools like piglet if available to enhance the depth of craftsmanship examples.
  4. Validate the resulting code against the integrated review checklist to ensure it meets the Openclaw Skills quality standard.

Friendly Python Setup

To integrate this skill into your local Openclaw Skills environment, clone the repository and include the directory in your agent's skill path:

# Clone the repository
git clone https://github.com/openclaw/skills-friendly-python.git

# Navigate to the directory
cd skills-friendly-python

# Reference the path in your AI agent configuration

Friendly Python Data Schema & Taxonomy

The skill organizes its technical guidance across several specialized markdown files, ensuring a modular approach to Python development:

File Path Description Key Focus
references/principles.md Core Philosophy Correctness, clarity, and performance hierarchy.
references/error-handling.md Exception Logic Safe context preservation and specific catching.
references/api-design.md Interface Design Simple entry points and internal wiring isolation.
references/review-checklist.md Quality Control Final verification steps for code maintainability.

Friendly Python Advanced Features

  • Multi-tool synergy: Automatically suggests invoking piglet for advanced pattern matching and craftsmanship.
  • Extension Architecture: Provides specific guidance on centralizing extension points to minimize the impact of future changes.
  • Portability enforcement: Actively prevents the use of non-Pythonic patterns often imported from other programming languages.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*