Skip to content

fix(docs): correct post-CLI-release action guidance in CLAUDE.md#3387

Closed
kdaviduik wants to merge 3 commits intomainfrom
kd-update-claude
Closed

fix(docs): correct post-CLI-release action guidance in CLAUDE.md#3387
kdaviduik wants to merge 3 commits intomainfrom
kd-update-claude

Conversation

@kdaviduik
Copy link
Copy Markdown
Contributor

@kdaviduik kdaviduik commented Jan 17, 2026

WHY are these changes introduced?

The CLAUDE.md guidance for the skeleton/CLI release process contained several inaccuracies that would mislead maintainers:

  1. Incorrect skeleton changeset requirement — the old docs said to include only @shopify/cli-hydrogen when changing the skeleton. The correct requirement is all three packages: skeleton, @shopify/cli-hydrogen, AND @shopify/create-hydrogen. Without all three, npm create @shopify/hydrogen@latest won't get the updated template.

  2. Wrong description of how scaffolding works — the old docs described template fetching from GitHub at runtime via the GitHub API. The actual behavior is that the skeleton is pre-bundled inside @shopify/create-hydrogen at build time. No network fetch happens for the default template.

  3. Vague post-CLI-release guidance — the old docs said the second cli-hydrogen release is "often required" and that Dependabot handles @shopify/cli version bumps (it does not — .github/dependabot.yaml only covers github-actions). Whether action is needed depends on what the cli-hydrogen changes actually contained.

WHAT is this pull request doing?

Skeleton changeset requirement (Developer Actions section): Corrects the required packages from @shopify/cli-hydrogen only → all three (skeleton + @shopify/cli-hydrogen + @shopify/create-hydrogen), with a cross-reference to the new Quick Reference section.

How Project Scaffolding Works: Replaces the incorrect runtime-fetch description with the correct pre-bundling explanation, including a collapsible bundling chain diagram.

New "Quick Reference: Contributing to Skeleton or CLI" section: Step-by-step guidance for the two most common contribution scenarios — updating the skeleton template vs. updating cli-hydrogen only — including the correct changeset requirements for each, with a canonical example PR.

Understanding the Circular Dependency (replaces "CLI Release Coordination"): Replaces the old "always two releases required" narrative (with the Day 1–4 example timeline) with a precise two-scenario decision model:

  • If cli-hydrogen had actual code changes: manually update skeleton's @shopify/cli and trigger another release cycle
  • If cli-hydrogen changes were ONLY a changeset to re-bundle the skeleton: no further action needed

Maintainer Actions - CLI Releases: Collapses two vague bullets into one that cross-references the new decision model section.

shopify-cli-update runbook (.claude/commands/shopify-cli-update.md): Applies the same decision criteria inline, replacing the vague "may require" statement.

Checklist

  • I've read the Contributing Guidelines
  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've added a changeset if this PR contains user-facing or noteworthy changes
  • I've added or updated the documentation

@kdaviduik kdaviduik requested a review from a team as a code owner January 17, 2026 00:39
@shopify
Copy link
Copy Markdown
Contributor

shopify Bot commented Jan 17, 2026

Oxygen deployed a preview of your kd-update-CLAUDE branch. Details:

Storefront Status Preview link Deployment details Last update (UTC)
metaobjects ✅ Successful (Logs) Preview deployment Inspect deployment January 17, 202612:39 AM
Skeleton (skeleton.hydrogen.shop) ✅ Successful (Logs) Preview deployment Inspect deployment March 9, 2026 1:57 AM
custom-cart-method ✅ Successful (Logs) Preview deployment Inspect deployment January 17, 202612:39 AM
third-party-queries-caching ✅ Successful (Logs) Preview deployment Inspect deployment January 17, 202612:39 AM

Learn more about Hydrogen's GitHub integration.

@kdaviduik kdaviduik marked this pull request as draft January 17, 2026 00:59
@fredericoo
Copy link
Copy Markdown
Contributor

duplicate of #3525

@fredericoo fredericoo closed this Mar 3, 2026
The old guidance incorrectly stated that bumping the CLI version after a cli-hydrogen release is 'unnecessary' and that Dependabot handles @shopify/cli version updates (it does not — .github/dependabot.yaml only covers github-actions).

Replace with a precise two-scenario decision model: if cli-hydrogen had actual code changes, manually update skeleton's @shopify/cli and trigger another release cycle; if changes were only a changeset to re-bundle the skeleton, no further action is needed. Apply the same logic consistently to the shopify-cli-update.md runbook.
@kdaviduik kdaviduik reopened this Mar 9, 2026
@kdaviduik kdaviduik changed the title Improve CLAUDE.md information about changing skeleton template and CLI fix(docs): correct post-CLI-release action guidance in CLAUDE.md Mar 9, 2026
The old guidance used the vague heuristic 'will someone scaffolding tomorrow need this?' which implied bumping create-hydrogen for any non-init CLI change. This was wrong for two reasons:

1. create-hydrogen only bundles (a) the init code path and (b) the full dist/assets directory -- not other commands like dev/build/check. Bumping it for non-init command fixes is a no-op.

2. The old text omitted the assets dimension entirely: changes to files in packages/cli/assets/ (virtual routes, tailwind configs, etc.) DO require a create-hydrogen bump even if the init command code is untouched.

Replace with a precise two-part decision: does the change affect the init command OR any CLI assets? If yes, bump both. If no, just bump cli-hydrogen.
@kdaviduik
Copy link
Copy Markdown
Contributor Author

Closing in favour of #3555

@kdaviduik kdaviduik closed this Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants