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.

소스 정보

저장소
hashintel/hash
최근 소스 활동
2026년 9월 1일 07:54
감지된 SKILL.md 언어
영어
스타
1,666
포크
123

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
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.
GitHub에서 보기