What problem does it solve?
Keeping the nrwl create-nx-workspace template repos (empty, react, angular, nextjs, etc.) in sync with each new nx release is a repetitive, error-prone chore: each repo must be cloned, migrated, verified, and PR'd individually, and a broken template silently breaks scaffolding for end users.
Core Features & Use Cases
- Bulk migration: Clones any or all of the 12 nrwl template repos, runs
nx migrate to a target version, applies migrations, and bumps dependencies.
- Verification before shipping: Runs build, test, lint, typecheck, and e2e targets per repo, reverting and reporting any repo that fails instead of opening a broken PR.
- Draft PR automation: Opens one single-commit draft PR per repo via the GitHub API, with optional Polygraph session linking.
- Post-merge sanity check: The bundled
run-all-templates.sh script runs create-nx-workspace --template against every template's main branch to confirm end-to-end scaffolding still works.
- Use Case: After nx 23.2.0 ships, ask the agent to "update the CNW templates to 23.2.0" and receive a report table of draft PRs, one per live template repo.
Quick Start
Ask the agent to update the CNW templates to a specific nx version, for example: update the CNW templates to nx 23.2.0.