mcpField
F
friendly-python

friendly-python

github.com/psiaceDevelopment173142 installsUpdated 10w ago
Repository

About friendly-python

A skill offering concise guidance for writing, refactoring, reviewing, and designing Python code and APIs. It prioritizes correctness, clarity, maintainability, and extension over premature optimization.

Key features

  1. 01Correctness-first design priorities
  2. 02Guidance for APIs and CLIs
  3. 03Error-handling and testing practices
  4. 04Architecture and composition advice
  5. 05Topic-specific reference files
  6. 06Review checklist

Use cases

  1. 01Writing new Python code
  2. 02Refactoring or reviewing Python files
  3. 03Designing public APIs and CLIs
  4. 04Structuring tests and application architecture

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/psiace/skills --skill friendly-python

After installing, type/friendly-pythonin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

agents/
openai.yaml
references/
api-design.md
application-architecture.md
cli-argparse.md
error-handling.md
extension-architecture.md
kill-ai-slop.md
oop-design.md
portability-pythonic.md
principles.md
python-conventions.md
reuse-composition.md
review-checklist.md
testing.md

Details

From the project README

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
Python ConventionsKeep signatures, naming, package APIs, and resources explicitreferences/python-conventions.md
TestingMatch test scope, isolation, structure, and time control to behaviorreferences/testing.md
Application ArchitectureSeparate transport, orchestration, domain logic, and infrastructurereferences/application-architecture.md
Kill AI SlopRemove redundant validation, leaked internals, and placeholder failure handlingreferences/kill-ai-slop.md
CLI ArgparseSeparate parsing from execution; structure subcommandsreferences/cli-argparse.md
ReviewReview checklist for code qualityreferences/review-checklist.md

References

  • Topic files must list source URLs in frontmatter urls unless an explicit exception applies.

Comments

Markdown supported