{"id":51441836,"url":"https://github.com/ashu-guo/ts-abbreviation-skill","last_synced_at":"2026-07-05T13:00:17.487Z","repository":{"id":369444146,"uuid":"1289836273","full_name":"aShu-guo/ts-abbreviation-skill","owner":"aShu-guo","description":"Claude Code skill — enforce a shared abbreviation dictionary (business→biz, context→ctx) on TypeScript variable \u0026 parameter naming","archived":false,"fork":false,"pushed_at":"2026-07-05T11:42:49.000Z","size":1002,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-05T12:11:46.139Z","etag":null,"topics":["abbreviation","claude-code","claude-skill","code-quality","developer-tools","naming-convention","ts-morph","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aShu-guo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-07-05T09:06:44.000Z","updated_at":"2026-07-05T11:42:51.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/aShu-guo/ts-abbreviation-skill","commit_stats":null,"previous_names":["ashu-guo/ts-abbreviation-skill"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/aShu-guo/ts-abbreviation-skill","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aShu-guo%2Fts-abbreviation-skill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aShu-guo%2Fts-abbreviation-skill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aShu-guo%2Fts-abbreviation-skill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aShu-guo%2Fts-abbreviation-skill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aShu-guo","download_url":"https://codeload.github.com/aShu-guo/ts-abbreviation-skill/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aShu-guo%2Fts-abbreviation-skill/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35154748,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-05T02:00:06.290Z","response_time":100,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["abbreviation","claude-code","claude-skill","code-quality","developer-tools","naming-convention","ts-morph","typescript"],"created_at":"2026-07-05T13:00:16.278Z","updated_at":"2026-07-05T13:00:17.445Z","avatar_url":"https://github.com/aShu-guo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ts-abbr-skill\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/logo.png\" alt=\"ts-abbr-skill\" width=\"480\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"README.zh-CN.md\"\u003e🇨🇳 简体中文\u003c/a\u003e |\n  \u003ca href=\"README.md\"\u003e🇺🇸 English\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/aShu-guo/ts-abbreviation-skill/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/v/release/aShu-guo/ts-abbreviation-skill?style=for-the-badge\u0026color=blue\" alt=\"GitHub Release\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/ts-abbr-skill\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/ts-abbr-skill?style=for-the-badge\u0026logo=npm\u0026color=red\" alt=\"npm version\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/aShu-guo/ts-abbreviation-skill/blob/main/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/aShu-guo/ts-abbreviation-skill?style=for-the-badge\u0026color=green\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/ts-abbr-skill\"\u003e\u003cimg src=\"https://img.shields.io/npm/dm/ts-abbr-skill?style=flat-square\u0026label=downloads\" alt=\"npm downloads\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/aShu-guo/ts-abbreviation-skill/stargazers\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/aShu-guo/ts-abbreviation-skill?style=flat-square\u0026logo=github\" alt=\"GitHub stars\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nAn agent skill that makes generated/refactored TypeScript naming follow a shared abbreviation dictionary (`business` → `biz`, `context` → `ctx`, `configuration` → `cfg`, ...) instead of verbose full words. Works with **Claude Code**, **Codex**, and [any agent supported by the `skills` CLI](https://github.com/vercel-labs/skills).\n\n## Install\n\n### Option A — universal installer (recommended)\n\nWorks with Claude Code, Codex, and 70+ other agents via [`skills`](https://github.com/vercel-labs/skills):\n\n```bash\nnpx skills add aShu-guo/ts-abbreviation-skill\n```\n\n### Option B — dedicated installer\n\n```bash\nnpx ts-abbr-skill\n```\n\nYou'll be asked which agent(s) to install for (Claude Code, Codex — more than one can be selected) and where:\n\n| Agent | Project path | Global path |\n|-------|--------------|-------------|\n| Claude Code | `./.claude/skills/ts-abbr-skill/` | `~/.claude/skills/ts-abbr-skill/` |\n| Codex | `./.agents/skills/ts-abbr-skill/` | `~/.codex/skills/ts-abbr-skill/` |\n\nProject scope is recommended for team-shared conventions — commit it to your repo. Global scope applies to all your projects.\n\nRe-running the installer is safe: your customized `config/default.config.json` and `dictionary/default.json` at the target are never overwritten.\n\n## What it does\n\n- **When generating new code**: the agent checks the abbreviation dictionary before naming local variables/parameters and uses the abbreviated form when a match exists.\n- **When refactoring existing code**: batch renames go through an AST-aware rename script (`ts-morph`-based), never plain-text find/replace, so cross-file references stay correct. A `tsc --noEmit` check is required afterward before the rename is considered done.\n\nSee [`skills/ts-abbr-skill/SKILL.md`](skills/ts-abbr-skill/SKILL.md) for the full rules the agent follows.\n\n## Built-in Dictionary (excerpt)\n\n| Full word | Abbreviation |\n|-----------|--------------|\n| business | biz |\n| context | ctx |\n| configuration / config | cfg |\n| parameter / parameters | param / params |\n| response | res |\n| request | req |\n| temporary | tmp |\n| reference | ref |\n| element | el |\n| repository | repo |\n| database | db |\n| application | app |\n| ... | ... |\n\nFull dictionary: [`skills/ts-abbr-skill/dictionary/default.json`](skills/ts-abbr-skill/dictionary/default.json)\n\n## Customize\n\n**Scope** — edit `\u003cinstall target\u003e/config/default.config.json`:\n\n```json\n{ \"scope\": [\"variable\", \"parameter\"], \"exported\": false }\n```\n\n`scope` accepts `variable`, `parameter`, `localFunction`, `class`. `exported` controls whether public/exported symbols are eligible (default `false`).\n\n**Project-specific additions** — add `.ts-abbr-skill.local.json` at your repo root; entries are merged on top of the default dictionary:\n\n```json\n{\n  \"warehouse\": \"wh\",\n  \"department\": \"dept\"\n}\n```\n\n## Development\n\n```bash\nnpm install\nnpm run build   # bundles src/cli.ts -\u003e dist/cli.js\nnode dist/cli.js  # try the installer locally\n```\n\nFor iterating on skill content, use a symlink instead of rebuilding:\n\n```bash\nln -sfn /path/to/ts-abbreviation-skill/skills/ts-abbr-skill \\\n  your-test-project/.claude/skills/ts-abbr-skill\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashu-guo%2Fts-abbreviation-skill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashu-guo%2Fts-abbreviation-skill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashu-guo%2Fts-abbreviation-skill/lists"}