typescript
Language-specific super-code guidelines for typescript.
npx skills add sickn33/agentic-awesome-skills --skill typescript --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# TypeScript / JavaScript: Idiomatic Efficiency Reference ## When to Use - Use this skill when the task matches this description: Language-specific super-code guidelines for typescript. ## Table of Contents 1. [Array & Object Operations](#arrays) 2. [Destructuring & Spread](#destructuring) 3. [Async / Promises](#async) 4. [Functions & Closures](#functions) 5. [TypeScript Types](#types) 6. [React (if applicable)](#react) 7. [Anti-patterns specific to TS/JS](#antipatterns) --- ## 1. Array & Object Operations {#arrays} ```ts // ❌ Imperative push loop const result: string[] = [] for (const item of items) { if (item.active) result.push(item.name.toUpperCase()) } // ✅ const result = items.filter(i => i.active).map(i => i.name.toUpperCase()) ``` ```ts // ❌ Manual reduce for sum let total = 0 for (const o of orders) total += o.amount // ✅ const total = orders.reduce((sum, o) => sum + o.amount, 0) ``` ```ts // ❌ Manual object copy + override const updated = Object.assign({}, user) updated.name = "Alice" // ✅ const updated = { ...user, name: "Alice" } ``` ```ts // ❌ Existence check before property access const city = user.address ? user.address.city : undefined // ✅ const city = user.address
- When to Use
- Table of Contents
- 1. Array & Object Operations {#arrays}
- 2. Destructuring & Spread {#destructuring}
- 3. Async / Promises {#async}
- 4. Functions & Closures {#functions}
- 5. TypeScript Types {#types}
- 6. React (if applicable) {#react}
- 7. Anti-patterns specific to TS/JS {#antipatterns}
- Limitations
What does the typescript skill do?
Language-specific super-code guidelines for typescript.
How do I install it?
Run `npx skills add sickn33/agentic-awesome-skills --skill typescript --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From sickn33/agentic-awesome-skills, a repository with 44,414 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.