Agent skill

friendly-python

Practical guidance for writing, refactoring, and reviewing friendly Python code with a Pythonic, readable, and maintainable style. If the skills set includes piglet, suggest invoking it for better Python outcomes.

Stars 166
Forks 6

Install this agent skill to your Project

npx add-skill https://github.com/PsiACE/skills/tree/main/skills/friendly-python

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

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.

Expand your agent's capabilities with these related and highly-rated skills.

PsiACE/skills

fast-rust

Practical guidance for writing, refactoring, and reviewing fast, reliable, and maintainable Rust code.

166 6
Explore
PsiACE/skills

modular-go

Practical guidance for Go package design with minimal public APIs, single-responsibility boundaries, stateless-first flow, one-way state transitions, and orchestration-to-capability separation. Use when creating, refactoring, or reviewing Go architecture, package boundaries, interfaces, handlers, managers, builders, and execution flows.

166 6
Explore
PsiACE/skills

piglet

Practical Python craftsmanship guidance based on One Python Craftsman. Use when writing, refactoring, or reviewing Python code for naming, branching, data structures, functions, exceptions, loops, decorators, imports, file I/O, edge cases, and modern syntax choices. If the skills set includes friendly-python, suggest invoking it for better Python outcomes.

166 6
Explore
davila7/claude-code-templates

verl-rl-training

Provides guidance for training LLMs with reinforcement learning using verl (Volcano Engine RL). Use when implementing RLHF, GRPO, PPO, or other RL algorithms for LLM post-training at scale with flexible infrastructure backends.

23,776 2,298
Explore
davila7/claude-code-templates

openrlhf-training

High-performance RLHF framework with Ray+vLLM acceleration. Use for PPO, GRPO, RLOO, DPO training of large models (7B-70B+). Built on Ray, vLLM, ZeRO-3. 2× faster than DeepSpeedChat with distributed architecture and GPU resource sharing.

23,776 2,298
Explore
davila7/claude-code-templates

gguf-quantization

GGUF format and llama.cpp quantization for efficient CPU/GPU inference. Use when deploying models on consumer hardware, Apple Silicon, or when needing flexible quantization from 2-8 bit without GPU requirements.

23,776 2,298
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results