clean-code-ch03-functions

Community

Keep functions small, focused, and readable.

Authorhatlesswizard
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Functions often become bloated, hard to read, and difficult to maintain as codebases grow. This skill provides a practical, checklist-driven approach to enforce small size, single responsibility, proper abstraction, and other best practices from Clean Code Ch3.

Core Features & Use Cases

  • Size & SRP enforcement: checks for 20 lines or fewer and a single responsibility.
  • Abstraction & naming discipline: ensures consistent abstraction levels and descriptive names.
  • CQS & error handling patterns: guidance on command-query separation and exception-based error handling.
  • Code review & refactoring support: provides a repeatable process for code reviews and incremental improvements.
  • Use case: When reviewing a function in PRs, apply the checklist to decide if it is clean or needs refactoring.

Quick Start

Run the function-quality-checks tool on a target codebase and follow the on-screen checklist prompts.

Dependency Matrix

Required Modules

None required

Components

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: clean-code-ch03-functions
Download link: https://github.com/hatlesswizard/clean-code-skills/archive/main.zip#clean-code-ch03-functions

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.