Agent skill

Update Cnw Templates

by nrwl in nrwl/nx

Update the CNW (create-nx-workspace) template repos (nrwl/empty-template, nrwl/react-template, etc.) to a target nx version via nx migrate, verify each repo, and open a PR per repo.

MITAuto-check: notesDevelopment

Install Update Cnw Templates

skills CLI
$ npx skills add nrwl/nx --skill update-cnw-templates -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install nrwl/nx update-cnw-templates --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/nrwl/nx.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/update-cnw-templates .claude/skills/update-cnw-templates && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
update-cnw-templates
GitHub stars
29k
Token cost
~1.9k tokens
SKILL.md length
638 words
Files
2
Skills in repo
21
Repo updated
First seen
Licence
MIT

At a glance

Update the CNW (create-nx-workspace) template repos (nrwl/empty-template, nrwl/react-template, etc.) to a target nx version via nx migrate, verify each repo, and open a PR per repo.

  • Works in 7 steps: Resolve version + repo set → Clone (or reuse) each repo → Migrate → …
  • Asked to update the CNW templates
  • SKILL.md covers Input, The template repos, Procedure and Notes
  • Runs Shell scripts from its folder; calls git, npm and npx; reaches api.github.com; needs GH_TOKEN

What it does

Update Cnw Templates is an agent skill from nrwl/nx. Update the CNW (create-nx-workspace) template repos (nrwl/empty-template, nrwl/react-template, etc.) to a target nx version via nx migrate, verify each repo, and open a PR per repo. Clones repos it needs - assumes no local checkout. Use when asked to "update the CNW templates", "migrate the templates to nx X", "bump the template repos", or given a version like "update templates to 23.2.0".

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `run-all-templates.sh`).

It sits in Development, covering Monorepo tooling and Pull requests. It works with Nx, React and Angular. The repository describes itself as: The Monorepo Platform that amplifies both developers and AI agents. Nx optimizes your builds, scales your CI, and fixes failed PRs automatically. Ship in half the time. The licence is MIT.

When your agent uses it

  • Asked to update the CNW templates
  • Migrate the templates to nx X
  • Bump the template repos
  • Given a version like update templates to 23.2.0

Example prompts

  • “update the CNW templates”
  • “migrate the templates to nx X”
  • “bump the template repos”
  • “/update-cnw-templates”

Requirements

  • Node.js
  • A Bash shell
  • Pre-approved tools (allowed-tools): Bash, Read, Write, Edit, Grep, Glob, WebFetch

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Resolve version + repo set
  2. Clone (or reuse) each repo
  3. Migrate
  4. Verify
  5. Commit + PR (per repo)
  6. Sanity check after the PRs land - run-all-templates.sh
  7. Report

What it can do on your machine

Read from SKILL.md and the folder at commit 200edc8. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash
    • Read
    • Write
    • Edit
    • Grep
    • Glob
    • WebFetch

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • git
    • npm
    • npx
    • curl

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • api.github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • GH_TOKEN

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Update Cnw Templates loads about 1.9k tokens when it runs. Until then it costs about 103 tokens; SKILL.md has 638 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~103
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Bash, Read, Write, Edit, Grep, Glob, WebFetch

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from nrwl/nx at commit 200edc8, republished under its MIT licence (© nrwl). 638 words, ~1,949 tokens.

Download SKILL.mdSave it as .claude/skills/update-cnw-templates/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
update-cnw-templates
description
Update the CNW (create-nx-workspace) template repos (nrwl/empty-template, nrwl/react-template, etc.) to a target nx version via nx migrate, verify each repo, and open a PR per repo. Clones repos it needs - assumes no local checkout. Use when asked to "update the CNW templates", "migrate the templates to nx X", "bump the template repos", or given a version like "update templates to 23.2.0".
allowed-tools
Bash, Read, Write, Edit, Grep, Glob, WebFetch

Update CNW Templates

Bump every CNW template repo to one target nx version, verify it still builds and still scaffolds, then open a draft PR per repo. Each template is an independent GitHub repo under nrwl/; create-nx-workspace --template nrwl/<repo> clones its main to scaffold a user's workspace. Each repo has a ci.yml that lints, tests, builds, typechecks, and e2es it on PRs - but the consumer path (scaffolding from main via --template) isn't covered there, and a force-push to main skips PR CI entirely (how the react template broke). So verify before you ship.

