跳到正文
cccskills
免费在 GitHub 公开

rails-docs

Use when asked about any Rails-specific topic — ActiveRecord, routing, controllers, views, mailers, jobs, Action Cable, Action Text, Active Storage, migrations, validations, callbacks, associations, caching, security, or Rails internals — including "how do I do X in Rails", debugging Rails behavior, or checking whether an API/option still exists or changed in a given Rails version. Always consult the official guides and API docs rather than answering from memory alone, since trained knowledge can be stale or wrong about version-specific details.

中文简介正在准备中。当前显示原文说明。

AllYourBot/hostedgpt星标 513(GitHub 513 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md3.8 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Rails official documentation lookup

Trained knowledge about Rails APIs can be outdated, mixed across versions, or simply wrong on specifics (option names, defaults, deprecations, callback ordering, etc.). Before answering a Rails-specific question or relying on a Rails API's exact behavior, check the official docs rather than guessing — pinned to the version this project actually runs, not whatever version training data assumed.

Determine the version first

Don't assume the Rails version from memory or from prose in CLAUDE.md — that can go stale the moment someone bumps the gem without updating the docs. Check the source of truth instead:

grep -m1 '^    rails (' Gemfile.lock

That gives you the exact installed version (e.g. rails (8.0.2.1)). Use its <major>.<minor> for the pinned doc URLs below.

Sources

  • Guides (concepts, how-tos, conventions): https://guides.rubyonrails.org
    • Version-pinned: https://guides.rubyonrails.org/v<major>.<minor>/<guide-name>.html
  • API reference (exact method signatures, options, source): https://api.rubyonrails.org
    • Version-pinned: https://api.rubyonrails.org/v<major>.<minor>/

If a pinned URL 404s (e.g. docs for a brand-new version aren't published at that path yet), fall back to the unpinned root and flag to the user that you're reading possibly-newer docs than the installed version.

When to look things up

Use WebFetch against the sources above when:

  • The question is about a specific Rails API's options, defaults, or behavior (e.g. "does has_many support :strict_loading?", "what does config.active_record.encryption need?").
  • You're unsure whether something changed between Rails versions (deprecated, renamed, new behavior in the installed version).
  • You're about to write code that depends on exact method signatures, callback ordering, or routing/DSL syntax you're not fully certain of.
  • The user asks a "how do I do X in Rails" question that isn't already answered by this project's own conventions in CLAUDE.md.

Skip the lookup for things you can verify faster by reading this codebase directly (e.g. "how does this app handle streaming?" — that's answered by app/services/ai_backend/, not the guides), or for very basic Ruby/Rails knowledge you're confident hasn't changed across versions.

How to look things up

  1. Determine the installed Rails version from Gemfile.lock (see above).
  2. Identify the right guide or API page (e.g. Active Record Associations, Action Mailer Basics).
  3. Fetch it with WebFetch, using the version-pinned URL.
  4. If the guide doesn't have the exact method signature, cross-check api.rubyonrails.org for the precise method/class documentation.
  5. Prefer the official source over Stack Overflow, blog posts, or other secondary sources when they conflict.

Applying this project's conventions

Official Rails docs describe what's possible; they don't override this project's own patterns. After confirming Rails behavior, still follow CLAUDE.md's conventions — e.g. provider logic goes in app/services/ai_backend/, soft deletion via deleted_at + not_deleted scopes, feature flags via Feature.<name>?/Setting.<name>, and don't hard-code model lists (models.yml instead).

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Use when asked about Turbo (Turbo Drive, Turbo Frames, Turbo Streams, ActionCable-broadcasted streams) or Stimulus (controllers, targets, actions, values, outlets) — including "how do I do X with Turbo/Stimulus", debugging a Turbo Stream broadcast, or wiring up a Stimulus controller. Always consult the official Hotwire docs rather than answering from memory alone, since Turbo/Stimulus APIs and idioms have shifted across versions and this project has no SPA framework — all interactivity goes through Hotwire.

中文简介正在准备中。当前显示原文说明。

AllYourBot/hostedgpt5132026年10月23日 更新

pr

免费

Create or update a pull request

中文简介正在准备中。当前显示原文说明。

AllYourBot/hostedgpt5132026年10月23日 更新

Catch up on the team's merges since you last checked in

中文简介正在准备中。当前显示原文说明。

AllYourBot/hostedgpt5132026年10月23日 更新

Address unresolved PR review comments from Copilot and teammates

中文简介正在准备中。当前显示原文说明。

AllYourBot/hostedgpt5132026年10月23日 更新

pr-review

免费

Review the branch against project guidelines, fix what it finds, strip non-load-bearing comments, and keep .claude/rules fresh

中文简介正在准备中。当前显示原文说明。

AllYourBot/hostedgpt5132026年10月23日 更新

rubyllm

免费

Build and maintain Ruby or Rails applications with the RubyLLM AI framework. Use for chats, agents, tools, structured output, media generation, transcription, OCR, moderation, embeddings, reranking, Rails integration, and RubyLLM upgrades; not for contributing to the framework itself.

中文简介正在准备中。当前显示原文说明。

AllYourBot/hostedgpt5132026年10月23日 更新

查看 AllYourBot 的全部技能

报告此技能的问题