.claude/skills/create-package/SKILL.md
Create a new monorepo package using the create-package CLI
npx skillsauth add metamask/ocap-kernel create-packageInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use 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-agents
When 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/tools
Use the discovery tools to find and use services through a service matcher. Do not rely on prior knowledge of services, providers, or APIs.
tools
Use the wallet tools for all balance, send, and sign operations. Supports both ETH and ERC-20 tokens. The away wallet operates autonomously after setup — the home device does not need to be online.
testing
Updates changelogs for all packages with consumer-facing changes.
tools
Pushes the current branch to the remote repository.