<skill_doc>
<trigger_keywords>
Trigger Keywords
Activate this skill when the user mentions any of:
TypeScript Core: TypeScript, tsc, tsconfig, type inference, generics, satisfies, decorators, type guard, discriminated union, conditional types, mapped types, template literal types, infer keyword
SolidJS: SolidJS, Solid.js, createSignal, createStore, createMemo, createEffect, createResource,
,
,
,
,
, onMount, onCleanup, fine-grained reactivity
TanStack: TanStack Start, TanStack Router, createFileRoute, createServerFn, useLoaderData, file-based routing, server functions, Vinxi
Validation: Valibot, v.object, v.string, v.pipe, v.safeParse, schema validation, type-safe validation
Testing: Vitest, Solid Testing Library, Playwright, @testing-library/solid, renderToString
</trigger_keywords>
⛔ Forbidden Patterns
- NO : Strictly forbidden. Use if type is truly not known yet, or define a proper type/interface.
- NO : Do not suppress errors. Fix them. Use ONLY if testing error cases explicitly.
- NO (Non-null Assertion): Avoid . Use optional chaining or nullish coalescing .
- NO : Prefer union types (
type Status = 'active' | 'inactive'
) or const objects. Enums add runtime overhead and behave unexpectedly.
- NO Default Exports: Prefer named exports to ensure consistent naming across the project and better tree-shaking.
🤖 Agent Tool Strategy
- Discovery: Check for first. If it exists, use to list recipes and prefer commands over language-specific CLIs (npm, cargo, poetry, etc.). Then, read to understand compiler options (strictness, paths, target).
- Linting: Check or to align with project style.
- Type Checking: Use to verify type safety after changes if a build script isn't available.
- Testing: Run tests via or to ensure no regressions.
- File Operations: When creating files, ensure the extension matches the content ( for JSX, for logic).
Quick Reference (30 seconds)
TypeScript 5.9+ Development Specialist - Modern TypeScript with SolidJS, TanStack Start, and type-safe API patterns.
Auto-Triggers:
,
,
,
files, TypeScript configurations, SolidJS/TanStack Start projects
Core Stack:
- TypeScript 5.9: Deferred module evaluation, decorators, satisfies operator
- SolidJS: Fine-grained reactivity, signals, stores
- TanStack Start: Full-stack framework with file-based routing, server functions
- Valibot: Tree-shakable schema validation
- Testing: Vitest, Solid Testing Library, Playwright
Implementation Guide (5 minutes)
See patterns.md for detailed implementation patterns covering:
- TypeScript 5.9 Key Features (Satisfies, Deferred Modules, Decorators)
- SolidJS Patterns (Signals, Stores, Memos, Resources)
- TanStack Start Patterns (Routes, Server Functions)
- Valibot Schema Patterns
- Advanced State Management
Quick Troubleshooting
TypeScript Errors:
bash
bun run typecheck # Type check only
bunx tsc --generateTrace ./trace # Performance trace
SolidJS/TanStack Start Issues:
bash
bun run dev # Development mode
bun run build # Check for build errors
rm -rf .vinxi .output && bun run dev # Clear cache
Type Safety:
typescript
// Exhaustive check
function assertNever(x: never): never { throw new Error(`Unexpected: ${x}`); }
// Type guard
function isUser(v: unknown): v is User {
return typeof v === "object" && v !== null && "id" in v;
}
- patterns.md - Implementation patterns (SolidJS, TanStack, Valibot)
- reference.md - Complete API reference, Context7 library mappings, advanced type patterns
- examples.md - Production-ready code examples, full-stack patterns, testing templates
Context7 Integration
typescript
// TypeScript - mcp__context7__get_library_docs("/microsoft/TypeScript", "decorators satisfies", 1)
// SolidJS - mcp__context7__get_library_docs("/solidjs/solid", "createSignal createStore", 1)
// TanStack Start - mcp__context7__get_library_docs("/tanstack/start", "server-functions routing", 1)
// TanStack Router - mcp__context7__get_library_docs("/tanstack/router", "file-based-routing loaders", 1)
// Valibot - mcp__context7__get_library_docs("/fabian-hiller/valibot", "schema validation pipe", 1)
Works Well With
- - UI components, styling patterns
- - API design, database integration
- - Testing strategies and patterns
- - Code quality standards
- - Debugging TypeScript applications
Quick Troubleshooting
TypeScript Errors:
bash
bun run typecheck # Type check only
bunx tsc --generateTrace ./trace # Performance trace
SolidJS/TanStack Start Issues:
bash
bun run dev # Development mode
bun run build # Check for build errors
rm -rf .vinxi .output && bun run dev # Clear cache
Type Safety:
typescript
// Exhaustive check
function assertNever(x: never): never { throw new Error(`Unexpected: ${x}`); }
// Type guard
function isUser(v: unknown): v is User {
return typeof v === "object" && v !== null && "id" in v;
}
</skill_doc>