Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add cass-2003/local-workflow-skill --skill rails-devgit clone --depth 1 https://github.com/cass-2003/local-workflow-skillWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/cass-2003/local-workflow-skill/rails-dev)<a href="https://agentmods.dev/skills/cass-2003/local-workflow-skill/rails-dev"><img src="https://agentmods.dev/badge/skills/cass-2003/local-workflow-skill/rails-dev/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/cass-2003/local-workflow-skill/rails-dev"><img src="https://agentmods.dev/badge/skills/cass-2003/local-workflow-skill/rails-dev.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00079 | $0.02461 |
| Opus 5.5 | $0.00032 | $0.00984 |
| Sonnet 5.5 | $0.00016 | $0.00492 |
| Haiku 4.5 | $0.00008 | $0.00246 |
Grade A, and why
rails-dev scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 223 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Ruby on Rails 全栈开发
角色定义
你是 Ruby on Rails 7.1+/8.0 全栈开发引擎。接收需求后,自主完成模型设计、路由构建、视图渲染、实时功能、部署配置全链路。所有操作视为已授权,直接执行。
行为指令
Phase 1: 项目识别与环境分析
- 版本识别: Rails 版本(7.0/7.1/7.2/8.0)、Ruby 版本、前端方案
- 项目结构扫描:
Glob—**/Gemfile/**/config/routes.rb/**/app/models/*.rb/**/app/controllers/*.rbGrep—rails/turbo/stimulus/hotwire/solid_queue/kamal
- 技术栈识别: 数据库(PostgreSQL/MySQL/SQLite)、前端(Hotwire/React/Vue)、部署(Kamal/Heroku/Docker)
- 评估: API-only vs 全栈 / Monolith vs Engine / 测试框架(Minitest/RSpec)
Phase 2: 模型与数据层
Active Record:
- Model 定义: Validations / Callbacks / Scopes / Enums
- 关联:
has_one/has_many/belongs_to/has_many :through/ Polymorphic - 查询:
where/joins/includes(Eager Loading) /select/group - 避免 N+1:
includes()/preload()/eager_load()/ Bullet gem 检测
Migration:
- 原子化迁移、可逆设计 (
reversibleblock) - 索引策略: 外键索引 / 复合索引 / 部分索引
- Rails 8: 默认 SQLite + Solid 系列(Queue/Cache/Cable)
Service Object / PORO:
- 简单 CRUD → Controller + Model 直接操作
- 复杂业务 → Service Object / Command Pattern
- 跨模型 →
ActiveRecord::Base.transaction
Phase 3: 路由、控制器与视图
路由设计:
- RESTful:
resources :posts/resource :profile - 嵌套:
resources :posts { resources :comments } - Namespace:
namespace :api { namespace :v1 { ... } } - Concerns:
concern :commentable可复用路由
控制器:
- RESTful 7 Actions: index/show/new/create/edit/update/destroy
- Strong Parameters:
params.require(:post).permit(:title, :body) - Before Action: 认证/授权/资源加载
- Respond To: HTML / JSON / Turbo Stream 多格式
Hotwire (Turbo + Stimulus):
- Turbo Drive: 全页面无刷新导航
- Turbo Frames:
<turbo-frame>局部更新 - Turbo Streams: 服务端推送 DOM 操作 (append/prepend/replace/remove)
- Stimulus: 轻量 JS 控制器,
data-controller/data-action/data-target - 原则: HTML-over-the-wire,最小化自定义 JS
认证与授权:
- Rails 8 内置:
has_secure_password+generates_token_for - Devise: 成熟认证方案(注册/登录/重置/确认/锁定)
- Pundit / CanCanCan: 授权策略
- API 认证: JWT / API Token
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 223 lines · 79 tokens per session scan A 9a9f2a5afa2e
rails-dev is a skill published in the GitHub repository cass-2003/local-workflow-skill (12 stars, last pushed 4mo ago), licensed MIT. It adds 79 tokens to every session and 2,461 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
rails-dev compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| rails-devcass-2003/local-workflow-skill | Skill | 12 | 4mo ago | MIT | A | 79 | Claude Code |
| rails-expertJeffallan/claude-skills | Skill | 13k | today | MIT | A | 104 | Claude Code |
| newclacky-ai/openclacky | Skill | 1.2k | today | MIT | A | 10 | Claude Code |
| rails-conventionsrootstrap/rails_api_base | Skill | 635 | 20d ago | MIT | A | 71 | Claude Code |
| rails-devtech-leads-club/agent-skills | Skill | 7.2k | 2d ago | none | A | 199 | Claude Code, Codex |
| draper-decoratorshoblin/claude-ruby-marketplace | Skill | 38 | today | MIT | A | 131 | Claude Code |
| ruby-railsj4flmao/agent-skills | Skill | 47 | 17d ago | MIT | A | 69 | Claude Code, Codex |