← 返回 Skills 市场
Friendly Python
作者
Chojan Shang
· GitHub ↗
· v1.0.0
· MIT-0
556
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install friendly-python
功能描述
Practical guidance for writing, refactoring, and reviewing friendly Python code with a Pythonic, readable, and maintainable style. If the skills set includes...
使用说明 (SKILL.md)
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.
安全使用建议
This skill is documentation-only and appears safe: it won't install software or request secrets. Before installing, you may want to skim the reference files to ensure the guidance matches your coding standards. Note that example code includes illustrative calls like os.getenv(...) — those are examples only and do not mean the skill will read your environment. Also, the skill will be available for the agent to invoke autonomously (normal behavior for skills); if you are uncomfortable with any automatic edits, control when the agent is allowed to run skills or review changes before applying them.
功能分析
Type: OpenClaw Skill
Name: friendly-python
Version: 1.0.0
The 'friendly-python' skill bundle is a collection of best practices and coding standards for Python development. It provides guidance on API design, error handling, and CLI structure, with references pointing to legitimate technical blog posts (frostming.com). The instructions for the AI agent to suggest the 'piglet' skill are standard cross-skill recommendations and do not exhibit malicious intent or prompt-injection attacks. No indicators of data exfiltration, malicious execution, or obfuscation were found in the code snippets or documentation (SKILL.md, agents/openai.yaml, and various reference files).
能力评估
Purpose & Capability
Name, description, and included files are all focused on Python readability, API/CLI design, error handling, and review checklists. Nothing requested (no env vars, binaries, or installs) is out of line with providing authoring/review guidance.
Instruction Scope
SKILL.md contains only guidance and references local markdown files; it does not instruct the agent to read system files, call external endpoints, or collect/transmit secrets. It references recommending another skill ($piglet) if available, which is a benign cross-skill suggestion.
Install Mechanism
No install spec and no code files to execute. This is the lowest-risk category (instruction-only).
Credentials
The skill itself requires no environment variables. Some example snippets in the reference documents show usage of os.getenv(...) for illustrative purposes (e.g., USERNAME/PASSWORD), but these are examples and not runtime requirements of the skill.
Persistence & Privilege
always is false and the skill does not request elevated or persistent system presence. Model invocation is allowed (default) which is normal for skills; there is no evidence the skill modifies other skills or system settings.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install friendly-python - 安装完成后,直接呼叫该 Skill 的名称或使用
/friendly-python触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
friendly-python 1.0.0 – First release
- Introduces concise, practical guidance for writing, refactoring, and reviewing friendly, maintainable Python code.
- Outlines a clear decision order: correctness, readability, extensibility, performance.
- Provides topic-based advice covering error handling, API and OOP design, extension patterns, Pythonic style, CLI design, and code review.
- Recommends pairing with the piglet skill for enhanced craftsmanship, if available.
- Includes direct references to detailed topic and review checklist files.
元数据
常见问题
Friendly Python 是什么?
Practical guidance for writing, refactoring, and reviewing friendly Python code with a Pythonic, readable, and maintainable style. If the skills set includes... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 556 次。
如何安装 Friendly Python?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install friendly-python」即可一键安装,无需额外配置。
Friendly Python 是免费的吗?
是的,Friendly Python 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Friendly Python 支持哪些平台?
Friendly Python 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Friendly Python?
由 Chojan Shang(@psiace)开发并维护,当前版本 v1.0.0。
推荐 Skills