What problem does it solve?
TypeScript codebases often accumulate vague variable names like step, left, or column in callbacks and loops, making code harder to read and review. This Skill provides clear naming rules so callback parameters and local variables describe the values they actually hold.
Core Features & Use Cases
- Callback Parameter Naming: Ensures array callback parameters in
map, filter, and find are named after the element's domain type, such as batches.map((batch) => ...).
- Accumulator Naming: Requires
reduce accumulators to be named after what they accumulate, like sum or total, instead of generic names like step.
- Correct-Use Preservation: Leaves legitimate names untouched, such as
(left, right) in sort comparators or column over a real .columns array.
- Use Case: When refactoring a data-processing module, apply these rules to rename misleading identifiers in loops and callbacks without breaking correct existing conventions.
Quick Start
Review my TypeScript file and rename any callback parameters or local variables that do not describe the values they hold.