create-package

Create new packages in an Nx monorepo using template-based scaffolding.

9|2|Updated Apr 13, 2024
One-click install
npx skills add https://github.com/JacobLey/leyman --skill create-package-jacobley
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-package
Source: https://github.com/JacobLey/leyman/tree/main/.claude/skills/create-package
Command: npx skills add https://github.com/JacobLey/leyman --skill create-package-jacobley

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manual package creation in a monorepo is error-prone and inconsistent. This skill provides a template-driven workflow to bootstrap new packages with standardized structure and tooling.

Core Features & Use Cases

  • Template-driven scaffolding: copy baseline structure from existing packages to ensure consistency.
  • Nx integration: wire new packages into the workspace with appropriate targets and config.
  • Quick onboarding: guide for rapid package bootstrap and first build.

Quick Start

Create the new package directory using a template, then run the recommended Nx commands to scaffold and initialize the package.

Frequently Asked Questions about create-package

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

FAQPage Schema
How do I create a new package in an Nx monorepo?

Creating a new package in an Nx monorepo requires manual package creation using a template-based workflow. This skill standardizes package layout by copying a template, setting package.json with type module, and configuring tsconfig extends.

What is template-based scaffolding for monorepo packages?

Template-based scaffolding is a workflow that copies baseline structure from existing packages to ensure consistency. It enforces repository requirements by configuring package.json, tsconfig extends, project.json, and eslint.config.js.

How do I add a library to my Nx workspace?

Adding a library to an Nx workspace involves bootstrapping a new package using a template-driven workflow. This skill copies a template, sets up package.json with type module, and runs initial Nx commands to scaffold and initialize the package.

What configuration files are required when bootstrapping a TypeScript package?

Bootstrapping a TypeScript package requires package.json with type module, proper tsconfig extends, project.json, and eslint.config.js. These files enforce repository requirements and standardize package layout within the Nx workspace.

Does this scaffolding workflow work with TypeScript and Nx?

Yes, this scaffolding workflow works with TypeScript and Nx. It applies to developers adding libraries or apps to the Nx workspace, requiring manual package creation with templates and Nx integration for standardized package layout.

What's the best way to standardize package layout in a monorepo?

The best way to standardize package layout in a monorepo is using a template-driven workflow. This skill enforces repository requirements by copying a template and setting up package.json, tsconfig, project.json, and eslint.config.js consistently.