用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/johnalbertini14-glitch/openclaw-skills --skill ruby命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | Ruby |
| slug | ruby |
| version | 1.0.1 |
| description | Write reliable Ruby avoiding mutable string traps, block pitfalls, and metaprogramming bugs. |
| metadata | {"clawdbot":{"emoji":"💎","requires":{"bins":["ruby"]},"os":["linux","darwin","win32"]}} |
| Topic | File |
|---|---|
| Mutable strings, object equality | objects.md |
| Proc vs lambda, return behavior | blocks.md |
| Visibility, method_missing | methods.md |
| Array/hash mutation traps | collections.md |
| define_method, eval traps | metaprogramming.md |
| ActiveRecord, N+1, callbacks | rails.md |
s = "hi"; s << "!"; t = s means t also has "!"== vs equal? vs eql? — == value, equal? identity, eql? hash equalityHash.new([]) shares same array, use block formreturn in proc returns from enclosing method — use lambda for local returnx = 1; [2].each { |x| }; x is still 1 (3.0+)method_missing without respond_to_missing? — breaks respond_to? checksprivate in Ruby is per-object — self.private_method fails, implicit receiver works||= doesn't work for false/nil distinction — false ||= true replaces false# frozen_string_literal: true makes strings immutableSymbol#to_proc — &:method_name only works with no-argument methodsrescue => e without type — catches StandardError, not Exceptionensure always runs — even after return, use for cleanup