一键导入
typescript
WHEN writing TypeScript, defining types/schemas, or building type-safe apps; outputs strict, schema-first, production-ready code.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
WHEN writing TypeScript, defining types/schemas, or building type-safe apps; outputs strict, schema-first, production-ready code.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
WHEN scraping iOS/macOS App Store data (apps, reviews, ratings, search); NOT for installing or testing apps; retrieves structured JSON data using iTunes/App Store APIs with curl and jq formatting
Comprehensive guide for implementing on-device AI models on iOS using Foundation Models and MLX Swift frameworks. Use WHEN building iOS apps with (1) Local LLM inference, (2) Vision Language Models (VLMs), (3) Text embeddings, (4) Image generation, (5) Tool/function calling, (6) Multi-turn conversations, (7) Custom model integration, or (8) Structured generation.
WHEN building ChatGPT apps using the OpenAI Apps SDK and MCP; create conversational, composable experiences with proper UX, UI, state management, and server patterns.
WHEN building SwiftUI views, managing state, setting up shared services, or making architectural decisions; NOT for UIKit or legacy patterns; provides pure SwiftUI data flow without ViewModels using @State, @Binding, @Observable, and @Environment.
WHEN building design systems or component libraries with Tailwind CSS; covers design tokens, CVA patterns and dark mode.
WHEN building React components/pages/apps; enforces scalable architecture, state management, API layer, performance patterns.
| name | typescript |
| description | WHEN writing TypeScript, defining types/schemas, or building type-safe apps; outputs strict, schema-first, production-ready code. |
Production-grade TypeScript development with schema-first design, strict type safety, and immutable patterns.
| Topic | Guide |
|---|---|
| Schema-first development, when to use schemas vs types, test factories | schemas.md |
| Type vs interface, any vs unknown, assertions, strict mode | types-interfaces.md |
| Immutability patterns, readonly, forbidden methods, error handling | immutability.md |
| Branded types, utility types, code smells reference | utilities.md |
| Common TypeScript patterns with examples | patterns.md |
Use schemas.md when you need:
Use types-interfaces.md when you need:
Use immutability.md when you need:
Use utilities.md when you need:
Use patterns.md when you need:
Does data come from outside the application?
├── Yes → Schema required
└── No → Does it have validation rules (format, range, enum)?
├── Yes → Schema required
└── No → Is it shared between systems?
├── Yes → Schema required
└── No → Type is fine
type or interface?Am I defining a behavior contract for dependency injection?
├── Yes → interface
└── No → type
any or unknown?Never use any.
Always use unknown for truly unknown types.
How many parameters?
├── 1-2 → Positional is fine
└── 3+ → Use options object
Before committing TypeScript code, verify:
any types (use unknown instead)z.infertype for data, interface only for behavior contractsreadonly where appropriate