rails-guides について
rails-guides は、開発時に参照できる Rails 公式ドキュメントのスキルです。設定や Active Record から、テスト、セキュリティ、拡張方法まで扱います。
主な機能
- 01Rails の導入と設定に関する資料
- 02Active Record のモデル、クエリ、マイグレーション
- 03コントローラー、ビュー、ルーティングのガイド
- 04ジョブ、ストレージ、リアルタイム機能
- 05テスト、セキュリティ、パフォーマンスの解説
活用シーン
- 01Rails アプリ開発中の規約確認
- 02Active Record のクエリやマイグレーションの確認
- 03Rails のセキュリティやキャッシュ手法の参照
インストール
コマンドをコピーしてターミナルで実行します。
$
npx skills add https:/ / github.com/ lucianghinda/ superpowers-ruby --skill rails-guidesインストール後、Claude Code で/rails-guidesを入力して読み込まれたか確認します。
同梱ファイル
SKILL.md と一緒にインストールされる参考資料やスクリプト。
references/action_cable_overview.mdaction_controller_advanced_topics.mdaction_controller_overview.mdaction_mailbox_basics.mdaction_mailer_basics.mdaction_text_overview.mdaction_view_helpers.mdaction_view_overview.mdactive_job_basics.mdactive_model_basics.mdactive_record_basics.mdactive_record_callbacks.mdactive_record_composite_primary_keys.mdactive_record_encryption.mdactive_record_migrations.mdactive_record_multiple_databases.mdactive_record_postgresql.mdactive_record_querying.mdactive_record_validations.mdactive_storage_overview.mdactive_support_core_extensions.mdactive_support_instrumentation.mdapi_app.mdasset_pipeline.mdassociation_basics.mdautoloading_and_reloading_constants.mdcaching_with_rails.mdcommand_line.mdconfiguring.mddebugging_rails_applications.md詳細
Rails ガイド
開発時の参照用となる Rails の公式ドキュメントです。
トピック一覧
はじめに
references/getting_started.md— Rails の基本、MVC の概要、最初のアプリの作成手順references/command_line.md—railsコマンド、ジェネレーター、rake タスクreferences/configuring.md— 環境、イニシャライザー、認証情報、database.ymlreferences/autoloading_and_reloading_constants.md— Zeitwerk、モジュールの命名、再読み込みの動作references/initialization.md— Rails の起動シーケンス、railties、エンジン
Active Record
references/active_record_basics.md— モデル、CRUD、規約、マイグレーションreferences/active_record_querying.md— 検索メソッド、スコープ、結合、includes、explainreferences/active_record_validations.md— 組み込みバリデーター、カスタムバリデーター、エラーreferences/active_record_callbacks.md— ライフサイクルフック、after_commit、skip_callbackreferences/association_basics.md— belongs_to、has_many、has_one、HABTM、ポリモーフィック関連references/active_record_migrations.md— スキーマ変更、ロールバック可能なマイグレーション、db:migratereferences/active_record_encryption.md— 保存データの属性の暗号化references/active_record_composite_primary_keys.md— 複数カラムの主キーreferences/active_record_multiple_databases.md— 複数データベースの設定、シャーディング、レプリカreferences/active_record_postgresql.md— PostgreSQL 固有の機能(hstore、jsonb、配列)references/active_model_basics.md— ActiveRecord 以外での ActiveModel、フォームオブジェクト
Action Controller
references/action_controller_overview.md— コントローラー、params、フィルター、セッション、Cookiereferences/action_controller_advanced_topics.md— ストリーミング、ライブ、メタル、HTTP 認証references/routing.md— リソース、名前空間、制約、名前付きルート、URL ヘルパー
Action View
references/action_view_overview.md— テンプレート、パーシャル、レイアウト、フォーマットreferences/action_view_helpers.md— form_with、link_to、tag、content_tag、アセットヘルパーreferences/form_helpers.md— form_with、フィールドヘルパー、ネストされたフォーム、アップロードreferences/layouts_and_rendering.md— render、redirect_to、respond_to、レイアウトの継承
フロントエンド / Hotwire
references/working_with_javascript_in_rails.md— Import Maps、Turbo、Stimulus の概要references/action_text_overview.md— Trix によるリッチテキスト、添付ファイル
ジョブとメーラー
references/active_job_basics.md— ジョブクラス、キュー、再試行、テストヘルパーreferences/action_mailer_basics.md— メーラー、テンプレート、配信、プレビューreferences/action_mailbox_basics.md— 受信メールのルーティングと処理
ストレージ
references/active_storage_overview.md— ファイルアップロード、バリアント、ダイレクトアップロード、S3/GCS/Azure
テスト
references/testing.md— Minitest、フィクスチャ、テストの種類、ヘルパー、アサーション
リアルタイム
references/action_cable_overview.md— WebSocket、チャネル、ブロードキャスト、接続
セキュリティとパフォーマンス
references/security.md— SQL インジェクション、XSS、CSRF、マスアサインメント、セキュアヘッダーreferences/caching_with_rails.md— フラグメント、アクション、HTTP キャッシュ、キャッシュストアreferences/asset_pipeline.md— Sprockets、Propshaft、事前コンパイル、ダイジェストreferences/tuning_performance_for_deployment.md— Puma、コネクションプーリング、GC
国際化
references/i18n.md— 翻訳ファイル、ロケール、複数形、日付形式
API と Rack
references/api_app.md— API 専用 Rails、スリムなミドルウェアスタックreferences/rails_on_rack.md— ミドルウェアスタック、Rack との統合
Rails の拡張
references/engines.md— マウント可能なエンジン、分離された名前空間、フック、テストreferences/generators.md— カスタムジェネレーター、テンプレート、デフォルトの上書きreferences/plugins.md— gem ベースのプラグインの作成、コア拡張、テスト
高度な内容
references/active_support_core_extensions.md— String、Array、Hash、Date の拡張references/active_support_instrumentation.md— Notifications、ログサブスクライバーreferences/association_basics.md— アソシエーションのオプション、Eager Loading の戦略references/debugging_rails_applications.md— debug gem、logger、web-console、byebugreferences/error_reporting.md— Error::Reporter、Sentry との連携references/threading_and_code_execution.md— スレッドセーフ、executor、reloaderreferences/upgrading_ruby_on_rails.md— バージョンアップグレードの手順、非推奨機能への対応
コメント
Markdown 対応