clean-code
Installation
SKILL.md
Clean Code for TypeScript/JavaScript
Practical patterns for writing and refactoring clean, maintainable TypeScript/JavaScript code.
Code Smell Detection
Naming Smells
| Smell | Example | Fix |
|---|---|---|
| Single-letter names | const d = new Date() |
const createdAt = new Date() |
| Abbreviations | const usrMgr = ... |
const userManager = ... |
| Generic names | data, info, temp, result |
Name by what it represents |
| Misleading names | userList (but it's a Set) |
users or userSet |
| Encoding types | strName, arrItems |
name, items |