원클릭으로
typescript-language-patterns
Modern TypeScript standards for type safety, performance, and maintainability.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Modern TypeScript standards for type safety, performance, and maintainability.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Foundational "High-Density" standard for token-optimized agent instructions and CLI-based automated activation.
Universal principles for clean, maintainable, and robust code across all environments.
Standards for performing high-quality, readable code reviews.
Essential rules for code comments, READMEs, and technical documentation.
CRITICAL - Before ANY file write, audit loaded skills for violations. Auto-report via feedback command.
Universal standards for version control, branching, and team collaboration.
| name | TypeScript Language Patterns |
| description | Modern TypeScript standards for type safety, performance, and maintainability. |
| metadata | {"labels":["typescript","language","types","generics"],"triggers":{"files":["**/*.ts","**/*.tsx","tsconfig.json"],"keywords":["type","interface","generic","enum","union","intersection","readonly","const","namespace"]}} |
interface for APIs. type for unions.strict: true. Null Safety: ?. and ??.as const. No runtime enum.typeof, instanceof, predicates.Partial, Pick, Omit, Record.readonly arrays/objects. Const Assertions: as const, satisfies.on${Capitalize<string>}.kind property.public. Use private/protected or #private.string & { __brand: 'Id' }.any: Use unknown.Function: Use signature () => void.enum: Runtime cost.!: Use narrowing.// Branded Type
type UserId = string & { __brand: 'Id' };
// Satisfies (Validate + Infer)
const cfg = { port: 3000 } satisfies Record<string, number>;
// Discriminated Union
type Result<T> = { kind: 'ok'; data: T } | { kind: 'err'; error: Error };
For advanced type patterns and utility types: See references/REFERENCE.md.
best-practices | security | tooling