This skill makes no assumption that the repos are checked out locally. It clones what it needs. Anyone on the team can run it from a fresh machine.

Input

  • Target nx version - e.g. 23.2.0. If omitted, use latest stable: npm view nx@latest version. Verify it exists: npm view nx@<version> version.
  • Repos - one, several, or (default) all live templates. Names may be given with or without the -template suffix.
  • Work dir - where clones land. Default ./tmp/cnw-templates/ (gitignored). Reuse an existing clone if one is already there and clean.

The template repos

All live under nrwl/<name>-template, push target branch main. --template accepts the full nrwl/<repo> form for all of them. Four templates also have a bare shorthand.

Template--template valueShorthand
emptynrwl/empty-templateempty
typescriptnrwl/typescript-templatets
reactnrwl/react-templatereact
angularnrwl/angular-templateangular
react-mfenrwl/react-mfe-template-
nextjsnrwl/nextjs-template-
nestjsnrwl/nestjs-template-
express-apinrwl/express-api-template-
astro-starlightnrwl/astro-starlight-template-
remotionnrwl/remotion-template-
tanstack-startnrwl/tanstack-start-template-
tanstack-ainrwl/tanstack-ai-template-

Before continuing, check that all the templates are live. A repo is live if GET https://api.github.com/repos/nrwl/<name>-template/commits/main returns 200 (a sha). If you hit 404 report it.

This table may change, and the user will tell you which repos to use (defaults to all in the table).

Procedure

1. Resolve version + repo set
bash
npm view nx@<version> version                 # confirm target exists
# for each requested repo, confirm it's live:
curl -s -o /dev/null -w "%{http_code}" https://api.github.com/repos/nrwl/<name>-template/commits/main
1a. If in a Polygraph session, add the templates to it

If this skill runs inside a Polygraph session (the startup banner names a session ID), add every target template repo to the session so their per-repo PRs link together under one session. The repos are exact owner/repo refs, so add them directly - no discovery:

add_repo(sessionId: "<session-id>", repoIds: ["nrwl/empty-template", "nrwl/react-template", ...])

Add only the live repos you're actually touching. After add_repo, the PRs you open in step 5 join the session automatically - the link is the session, not any cross-reference in the PR bodies. If there's no session, skip this and proceed normally.

Show full SKILL.md (249 more words)Show less
2. Clone (or reuse) each repo

All template repos are npm (package-lock.json). Clone over SSH; the working tree must be clean before you touch it.

bash
mkdir -p tmp/cnw-templates && cd tmp/cnw-templates
git clone git@github.com:nrwl/<name>-template.git      # or reuse an existing clean clone
cd <name>-template
git checkout main
git status --porcelain      # MUST be empty; if dirty, skip this repo and report
git fetch origin main && git reset --hard origin/main   # make sure we start from latest origin
grep '"nx"' package.json    # record current version
3. Migrate

Use CI=true to skip prompts.

bash
CI=true npm install                             # node_modules at current version
CI=true npx nx migrate <target-version>         # updates package.json, writes migrations.json
CI=true npm install                             # apply the dep bump
if [ -f migrations.json ]; then
  CI=true npx nx migrate --run-migrations
  rm -f migrations.json
fi
4. Verify
bash
NX_NO_CLOUD=true NX_DAEMON=false CI=true npx nx run-many -t build test lint typecheck --skip-nx-cache
NX_NO_CLOUD=true NX_DAEMON=false CI=true npx nx run-many -t e2e   # where the repo defines it

If any target fails, revert that repo (git checkout .) and report - never open a red PR.

5. Commit + PR (per repo)

Every template's main is a single "Initial commit" (verified across all 12 repos), so keep the branch to one commit (amend, don't stack) and squash-merge the PR.

