mirror of
https://github.com/rohitg00/skillkit.git
synced 2026-11-19 02:13:58 +00:00
Devin review caught a hard bug: apps/skillkit/src/index.ts had a
static re-export of startTUI from @skillkit/tui. Now that tui is an
optional dependency, importing the skillkit package would crash with
ERR_MODULE_NOT_FOUND whenever the optional dep was skipped
(--omit=optional). Convert the re-export to an async wrapper that
dynamically imports @skillkit/tui on call. The error is surfaced
naturally with a clear Cannot-find-package message.
Docs updates so users understand the new split:
- README.md: add "Install sizes" section with full vs slim table,
cold-install measurements (475 pkgs / 18 s vs 118 / 9 s),
per-feature package mapping, and how to add a single optional
package later.
- apps/skillkit/README.md (npm landing): add "What's optional"
table + install mode guidance.
- docs/fumadocs/content/docs/installation.mdx: add "Full vs slim
install" section covering all four optional features.
- docs/skillkit/components/Documentation.tsx +
docs/fumadocs/src/components/Documentation.tsx: add "Optional
Features" block to the Quick Start step on the website.
Verified: after `npm install --omit=optional`, `import('skillkit')`
succeeds with 622 exports loaded, and `await startTUI()` fails with
a clean "Cannot find package '@skillkit/tui'" message instead of
crashing at module-load time.
SkillKit Documentation
Fumadocs-based documentation for SkillKit.
Development
cd docs/fumadocs
pnpm install
pnpm dev
Open http://localhost:3000.
Build
pnpm build
Structure
docs/fumadocs/
├── content/docs/ # MDX documentation files
├── src/
│ ├── app/ # Next.js app router
│ ├── lib/ # Components and utilities
│ └── mdx-components.tsx
├── package.json
└── source.config.ts
Adding Pages
- Create
.mdxfile incontent/docs/ - Add frontmatter with
titleanddescription - Add page to
content/docs/meta.json
Custom Components
<Card>- Link cards with icons<Columns>- Grid layout (2-4 columns)