edwardzhang/sps-cli/typescript
Claude Code and agent skill by edwardzhang/sps-cli
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
TypeScript language skill — types, idioms, async, tooling. Pair with end skills (`backend`, `frontend`, `mobile`) for architecture and with `coding-standards` for cross-language principles.
Install
npx vskill@latest install edwardzhang/sps-cli/typescriptSKILL.md
The same SKILL.md was published earlier as edwardzhang/sps-cli/typescript.
TypeScript
Type system, idioms, async, tooling. Language-focused. Architecture belongs to end skills; general principles (TDD, naming, error strategy) live in coding-standards.
When to load
- Project primary language is TypeScript (Node.js / Deno / Bun / browser)
- Reviewing TS code
- Designing types, generics, discriminated unions
- Setting up
tsconfig.json, build, test tooling
Core principles
- `strict: true`, always. Non-negotiable. The rest of TS is barely worth using without it.
- No `any`. Use
unknown+ narrowing if you don't know the shape. Everyanyin review gets a blocker. - Types describe intent. Prefer
UserIdbranded type over barestring; use discriminated unions over boolean flags. - Inference first. Let TS infer; add annotations on public signatures and where inference is wrong or opaque.
- `const` by default, `let` only when reassigning. Never
var. - Immutability where practical.
readonlyon fields,ReadonlyArray<T>for inputs. - `===` only.
==has JS quirks; there is no legitimate reason to use it in new code. - Explicit error types at boundaries (HTTP, queue, FFI). Inside, throw freely.
How to use references
| Reference | When to load | |
|---|---|---|
| `references/types.md` | Generics, unions, discriminated unions, conditional types, utility types, brands | |
| `references/idioms.md` | Destructuring, optional chaining, nullish coalescing, modules, enums vs. union | |
| `references/async.md` | Promises, async/await, error propagation, cancellation (AbortController), concurrency | |
| `references/errors.md` | Error classes, Result / neverthrow, try/catch, re-throw semantics | |
| `references/testing.md` | Vitest / Jest, mocking, fixtures, integration tests | |
| `references/tooling.md` | tsconfig, ESLint, formatter, bundlers, monorepo layout |
Forbidden patterns (auto-reject)
anywithout a comment explaining whyas Xcasts without runtime validation (use a schema validator at boundaries)==/!=var- Unhandled promise (
.then()without.catch(), or anawaitwithout containingtry) Function/Objectas a type- Default-exporting everything in new code (named exports — one public name per import)
- Enums for string constants (use literal string unions instead — smaller, tree-shakeable)
- Mutating function parameters
console.logleft in committed code
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/typescript/SKILL.md
Popularity
- Repository stars
- 3
- 7-day trend score
- 7
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/edwardzhang/sps-cli/typescript)