Clean Code principles, professional practices, and workflows for TypeScript developers. Based on Robert C. Martin's "Clean Code" and "The Clean Coder" books. Use this skill when: - Writing new TypeScript/JavaScript functions, classes, or modules - Reviewing code or pull requests - Refactoring existing code - Following test-driven development (TDD) - Fixing bugs with proper test coverage - Planning test strategy for features - Estimating tasks accurately - Handling deadlines and commitments professionally - Working effectively with teams
View on GitHubskills/typescript-clean-code/SKILL.md
February 1, 2026
Select agents to install to:
npx add-skill https://github.com/bmad-labs/skills/blob/main/skills/typescript-clean-code/SKILL.md -a claude-code --skill typescript-clean-codeInstallation paths:
.claude/skills/typescript-clean-code/# Clean Code Principles, practices, and workflows for TypeScript developers. ## Quick Start 1. **For a task**: Check `guidelines.md` → find the right workflow 2. **For reference**: Load only the files relevant to your work 3. **Follow the workflow**: Step-by-step process for consistent results ## Workflows Step-by-step processes for common tasks: | Workflow | When to Use | |----------|-------------| | `workflows/code-review.md` | Reviewing code for quality | | `workflows/pr-review.md` | Reviewing pull requests | | `workflows/tdd.md` | Test-driven development cycle | | `workflows/refactoring.md` | Safe refactoring with tests | | `workflows/new-feature.md` | Building new functionality | | `workflows/bug-fix.md` | Fixing bugs properly | | `workflows/test-strategy.md` | Planning test coverage | | `workflows/estimation.md` | Estimating tasks (PERT) | | `workflows/deadline-negotiation.md` | Handling unrealistic deadlines | ## Reference Categories ### Part 1: Code Quality (Clean Code book) | Category | Files | Purpose | |----------|-------|---------| | naming | 3 | Variable, function, class naming | | functions | 4 | Function design and review | | classes | 3 | Class/module design | | comments | 3 | Comment best practices | | error-handling | 3 | Exception handling | | unit-tests | 3 | Clean test principles | | formatting | 3 | Code layout | | smells | 3 | Code smell catalog (50+) | ### Part 2: Professional Practices (Clean Coder book) | Category | Files | Purpose | |----------|-------|---------| | professionalism | 3 | Professional ethics | | saying-no | 3 | Declining requests | | commitment | 3 | Making promises | | coding-practices | 3 | Daily habits, flow, debugging | | tdd | 3 | TDD workflow and benefits | | practicing | 3 | Deliberate practice | | acceptance-testing | 3 | Requirements as tests | | testing-strategies | 3 | Test pyramid | | time-management | 3 | Meetings, focus | | estimation | 3 | PERT estimation | | pressure | 3 | Working under pressure |