create-package

Scaffold new monorepo packages and update package.json and TypeScript references.

9|8|Updated Jun 28, 2024
One-click install
npx skills add https://github.com/MetaMask/ocap-kernel --skill create-package
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-package
Source: https://github.com/MetaMask/ocap-kernel/tree/main/.claude/skills/create-package
Command: npx skills add https://github.com/MetaMask/ocap-kernel --skill create-package

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the setup of new monorepo packages by scaffolding and configuring package files.

Core Features & Use Cases

  • Package scaffolding: Generates the package skeleton, including folder structure and template files.
  • Dependency wiring: Updates monorepo references and package.json with correct names and versions.
  • Use Case: When starting a new feature, template, or internal library, you can quickly bootstrap a ready-to-build package.

Quick Start

Use the CLI to create a new package by running: yarn create-package --name my-package --description "A package for handling my feature"

Frequently Asked Questions about create-package

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a new package in a Yarn workspace monorepo?

To scaffold a new package in a Yarn workspace monorepo, run the create-package CLI to generate the folder structure, template files, and automatically update package.json with correct names and versions.

What is the best way to bootstrap a new TypeScript feature library in a monorepo?

Bootstrapping a new TypeScript feature library in a monorepo is best done by automating package setup via a CLI, which configures folder structure, templates, and TypeScript references consistently across the workspace.

Does create-package require Yarn workspace integration to scaffold monorepo packages?

Yes, create-package requires Yarn workspace integration to properly wire dependencies and update monorepo references when scaffolding new internal packages, templates, or feature libraries.

Can I use the create-package CLI to update TypeScript references for a new internal package?

Yes, you can use the create-package CLI to update TypeScript references, as it automatically configures package files and wires monorepo references during the scaffolding process.

What are the limitations of manually scaffolding monorepo packages instead of using a CLI?

Manually scaffolding monorepo packages risks inconsistent structure and reference errors, whereas using an automated CLI ensures correct package.json updates, dependency wiring, and TypeScript configuration across the workspace.

When do I need to create a new package using a monorepo scaffolding tool?

You need to create a new package using a monorepo scaffolding tool when starting a new feature, template, or internal library, ensuring a ready-to-build package with consistent structure and automated dependency wiring.