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/typescript

SKILL.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

  1. `strict: true`, always. Non-negotiable. The rest of TS is barely worth using without it.
  2. No `any`. Use unknown + narrowing if you don't know the shape. Every any in review gets a blocker.
  3. Types describe intent. Prefer UserId branded type over bare string; use discriminated unions over boolean flags.
  4. Inference first. Let TS infer; add annotations on public signatures and where inference is wrong or opaque.
  5. `const` by default, `let` only when reassigning. Never var.
  6. Immutability where practical. readonly on fields, ReadonlyArray<T> for inputs.
  7. `===` only. == has JS quirks; there is no legitimate reason to use it in new code.
  8. Explicit error types at boundaries (HTTP, queue, FFI). Inside, throw freely.

How to use references

ReferenceWhen 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)

  • any without a comment explaining why
  • as X casts without runtime validation (use a schema validator at boundaries)
  • == / !=
  • var
  • Unhandled promise (.then() without .catch(), or an await without containing try)
  • Function / Object as 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.log left 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/edwardzhang/sps-cli/typescript/badge)](https://verified-skill.com/skills/edwardzhang/sps-cli/typescript)

Something wrong with this skill or its page? Tell us.