bew/dotfiles/coder-ts

Claude Code and agent skill by bew/dotfiles

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

TypeScript code writing guidelines: type-only imports, type aliases, readonly and const assertions, and file headers. Always load when asked to draft/write/edit/refactor/review TypeScript (.ts/.tsx) code files. Requires coder-generic skill.

Install

npx vskill@latest install bew/dotfiles/coder-ts

SKILL.md

Goal

Write TypeScript modules with type-only imports, type aliases, and consistent file headers, building on generic conventions.

REQUIRES: load coder-generic skill first.

All TypeScript here is module code: .ts/.tsx files imported by other code, not run directly. Standalone TS scripts are out of scope — this skill ships no script variant.

If working on module code: read <./module-rules.md>.

Rules

  • Prefer type aliases for object shapes and unions; reserve interface for declaration merging.
  • Mark immutable collections readonly (readonly T[], ReadonlyMap).
  • Use as const for literal constants and fixed ordered lists.
  • Use === and !==; never == or !=.
  • Prefer optional chaining and nullish coalescing over ! non-null assertions.
  • Use unknown at untrusted boundaries, then narrow before use — never any.
  • When filtering a union-typed collection, use a type guard so narrowing survives downstream.

Comments

  • Open every file with a // header: one line stating purpose, then optional paragraphs

separated by blank // lines.

  • Document each declaration with a // comment on the line above it.
  • See coder-generic for comment content rules.

Testing

TypeScript tests run on Bun's test runner. Import test and expect from "bun:test"; drive time with jest.useFakeTimers() and jest.advanceTimersByTime(...). Run tests with bun test <path>. No dedicated TypeScript testing skill exists yet — ask the user before adding a test framework.

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

7-day trend score
5

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/bew/dotfiles/coder-ts/badge)](https://verified-skill.com/skills/bew/dotfiles/coder-ts)

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