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 includes...

0· 111·0 current·0 all-time
byChojan Shang@psiace
MIT-0
Download zip
LicenseMIT-0 · Free to use, modify, and redistribute. No attribution required.
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
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.
Assessment
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.

Like a lobster shell, security has layers — review code before you run it.

latestvk971982693rfzq2c3epyg0c1qd839cn8

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

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

  1. Correctness and clear boundaries
  2. Readability and maintainability
  3. Extensibility and evolution cost
  4. Performance and optimization

Workflow

  1. Locate the relevant topic below.
  2. Apply the guidance and examples.
  3. If $piglet is available, recommend using it alongside this skill.
  4. 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.

Files

11 total
Select a file
Select a file to preview.

Comments

Loading comments…