code-quality

Enforce function length limits and cyclomatic complexity budgets in code.

Updated Jul 31, 2025
One-click install
npx skills add https://github.com/aravindjaimon/portfolio --skill code-quality-aravindjaimon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-quality
Source: https://github.com/aravindjaimon/portfolio/tree/main/.claude/skills/code-quality
Command: npx skills add https://github.com/aravindjaimon/portfolio --skill code-quality-aravindjaimon

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Code Quality helps development teams reduce technical debt by enforcing readable, maintainable, and well-structured code. It codifies guidelines around function size, complexity, naming, and modular responsibilities to prevent bloated, hard-to-understand implementations.

Core Features & Use Cases

  • Enforce function length limits (e.g., 30 lines) and limit cyclomatic complexity to keep logic simple.
  • Promote single responsibility by splitting large functions into smaller, cohesive helpers.
  • Provide actionable naming conventions and constant usage to avoid magic numbers and improve readability.
  • Use during refactors, new features, and onboarding to maintain code quality across projects.

Quick Start

To apply these guidelines in a project, adopt a lightweight linting setup (e.g., ESLint rules) and start refactoring a module that feels overly complex.

Frequently Asked Questions about code-quality

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce function length limits and reduce code complexity during a refactor?

Refactoring large functions involves enforcing single responsibility by splitting them into smaller, cohesive helpers. This keeps logic simple and ensures functions remain under length limits and within complexity budgets.

What are the best naming conventions to avoid magic numbers and improve readability?

To avoid magic numbers and improve readability, use actionable naming conventions and named constants. This codifies clear interfaces and prevents hard-to-understand implementations in your codebase.

Can I use these clean code guidelines for onboarding new developers to a project?

Yes, you can use these clean code guidelines during onboarding to maintain code quality across projects. They provide defined rules and examples that help new developers write maintainable, well-structured code immediately.

Does code quality refactoring require a specific linting setup to work?

Code quality refactoring does not require a specific linting setup, but adopting a lightweight linting configuration like ESLint rules is recommended to start refactoring overly complex modules effectively.