首页龙虾技能列表 › Ruby — 技能工具

💎 Ruby — 技能工具

v1.0.1

Write expressive Ruby with blocks, metaprogramming, and idiomatic patterns.

2· 1,021·2 当前·2 累计
by @ivangdavila (Iván)·MIT-0
下载技能包
License
MIT-0
最后更新
2026/2/26
安全扫描
VirusTotal
无害
查看报告
OpenClaw
安全
high confidence
This 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.
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

🖥️ 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

TopicFile
Mutable strings, object equalityobjects.md
Proc vs lambda, return behaviorblocks.md
Visibility, method_missingmethods.md
Array/hash mutation trapscollections.md
define_method, eval trapsmetaprogramming.md
ActiveRecord, N+1, callbacksrails.md

Critical Rules

  • Strings are mutable — s = "hi"; s << "!"; t = s means t also has "!"
  • == vs equal? vs eql?== value, equal? identity, eql? hash equality
  • Default hash value is shared — Hash.new([]) shares same array, use block form
  • return in proc returns from enclosing method — use lambda for local return
  • Block variable shadows outer scope — x = 1; [2].each { |x| }; x is still 1 (3.0+)
  • method_missing without respond_to_missing? — breaks respond_to? checks
  • private 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 literals — # frozen_string_literal: true makes strings immutable
  • Symbol#to_proc&:method_name only works with no-argument methods
  • rescue => e without type — catches StandardError, not Exception
  • ensure always runs — even after return, use for cleanup
数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务