rule-clean-code

Enforce clean-code standards during feature implementation, refactoring, and code reviews.

Updated Jan 25, 2026
One-click install
npx skills add https://github.com/FelipePepe/TeamHub --skill rule-clean-code
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rule-clean-code
Source: https://github.com/FelipePepe/TeamHub/tree/main/.agents/skills/rule-clean-code
Command: npx skills add https://github.com/FelipePepe/TeamHub --skill rule-clean-code

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Engineering standards for clean code, refactoring and architecture to improve long-term maintainability and consistency across the repository.

Core Features & Use Cases

  • Enforces practices such as pure functions where appropriate, avoidance of magic numbers, and clear separation of frontend/backend concerns.
  • Provides patterns and rules to reduce code smells, improve readability, and guide systematic refactoring (e.g., replacing complex switches with Strategy).
  • Use Case: during feature implementation, code reviews, or architectural changes, apply these standards to ensure a durable, scalable codebase.

Quick Start

Follow the clean-code guidelines during feature implementation, refactoring, and code reviews to ensure long-term maintainability.

Frequently Asked Questions about rule-clean-code

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

FAQPage Schema
How do I enforce clean code standards during code reviews to reduce technical debt?

Apply clean code standards during code reviews to ensure consistency and reduce technical debt by enforcing pure functions, eliminating magic numbers, and maintaining clear frontend and backend separation. This systematic approach improves long-term maintainability across the repository.

What is the best way to refactor complex switch statements into a more maintainable pattern?

The best way to refactor complex switch statements is by applying the Strategy pattern, replacing conditional logic with distinct strategy classes. This clean code refactoring approach reduces code smells, improves readability, and ensures the codebase remains scalable and maintainable.

How do I avoid magic numbers when implementing new features?

Avoid magic numbers during feature implementation by extracting them into named constants or configuration variables. Enforcing this clean code practice ensures consistency, improves readability, and reduces technical debt by making the codebase immediately understandable to other engineers.

Can I use clean code guidelines for both frontend and backend architectural changes?

Yes, you can use clean code guidelines during architectural changes to enforce a clear separation of frontend and backend concerns. Applying these standards ensures a durable and scalable codebase by maintaining structural consistency across the entire repository.

When do I need to apply pure functions in software engineering refactoring?

You need to apply pure functions during software engineering refactoring where appropriate to eliminate side effects and improve predictability. Enforcing this clean code standard reduces code smells and ensures long-term maintainability and consistency across the repository.