project-references-migration

Inventory package graphs and tsconfig chains to plan TypeScript project reference migrations.

1|1|Updated May 3, 2026
One-click install
npx skills add https://github.com/matt-riley/agent-skills --skill project-references-migration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: project-references-migration
Source: https://github.com/matt-riley/agent-skills/tree/main/skills/project-references-migration
Command: npx skills add https://github.com/matt-riley/agent-skills --skill project-references-migration

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill helps teams migrate multi-package TypeScript workspaces to project references incrementally, improving build performance and editor reliability while preserving package boundaries.

Core Features & Use Cases

  • Inventory the graph of packages and their tsconfig to plan safe references.
  • Pilot migration on a leaf package, verify boundaries, and apply incremental changes.
  • Expand migration upward, validating outputs, references, and editor navigation across the graph.

Quick Start

Start by selecting a low-risk leaf package and begin the pilot migration following the provided migration checklist.

Frequently Asked Questions about project-references-migration

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

FAQPage Schema
How do I migrate a TypeScript monorepo to project references?

Migrate a TypeScript monorepo to project references by inventorying package graphs and tsconfig chains, then guiding incremental pilots from leaf packages upward to ensure faster builds and stricter boundaries.

Why should I use TypeScript project references in a multi-package workspace?

TypeScript project references improve multi-package workspaces by enabling faster builds, enforcing stricter package boundaries, and ensuring editor go-to-definition reliability across the monorepo.

What is the best way to start a project references migration safely?

Start a project references migration safely by selecting a low-risk leaf package, verifying its boundaries, and applying incremental changes using a checklist-based workflow with enforced composite mode and safety guards.

Does migrating to TypeScript project references require composite mode and declaration outputs?

Yes, migrating to TypeScript project references requires composite mode and declaration outputs, along with rootDir and outDir alignment, to maintain real references and reliable editor navigation across the workspace.

Can I incrementally apply project references across an entire workspace?

Yes, you can incrementally apply project references across a workspace by expanding the migration upward from leaf packages, validating outputs, references, and editor navigation at each step.

What limitations should I check before starting a TypeScript project references migration?

Before starting a TypeScript project references migration, check tsconfig chain compatibility, verify rootDir and outDir alignment, and ensure package boundaries support the enforced composite mode and declaration outputs.