来源信息
- 仓库
- NeuralBlitz/Agent-Gateway
- 最近来源活动
- 2026年4月9日 10:58
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 1
- 分支
- 0
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- ruby
- description
- Ruby programming language and Rails framework
- license
- MIT
- compatibility
- opencode
- metadata
- {"audience":"developers","category":"programming"}
## What I do
- Write idiomatic Ruby
- Use Rails patterns
- Implement metaprogramming
- Handle RubyGems
- Use RSpec for testing
- Implement ActiveRecord
- Use Rails routing
- Handle background jobs
## When to use me
When writing Ruby or Rails code.
## Ruby Patterns
```ruby
# Metaprogramming
class BaseService
def self.inherited(subclass)
define_method(subclass.name.underscore) do |**args|
klass = Object.const_get(subclass.name)
klass.new(**args).execute
end
end
end
# Blocks and yield
def with_transaction
ActiveRecord::Base.transaction do
yield
rescue => e
rollback!
raise e
end
end
# Rails patterns
class UsersController < ApplicationController
before_action :set_user, only: [:show, :update]
def index
@users = User.all.page(params[:page])
render json: @users
end
private
def set_user
@user = User.find(params[:id])
end
end
```
在 GitHub 查看