npx skills add https://github.com/onmax/nuxt-skills --skill ts-library通过研究 unocss、shiki、unplugin、vite、vitest、vueuse、zod、trpc、drizzle-orm 等项目,总结出的高质量 TypeScript 库编写模式。
对于 Nuxt 模块开发: 请使用 nuxt-modules 技能
| 当前工作 | 加载文件 |
|---|---|
| 新项目设置 | references/project-setup.md |
| 包导出配置 | references/package-exports.md |
| tsconfig 选项 | references/typescript-config.md |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 构建配置 | references/build-tooling.md |
| ESLint 配置 | references/eslint-config.md |
| API 设计模式 | references/api-design.md |
| 类型推断技巧 | references/type-patterns.md |
| 测试设置 | references/testing.md |
| 发布工作流 | references/release.md |
| CI/CD 设置 | references/ci-workflows.md |
请根据您的任务考虑加载以下参考文件:
请勿一次性加载所有文件。 仅加载与您当前任务相关的文件。
package.json 的 exports → 加载 references/package-exports.mdpnpm build && pnpm pack --dry-run — 检查输出是否包含 .mjs、.cjs、.d.ts// package.json (minimal)
{
"name": "my-lib",
"type": "module",
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
}
},
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": ["dist"]
}
// tsdown.config.ts
import { defineConfig } from 'tsdown'
export default defineConfig({
entry: ['src/index.ts'],
format: ['esm', 'cjs'],
dts: true,
})
"type": "module" 并输出 .mjs 文件moduleResolution: "Bundler" 以获得现代 TypeScript 体验sideEffects: false令牌效率:主技能约 300 令牌,每个参考文件约 800-1200 令牌
每周安装量
953
代码仓库
GitHub 星标数
606
首次出现时间
Jan 19, 2026
安全审计
安装于
opencode680
gemini-cli654
codex622
github-copilot613
cursor583
claude-code564
Patterns for authoring high-quality TypeScript libraries, extracted from studying unocss, shiki, unplugin, vite, vitest, vueuse, zod, trpc, drizzle-orm, and more.
For Nuxt module development: use nuxt-modules skill
| Working on... | Load file |
|---|---|
| New project setup | references/project-setup.md |
| Package exports | references/package-exports.md |
| tsconfig options | references/typescript-config.md |
| Build configuration | references/build-tooling.md |
| ESLint config | references/eslint-config.md |
| API design patterns | references/api-design.md |
| Type inference tricks | references/type-patterns.md |
| Testing setup | references/testing.md |
| Release workflow | references/release.md |
| CI/CD setup | references/ci-workflows.md |
Consider loading these reference files based on your task:
DO NOT load all files at once. Load only what's relevant to your current task.
package.json exports → load references/package-exports.mdpnpm build && pnpm pack --dry-run — check output includes .mjs, .cjs, .d.ts// package.json (minimal)
{
"name": "my-lib",
"type": "module",
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
}
},
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": ["dist"]
}
// tsdown.config.ts
import { defineConfig } from 'tsdown'
export default defineConfig({
entry: ['src/index.ts'],
format: ['esm', 'cjs'],
dts: true,
})
"type": "module" with .mjs outputsmoduleResolution: "Bundler" for modern TypeScriptsideEffects: falseToken efficiency: Main skill ~300 tokens, each reference ~800-1200 tokens
Weekly Installs
953
Repository
GitHub Stars
606
First Seen
Jan 19, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode680
gemini-cli654
codex622
github-copilot613
cursor583
claude-code564
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装
Grimoire CLI 使用指南:区块链法术编写、验证与执行全流程
940 周安装
Grimoire Uniswap 技能:查询 Uniswap 元数据与生成代币/资金池快照的 CLI 工具
940 周安装
Grimoire Aave 技能:查询 Aave V3 元数据和储备快照的 CLI 工具
941 周安装
Railway CLI 部署指南:使用 railway up 命令快速部署代码到 Railway 平台
942 周安装
n8n Python 代码节点使用指南:在自动化工作流中编写 Python 脚本
943 周安装
Flutter Platform Views 实现指南:Android/iOS/macOS原生视图与Web嵌入教程
943 周安装