clean-code

Review code for naming, formatting, code smells, and SOLID violations.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/fuxiang123/unity-harness --skill clean-code-fuxiang123
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clean-code
Source: https://github.com/fuxiang123/unity-harness/tree/main/assets/github/skills/software-patterns/references/clean-code
Command: npx skills add https://github.com/fuxiang123/unity-harness --skill clean-code-fuxiang123

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides clear, language-agnostic guidance to identify and fix code smells, poor naming, and structural issues that reduce readability and increase maintenance costs. Helps teams and reviewers make small, safe improvements that compound into long-term codebase health.

Core Features & Use Cases

  • Guided Code Reviews: Checklists and heuristics for naming, functions, formatting, and tests to use during reviews.
  • Refactoring Recommendations: Concrete suggestions for extracting methods, reducing duplication, and applying SOLID principles without changing behavior.
  • Teaching and Onboarding: Bite-sized principles and examples to train developers on clean coding practices in C#, Unity projects, and other languages.
  • Use Case: During a pull request review, identify naming issues, single-responsibility violations, and suggest minimal refactor commits plus test guidance.

Quick Start

Ask the clean-code reference to review a code snippet and list the top 5 naming, function, and formatting issues with one-line suggested fixes.

Frequently Asked Questions about clean-code

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

FAQPage Schema
How do I identify code smells and SOLID violations during a code review?

To identify code smells and SOLID violations during code reviews, use guided checklists and heuristics for naming, functions, and formatting. This process detects structural issues and single-responsibility violations, supplying concrete refactor suggestions to improve maintainability.

What is the best way to refactor code without changing existing behavior?

The best way to refactor code without changing behavior is to apply concrete suggestions like extracting methods and reducing duplication. This approach ensures safe, minimal improvements that fix structural issues while preserving the original functional logic.

Does this clean code guidance work for C#, Java, Python, and Unity projects?

Yes, clean code guidance applies to C#, Java, Python, and Unity projects. It provides language-agnostic principles and bite-sized examples to train developers, ensuring broad applicability across different codebases during design discussions and refactoring sessions.

How do I fix poor naming and formatting issues in my codebase?

To fix poor naming and formatting issues, analyze your code snippets against established heuristics. This reveals the top naming and formatting problems, providing one-line suggested fixes to instantly boost code quality and readability.