/reactree-rails-dev:codebase-inspectionfrom reactree-rails-dev
Inspects Rails project structure, pattern discovery, naming conventions, and method visibility before writing code. Enforces evidence-based architectural decisions.
Ships in reactree-rails-dev. 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.
Core Rule: "Inspect before you suggest" — No planning decisions without codebase inspection. Every recommendation must cite observed file paths.
What are you doing?
│
├─ Creating a new file
│ └─ Inspect: Target directory + similar existing files
│
├─ Implementing a pattern (service, component, job)
│ └─ Inspect: Existing implementations of same pattern
│
├─ Modifying existing code
│ └─ Inspect: All usages + method visibility
│
├─ Making architectural decision
│ └─ Inspect: Project structure + Gemfile + existing patterns
│
└─ Starting fresh on a project
└─ Run FULL inspection (all sections below)
tree app -L 2 -I 'assets|javascript' 2>/dev/null || find app -type d -maxdepth 2
head -60 Gemfile | grep -v '^#' | grep -v '^$'
# Services
ls app/services/*/ 2>/dev/null
head -30 $(find app/services -name '*.rb' | head -1)
# Components
ls app/components/*/ 2>/dev/null
head -40 $(find app/components -name '*_component.rb' | head -1)
# Jobs
ls app/jobs/ 2>/dev/null
head -30 $(find app/jobs -name '*.rb' | head -1)
# Class/module patterns in services
grep -r 'module\|class' app/services/ --include='*.rb' | head -20
# Find method and check if after private/protected
awk '/class/,/private/' app/path/to/file.rb | grep 'def '
NEVER suggest a directory structure without checking it exists:
# WRONG: "Let's create app/services/payments/..."
# (Never verified if app/services/ exists or follows different pattern)
# RIGHT: First run: ls app/services/*/ 2>/dev/null
# Then cite: "Following existing pattern in app/services/orders/"
NEVER recommend a pattern without finding an existing example:
# WRONG: "Use the Service Object pattern with .call"
# (Project might use .perform, .execute, or different pattern entirely)
# RIGHT: "Matching TasksManager::Create pattern from app/services/tasks_manager/create.rb"
NEVER assume gem availability:
# WRONG: "Use Sidekiq for this background job"
# (Gemfile might have delayed_job, resque, or good_job instead)
# RIGHT: Check Gemfile first, cite: "Using Sidekiq (Gemfile line 42)"
NEVER invent naming conventions:
# WRONG: "Call it PaymentProcessor" (when project uses PaymentService pattern)
# RIGHT: "Following *Service naming from app/services/order_service.rb"
After inspection, document findings before planning:
## Inspection Findings
### Structure Observed
- Services: `app/services/{domain}/` (namespaced)
- Components: `app/components/{namespace}/` (separate templates)
- Evidence: [file path]
### Pattern in Use
- Service signature: `.call(params)` returns Result object
- Evidence: `app/services/orders/create.rb:15`
### Conventions
- Naming: `{Domain}::{Action}` (e.g., `Orders::Create`)
- Evidence: [file paths showing pattern]
### Dependencies
- Background: Sidekiq (Gemfile:42)
- Components: ViewComponent 3.x (Gemfile:28)
**Inspection Limitation:**
- Unable to access: [path]
- Proceeding with assumption: [assumption]
- Risk: [what could go wrong]
- Mitigation: [how to verify later]
Every recommendation must cite:
file:lineNo citations = No recommendation. Return to inspection.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub kaakati/rails-enterprise-dev --plugin reactree-rails-dev26 skills in this plugin
/accessibility-patternsAccessibility PatternsWCAG 2.2 Level AA compliance for Rails/ViewComponent/Hotwire. Use when: (1) Building interactive widgets, (2) Handling form validation errors, (3) Adding dynamic content with Turbo Streams, (4) Auditing existing components. Trigger keywords: accessibility, a11y, WCAG, ARIA, screen reader, keyboard, focus, contrast/action-cable-patternsAction Cable & WebSocket PatternsReal-time WebSocket features with Action Cable in Rails. Use when: (1) Building real-time chat, (2) Live notifications/presence, (3) Broadcasting model updates, (4) WebSocket authorization. Trigger keywords: Action Cable, WebSocket, real-time, channels, broadcasting, stream, subscriptions, presence, cable/activerecord-patternsActiveRecord Query PatternsComplete guide to ActiveRecord query optimization, associations, scopes, and PostgreSQL-specific patterns. Use when: (1) Writing database queries, (2) Designing model associations, (3) Creating migrations, (4) Optimizing query performance, (5) Debugging N+1 queries and GROUP BY errors. Trigger keywords: database, models, associations, validations, queries, ActiveRecord, scopes, migrations, N+1, PostgreSQL, indexes, eager loadingOther plugins' skills for the same job