rails-dev

📁 pproenca/dot-skills 📅 1 day ago
1
总安装量
1
周安装量
#51432
全站排名
安装命令
npx skills add https://github.com/pproenca/dot-skills --skill rails-dev

Agent 安装分布

amp 1
opencode 1
kimi-cli 1
codex 1
claude-code 1

Skill 文档

Community Ruby on Rails Development Best Practices

Comprehensive performance and maintainability optimization guide for Ruby on Rails applications, maintained by Community. Contains 45 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.

When to Apply

Reference these guidelines when:

  • Writing new Rails controllers, models, or views
  • Optimizing ActiveRecord queries and database access patterns
  • Implementing caching strategies (fragment, Russian doll, low-level)
  • Building or refactoring API endpoints
  • Adding Turbo Frames and Streams for interactive UIs
  • Reviewing code for N+1 queries and security vulnerabilities
  • Designing background jobs with Sidekiq or Active Job
  • Writing or reviewing database migrations

Rule Categories by Priority

Priority Category Impact Prefix
1 Database & ActiveRecord CRITICAL db-
2 Controllers & Routing CRITICAL ctrl-
3 Security HIGH sec-
4 Models & Business Logic HIGH model-
5 Caching & Performance HIGH cache-
6 Views & Frontend MEDIUM-HIGH view-
7 API Design MEDIUM api-
8 Background Jobs & Async LOW-MEDIUM job-

Quick Reference

1. Database & ActiveRecord (CRITICAL)

2. Controllers & Routing (CRITICAL)

3. Security (HIGH)

4. Models & Business Logic (HIGH)

5. Caching & Performance (HIGH)

6. Views & Frontend (MEDIUM-HIGH)

7. API Design (MEDIUM)

8. Background Jobs & Async (LOW-MEDIUM)

How to Use

Read individual reference files for detailed explanations and code examples:

Reference Files

File Description
references/_sections.md Category definitions and ordering
assets/templates/_template.md Template for new rules
metadata.json Version and reference information