@to-skills/typedoc
v0.5.1
Published
TypeDoc plugin that generates AI agent skills (SKILL.md) from TypeScript API documentation
Downloads
1,575
Maintainers
Readme
@to-skills/typedoc
TypeDoc plugin that generates AI agent skills (SKILL.md) and optionally llms.txt from your TypeScript API documentation.
Install
pnpm add -D @to-skills/typedocAdd to your typedoc.json:
{
"plugin": ["@to-skills/typedoc"]
}Or use the auto-discovery wrapper instead — see typedoc-plugin-to-skills.
What It Does
Hooks into TypeDoc's converter to extract your public API surface and render it as structured SKILL.md files:
- Functions with signatures, parameters, return types
- Classes with constructors, methods, properties
- Interfaces and type aliases
- Enums with members
- Usage examples from
@exampleJSDoc tags - Token-budgeted output (configurable, default 4000)
Output goes to skills/<package-name>/SKILL.md, discoverable via npx skills add.
Options
All options can be set in typedoc.json:
| Option | Default | Description |
|--------|---------|-------------|
| skillsOutDir | "skills" | Output directory |
| skillsPerPackage | true | One skill per package in monorepos |
| skillsIncludeExamples | true | Include @example tags |
| skillsIncludeSignatures | true | Include type signatures |
| skillsMaxTokens | 4000 | Token budget per skill |
| skillsNamePrefix | "" | Custom skill name prefix |
| skillsLicense | auto | License (reads from package.json) |
| llmsTxt | false | Also generate llms.txt/llms-full.txt |
| llmsTxtOutDir | "." | Where to write llms.txt files |
Monorepo Support
With skillsPerPackage: true (default), each package in a monorepo gets its own skill file. TypeDoc must be configured with multiple entry points:
{
"entryPoints": ["packages/*/src/index.ts"]
}License
MIT
