Creating Packages
Create new packages in the monorepo with full scaffolding.
Steps
- •Run the script at
.claude/skills/creating-packages/scripts/create-package.tswith the package name as argument - •Run
pnpm installto link the new package in the workspace - •Verify the package was created in
packages/<name>/
Reference
The script creates:
code
packages/<name>/ ├── src/ │ ├── _.ts # Namespace (export * as Name from './__.js') │ └── __.ts # Barrel (exports implementation) ├── package.json # @kitz/<name> with workspace deps ├── tsconfig.json # Development config └── tsconfig.build.json # Build config
Note: Packages always use __.ts for consistency, even when starting with a single implementation. Module elision (skipping __.ts) only applies within modules inside packages—see creating-modules skill.
Package naming:
- •Input:
foo-bar→ Package:@kitz/foo-bar - •Input:
core→ Package:@kitz/core
Notes
- •Use
creating-modulesskill to add modules within the package - •The
kitzaggregator package is separate and exports from all other packages - •After creating, you may want to add the new package to
kitz/src/exports