clean-code

Identifies naming, structure and abstraction problems in TypeScript codebases to improve maintainability.

Updated Feb 16, 2026
One-click install
npx skills add https://github.com/wewetv1987-cell/openclaw-backup --skill clean-code-wewetv1987-cell
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: clean-code
Source: https://github.com/wewetv1987-cell/openclaw-backup/tree/main/skills/clean-code-review
Command: npx skills add https://github.com/wewetv1987-cell/openclaw-backup --skill clean-code-wewetv1987-cell

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It helps developers write and review cleaner code by catching unclear names, oversized functions, deep nesting, over-engineering, and unsafe edits before they spread.

Core Features & Use Cases

  • Naming rules for variables, functions, booleans, constants, classes, and enums.
  • Function and structure guidance for guard clauses, parameter objects, composition, colocation, and consistent return types.
  • Anti-pattern catalogs and pre-edit safety checks for code reviews, refactors, and team standards.
  • Use it when preparing a pull request, cleaning up legacy code, or creating engineering conventions for a TypeScript codebase.

Quick Start

Use the clean-code skill to review this file and suggest the smallest safe refactor that improves readability and maintainability.

Frequently Asked Questions about clean-code

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

FAQPage Schema
How do I review TypeScript code for anti-patterns before a pull request?▼

You can refactor legacy TypeScript code by applying small single-purpose functions, consistent naming, and discriminated unions. This skill identifies structural problems and suggests the smallest safe refactor to improve maintainability.

What's the best way to establish team coding standards for a TypeScript codebase?▼

Establishing team coding standards requires setting rules for naming, function structure, and pre-edit safety checks. This skill provides anti-pattern catalogs and structural guidance to help create consistent engineering conventions.

How do I use guard clauses and discriminated unions to reduce code nesting?▼

Using guard clauses and discriminated unions reduces deep nesting by handling edge cases early and enforcing type safety. This skill guides you in applying these patterns to ensure consistent return types and smaller functions.

Can I use this clean code skill to check dependency impact before editing modules?▼

Yes, you can use this skill to perform pre-edit safety checks by evaluating dependency impacts before modifying modules. It ensures your refactoring corrections do not introduce unsafe edits or break existing abstractions.

Why does my TypeScript code have maintainability issues despite passing linting?▼

Your TypeScript code may have maintainability issues due to unclear names, over-engineering, or inconsistent return types that basic linting misses. This skill catches abstraction problems and structural flaws to improve overall code quality.