一键导入
rails-tdd
TDD workflow for Rails applications. Use when implementing features or fixing bugs. Provides Red-Green cycle with test decision framework.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
TDD workflow for Rails applications. Use when implementing features or fixing bugs. Provides Red-Green cycle with test decision framework.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
This skill should be used when the user asks to "upload a file", "share this", "host this temporarily", "get a shareable link", "publish to paste.sevos.io", or mentions sharing HTML pages, code snippets, or artifacts. Proactively offer when user creates HTML artifacts or previews that could be shared.
This skill should be used when the user asks to "download this video", "get the transcript", "save this clip", "rip audio from", "get subtitles for", "transcribe this video", or mentions YouTube URLs, yt-dlp, or video/audio extraction. Use for any video downloading, transcript extraction, or format troubleshooting.
This skill should be used when the user asks to "translate to Sindarin", "write in Elvish", "Sindarin grammar", "Elvish translation", "speak Sindarin", "Tolkien Elvish", or mentions Sindarin language, Grey-elven, or needs help with Elvish linguistics from Tolkien's legendarium.
This skill provides expert guidance on implementing Ruby on Rails applications using 37signals (Basecamp/HEY) patterns and conventions. Use when building Rails features, implementing authentication, authorization, multi-tenancy, background jobs, or Hotwire/Turbo/Stimulus following 37signals patterns.
Create interactive HTML visualizations for any concept - technical documentation, business processes, tutorials, architecture diagrams, or educational content. Supports multiple formats (long-page, slideshow, dashboard, infographic) with Mermaid diagrams, syntax highlighting, and responsive design. Use when user requests visual documentation, presentations, learning materials, or disposable HTML documents. Triggers include "create visualization", "HTML document", "presentation", "onboarding guide", "tutorial page", "explain with diagrams", or "interactive documentation".
| name | rails-tdd |
| description | TDD workflow for Rails applications. Use when implementing features or fixing bugs. Provides Red-Green cycle with test decision framework. |
This skill provides development workflows for Ruby on Rails applications. It defines methodologies for different types of engineering work.
When implementing features or fixing bugs, follow the Test-Driven Development cycle.
Write failing tests FIRST:
test/fixtures/ for existing patterns)bin/ci to confirm tests fail for the RIGHT reasonWrite the MINIMAL code to make tests pass:
bin/ci - do NOT proceed until all tests passIf bin/ci fails:
If you discover additional work needed:
bin/ci or bin/rails test)| Directory | Base Class | Purpose |
|---|---|---|
test/models/ | ActiveSupport::TestCase | Model logic, validations, scopes |
test/controllers/ | ActionDispatch::IntegrationTest | Controller actions, HTTP responses |
test/integration/ | ActionDispatch::IntegrationTest | Multi-controller workflows |
test/system/ | ActionDispatch::SystemTestCase | Full browser tests (Capybara) |
test/helpers/ | ActionView::TestCase | View helper methods |
test/mailers/ | ActionMailer::TestCase | Email generation and content |
test/jobs/ | ActiveJob::TestCase | Background job behavior |
test/channels/ | ActionCable::Channel::TestCase | WebSocket connections |
Model tests (test/models/):
User#full_name, Order#total)Controller tests (test/controllers/):
System tests (test/system/) - use sparingly:
Mailer tests (test/mailers/):
Job tests (test/jobs/):
Skip tests for (covered implicitly):
validates :name, presence: true - framework behaviorhas_many/belongs_to - framework behavior| Change Type | Models | Controllers | System | Mailers | Jobs |
|---|---|---|---|---|---|
| Custom model method | ✓ | - | - | - | - |
| PORO/service object | ✓ | - | - | - | - |
| Controller action | - | ✓ | - | - | - |
| API endpoint | - | ✓ | - | - | - |
| User-facing feature | - | ✓ | critical paths | - | - |
| JS-dependent feature | - | - | ✓ | - | - |
| Multi-step workflow | - | - | ✓ | - | - |
| Background job | - | - | - | - | ✓ |
| Mailer | - | - | - | ✓ | - |
| Bug fix | where bug lives | + regression | - | - | - |