monorepo-management
This skill provides a complete framework for initializing and managing monorepo architectures, including configuration templates, dependency strategies, and workspace organization patterns. It integrates with Claude Code's agent ecosystem to automate setup tasks and enforce consistent project structures across multiple packages.
monorepo-management provides step-by-step guidance for initializing a Turborepo-based monorepo. Start by creating a root workspace configuration that defines your package structure, then set up individual package directories with their own package.json files. The skill includes configuration templates that establish shared build scripts, dependency resolution rules, and caching strategies to accelerate builds across your packages. You'll configure the turbo.json file to specify task pipelines and cache behavior, ensuring consistent builds whether you're working locally or in CI/CD environments.
AI-generated summary based on this skill's SKILL.md
Install
HermeticOrmus/LibreUIUX-Claude-Code/monorepo-management · repository language: Shell
git clone https://github.com/HermeticOrmus/LibreUIUX-Claude-Code
cp -r LibreUIUX-Claude-Code/plugins/developer-essentials/skills/monorepo-management ~/.claude/skills/monorepo-managementFrequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
How do I set up turborepo monorepo from scratch?
monorepo-management provides step-by-step guidance for initializing a Turborepo-based monorepo. Start by creating a root workspace configuration that defines your package structure, then set up individual package directories with their own package.json files. The skill includes configuration templates that establish shared build scripts, dependency resolution rules, and caching strategies to accelerate builds across your packages. You'll configure the turbo.json file to specify task pipelines and cache behavior, ensuring consistent builds whether you're working locally or in CI/CD environments.
What's the best way to manage shared dependencies and code across multiple packages?
monorepo-management covers multiple strategies for dependency management in monorepos. Use workspace package managers like pnpm workspaces to deduplicate dependencies at the root level, reducing installation time and disk usage. For shared code, the skill recommends establishing internal packages within your monorepo that other packages can depend on, combined with shared configuration files (TypeScript configs, ESLint rules, etc.) placed in a dedicated config package. This approach ensures consistency while maintaining clear separation of concerns across your packages.
How can I optimize build and test performance across packages in my monorepo?
monorepo-management emphasizes performance optimization through intelligent caching and task orchestration. Configure Turborepo's caching system to store build artifacts and avoid redundant work when dependencies haven't changed. Use the skill's guidance on task dependency graphs to run only affected packages when code changes, leveraging tools like Nx's affected commands. Implement parallel execution strategies and remote caching when appropriate for CI/CD pipelines, and organize your packages to minimize circular dependencies that can slow builds.
What does monorepo-management provide for migrating from multiple repositories to a monorepo structure?
monorepo-management includes migration patterns and strategies for consolidating multiple repositories into a unified monorepo. The skill guides you through preserving git history during migration, restructuring directory layouts, and updating internal dependencies to reference local packages instead of external npm packages. It covers dependency management adjustments needed when transitioning to workspace tools like pnpm, and provides CI/CD reconfiguration examples to work with your new monorepo structure while maintaining deployment reliability.
How do I structure a monorepo to avoid common pitfalls?
monorepo-management outlines best practices for monorepo organization that prevent circular dependencies, dependency hell, and build bottlenecks. The skill recommends establishing clear package hierarchies, using consistent naming conventions, and defining explicit dependency boundaries between packages. It covers strategies for managing shared configuration files, establishing root-level tooling standards, and setting up proper workspace configurations. Following these patterns helps teams maintain scalability as their monorepo grows and reduces debugging time when monorepo-specific issues arise.
How do I set up CI/CD with GitHub Actions in a monorepo environment?
monorepo-management provides CI/CD configuration patterns specifically designed for monorepo workflows with GitHub Actions. The skill includes workflow templates that detect which packages have changed, run only relevant tests and builds, and leverage remote caching to speed up pipeline execution. It covers strategies for publishing packages from your monorepo, managing secrets across multiple deployment targets, and coordinating deployments when packages have interdependencies. These configurations ensure your CI/CD pipeline remains efficient even as your monorepo scales.
SKILL.md
rendered from the published skill — quoted content, verbatim
Monorepo Management
Build efficient, scalable monorepos that enable code sharing, consistent tooling, and atomic changes across multiple packages and applications.
When to Use This Skill
- Setting up new monorepo projects
- Migrating from multi-repo to monorepo
- Optimizing build and test performance
- Managing shared dependencies
- Implementing code sharing strategies
- Setting up CI/CD for monorepos
- Versioning and publishing packages
- Debugging monorepo-specific issues
Core Concepts
1. Why Monorepos?
Advantages: - Shared code and dependencies - Atomic commits across projects - Consistent tooling and standards - Easier refactoring - Simplified dependency management - Better code visibility
Challenges: - Build performance at scale - CI/CD complexity - Access control - Large Git repository
2. Monorepo Tools
Package Managers: - pnpm workspaces
(truncated - see the full file via the links below)
Read as markdown · JSON record · Browse the source repository
File tree — 1 file
plugins/developer-essentials/skills/monorepo-management/SKILL.md