package-management

Coordinate CDK package metadata, dependencies, and workspace references across monorepo subpackages.

6|Updated Dec 26, 2025
One-click install
npx skills add https://github.com/crmagz/cdk-constructs-library --skill package-management-crmagz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: package-management
Source: https://github.com/crmagz/cdk-constructs-library/tree/main/.claude/skills/package-management
Command: npx skills add https://github.com/crmagz/cdk-constructs-library --skill package-management-crmagz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Package configuration, dependencies, workspace references, and CDK version management. Use when creating packages or managing dependencies.

Core Features & Use Cases

  • Manage package.json for subpackages with workspace references and version pinning.
  • Synchronize aws-cdk-lib and constructs versions across root and subpackages to prevent drift.
  • Use postinstall scripts to maintain a clean workspace and avoid nested node_modules.

Quick Start

Run package management tasks to align workspace references, dependencies, and CDK versions across all subpackages.

Frequently Asked Questions about package-management

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

FAQPage Schema
How do I synchronize aws-cdk-lib and constructs versions across a monorepo?

To synchronize CDK versions across a monorepo, align package.json manifests and workspace references so that the root and all subpackages share identical aws-cdk-lib and constructs versions, preventing version drift and dependency conflicts across packages.

What is the best way to manage workspace references and package dependencies in a CDK monorepo?

Managing workspace references in a CDK monorepo involves configuring package.json for subpackages with local workspace links and version pinning. This ensures cross-package references remain intact and dependencies resolve correctly without nested node_modules.

How do I align tsconfig references and package.json manifests for monorepo subpackages?

Aligning tsconfig references and package.json manifests requires coordinating package metadata across your workspace. This process updates version pinning and cross-package references so that TypeScript project references match your dependency configuration.

Can I use postinstall scripts to maintain a clean workspace and avoid nested node_modules?

Yes, you can use postinstall scripts to maintain a clean workspace and avoid nested node_modules. This approach ensures that workspace links and CDK version management remain intact across all subpackages after dependencies are installed.

Why does CDK version drift happen across root and subpackages in a monorepo?

CDK version drift happens when root and subpackages independently resolve aws-cdk-lib and constructs versions without manifest alignment. Synchronizing package.json and workspace references prevents this drift and ensures consistent CDK behavior across the repository.

Do I need a monorepo setup to coordinate package metadata and CDK version pinning?

A monorepo setup is not strictly required, but package metadata coordination and CDK version pinning are specifically designed for monorepo scenarios. These features handle cross-package references and workspace links where multiple packages must share CDK versions.