Skip to main content

meaningful-identifiers

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.

Datos de origen

Repositorio
hashintel/hash
Última actividad en el origen
1 de septiembre de 2026 a las 07:54
Idioma detectado de SKILL.md
inglés
Estrellas
1666
Forks
123

Opciones de instalación

De forma predeterminada está seleccionado el prompt que primero revisa el origen. Puedes cambiar a un comando directo o descargar una copia local.

Revisa los archivos de origen

Lee SKILL.md y los archivos complementarios que muestra SkillsMP antes de decidir si quieres instalarlo.

Mostrando SKILL.md

SKILL.md
Instrucciones de origen · Vista previa de solo lectura
name
meaningful-identifiers
description
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.
license
AGPL-3.0
metadata
{"triggers":{"type":"domain","enforcement":"suggest","priority":"low","keywords":["naming","rename","identifier","variable name"]}}
# Meaningful identifiers Callback parameters and local variables must describe the value they hold. ## Rules - Name array callback params after the element's domain type: `batches.map((batch) => …)`, `bins.filter((bin) => …)`, `checkpoints.find((checkpoint) => …)`. Never reuse `right`/`left`/`column` for values that are not sort operands or table columns. - Name `reduce` accumulators after what they accumulate: `sum`/`total` for a running total, not `step`. - Name percentile/ratio arguments for the quantity they represent (`percentileRank`, `multiplier`), not an unrelated domain noun. ## Leave correct uses untouched - Sort comparators: `(left, right) => left - right`. - `(column) => column.key` over a real `.columns` array. - `for (const row of …Rows)` where the items are genuinely rows.
Ver en GitHub