Skip to content

docs: add upgrade-rails skill - #227

Merged
toshimaru merged 3 commits into
railsdoc:mainfrom
toshimaru:add-upgrade-rails-skill
Aug 11, 2026
Merged

docs: add upgrade-rails skill#227
toshimaru merged 3 commits into
railsdoc:mainfrom
toshimaru:add-upgrade-rails-skill

Conversation

@toshimaru

@toshimaru toshimaru commented Aug 11, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds .claude/skills/upgrade-rails/SKILL.md, a Claude Code skill that automates patch-level default_rails_version bumps (e.g. 8.1.38.1.3.1), modeled on PR Update Rails from v8.1.0 to v8.1.3 #225.
  • Documents the non-obvious traps: the rails/ submodule looking "dirty" after rake build (expected, not a bug), pre-flighting the target tag before the long build, and the exact (partially unprefixed) commit message pattern from Update Rails from v8.1.0 to v8.1.3 #225.
  • Explicitly out of scope: minor/major version bumps (e.g. 8.18.2), which need a different set of _config.yml/ci.yml edits.

Test plan

  • Skill file renders correctly and frontmatter (name, description) is valid
  • Dry run: invoke the skill against the pending 8.1.38.1.3.1 upgrade and confirm it produces the same diff shape as Update Rails from v8.1.0 to v8.1.3 #225

🤖 Generated with Claude Code

Documents the default_rails_version bump procedure from PR railsdoc#225,
including the rails submodule dirty-worktree behavior after `rake build`
that's easy to mistake for a problem.
Copilot AI lite review requested due to automatic review settings August 11, 2026 09:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new Claude skill document to standardize/automate patch-level upgrades of the site’s documented Rails version (updating _config.yml, moving the rails/ submodule tag, and regenerating src/ docs), modeled after PR #225.

Changes:

  • Introduce a new .claude skill with a step-by-step procedure for patch-level default_rails_version bumps.
  • Document workflow pitfalls (submodule “dirty” state after rake build, pre-flighting tags, and expected commit message formats).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .claude/skills/upgrade-rails/SKILL.md Outdated
switch_default_rails is a prerequisite of the build task, so a bad tag
already fails fast before the expensive bundle install / rake rdoc
regeneration runs — no separate pre-flight gate is needed.

Addresses review comment: railsdoc#227 (comment)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Suppressed comments (1)

.claude/skills/upgrade-rails/SKILL.md:80

  • This references mise.toml as the source of the Ruby version, but there is no mise.toml in the repo. The Ruby 3.4 requirement appears to be defined in CI workflows instead, so this line is currently misleading for anyone following the skill.
— so the Jekyll build is already validated once this completes. Uses Ruby 3.4 per
`mise.toml`. This is the long step.

mise is a personal toolchain choice, not a repo-wide requirement.
Point to ci.yml's ruby-version instead, which is the actual source of
truth for the Ruby version this repo targets.
@toshimaru
toshimaru merged commit d7ba1f7 into railsdoc:main Aug 11, 2026
11 checks passed
@toshimaru
toshimaru deleted the add-upgrade-rails-skill branch August 11, 2026 09:54
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.

2 participants