rhdh-yarn-bump
Skill18 starsChanged 2 months agoApache-2.0View on GitHub
Bumps Yarn Berry across the RHDH repos — rhdh-plugins, rhdh midstream, rhdh-plugin-export-overlays, rhdh-cli, and GitLab CEE rhidp/rhdh and rhdh-plugin-catalog — with `yarn set version` plus install, and rewrites the pins Yarn cannot see: `packageManager`, `yarnPath`, `ENV YARN=`, and Containerfile lines. Use for "bump yarn to 4.17.1", "upgrade Yarn Berry across the repos", "which Yarn version is each repo pinned to", or scanning yarn pins.
In this repository62 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- rhdh-base-imagesSkill
- rhdh-konflux-rpaSkill
- rhdh-konflux-tasksSkill
- rhdh-prow-jobsSkill
- rhdh-prow-release-branchSkill
- rhdh-prow-triggerSkill
- rhdh-jira-createSkill
- rhdh-jira-linkSkill
- rhdh-jira-refineSkill
- rhdh-jira-sprint-planSkill
- rhdh-jira-sprint-reportSkill
- rhdh-jira-updateSkill
- agent-readinessSkill
- ask-rhdhSkill
- clean-proseSkill
- setup-rhdh-skillsSkill
- skill-authoringSkill
- rhdh-backstage-upgradeSkill
- rhdh-localSkill
- rhdh-operator-pr-testSkill
- rhdh-overlaySkill
- rhdh-plugin-authoringSkill
- rhdh-plugin-bug-fixSkill
- rhdh-plugin-exportSkill
- rhdh-plugin-midstream-propagateSkill
- rhdh-plugin-nfs-migrationSkill
- rhdh-plugin-wiringSkill
- rhdh-pr-createSkill
- rhdh-pr-reviewSkill
- rhdh-test-placementSkill
- backstage-api-changesSkill
- mutation-gateSkill
- openspec-journalSkill
- prose-editingSkill
- rhdh-contextSkill
- rhdh-forgeSkill
- rhdh-jira-apiSkill
- rhdh-jira-authoringSkill
- rhdh-spec-driven-schemaSkill
- openspec-apply-changeSkill
- openspec-archive-changeSkill
- openspec-audit-changeSkill
- openspec-bulk-archive-changeSkill
- openspec-continue-changeSkill
- openspec-exploreSkill
- openspec-ff-changeSkill
- openspec-new-changeSkill
- openspec-onboardSkill
- openspec-sync-specsSkill
- openspec-verify-changeSkill
- rhdh-overlay-cve-exportSkill
- rhdh-platform-lifecycleSkill
- rhdh-release-announceSkill
- rhdh-release-fixversionsSkill
- rhdh-release-scheduleSkill
- rhdh-release-sosSkill
- rhdh-release-statusSkill
- rhdh-release-teamsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
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
- Very specific: line 42
Use an exact --to (not stable) so every repo matches the Renovate/reference PR.
- Very specific: line 76
Commit, push, or open a PR·MR only when the user asks, following /mutation-gate with the repository and branch as each target.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.
Files
RHDH multi-repo Yarn bump
Goal
Propagate a Yarn Berry bump (e.g. rhdh-plugins#2918, RHIDP-16074) across:
| Repo | Notes |
redhat-developer/rhdh-plugins | root workspace (+ Fullsend if hardcoded) |
redhat-developer/rhdh | root + nested workspaces + Containerfile |
redhat-developer/rhdh-plugin-export-overlays | many packageManager pins |
redhat-developer/rhdh-cli | root packageManager / yarnPath (now Yarn 4.17.1) |
gitlab.cee.redhat.com/rhidp/rhdh | distgit binary + ENV YARN= (copy binary from GH bump) |
gitlab.cee.redhat.com/rhidp/rhdh-plugin-catalog | per-workspace pins + Containerfiles |
What actually changes
For each matching workspace:
yarn set version <to> # packageManager + yarnPath + .yarn/releases
chmod +x .yarn/releases/yarn-<to>.cjs
yarn install --mode=update-lockfilePlus pins Yarn cannot see: ENV YARN=, Containerfile / Dockerfile / embedded yarn set version.
No binary download. Bump GitHub repos first (yarn set version produces yarn-<to>.cjs). For GitLab CEE midstream/distgit trees (gitlab.cee.redhat.com/rhidp/rhdh, …/rhdh-plugin-catalog) that only ship a checked-in release + ENV YARN=, copy that same yarn-<to>.cjs into .yarn/releases/ (and remove the old yarn-<from>.cjs), then run the script so text pins update. Use glab against gitlab.cee.redhat.com (not gitlab.com) when opening MRs for those roots.
Use an exact --to (not stable) so every repo matches the Renovate/reference PR.
Script
SKILL=<this skill's directory>
# GH first (4.12/4.14 defaults), then GL CEE (after copying yarn-<to>.cjs into distgit if needed)
node "$SKILL/scripts/bump-yarn.js" --to 4.17.1 \
--root /path/to/rhdh-plugins \
--root /path/to/rhdh \
--root /path/to/overlays \
--root /path/to/rhdh-cli \
--root /path/to/rhdh-downstream \
--root /path/to/rhdh-plugin-catalogDefaults:
--from 4.12.0,4.14.1— only those move (4.8.1/4.9.2/ dcm4.15.0stay). Repos already on--to(e.g. rhdh-cli at 4.17.1) are no-ops.- Lock refresh for every
yarn.lockunder--to(incl. inherited root pin); skipdist-dynamicand explicit older pins. Full multi-repo regen can take >45 minutes; use--no-refresh-locksto skip
node "$SKILL/scripts/bump-yarn.js" --scan --root /path/to/repo
node "$SKILL/scripts/bump-yarn.js" --to 4.17.1 --root /path/to/repo --dry-run
node "$SKILL/scripts/bump-yarn.js" --to 4.17.1 --root /path/to/repo --no-refresh-locksAgent workflow
- Confirm
--to/--from. - Resolve local
--rootcheckouts; bump GitHub roots first. - For GitLab CEE midstream/distgit (
gitlab.cee.redhat.com/rhidp/rhdh,…/rhdh-plugin-catalog): copyyarn-<to>.cjsfrom a GH bump into.yarn/releases/(drop old--frombinary). --scan, then bump (--dry-runfirst if unfamiliar).- Summarize set-version dirs, extras, lock refresh.
- Commit, push, or open a PR·MR only when the user asks, following
/mutation-gatewith the repository and branch as each target. To attach the work to its Jira issue, invoke/rhdh-jira-linkby name and use what it returns.
Completion
A bump is done when every requested --root has been scanned and each
workspace matching --from sits on --to, leaving behind:
- updated
packageManager,yarnPath, and.yarn/releases/yarn-<to>.cjsat mode100755, with the old--frombinary removed; - rewritten pins Yarn cannot see:
ENV YARN=, Containerfile / Dockerfile, and embeddedyarn set versionlines; - refreshed
yarn.lockfiles, or a stated--no-refresh-locksskip.
Report the set-version directories, the extras rewritten, the lock-refresh
result, and every root left untouched with its reason: already on --to,
pinned outside --from, or not checked out locally. Working trees stay
uncommitted; if the user asked for a commit, PR, or MR, report the outcome of
each of those writes too.
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
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.

