/rails-cto:rails-cto-commitfrom rails-cto
Stages and commits all outstanding changes with a clear, human-friendly message. Optionally pushes after user confirmation, with safeguards against force-pushing or committing secrets.
Ships in rails-cto. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Stage and commit all outstanding changes with a clear, human-friendly message. Optionally push to the remote — but only after the user confirms.
Run these in parallel to understand what's changed:
git status — see untracked and modified filesgit diff — see unstaged changesgit diff --cached — see already-staged changesgit log --oneline -5 — see recent commit style for referenceIf there are no changes to commit (nothing untracked, nothing modified, nothing staged), tell the user and stop.
Add all changes — tracked and untracked — to the staging area:
git add -A
If any files look like they contain secrets (.env, credentials, tokens, API keys), warn the user and exclude them before committing.
Write a commit message that a non-technical person could understand. The goal is clarity — someone glancing at the git log should immediately know what changed and why.
Rules:
Co-Authored-By).Good examples:
Add password reset flow for logged-out usersFix broken checkout button on mobile screensUpdate pricing page to show annual discountRemove unused admin dashboard pagesBad examples:
refactor: extract util fn for auth middleware (too technical)fix bug (too vague)WIP (not descriptive)Update files (says nothing)Use a HEREDOC to pass the message so multi-line messages format correctly:
git commit -m "$(cat <<'EOF'
Your commit subject line here
Optional body explaining why, if needed.
EOF
)"
After committing, ask the user if they want to push to the remote. Do not push automatically.
If they say yes:
git push -u origin <branch> to set tracking.git push.main or master (unless the user insists).If they say no or don't mention pushing, just confirm the commit was made and stop.
What SKILL.md sets; muted values are Claude Code's defaults
17 skills in this plugin
/rails-ctoOrchestrator skill for Ruby on Rails projects. Initializes sessions, routes to specialized skills, enforces mandatory QA gates, and runs the completion checklist. Invoke at the start of every Rails session./rails-cto-apiHow to build RESTful JSON APIs in a Rails 8 application following OpenAPI standards. Use when creating, modifying, or debugging API endpoints, serializers, authentication, documentation, or any code under the Api:: namespace. Also use when the user mentions "api", "endpoint", "api key", "serializer", "openapi", "swagger", "api documentation", "cors", "rate limit", "pagination cursor", "api versioning", or asks about exposing data to external consumers. Proactively apply these rules whenever touching API controllers, routes, or serializers, even if the user doesn't explicitly ask.
/rails-cto-architectHow to write comprehensive implementation plans for multi-step Rails features before any code is written. Use when the user has a spec, feature request, or multi-step task and wants to plan the approach before touching code. Also use when the user mentions "create a plan", "write a plan", "plan this", "plan a feature", "implementation plan", "build a new feature", "new feature", "how should I build", "how do I build", "architect this", "design this", "design a feature", "feature design", "spec", "requirements", or pastes long-form requirements. Proactively invoke this skill BEFORE writing any code for multi-file or multi-step work, even if the user doesn't explicitly say "plan" — every multi-step feature goes through architect first. Produces a bite-sized, task-by-task plan optimized for rails-cto-engineer to execute. Never writes code, never commits, and never generates plans that contain commit steps.
/rails-cto-engineerThis file provides guidance to Claude Code (claude.ai/code) when working with Ruby on Rails projects./rails-cto-erbHow to write clean, well-formatted ERB templates for this Rails 8 project. Use when creating or modifying any ERB view, partial, layout, or component template. Also use when the user mentions "erb", "views", "partials", "templates", "html formatting", "attribute alignment", or asks about view-layer code. Proactively apply these rules whenever touching .html.erb files, even if the user doesn't explicitly ask for formatting help.
/rails-cto-minitestWrite and maintain Minitest tests for a Rails 8 application using the Minitest::Spec DSL. Covers model tests, command/service tests, controller/integration tests, job tests, ViewComponent tests, and system tests. Use this skill whenever writing, fixing, or reviewing tests, or when the user asks to add test coverage, write specs, create test cases, or debug failing tests. Also trigger when generating new models, controllers, commands, jobs, or components that need accompanying tests.
npx claudepluginhub mattsears/rails-cto --plugin rails-ctoOther plugins' skills for the same job