重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
typescript by siviter-xyz/dot-agent
npx skills add https://github.com/siviter-xyz/dot-agent --skill typescript使用现代工具进行 TypeScript 开发的标准和最佳实践。在编写或修改 TypeScript 代码时,请遵循这些指南。
始终应用 DRY、KISS 和 SOLID 原则。在相关情况下优先采用函数式方法;对有状态的行为使用类。优先使用组合而非继承。每个模块应具有单一职责。对类依赖使用依赖注入。
anyany : 当类型确实未知时,使用 unknown 代替 any。适当地收窄类型。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
src/ 目录结构*.test.ts 或 *.spec.ts@vitest/coverage-v8 获取覆盖率jsdom 进行 DOM 测试printWidth: 120, singleQuote: true, jsxSingleQuote: truepnpm format 格式化代码pnpm format:check 检查格式@typescript-eslint/parser 和 @typescript-eslint/eslint-pluginpnpm lint 检查代码规范pnpm lint:fix 自动修复问题packageManager 字段实现 TypeScript 代码时:
有关使用 pnpm 的 monorepo 特定模式,请参阅 references/pnpm-monorepo.md。
每周安装次数
69
仓库
GitHub 星标数
7
首次出现
2026 年 1 月 20 日
安全审计
安装于
cursor48
codex45
claude-code44
gemini-cli37
opencode37
github-copilot37
Standards and best practices for TypeScript development with modern tooling. Follow these guidelines when writing or modifying TypeScript code.
Apply DRY, KISS, and SOLID consistently. Prefer functional approaches where relevant; use classes for stateful behavior. Use composition over inheritance. Each module should have a single responsibility. Use dependency injection for class dependencies.
any unless necessaryany: Use unknown instead of any when the type is truly unknown. Narrow types appropriately.src/ directory structure*.test.ts or *.spec.ts@vitest/coverage-v8 for coveragejsdom for DOM testing when neededprintWidth: 120, singleQuote: true, jsxSingleQuote: truepnpm format to format codepnpm format:check to check formatting@typescript-eslint/parser and @typescript-eslint/eslint-pluginpnpm lint to check lintingpnpm lint:fix to auto-fix issuespackageManager field in package.jsonWhen implementing TypeScript code:
For monorepo-specific patterns using pnpm, see references/pnpm-monorepo.md.
Weekly Installs
69
Repository
GitHub Stars
7
First Seen
Jan 20, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
cursor48
codex45
claude-code44
gemini-cli37
opencode37
github-copilot37
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
123,700 周安装