用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Consensys-Incorporated/ocap-kernel --skill create-package命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | create-package |
| description | Create a new monorepo package using the create-package CLI |
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/