💎 Ruby — 技能工具
v1.0.1Write expressive Ruby with blocks, metaprogramming, and idiomatic patterns.
2· 1,021·2 当前·2 累计
安全扫描
OpenClaw
安全
high confidenceThis is an instruction-only Ruby style/safety reference that only requires the ruby binary and does not request credentials, install code, or perform network I/O—its declared requirements align with its stated purpose.
评估建议
This skill is an instruction-only Ruby reference (no code to install, no secrets requested), so it is internally coherent with its stated purpose. Before enabling: (1) confirm you trust the skill source (source/homepage unknown) because documentation could still advise running Ruby code; (2) be aware the agent may execute the ruby binary if it chooses to run examples—only enable if you trust the agent runtime and host; (3) if you want stronger assurance, inspect the included .md files yourself (...详细分析 ▾
✓ 用途与能力
Name/description match the provided content: the files are Ruby guidance about blocks, metaprogramming, collections, objects, methods, and Rails. Declaring the 'ruby' binary as a requirement is reasonable for a Ruby-focused skill.
✓ 指令范围
SKILL.md and the included .md files are static guidance (no commands, no file reads, no env access, no external endpoints). The metadata lists the 'ruby' binary but the instruction files don't explicitly tell the agent to run commands—this is a minor mismatch but not suspicious.
✓ 安装机制
No install spec and no code files; instruction-only skills are lowest-risk since nothing is written to disk or downloaded.
✓ 凭证需求
Requires no environment variables, credentials, or config paths—proportional to a documentation/reference skill.
✓ 持久化与权限
Does not request always:true and uses default invocation settings. It does not modify other skills or request system-wide configuration.
安全有层次,运行前请审查代码。
运行时依赖
🖥️ OSLinux · macOS · Windows
版本
latestv1.0.12026/2/10
Initial release
● 无害
安装命令 点击复制
官方npx clawhub@latest install ruby
镜像加速npx clawhub@latest install ruby --registry https://cn.clawhub-mirror.com
技能文档
Quick Reference
| 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 |
Critical Rules
- Strings are mutable —
s = "hi"; s << "!"; t = smeans t also has "!" ==vsequal?vseql?—==value,equal?identity,eql?hash equality- Default hash value is shared —
Hash.new([])shares same array, use block form returnin proc returns from enclosing method — use lambda for local return- Block variable shadows outer scope —
x = 1; [2].each { |x| }; xis still 1 (3.0+) method_missingwithoutrespond_to_missing?— breaksrespond_to?checksprivatein Ruby is per-object —self.private_methodfails, implicit receiver works||=doesn't work for false/nil distinction —false ||= truereplaces false- Frozen string literals —
# frozen_string_literal: truemakes strings immutable Symbol#to_proc—&:method_nameonly works with no-argument methodsrescue => ewithout type — catches StandardError, not Exceptionensurealways runs — even after return, use for cleanup
数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制
免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制