new-package

Scaffold a new shared package directory in a monorepo.

15|5|Updated May 4, 2026
One-click install
npx skills add https://github.com/eugenelim/agent-ready-repo --skill new-package-eugenelim
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-package
Source: https://github.com/eugenelim/agent-ready-repo/tree/main/packs/monorepo-extras/.apm/skills/new-package
Command: npx skills add https://github.com/eugenelim/agent-ready-repo --skill new-package-eugenelim

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the friction and inconsistency of creating a new shared package in a monorepo by guiding the full scaffold, wiring, and verification process.

Core Features & Use Cases

  • Package Scaffolding: Creates the standard source and test directories plus the required package files for a new shared library.
  • Monorepo Conformance: Checks that the package belongs in the packages area, has a unique name, and does not duplicate existing functionality.
  • Workspace Integration: Adds the package to the workspace configuration, verifies that the repository recognizes it, and confirms the placeholder test passes.
  • Documentation Update: Updates the architecture overview so the new package is visible to the rest of the team.

Quick Start

Ask the agent to scaffold a new shared package in the monorepo packages directory, then verify it, test it, and update the architecture overview.

Frequently Asked Questions about new-package

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

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

To scaffold a new shared package in a monorepo, create the standard source and test directories, add package metadata, register the package in the workspace configuration, and run verification tests. This ensures the new library follows monorepo conventions and is properly integrated.

What is the standard directory structure for monorepo packages?

The standard directory structure for monorepo packages includes dedicated source and test directories, package metadata files, and workspace registration. Following this layout ensures the reusable library conforms to repository conventions and integrates seamlessly with existing applications.

How do I add a reusable library to a workspace configuration?

Add a reusable library to a workspace configuration by placing it in the packages directory, updating the workspace settings to recognize the new path, and verifying that the repository registers the package name uniquely without duplicating existing functionality.

Does a new monorepo package require documentation updates?

Yes, a new monorepo package requires documentation updates. After scaffolding and verifying the package, you must update the architecture overview so the new shared library is visible and discoverable to the rest of the team.

What's the best way to verify a newly scaffolded monorepo package?

The best way to verify a newly scaffolded monorepo package is to run the placeholder test after workspace registration. This confirms the repository recognizes the package and that the directory structure follows monorepo conventions properly.

When should I not use a monorepo package scaffold?

You should not use a monorepo package scaffold when adding a standalone application rather than a reusable library. This scaffolding process is specifically for shared packages under the packages directory, not for apps that do not need to be consumed by other workspace projects.