bash
cd tmp/cnw-templates/<name>-template
git checkout -b update-nx-<target-version>
git add -A
git commit -m "chore(deps): update to nx <target-version>"   # never mention AI/Claude
git push -u origin update-nx-<target-version>
# open a draft PR to main via the GitHub API (token from env/1Password, never hardcode):
curl -s -X POST -H "Authorization: Bearer $GH_TOKEN" -H "Accept: application/vnd.github+json" \
  "https://api.github.com/repos/nrwl/<name>-template/pulls" \
  -d '{"title":"chore(deps): update to nx <target-version>","head":"update-nx-<target-version>","base":"main","draft":true,"body":"<per-repo summary: old->new nx, migrations run>"}'

PR body: old -> new nx version, which migrations ran, and the verification result. For a not-yet-created repo (404 in step 1), skip the push - report it as "not created".

6. Sanity check after the PRs land - run-all-templates.sh

run-all-templates.sh (bundled next to this file) runs create-nx-workspace --template nrwl/<repo> for every template and reports pass/fail. It scaffolds from each repo's main, so run it as a follow-up once the template PRs are merged (or after you push to main) - a real end-to-end check that every template still scaffolds for users. It can't see an unpushed branch, so it's a post-merge step, not a pre-merge gate.

bash
# all templates:
CNW_VERSION=<target-version> ./run-all-templates.sh
# a subset:
CNW_VERSION=<target-version> ONLY="empty-template react-template" ./run-all-templates.sh
7. Report

One table across all repos:

| Template        | Previous | Updated | Files | Status         |
| --------------- | -------- | ------- | ----- | -------------- |
| empty-template  | 23.1.0   | 23.2.0  | 2     | PR #NN (draft) |
| nuxt-template   | 23.1.0   | -       | -     | not created    |

Be ready to explain any change - which migration produced it and why.

Notes

  • Always CI=true for nx/npm commands so nothing blocks on a prompt.
  • Never push without confirmation. Open PRs as drafts; the owner reviews and marks ready.
  • Patch bumps are usually just package.json + lockfile (no migrations.json). Minor/major can rewrite source - review the non-dep diff before committing.

© nrwl, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in .claude/skills/update-cnw-templates of nrwl/nx.

  • SKILL.md
  • run-all-templates.sh

Open the folder on GitHubat commit 200edc8

Compare with similar skills

Update Cnw Templates next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Update Cnw Templates compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Update Cnw Templates this skillnrwl/nx29k—~1.9kAutomated safety check: NotesMIT
Nullable New Paramsremotion-dev/remotion63k—~1kAutomated safety check: PassCustom licence
Code Review SkillRain-kl/OpenFlare289—~2.3kAutomated safety check: NotesMIT
Zardzard-ui/zardui1.2k—~4.6kAutomated safety check: PassMIT
Cometchat Angular V5 Patternscometchat/cometchat-skills132—~1.6kAutomated safety check: PassMIT
Angular ToolingKilo-Org/kilo-marketplace190—~1.7kAutomated safety check: PassMIT

