applying-clean-code

General syntax and naming rules to keep the codebase maintainable. Use for all code generation.

16 stars

Best use case

applying-clean-code is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

General syntax and naming rules to keep the codebase maintainable. Use for all code generation.

Teams using applying-clean-code should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/applying-clean-code/SKILL.md --create-dirs "https://raw.githubusercontent.com/diegosouzapw/awesome-omni-skill/main/skills/development/applying-clean-code/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/applying-clean-code/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How applying-clean-code Compares

Feature / Agentapplying-clean-codeStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

General syntax and naming rules to keep the codebase maintainable. Use for all code generation.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Clean Code Principles

## When to use this skill
- Naming variables, functions, and files.
- Deciding on function size and complexity.

## Principles
- **Self-Documenting Names**: `isBookingPending` > `status === 1`.
- **DRY (Don't Repeat Yourself)**: If logic is duplicated, move it to a utility or hook.
- **KISS (Keep It Simple, Stupid)**: Avoid over-engineering complex solutions for simple tasks.
- **Constants**: Use `const` over `let`. Use uppercase constants for magic numbers/IDs: `const MAX_GUESTS = 20;`.

## Naming Conventions
- **Components**: PascalCase (`TourCard.tsx`).
- **Functions/Variables**: camelCase (`handleSubmit`).
- **Interfaces**: PascalCase (`TourInfo`).
- **Files**: kebab-case or PascalCase (stay consistent with project structure).

## Instructions
- **Avoid Comments**: Write code so clear that comments are mostly unnecessary. Only comment the "why," not the "what."

Related Skills

architecture-clean-ddd

16
from diegosouzapw/awesome-omni-skill

Clean Architecture + DDD + Hexagonal - Atoll Tourisme. Use when designing architecture or reviewing code structure.

applying-fsd-architecture

16
from diegosouzapw/awesome-omni-skill

Feature-Sliced Design(FSD) 아키텍처를 적용한 프론트엔드 프로젝트 개발 지원. FSD 레이어, 슬라이스, 세그먼트 구조 설계, 의존성 규칙 적용, 마이그레이션 시 사용.

applying-frontend-patterns

16
from diegosouzapw/awesome-omni-skill

Framework-agnostic frontend component design patterns.

ai-code-cleanup

16
from diegosouzapw/awesome-omni-skill

Remove AI-generated code slop from branches. Use after AI-assisted coding sessions to clean up defensive bloat, unnecessary comments, type casts, and style inconsistencies. Focuses on identifying and removing AI artifacts that degrade code quality.

Advanced React Clean Integration

16
from diegosouzapw/awesome-omni-skill

Integrate React with clean architecture without framework leakage using hooks as adapters and presenters. Use when connecting React to domain logic, designing hook-based DI, or isolating UI from business rules.

Advanced Clean Hexagonal Architecture

16
from diegosouzapw/awesome-omni-skill

Apply Clean Architecture and Hexagonal (Ports & Adapters) patterns for domain isolation and testability. Use when designing system boundaries, creating ports/adapters, or structuring domain-driven applications.

acc-clean-arch-knowledge

16
from diegosouzapw/awesome-omni-skill

Clean Architecture knowledge base. Provides patterns, antipatterns, and PHP-specific guidelines for Clean Architecture and Hexagonal Architecture audits.

codebase-cleanup-refactor-clean

16
from diegosouzapw/awesome-omni-skill

You are a code refactoring expert specializing in clean code principles, SOLID design patterns, and modern software engineering best practices. Analyze and refactor the provided code to improve its...

code-refactoring-refactor-clean

16
from diegosouzapw/awesome-omni-skill

You are a code refactoring expert specializing in clean code principles, SOLID design patterns, and modern software engineering best practices. Analyze and refactor the provided code to improve its...

applying-brand-guidelines

16
from diegosouzapw/awesome-omni-skill

This skill applies consistent corporate branding and styling to all generated documents including colors, fonts, layouts, and messaging

Data Cleaner

16
from diegosouzapw/awesome-omni-skill

Use this skill when the user needs to analyze, clean, or prepare datasets. Helps with listing columns, detecting data types (text, categorical, ordinal, numeric), identifying data quality issues, and cleaning values that don't fit expected patterns. Invoke when users mention data cleaning, data quality, column analysis, type detection, or preparing datasets.

campaign-cleaner-automation

16
from diegosouzapw/awesome-omni-skill

Automate Campaign Cleaner tasks via Rube MCP (Composio). Always search tools first for current schemas.