Improve Claude Code setup#1378
Open
santir489 wants to merge 4 commits into
Open
Conversation
Rootstrap's tech-guides conventions when Claude Code edits Ruby, Rails, or RSpec code in projects bootstrapped from this template
- pr-size-checker (agent): analyzes the current branch's diff against its base and recommends splitting into smaller PRs when the effective added lines exceed ~400, while respecting Rails-specific groupings (model+migration, routes+controller, factories with new models). - github-pr-formatting (rule): single source of truth for PR creation — walks through filling each section of the repo's PR template (Board, Description, Notes, Tasks, Risk, Preview), defines the title format ([TICKET-ID] when applicable), and documents GitHub markdown gotchas. - create-pr (command): workflow for opening a PR — runs the size check, prepares the branch, gathers commit info, and invokes github-pr-formatting to fill the body.
- Adds .claude/agents/code-reviewer.md, a read-only review subagent that preloads the ruby/rails/rspec convention skills and applies them to diffs against the base branch. Restricted via the `tools:` whitelist to read-only operations. - Removes the Timecop guidance from rspec-conventions: this template uses Rails' built-in `freeze_time` / `travel_to` (configured in spec/rails_helper.rb), and Timecop is not in the bundle. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
This PR improves the Claude Code setup for
rails_api_baseby adding project-specific guidance, agents, commands, rules, and skills focused on Ruby, Rails, RSpec, PR creation, and code review workflows.Changes include:
code-reviewersubagent to review diffs against the base branch using project conventions.pr-size-checkersubagent to detect large PRs and suggest logical splits.create-prcommand to standardize PR creation using the repository template.CLAUDE.mdas the main entry point for Claude Code project context.Notes
This is documentation/tooling only. It does not change application runtime behavior.