typescript
Installation
SKILL.md
TypeScript Development (Lean)
When to use
.ts,.tsx,tsconfig.json- React/Next.js code paths
- API clients/servers requiring strict typing
Defaults
- Keep
strict: true. - Prefer inferred types unless explicit types improve readability.
- Validate untrusted input with schemas (for example Zod).
- Use discriminated unions instead of boolean mode flags.
Quick workflow
- Confirm type boundaries (input/output contracts).
- Implement smallest typed change.
- Add/update tests.
- Run type check + lint + test.
Commands
- Install/run (Bun-compatible repos):
bun install,bun run <script> - Type check:
bunx tsc --noEmitornpx tsc --noEmit - Tests:
bun testor project test script
Implementation checklist
- No
anyunless documented and justified. - Exhaustive branching for tagged unions.
- Public types exported from stable module boundaries.
- Runtime validation for API and form payloads.
Validation checklist
tsc --noEmitpasses.- Lint passes.
- Tests pass for changed behavior.
- Build output unchanged unless intended.
References
reference.md- type and architecture patternsexamples.md- compact TS/React examples../AGENT_SKILL_SPEC.md- shared Anthropic/Copilot alignment
Related skills
More from ven0m0/claude-config
llm-boost
|
20uv
|
11substituting-modern-tools
Substitutes modern performant tools for legacy equivalents in generated code (npm→bun, find→fd, pip→uv, grep→rg, jq→jaq, eslint→biome, black→ruff, git→gix). Use when generating shell commands or scripts.
9linter autofix patterns
Cross-language linter autofix commands and common fix patterns for biome, ruff, clippy, shellcheck, and more.
9moai-tool-svg
>
5building-mcp-servers
Creates high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services. Use when building MCP servers to integrate APIs, designing tool schemas, or implementing Python (FastMCP) or TypeScript (MCP SDK) servers. Triggers include "MCP server", "tool schema", "model context protocol", or "FastMCP".
5