首页龙虾技能列表 › Friendly Python — 技能工具

Friendly Python — 技能工具

v1.0.0

[自动翻译] Practical guidance for writing, refactoring, and reviewing friendly Python code with a Pythonic, readable, and maintainable style. If the skills set i...

0· 284·0 当前·0 累计
by @psiace (Chojan Shang)·MIT-0
下载技能包
License
MIT-0
最后更新
2026/3/20
安全扫描
VirusTotal
无害
查看报告
OpenClaw
安全
high confidence
This is a documentation-only skill that provides Python style and design guidance; it contains no code to run, requests no credentials, and its requirements match its stated purpose.
评估建议
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 aut...
详细分析 ▾
用途与能力
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.
指令范围
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.
安装机制
No install spec and no code files to execute. This is the lowest-risk category (instruction-only).
凭证需求
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.
持久化与权限
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.
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv1.0.02026/3/20

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.

● 无害

安装命令 点击复制

官方npx clawhub@latest install friendly-python
镜像加速npx clawhub@latest install friendly-python --registry https://cn.clawhub-mirror.com

技能文档

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

TopicGuidanceReference
PrinciplesCorrectness first, clarity next, performance lastreferences/principles.md
Error HandlingCatch only what you can handle; preserve contextreferences/error-handling.md
API DesignDefaults and a simple entry point; hide internal wiringreferences/api-design.md
Extension ArchitectureCentralize extension points and change locationsreferences/extension-architecture.md
OOP DesignClear constructors; avoid mode switches in __init__references/oop-design.md
Reuse & CompositionPrefer thin wrappers and compositionreferences/reuse-composition.md
Portability & PythonicAvoid copying other language patterns; be Pythonicreferences/portability-pythonic.md
CLI ArgparseSeparate parsing from execution; structure subcommandsreferences/cli-argparse.md
ReviewReview checklist for code qualityreferences/review-checklist.md

References

  • Each topic file lists source URLs in its frontmatter urls.
数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务