← ClaudeAtlas

ts-abbr-skilllisted

Use when writing or refactoring TypeScript variable, parameter, function, or class names — applies a configurable abbreviation dictionary (business→biz, context→ctx, configuration→cfg, etc.) so generated and refactored code matches the team's naming conventions.
aShu-guo/ts-abbr-skill · ★ 0 · Code & Development · score 70
Install: claude install-skill aShu-guo/ts-abbr-skill
# TS Abbreviation Skill ## Overview Generated TypeScript code tends to use full, verbose English words for local names (`business`, `context`, `configuration`). This skill applies a shared abbreviation dictionary so naming stays short and consistent, in both newly generated code and refactors of existing code. ## Config and Dictionary Lookup Order Before naming anything, resolve config and dictionary by merging, most specific first: 1. Project override: `.ts-abbr-skill.local.json` in the current repo root (if present) — entries here are merged on top of the default dictionary/config, not a full replacement. 2. Default config/dictionary shipped with this skill: `config/default.config.json`, `dictionary/default.json`. Default config (`config/default.config.json`): ```json { "$schema": "./schema.json", "scope": ["variable", "parameter"], "exported": false } ``` - `scope`: which kinds of identifiers this applies to. Possible values: `variable`, `parameter`, `localFunction`, `class`. Only apply abbreviations to kinds listed here. - `exported`: whether exported/public symbols (exported consts, public class members, public function names) are in scope. Default `false` — never abbreviate a symbol that's part of a public API unless the project config explicitly sets `exported: true`. If the project has no `.ts-abbr-skill.local.json`, use the defaults as-is. ## Mode 1: Generating New Code When about to name a new local variable, parameter, (optionally) local function, o