rails-generators
✓为模型、服务、控制器和全栈功能创建专家级 Ruby on Rails 生成器。在为 Rails 应用程序构建自定义生成器、脚手架或代码生成工具时,或者在用户提到 Rails 生成器、Thor DSL 或自动代码生成时使用。
SKILL.md
Build production-ready Rails generators that automate repetitive coding tasks and enforce architectural patterns. This skill covers creating custom generators for models, service objects, API scaffolds, and complete features with migrations, tests, and documentation.
Generator location: lib/generators/[name]/[name]generator.rb Template location: lib/generators/[name]/templates/ Test location: test/generators/[name]generatortest.rb
Rails 8 introduced the authentication generator (rails generate authentication) which demonstrates modern generator patterns including:
为模型、服务、控制器和全栈功能创建专家级 Ruby on Rails 生成器。在为 Rails 应用程序构建自定义生成器、脚手架或代码生成工具时,或者在用户提到 Rails 生成器、Thor DSL 或自动代码生成时使用。 来源:el-feo/ai-context。
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/el-feo/ai-context --skill rails-generators- 分类
- </>开发工具
- 认证
- ✓
- 收录时间
- 2026-02-01
- 更新时间
- 2026-02-18
快速解答
什么是 rails-generators?
为模型、服务、控制器和全栈功能创建专家级 Ruby on Rails 生成器。在为 Rails 应用程序构建自定义生成器、脚手架或代码生成工具时,或者在用户提到 Rails 生成器、Thor DSL 或自动代码生成时使用。 来源:el-feo/ai-context。
如何安装 rails-generators?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/el-feo/ai-context --skill rails-generators 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/el-feo/ai-context
详情
- 分类
- </>开发工具
- 来源
- skills.sh
- 收录时间
- 2026-02-01