Naming guidance for callback parameters and local variables in TypeScript. Use when writing or refactoring loops, array callbacks (map/filter/find/reduce), or local accumulators.
74
93%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Callback parameters and local variables must describe the value they hold.
batches.map((batch) => …), bins.filter((bin) => …),
checkpoints.find((checkpoint) => …). Never reuse right/left/column
for values that are not sort operands or table columns.reduce accumulators after what they accumulate: sum/total for a
running total, not step.percentileRank, multiplier), not an unrelated domain noun.(left, right) => left - right.(column) => column.key over a real .columns array.for (const row of …Rows) where the items are genuinely rows.a6f5727
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.