Loading...
Loading...
Clean Code principles, professional practices, and workflows for TypeScript developers. Based on Robert C. Martin's "Clean Code" and "The Clean Coder" books. IMPORTANT: When this skill is active, always load and consult the reference files (rules.md, examples.md) before giving advice or writing code. Reference content takes precedence over general knowledge. Use this skill when: - Writing TypeScript/JavaScript code - 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
npx skill4agent add bmad-labs/skills typescript-clean-coderules.mdexamples.mdreferences/references/functions/rules.mdreferences/[topic]/examples.mdguidelines.mdrules.mdexamples.md| Workflow | When to Use |
|---|---|
| Reviewing code for quality |
| Reviewing pull requests |
| Test-driven development cycle |
| Safe refactoring with tests |
| Building new functionality |
| Fixing bugs properly |
| Planning test coverage |
| Estimating tasks (PERT) |
| Handling unrealistic deadlines |
workflow.mdsteps/step-01-init.mdsteps/stepsCompletedstep-01-init.mdstep-01b-continue.md| 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+) |
| 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 |
| collaboration | 3 | Working with teams |
references/formatting/rules.mdreferences/naming/rules.mdreferences/classes/rules.mdreferences/functions/rules.mdreferences/functions/rules.mdreferences/naming/rules.mdreferences/smells/rules.mdreferences/unit-tests/rules.mdreferences/professionalism/rules.mdreferences/saying-no/rules.mdreferences/commitment/rules.mdreferences/estimation/rules.mdreferences/pressure/rules.mdguidelines.mdrules.mdexamples.mdworkflow/*.md