skills/smithery.ai/applying-clean-code

applying-clean-code

Installation
SKILL.md

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).
Installs
1
First Seen
Mar 30, 2026
applying-clean-code from smithery.ai