| name | boo-framework |
| description | Defines the operating framework for AI-assisted Ruby on Rails development. Use when planning architecture, framing implementation strategy, creating multi-step workflows, coordinating specialized Rails skills, or aligning a team on a consistent delivery model. Triggers on requests like framework definition, implementation workflow, Rails standards, feature planning, or system-level guidance. |
Rails Framework
Overview
Use this skill as the top-level operating system for Rails work. It standardizes how requests are analyzed, implemented, verified, and improved.
Execution Default (Required)
When this skill is invoked in Claude/Codex and shell execution is available, execute the workflow script first from the Rails app root unless the user explicitly asks for inspect-only output:
bash ${CLAUDE_PLUGIN_ROOT}/skills/boo-framework/scripts/run_framework_workflow.sh --project-dir "$PWD" --mode strict --gemset full
- If LSP is required: add
--require-lsp.
- If user asks no changes: use
--gem-dry-run or --no-auto-install-gems.
Do not claim framework execution is complete without showing the generated summary path (tmp/rails-framework-workflow-*/00-summary.md).
LSP Recommendation
Strongly recommend enabling LSP before running this skill:
ENABLE_LSP_TOOL=1 in the shell running Claude/Codex.
- Run from the Rails app root directory.
- Ensure a Ruby LSP backend is available in the app bundle (
ruby-lsp and/or solargraph).
If LSP is not enabled, continue execution but mark reduced confidence for symbol navigation and code-intel findings.
Prompt Suggestions
Use one of these prompts when invoking this skill in Claude.
- Whole-project inspection:
Use boo-framework. Inspect the whole Rails project first (app/, config/, db/, lib/, spec/) and return: architecture map, top risks, and prioritized next actions. Do not implement yet.
- Inspection + implementation:
Use boo-framework. Run Inspect -> Diagnose -> Design -> Implement -> Verify -> Improve for this project. Implement only the top 2 high-impact fixes and summarize residual risks.
- Release readiness:
Use boo-framework for pre-release hardening. Focus on performance, security, migrations, and test reliability. Return blockers, fixes, alternatives, and rollback notes.
- Force execution (recommended):
Use boo-framework and execute the framework workflow script immediately against the current project. Then return the summary report and key findings.
When asking for a full inspection, always include:
- Scope directories (for example:
app/, config/, db/, spec/).
- Priority focus (for example: N+1, auth gaps, risky migrations, flaky tests).
- Implementation boundary (
inspect only or implement top N fixes).
Core Loop
Apply this sequence for every meaningful request:
- Inspect: Understand context, conventions, dependencies, and constraints.
- Diagnose: Identify risks, hotspots, unknowns, and likely failure modes.
- Design: Pick a primary approach and at least one alternative.
- Implement: Apply conventions-first Rails changes.
- Verify: Run quality checks and targeted validation.
- Improve: Capture patterns for reuse in skills/scripts.
Output Contract
Every downstream skill response should include:
- Context: What was inspected.
- Findings: What matters and why.
- Primary Fix: Chosen implementation path.
- Alternatives: At least one credible option with tradeoffs.
- Validation: What was checked and results.
- Risk: Residual risk and rollback strategy.
- Change Log: files changed, short summary per file, and rollback hint.
Final Summary (Required)
Always end execution with:
- Outcome: pass, warn, or fail.
- What changed: files and short reason.
- What was validated: checks run and status.
- Remaining risk: unresolved items.
- Next step: single highest-priority action.
Orchestration Rules
Use specialized skills when needed:
- Root-cause unclear: invoke
boo-diagnose.
- Deep appsec review needed: invoke
boo-security.
- Release readiness needed: invoke
boo-quality.
- Security/data safety concerns: invoke
boo-safety.
- Architectural choice needed: invoke
boo-alternatives.
- Developer friction or slow loop: invoke
boo-dx.
Scripted Orchestration
Use the workflow script to run core steps in sequence:
scripts/run_framework_workflow.sh
scripts/run_framework_workflow.sh --project-dir /path/to/rails-app --mode advisory
scripts/run_framework_workflow.sh --test-target spec/requests/users_spec.rb
scripts/run_framework_workflow.sh --require-lsp (hard fail if ENABLE_LSP_TOOL!=1)
scripts/run_framework_workflow.sh --gemset minimal (install only core gate gems)
scripts/run_framework_workflow.sh --no-auto-install-gems (skip gem bootstrap)
By default, the framework workflow bootstraps missing gems in the target Rails app before running steps.
Core (--gemset minimal):
rubocop
rubocop-rails
brakeman
Extended (--gemset full, default):
rspec-rails
rubocop-rspec
bullet
strong_migrations
ruby-lsp
The workflow executes:
boo-diagnose/scripts/run_diagnose.sh
boo-security/scripts/run_security_audit.sh
boo-safety/scripts/safety_check.sh
boo-quality/scripts/run_gates.sh
Outputs are written to tmp/rails-framework-workflow-<timestamp>/ with per-step reports and a consolidated summary.
Non-Negotiables
- Prefer Rails conventions over unnecessary abstraction.
- Never skip validation for database, security, or production-impacting changes.
- Avoid silent assumptions; surface unknowns explicitly.
- Prefer reversible migrations and incremental rollout paths.
References
Load references/external-resources.md when decisions need canonical guidance.