rails-model-patterns
✓Rails 的 ActiveRecord 模型模式和约定。使用模型、关联、验证、范围、回调或数据库架构设计时自动调用。在“model”、“ActiveRecord”、“association”、“has_many”、“belongs_to”、“validation”、“validates”、“scope”、“callback”、“migration”、“schema”、“index”、“foreign key”上触发。
SKILL.md
Patterns for building well-structured ActiveRecord models in Rails applications.
| belongsto | Child references parent | | hasmany | Parent has multiple children | | hasone | Parent has single child | | hasmany :through | Many-to-many via join model | | hasandbelongstomany | Simple many-to-many (no join model attributes) |
Rails 的 ActiveRecord 模型模式和约定。使用模型、关联、验证、范围、回调或数据库架构设计时自动调用。在“model”、“ActiveRecord”、“association”、“has_many”、“belongs_to”、“validation”、“validates”、“scope”、“callback”、“migration”、“schema”、“index”、“foreign key”上触发。 来源:ag0os/rails-dev-plugin。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/ag0os/rails-dev-plugin --skill rails-model-patterns 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/ag0os/rails-dev-plugin --skill rails-model-patterns- 分类
- </>开发工具
- 认证
- ✓
- 收录时间
- 2026-02-01
- 更新时间
- 2026-02-18
快速解答
什么是 rails-model-patterns?
Rails 的 ActiveRecord 模型模式和约定。使用模型、关联、验证、范围、回调或数据库架构设计时自动调用。在“model”、“ActiveRecord”、“association”、“has_many”、“belongs_to”、“validation”、“validates”、“scope”、“callback”、“migration”、“schema”、“index”、“foreign key”上触发。 来源:ag0os/rails-dev-plugin。
如何安装 rails-model-patterns?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/ag0os/rails-dev-plugin --skill rails-model-patterns 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/ag0os/rails-dev-plugin
详情
- 分类
- </>开发工具
- 来源
- skills.sh
- 收录时间
- 2026-02-01