Complete reference guide for authoring TypeScript libraries and npm packages.
Works with
Covers project setup, package.json exports configuration, tsconfig optimization, and dual CJS/ESM build tooling with tsdown or unbuild
Includes API design patterns (builder, factory, plugin systems), advanced type inference techniques, and tree-shaking best practices
Provides vitest testing setup, release workflow configuration, and GitHub Actions CI/CD templates
Organized as modular reference files—load
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionts-libraryExecute the skills CLI command in your project's root directory to begin installation:
Fetches ts-library from onmax/nuxt-skills and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate ts-library. Access via /ts-library in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Create detailed user stories, acceptance criteria, and feature specs
Example
Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios
Reduce spec writing time by 50%, ensure comprehensive coverage
Research competitors, compare features, identify gaps
Example
Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities
Complete competitive research in 2 hours instead of 2 days
Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs
Example
Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale
0
total installs
0
this week
619
GitHub stars
0
upvotes
Run in your terminal
0
installs
0
this week
619
stars
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
Make data-driven prioritization decisions faster
Draft PRDs, status updates, and stakeholder presentations
Example
Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement
Save 3-5 hours/week on communication overhead
Prerequisites
Time Estimate
30-60 minutes to see productivity improvements
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.
✗ Avoid when
Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.
mattpocock/skills
parcadei/continuous-claude-v3
cursor/plugins
ailabs-393/ai-labs-claude-skills
pproenca/dot-skills
mattpocock/skills
ts-library has been reliable in day-to-day use. Documentation quality is above average for community skills.
Useful defaults in ts-library — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
ts-library is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
Useful defaults in ts-library — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
ts-library has been reliable in day-to-day use. Documentation quality is above average for community skills.
Keeps context tight: ts-library is the kind of skill you can hand to a new teammate without a long onboarding doc.
ts-library is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
Keeps context tight: ts-library is the kind of skill you can hand to a new teammate without a long onboarding doc.
ts-library is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
ts-library has been reliable in day-to-day use. Documentation quality is above average for community skills.
showing 1-10 of 27