Agent skill
rails
Ruby on Rails backend development patterns for [PROJECT_NAME]
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/rails
SKILL.md
Rails Backend Skill
Project: [PROJECT_NAME] Framework: Ruby on Rails [VERSION] Generated: [DATE]
Quick Reference
Service Objects
- One class per use case
callmethod as entry point- Return Result objects (success/failure)
Models
- Thin models, fat services
- Validations in model
- Business logic in services
Controllers
- Thin controllers
- Delegate to services
- Standard REST actions
Testing
- RSpec for unit/integration tests
- FactoryBot for test data
- Shoulda Matchers for model specs
Available Modules
| Module | File | Use When |
|---|---|---|
| Service Patterns | services.md | Business logic, use cases |
| Model Patterns | models.md | ActiveRecord, validations |
| API Design | api-design.md | Controllers, serializers |
| Testing | testing.md | RSpec, factories |
| Dos and Don'ts | dos-and-donts.md | Project-specific learnings |
Project Context
Tech Stack
- Framework: Ruby on Rails [RAILS_VERSION]
- Ruby Version: [RUBY_VERSION]
- Database: [DATABASE]
- Testing: [TESTING_FRAMEWORK]
- Background Jobs: [BACKGROUND_JOBS]
- Authentication: [AUTH_LIBRARY]
Architecture Patterns
Service Layer: [SERVICE_LAYER_PATTERN]
API Design: [API_DESIGN_PATTERN]
Data Access: [DATA_ACCESS_PATTERN]
Error Handling: [ERROR_HANDLING_PATTERN]
Project Structure
[PROJECT_STRUCTURE]
Naming Conventions
[NAMING_CONVENTIONS]
Self-Learning
Wenn du während der Implementierung etwas lernst:
→ Füge es zu dos-and-donts.md in diesem Ordner hinzu.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?