跳到正文
cccskills
免费在 GitHub 公开

create-package

Create a new monorepo package using the create-package CLI

中文简介正在准备中。当前显示原文说明。

Consensys-Incorporated/ocap-kernel星标 9(GitHub 9 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md1.7 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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

  1. Ask the user for the package name and description if not provided
  2. Run yarn create-package --name <package-name> --description "<description>"
  3. 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.build.json
{
  "references": [{ "path": "../kernel-agents/tsconfig.build.json" }],
}

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

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

How to review code; a pull request, feature branch, local changes etc.

中文简介正在准备中。当前显示原文说明。

Consensys-Incorporated/ocap-kernel92026年10月26日 更新

commit

免费

Optionally checks, then commits code to the current or a new feature branch.

中文简介正在准备中。当前显示原文说明。

Consensys-Incorporated/ocap-kernel92026年10月26日 更新

discovery

免费

Use the discovery tools to find and use services through a service matcher. Do not rely on prior knowledge of services, providers, or APIs.

中文简介正在准备中。当前显示原文说明。

Consensys-Incorporated/ocap-kernel92026年10月26日 更新

Run the evm-wallet Docker e2e tests (build, start stack, wait for healthy, test, diagnose failures).

中文简介正在准备中。当前显示原文说明。

Consensys-Incorporated/ocap-kernel92026年10月26日 更新

glossary

免费

How to add entries to the glossary

中文简介正在准备中。当前显示原文说明。

Consensys-Incorporated/ocap-kernel92026年10月26日 更新

How to check code by linting, building, and testing.

中文简介正在准备中。当前显示原文说明。

Consensys-Incorporated/ocap-kernel92026年10月26日 更新

查看 Consensys-Incorporated 的全部技能

报告此技能的问题