agentleFS
nrwlnrwl/nx/.agents/skills/docs-website-update/SKILL.md

docs-website-update

Skill29k starsChanged 8 days agoMITView on GitHub

Cherry-pick merged documentation commits from master onto the current website and release branches. Use when asked to sync or update the live Nx docs branches; prepare local commits without pushing.

  • Deletes or force-pushes
  • Commits and pushes

Trending

More talk lately.about the whole repository

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 5 mentionsApr 2026: 4 mentionsMay 2026: 1 mentionJun 2026: 0 mentionsJul 2026: 1 mentionAug 2026: 0 mentionsSep 2026: 1 mentionOct 2026: 4 mentionsNov 2026: 1 mentionDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the nrwl/nx repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about nrwl/nx

The biggest 5 of 93 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 93

Talked about on GitHub, YouTube, Stack Overflow, Bluesky and Hacker News (93 times).

On GitHub · 26

21 more on GitHub

On YouTube · 25

20 more on YouTube

On Stack Overflow · 25

20 more on Stack Overflow

On Bluesky · 11

6 more on Bluesky

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read Codex execution conventions before following this workflow.

    line 6
  2. Very specific:

    If you are not in the nx repo, say so and stop working!

    line 14
  3. Distinctive:

    If there are uncommitted/untracked files, say so and stop working!

    line 15
  4. Very specific:

    If only website-23 gets the commit, the next patch release from 23.1.x wipes it.

    line 24
  5. Distinctive:

    If no release branch exists for that major, say so and continue with the website branch only.

    line 51
  6. Distinctive:

    If the shas differ, the fetch did not take - stop and re-fetch.

    line 60
  7. Distinctive:

    If the pick is empty (already applied): git cherry-pick --skip, record as skipped.

    line 88
  8. Distinctive:

    Do NOT push. End by reminding which branches have unpushed commits, e.g.:

    line 113

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Read Codex execution conventions before following this workflow.

Update Docs Website

This skill works in the nx repo only.

CRITICAL:

  • If you are not in the nx repo, say so and stop working!
  • If there are uncommitted/untracked files, say so and stop working!

Why two branches

Docs commits must land on BOTH:

  • website-<major> (e.g. website-23) - deploys nx.dev for the current major
  • the latest release branch <major>.<minor>.x (e.g. 23.1.x) - used for patch releases, and the release pipeline overwrites the website-<major> branch from it

If only website-23 gets the commit, the next patch release from 23.1.x wipes it.

How to Update

1. Determine the branches

The + on each refspec is required. A release force-pushes website-<major> from the release branch, so a non-forced fetch is rejected as non-fast-forward and leaves origin/website-<major> pointing at the pre-release commit.

git fetch origin '+refs/heads/master:refs/remotes/origin/master'
git fetch origin '+refs/heads/website-*:refs/remotes/origin/website-*'
git fetch origin '+refs/heads/*.x:refs/remotes/origin/*.x'
  • Website branch: highest origin/website-<N> where <N> is an integer. Exclude website-master and any branch with extra path segments (e.g. website-19-cherry-01/...).
    git for-each-ref --format='%(refname:short)' 'refs/remotes/origin/website-*' \
      | grep -E '^origin/website-[0-9]+$' | sort -V | tail -1
  • Release branch: highest origin/<N>.<minor>.x with the SAME major <N> as the website branch.
    git for-each-ref --format='%(refname:short)' 'refs/remotes/origin/*.x' \
      | grep -E "^origin/${MAJOR}\.[0-9]+\.x$" | sort -V | tail -1
    If no release branch exists for that major, say so and continue with the website branch only.

Confirm the remote-tracking refs actually match the remote before touching them:

git ls-remote origin refs/heads/<website-branch> refs/heads/<release-branch>
git rev-parse origin/<website-branch> origin/<release-branch>

If the shas differ, the fetch did not take - stop and re-fetch. Every later step (the anchor commit, the cherry-pick list, any conflict) is wrong otherwise.

Report both branch names before doing any work.

2. Sync the branches

git checkout master && git reset --hard origin/master
git checkout <website-branch> && git reset --hard origin/<website-branch>
git checkout <release-branch> && git reset --hard origin/<release-branch>

3. Build the cherry-pick list (from the website branch)

  1. On <website-branch>, get the last commit subject -> /tmp/last-website-commit.txt
  2. Back on master, find the commit whose subject matches /tmp/last-website-commit.txt -> sha in /tmp/last-master-sha.txt
  3. On master, list commits between that sha and HEAD, filtered to subjects starting with docs( or feat(nx-dev) -> /tmp/commits-to-cherry-pick.txt (oldest at bottom, as git log prints it)

4. Cherry-pick onto the website branch

On <website-branch>, oldest to newest:

git cherry-pick <sha>
  • On failure: record in /tmp/failed-website.txt, git cherry-pick --abort, move on.
  • If the pick is empty (already applied): git cherry-pick --skip, record as skipped.

5. Cherry-pick the SAME list onto the release branch

The release branch was cut from master at a different point, so some commits may already be there.

  1. Skip any commit whose subject already appears in the release branch's log:
    git log <release-branch> --format='%s' | grep -Fxq "<subject>"
  2. Cherry-pick the rest oldest to newest, same rules as step 4.
    • Failures -> /tmp/failed-release.txt
    • Empty picks -> git cherry-pick --skip

Conflicts are more likely here than on the website branch - do NOT try to resolve them, just abort and report.

6. Report

Print a per-branch breakdown:

BranchCherry-pickedAlready present / skippedFailed

List failed shas with subjects so they can be handled manually.

Do NOT push. End by reminding which branches have unpushed commits, e.g.:

git push origin website-23
git push origin 23.1.x

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.