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
Identify and fix performance bottlenecks in Rails applications.
| Tool | Use |
|---|---|
bullet | N+1 detection in development |
rack-mini-profiler | Endpoint timing breakdown |
EXPLAIN ANALYZE | Query plan analysis |
NEVER optimize without a baseline measurement
ALWAYS write a regression spec before optimizing (query count assertion)
ALWAYS verify with EXPLAIN ANALYZE for database changes
REPORT ORDER MUST MATCH WORK ORDER:
1. Baseline measurement
2. Bottleneck identification (Bullet / rack-mini-profiler / EXPLAIN)
3. Regression spec written + run + FAILS at the unoptimized count
4. Fix applied
5. Regression spec rerun + PASSES at the optimized count
6. EXPLAIN ANALYZE confirms plan change
NEVER write the report as "I applied includes(:author), then wrote a spec
to lock it in." The spec MUST be written and shown failing BEFORE the fix
appears in your output. Reordering for narrative flow fails the audit even
when the underlying work was correct.N+1 Prevention
# Bad
Post.all.each { |p| p.author.name }
# Good
Post.includes(:author).each { |p| p.author.name }Regression Spec (Query Count Assertion) Write this spec before applying any optimization to lock in the expected query count:
RSpec.describe "Post index performance" do
it "loads posts with authors in a fixed number of queries" do
create_list(:post, 10, :with_author)
expect do
Post.includes(:author).to_a
end.to make_database_queries(count: 2) # posts + authors
end
endUse the db-query-matchers gem or a custom make_database_queries matcher. The spec must pass after the fix and fail if a future change reintroduces the N+1.
EXPLAIN ANALYZE Verification
Run directly in rails dbconsole (PostgreSQL) after applying an index or query change:
EXPLAIN ANALYZE
SELECT posts.*, users.name
FROM posts
INNER JOIN users ON users.id = posts.author_id
WHERE posts.published = true;bullet, rack-mini-profiler, or EXPLAIN ANALYZE — at least one named).make_database_queries(count: <unoptimized>), shown failing.Seq Scan → Index Scan or actual time delta.queries: N → M, p95: X ms → Y ms. Numbers, not adjectives.| Skill | When to chain |
|---|---|
| write-tests | For regression specs |
| review-migration | When adding an index |
docs
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