repository-structure

Document monorepo package layouts and enforce cross-package dependency rules.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Monorepos can become tangled without a standardized layout and dependency rules; this guide defines a clear, scalable structure for packages and a consistent approach to cross-package versioning.

Core Features & Use Cases

  • Standardized workspace layout with root and per-package folders (packages/, src/, bin/, etc.)
  • Clear subpackage structure and naming conventions
  • Dependency rules and build order to prevent cyclic dependencies
  • Architecture decisions: monorepo strategy, type-driven structure, and shared utilities
  • Use Case: When adding a new package, follow the standard layout and align aws-cdk-lib version across all packages.

Quick Start

Follow this guide to scaffold a new subpackage by aligning its structure to the standard layout and synchronizing the aws-cdk-lib version across all packages.

Frequently Asked Questions about repository-structure

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

FAQPage Schema
How do I organize a clean monorepo structure for multiple packages?

A clean monorepo structure is organized using a standardized workspace layout with root and per-package folders like packages/ and src/, defining clear subpackage naming conventions and directory structures to maintain coherence.

What dependency rules prevent cyclic dependencies in a monorepo?

Monorepo dependency rules prevent cyclic dependencies by defining strict build orders and separating root versus subpackage dependencies, ensuring cross-package version alignment for shared libraries like aws-cdk-lib.

How do I add a new package to a monorepo and align its aws-cdk-lib version?

To add a new package to a monorepo, scaffold the subpackage by aligning its directory structure to the standard layout and synchronizing the aws-cdk-lib version across all existing packages.

When do I need standardized package layout guidelines in a monorepo?

Standardized package layout guidelines are needed when teams create new packages or update layouts in a tangled monorepo, ensuring scalable structure, architecture decisions, and consistent cross-package versioning.

What is the best way to manage shared utilities and architecture in a monorepo?

The best way to manage shared utilities and architecture in a monorepo is applying type-driven structure decisions and standard directory conventions, ensuring dependencies and build order maintain coherence across packages.