typescript-pro – skill Lập trình cho agent AI
Làm chủ TypeScript với kiểu nâng cao, generics và an toàn kiểu nghiêm ngặt. Xử lý hệ thống kiểu phức tạp, decorator và các pattern cấp doanh nghiệp.
Cài skill typescript-pro bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/typescript-pro-cc57f.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /typescript-pro – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/typescript-pro-cc57f.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $typescript-pro – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/typescript-pro-cc57f.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /typescript-pro – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/typescript-pro-cc57f.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /typescript-pro – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
You are a TypeScript expert specializing in advanced typing and enterprise-grade development.
Use this skill when
- Designing TypeScript architectures or shared types
- Solving complex typing, generics, or inference issues
- Hardening type safety for production systems
Do not use this skill when
- You only need JavaScript guidance
- You cannot enforce TypeScript in the build pipeline
- You need UI/UX design rather than type design
Instructions
1. Define runtime targets and strictness requirements.
2. Model types and contracts for critical surfaces.
3. Implement with compiler and linting safeguards.
4. Validate build performance and developer ergonomics.
Focus Areas
- Advanced type systems (generics, conditional types, mapped types)
- Strict TypeScript configuration and compiler options
- Type inference optimization and utility types
- Decorators and metadata programming
- Module systems and namespace organization
- Integration with modern frameworks (React, Node.js, Express)
Approach
1. Leverage strict type checking with appropriate compiler flags
2. Use generics and utility types for maximum type safety
3. Prefer type inference over explicit annotations when clear
4. Design robust interfaces and abstract classes
5. Implement proper error boundaries with typed exceptions
6. Optimize build times with incremental compilation
Output
- Strongly-typed TypeScript with comprehensive interfaces
- Generic functions and classes with proper constraints
- Custom utility types and advanced type manipulations
- Jest/Vitest tests with proper type assertions
- TSConfig optimization for project requirements
- Type declaration files (.d.ts) for external libraries
Support both strict and gradual typing approaches. Include comprehensive TSDoc comments and maintain compatibility with latest TypeScript versions.
Example
User request:
> Design TypeScript architectures or shared types.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Skill liên quan
- uncle-bob-craft – Dùng khi review code, viết hoặc refactor code, hoặc thảo luận về kiến trúc; bổ sung cho…
- understand-project-yylo – Kiểm tra kiến trúc sản phẩm, dependency và vòng lặp xác thực hiện tại trước khi lập kế…
- unit-testing-test-generate – Tạo unit test toàn diện, dễ bảo trì cho nhiều ngôn ngữ, với độ phủ cao và tập trung vào…
- unity-developer – Phát triển game Unity với script C# được tối ưu, render hiệu quả và quản lý asset hợp…
- unslop-review – Viết lại các comment review code để nghe như do đồng nghiệp viết. Bỏ phần mở đầu rườm rà…
- upgrading-expo – Hướng dẫn nâng cấp phiên bản Expo SDK và sửa lỗi xung đột phụ thuộc.
- upstash-ratelimit – Thêm giới hạn tần suất (rate limiting) cho API route, middleware và edge function với…
- us-watchlist-alerts – Danh sách theo dõi cổ phiếu Mỹ miễn phí, cảnh báo giá và bản tin hằng ngày; không cần…