Similar skills

  • Nullable New Params

    remotion-dev/remotion

    Official

    Fix newly added optional parameters, optional React props, and optional type/interface members in Remotion monorepo diffs by converting internal APIs to required nullable values and updating call…

    63k GitHub stars~1k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Code Review Skill

    Rain-kl/OpenFlare

    Provides comprehensive code review guidance for React 19, Vue 3, Angular 17+, Svelte 5, Rust, TypeScript, Java, PHP, Python, Django, Go, C/.NET, Kotlin, Swift, NestJS, C/C++, and more.

    289 GitHub stars~2.3k tokensUpdated 3 days ago
    DevelopmentAuto-check: notes
  • Zard

    zard-ui/zardui

    Manages zard/ui components and projects — adding, composing, styling, and debugging Angular UI built on TailwindCSS v4.

    1.2k GitHub stars~4.6k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Cometchat Angular V5 Patterns

    cometchat/cometchat-skills

    Angular project-shape glue for CometChat — Angular CLI vs Nx, standalone vs NgModule, environment file wiring, SSR/Angular Universal, lazy routes, and RxJS/signals state patterns.

    132 GitHub stars~1.6k tokensUpdated 5 days ago
    DevelopmentAuto-check passed
  • Angular Tooling

    Kilo-Org/kilo-marketplace

    Use Angular CLI and development tools effectively in Angular v20+ projects.

    190 GitHub stars~1.7k tokensUpdated 12 days ago
    DevelopmentAuto-check passed
  • Nx Monorepo

    giuseppe-trisciuoglio/developer-kit

    Provides comprehensive Nx monorepo management guidance for TypeScript/JavaScript projects.

    357 GitHub stars~2.3k tokensUpdated 1 mo ago
    DevOps & CloudAuto-check: notes
  • Monitor CI

    nrwl/nx

    Monitor Nx Cloud CI pipeline and handle self-healing fixes. An agent skill from nrwl/nx.

    29k GitHub starsUsed in 6 repos~4.7k tokens
    Auto-check passed
  • Nx Import

    nrwl/nx

    Import, merge, or combine repositories into an Nx workspace using nx import.

    29k GitHub starsUsed in 6 repos~3.5k tokens
    Auto-check passed
  • Run Nx generators with prioritization for workspace-plugin generators.

    29k GitHub starsUsed in 2 repos~592 tokens
    Auto-check: notes
  • Author or scope a first-party Nx migration. An agent skill from nrwl/nx.

    29k GitHub stars~12k tokensUpdated yesterday
    Auto-check: notes
  • Generate code using nx generators. An agent skill from nrwl/nx.

    29k GitHub starsUsed in 1 repo~2.2k tokens
    Auto-check passed
  • Check modified Nx documentation pages against the astro-docs style guide.

    29k GitHub stars~1.3k tokensUpdated yesterday
    Auto-check passed

Works with

Categories

Questions about Update Cnw Templates

What does Update Cnw Templates do?

Update the CNW (create-nx-workspace) template repos (nrwl/empty-template, nrwl/react-template, etc.) to a target nx version via nx migrate, verify each repo, and open a PR per repo. Update Cnw Templates is an agent skill from nrwl/nx.) to a target nx version via nx migrate, verify each repo, and open a PR per repo.

When should I use Update Cnw Templates?

Update Cnw Templates fits situations like: asked to update the CNW templates; migrate the templates to nx X; bump the template repos; given a version like update templates to 23.2.0.

How do I install Update Cnw Templates in Claude Code?

Run `npx skills add nrwl/nx --skill update-cnw-templates -a claude-code`. Or copy the skill folder (.claude/skills/update-cnw-templates in nrwl/nx) into .claude/skills/update-cnw-templates in your project. Claude Code loads it when a task matches its description.

How do I install Update Cnw Templates in Codex?

Run `npx skills add nrwl/nx --skill update-cnw-templates -a codex`. Or copy the skill folder (.claude/skills/update-cnw-templates in nrwl/nx) into .agents/skills/update-cnw-templates in your project. Codex loads it when a task matches its description.

Can I use Update Cnw Templates in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add nrwl/nx --skill update-cnw-templates -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/update-cnw-templates, .gemini/skills/update-cnw-templates, .github/skills/update-cnw-templates and .opencode/skills/update-cnw-templates in your project.

What does Update Cnw Templates need to run?

Going by SKILL.md and its folder, Update Cnw Templates needs a shell for the scripts in its folder, the command-line tools its instructions call (git, npm, npx and curl) and credentials named GH_TOKEN. Our summary lists: Node.js; A Bash shell. Its frontmatter pre-approves these tools: Bash, Read, Write, Edit, Grep, Glob, WebFetch.

Does Update Cnw Templates access the network?

SKILL.md names 1 domain. In commands or code: api.github.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Update Cnw Templates safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Update Cnw Templates use?

Update Cnw Templates is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Update Cnw Templates use?

About 1.9k tokens (SKILL.md is roughly 7.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Update Cnw Templates?

Skills that share tags, products or a category with Update Cnw Templates: Nullable New Params (remotion-dev/remotion, 63k stars), Code Review Skill (Rain-kl/OpenFlare, 289 stars), Zard (zard-ui/zardui, 1.2k stars) and Cometchat Angular V5 Patterns (cometchat/cometchat-skills, 132 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Update Cnw Templates?

nrwl (a GitHub organization) maintains it in nrwl/nx, which has 29,401 GitHub stars. The repository holds 21 skills in this directory. The repository was last updated on October 10, 2026.

Source: nrwl/nx on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.