Create a new monorepo package using the create-package CLI
73
58%
Does it follow best practices?
Impact
100%
1.31xAverage score across 3 eval scenarios
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./.claude/skills/create-package/SKILL.mdUse this skill when the user asks to create a new package in the monorepo.
The yarn create-package command automates the creation of new monorepo packages by:
--name (or -n): The package name. Will be prefixed with "@ocap/" if not provided.--description (or -d): A short description of the package for package.jsonyarn create-package --name <package-name> --description "<description>"yarn workspace @ocap/<package-name> add <dep># Create the package
yarn create-package --name my-package --description "A package for handling my feature"
# Add dependencies if needed
yarn workspace @ocap/my-package add some-dependency @ocap/kernel-agentsWhen adding monorepo dependencies like @ocap/kernel-agents, update the TypeScript references:
// packages/my-package/tsconfig.json and tsconfig.build.json
{
"references": [{ "path": "../kernel-agents" }],
}This creates a new package at packages/my-package with the name @ocap/my-package.
packages/template-package/d93dc41
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.