Agent skill
create-package
Create a new monorepo package using the create-package CLI
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/create-package
SKILL.md
Create Package Skill
Use this skill when the user asks to create a new package in the monorepo.
Overview
The yarn create-package command automates the creation of new monorepo packages by:
- Generating package scaffolding from the template package
- Setting up the package structure, configuration files, and dependencies
- Creating package.json with the provided name and description
Required Arguments
--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.json
Usage Pattern
- Ask the user for the package name and description if not provided
- Run
yarn create-package --name <package-name> --description "<description>" - Add any additional dependencies using
yarn workspace @ocap/<package-name> add <dep>
Example
# 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.
Notes
- The package name will automatically be prefixed with "@ocap/" if not provided
- The created package is private by default
- The template is located at
packages/template-package/ - All placeholder values in the template will be replaced with actual values
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?