Community程式設計與開發github.com

pproenca/typescript

TypeScript 效能、tsconfig、型別錯誤、非同步模式 — 當使用者要求「最佳化 TypeScript 效能」、「加速 tsc 編譯」、「設定 tsconfig.json」、「修復型別錯誤」、「改善非同步模式」或遇到 TS 錯誤(TS2322、TS2339、「無法指派給」)時觸發。也適用於涉及型別定義、模組組織或記憶體管理的 .ts、.tsx、.d.ts 檔案工作。不涵蓋 TypeScript 基礎、框架特定模式或測試。

typescript 是什麼?

此技能專注於提升 TypeScript 開發效率與專案品質,涵蓋效能最佳化、tsconfig 配置、型別錯誤排除以及非同步模式改進。當開發者遇到編譯速度緩慢、型別推導錯誤(如 TS2322、TS2339)或需要調整 tsconfig.json 時會自動觸發,並支援 .ts、.tsx、.d.ts 檔案中的型別定義重構、模組組織與記憶體管理。此技能適用於 Cursor、Claude Code 等以 TypeScript 為主的 AI 協作平台,透過提供具體的程式碼範例與組態建議來協助開發者。它不處理 TypeScript 基礎語法教學、特定框架(如 React、Node.js)的模式或測試程式碼。工作方式為根據使用者問題自動匹配相關最佳實踐並給出可立即套用的解決方案。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/pproenca/dot-skills/tree/main/skills/typescript

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

typescript 是做什麼的?

TypeScript 效能、tsconfig、型別錯誤、非同步模式 — 當使用者要求「最佳化 TypeScript 效能」、「加速 tsc 編譯」、「設定 tsconfig.json」、「修復型別錯誤」、「改善非同步模式」或遇到 TS 錯誤(TS2322、TS2339、「無法指派給」)時觸發。也適用於涉及型別定義、模組組織或記憶體管理的 .ts、.tsx、.d.ts 檔案工作。不涵蓋 TypeScript 基礎、框架特定模式或測試。

Individual skills in this repo

This repo contains 7 individual skills — each has its own dedicated page.

pproenca/clean-architecture

Clean Architecture principles and best practices from Robert C. Martin's book. This skill should be used when designing software systems, reviewing code structure, or refactoring applications to achieve better separation of concerns. Triggers on tasks involving layers, boundaries, dependency direction, entities, use cases, or system architecture.

pproenca/code-simplifier

Code simplification skill for improving clarity, consistency, and maintainability while preserving exact behavior. Use when simplifying code, reducing complexity, cleaning up recent changes, applying refactoring patterns, or improving readability. Triggers on tasks involving code cleanup, simplification, refactoring, or readability improvements.

pproenca/emilkowal-animations

Emil Kowalski's animation best practices for web interfaces. Use when writing, reviewing, or implementing animations in React, CSS, or Framer Motion. Triggers on tasks involving transitions, easing, gestures, toasts, drawers, or motion.

pproenca/nuqs

nuqs (type-safe URL query state) best practices for Next.js and other React frameworks. This skill should be used when writing, reviewing, or refactoring code that uses nuqs for URL state management. Triggers on tasks involving useQueryState, useQueryStates, search params, URL state, query parameters, nuqs parsers, limitUrlUpdates, Standard Schema, NuqsAdapter, or Next.js routing with state.

pproenca/react-hook-form

React Hook Form performance optimization for client-side form validation using useForm, useWatch, useController, useFieldArray, and the v7.55+ subscribe() API. This skill should be used when building client-side controlled forms with React Hook Form library. This skill does NOT cover React 19 Server Actions, useActionState, or server-side form handling (use react-19 skill for those).

pproenca/vitest

Vitest testing framework patterns for test setup, async testing, mocking with vi.*, snapshots, and test performance (formerly test-vitest). This skill should be used when writing or debugging Vitest tests. This skill does NOT cover TDD methodology (use test-tdd skill), API mocking with MSW (use test-msw skill), or Jest-specific APIs.

pproenca/zod

Zod schema validation best practices for type safety, parsing, and error handling. This skill should be used when defining z.object schemas, using z.string validations, safeParse, or z.infer. This skill does NOT cover React Hook Form integration patterns (use react-hook-form skill) or OpenAPI client generation (use orval skill).

相關技能