Curated library of 41 public AI agent skills for Ruby on Rails development. Organized by category: planning, testing, code-quality, ddd, engines, infrastructure, api, patterns, context, and orchestration. Covers code review, architecture, security, testing (RSpec), engines, service objects, DDD patterns, and TDD automation. Repository workflows remain documented in GitHub but are intentionally excluded from the Tessl tile.
95
93%
Does it follow best practices?
Impact
96%
1.77xAverage score across 41 eval scenarios
Passed
No known issues
Orchestrates systematic code quality checks, safe refactoring, and documentation updates across three phases. Use this instead of individual refactoring or documentation skills when full production-readiness is required end-to-end.
Check code against Rails standards via skills/code-quality/apply-code-conventions (DRY/YAGNI/PORO/CoC/KISS compliance, linter as style source of truth, structured logging) and skills/code-quality/apply-stack-conventions (Rails + PostgreSQL patterns, Hotwire + Tailwind conventions, security best practices).
Complexity Metrics to Evaluate:
Specific File Patterns to Check:
app/controllers/**/*.rb — Check for fat controllers, callback chainsapp/models/**/*.rb — Check for fat models, business logic in modelsapp/services/**/*.rb — Check for service object violationsapp/jobs/**/*.rb — Check for job object violationsspec/**/*.rb — Check for test duplication and complexityTool Integration Guidance:
# Run rubocop with specific complexity cops
bundle exec rubocop --only Metrics/CyclomaticComplexity,Metrics/MethodLength,Metrics/ParameterLists
# Check for code duplication
bundle exec rubocop --only Metrics/AbcSize,Metrics/PerceivedComplexity
# Security scan
bundle exec brakeman --no-pager
# SQL injection scan
bundle exec bundle-audit check --updateExample Violations:
DRY Violation:
# Before: Logic duplicated across OrderService and CartService
def apply_discount(price, pct) = price - (price * pct / 100.0)
# After: Extracted to shared PORO
class DiscountCalculator
def self.apply(price, pct) = price - (price * pct / 100.0)
endSRP Violation:
# Before: Class handles multiple responsibilities
class OrderProcessor
def process(order)
validate(order)
calculate_total(order)
send_email(order)
update_inventory(order)
end
end
# After: Single responsibility per class
class OrderValidator
def validate(order) # validation only
end
class OrderCalculator
def calculate_total(order) # calculation only
end
class OrderNotifier
def send_email(order) # notification only
endLong Method Violation:
# Before: 35 lines, multiple responsibilities
def process_order(order)
# validation logic (10 lines)
# calculation logic (15 lines)
# notification logic (10 lines)
end
# After: Extracted to focused methods
def process_order(order)
validate_order(order)
calculate_order_totals(order)
send_order_confirmation(order)
endOutput Format:
# Conventions Report — [Date]
## Critical Violations (Must Fix)
- [CRITICAL] app/controllers/orders_controller.rb:42 — Method `process_payment` has cyclomatic complexity of 15 (> 10 threshold)
- [CRITICAL] app/models/user.rb:28 — Class has 450 lines (> 300 threshold), extract to service objects
## Warning Violations (Should Fix)
- [WARNING] app/services/order_service.rb:17 — Method `calculate_discount` has 6 parameters (> 4 threshold)
- [WARNING] app/controllers/users_controller.rb:35 — Nesting depth of 5 levels (> 3 threshold)
## Suggestion Violations (Nice to Have)
- [SUGGESTION] spec/models/order_spec.rb:12 — Test duplication detected, extract to shared examplesDecision Gate — Need Refactoring?
If refactoring is needed, follow TDD discipline:
Before any code change:
calculate_discount method to DiscountCalculator class")HARD GATE — Test Verification:
Follow skills/code-quality/refactor-code for specific extraction patterns and safety guidelines.
HARD GATE — Tests Pass:
bundle exec rspec # All tests must pass before proceedingIf gate fails: Fix the failing test or refactoring before proceeding to Phase 3.
Document public APIs via skills/patterns/write-yard-docs (annotate all public methods with params, return values, and examples; update README/diagrams for architecture or API changes).
Output: Updated YARD comments, refreshed README sections
| Predecessor | This Workflow | Successor |
|---|---|---|
| tdd | quality | review |
| refactor-code | quality | write-yard-docs |
| None (standalone) | quality | PR submission |
apply-code-conventionsrefactor-codewrite-yard-docsskill-routerNEVER open PR before:
bundle exec rubocop # Linter must pass
bundle exec erblint --lint-all # ERB linter must pass
bundle exec rspec # All tests must pass
bundle exec brakeman # Security scan must passPlus: YARD docs complete for all public APIs.
If gate fails: Fix the failing item before opening PR.
# Quality Report — [Date]
## Conventions Check
- [x] DRY: No duplication found
- [x] PORO: Service objects properly structured
- [ ] YAGNI: Remove unused method `calculate_total`?
## Refactoring
- Characterization tests added, methods extracted, all tests passing
## Documentation
- YARD coverage: 87% (improved from 65%)
- README updated: YESdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10
scenario-11
scenario-12
scenario-13
scenario-14
scenario-15
scenario-16
scenario-17
scenario-18
scenario-19
scenario-20
scenario-21
scenario-22
scenario-23
scenario-24
scenario-25
scenario-26
scenario-27
scenario-28
scenario-29
scenario-30
scenario-31
scenario-32
scenario-33
scenario-34
scenario-35
scenario-36
scenario-37
scenario-38
scenario-39
scenario-40
scenario-41
mcp_server
skills
api
generate-api-collection
implement-graphql
code-quality
apply-code-conventions
apply-stack-conventions
assets
snippets
code-review
refactor-code
respond-to-review
review-architecture
security-check
context
load-context
setup-environment
ddd
define-domain-language
model-domain
review-domain-boundaries
engines
create-engine
create-engine-installer
document-engine
extract-engine
release-engine
review-engine
test-engine
upgrade-engine
infrastructure
implement-background-job
implement-hotwire
optimize-performance
review-migration
seed-database
version-api
orchestration
skill-router
patterns
create-service-object
implement-calculator-pattern
write-yard-docs
planning
create-prd
generate-tasks
plan-tickets
testing
plan-tests
test-service
triage-bug
write-tests
workflows