Create a new monorepo package using the create-package CLI
77
72%
Does it follow best practices?
Impact
100%
1.31xAverage score across 3 eval scenarios
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./.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/Consensys-Incorporated/ocap-kernel
c973380
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.