CS

crmne/skill

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

5 stars 质量 74 趋势 20MIT

从Ruby将代理技能安装到编码代理和RubyLLM应用程序

概览

将代理技能安装到 RubyLLM 应用程序和编码代理, 来自 Ruby 代理技能(Agent Swills)是教给模型一个工作流程的指令,脚本和参考文件的文件夹. 人们在GitHub寄存器和插件市场中发布. 将您所选择的复制到文件夹中, 您的应用程序或代理从中读取, 记录每个软件的来源, 并显示在更新它们之前的变化 。 它是 npx 技能的 Ruby 对应: 相同的来源, 相同的代理文件夹, 相同的技能. sh 目录 。 RubyLLM是一个一等目标,它增加了一个带有承诺的锁文件,更新等待你的同意,拒绝而不是猜测. 没有运行时间的依赖,Ruby 3.1或更新的,它开始于Ruby本身花费的时间. 使用 RubyGems 3.5 或更新型(Ruby 3.3 ships it),运行时不安装: gem exec 要求 RubyGems 在每次运行中提供最新版本.

概述(AI 翻译)

将代理技能安装到 RubyLLM 应用程序和编码代理, 来自 Ruby

– – . . .

代理技能(Agent Swills)是教给模型一个工作流程的指令,脚本和参考文件的文件夹. 人们在 GitHub 寄存器和插件市场中发布它们 。 skill 复制您从您的应用程序或代理读取到的文件夹, 记录每个程序来自何处, 并显示在更新它们之前的变化 。

它是 [ [T1] 的 Ruby 对应: 相同的源, 相同的代理文件夹, 相同的技能. sh 目录 。 RubyLLM是一个一等目标,它增加了一个带有承诺的锁文件,更新等待你的同意,拒绝而不是猜测. 没有运行时间的依赖,Ruby 3.1或更新的,它开始于Ruby本身花费的时间.

□ 运行它

使用 RubyGems 3.5 或更新型(Ruby 3.3 ships it),运行时不安装:

gem exec向RubyGems询问每跑的最新版本. 通过 --conservative 以使用您已经拥有的版本,而不检查 :

取决于您的 RDoc 版本, gem exec 可以在输出前打印 [T5], 即使它没有安装任何内容 .

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。


Agent Skills are folders of instructions, scripts, and reference files that teach a model a workflow. People publish them in GitHub repositories and plugin marketplaces. skill copies the ones you pick into the folder your app or agent reads them from, records where each came from, and shows you what changes before it updates them.

gem exec skill find pdf                    # search skills.sh
gem exec skill add anthropics/skills@pdf   # install one
✓ Installed pdf → app/skills/pdf, .claude/skills/pdf
  Recorded in skills.lock

It is the Ruby counterpart of npx skills: the same sources, the same agent folders, the same skills.sh directory. RubyLLM is a first-class target, and it adds a lockfile with commits, updates that wait for your yes, and refusals instead of guesses. No runtime dependencies, Ruby 3.1 or newer, and it starts in about the time Ruby itself takes.

Running it

With RubyGems 3.5 or newer (Ruby 3.3 ships it), run it without installing:

gem exec skill add owner/repo

gem exec asks RubyGems for the newest version on every run. Pass --conservative to use the version you already have, without the lookup:

gem exec --conservative skill list

Depending on your RDoc version, gem exec may print Done installing documentation for after 0 seconds before the output, even when it installed nothing. That line comes from RDoc’s RubyGems hook, not from skill, and is harmless.

Or install it once:

gem install skill
skill add owner/repo

In a Gemfile, add it with require: false, so it never loads into your app:

gem "skill", require: false, group: :development

Adding skills

Name a repository, and pick skills from it:

skill add anthropics/skills --list            # what it holds, installs nothing
skill add anthropics/skills@pdf               # one skill
skill add anthropics/skills@pdf,xlsx          # several
skill add anthropics/skills --skill pdf --skill docx
skill add anthropics/skills --plugin document-skills
skill add anthropics/skills --all             # every valid skill

A repository with one skill installs it directly. A repository with several asks you to pick: skill never installs a whole repository you did not ask for.

Sources:

| Source | Meaning |

在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add crmne/skill
新手?先看 mcpskill.org 教程 →