function-design
CommunityDefine clean, consistent Python function design.
Software Engineering#python#coding-standards#code-review#api-design#clean-code#async-patterns#function-design
Authorlibertininick
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill codifies Python function design conventions for this codebase. Apply when writing or reviewing functions including signatures, parameters, return types, and async patterns.
Core Features & Use Cases
- Explicit dependencies: Pass as parameters, no global state
- Single Responsibility: One function = one task
- Pure Functions When Possible: Return new values, don't mutate inputs
- Guard Clauses: Validate early, return/raise immediately
- Return Type Stability: Same type regardless of input
- Exceptions Over None for Errors: Reserve None for "not found" only
- Command-Query Separation: Action OR data, not both
- Keep Functions Small and Focused: Composed of focused helpers
Quick Start
Use this skill to review Python functions for adherence to the conventions above. For example, ensure each function has a single responsibility, uses explicit dependencies, and returns a stable type.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: function-design Download link: https://github.com/libertininick/chain-reaction/archive/main.zip#function-design Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.