ruby-script

ruby-script is a skill for Claude Code from LandonSchropp/agent-toolkit. It costs 20 tokens per session (759 once invoked), scanned A, original, MIT.

A set of instructions for writing Ruby scripts, including a required template, conventions, and coding patterns.

In plain words
What is it for?
Use it when creating a Ruby script that must follow the specified template and patterns.
Why use it?
It provides a consistent way to start and structure Ruby scripts.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the ls-scripting plugin — 4 skills shipped together

Good fit Use it when creating a Ruby script that must follow the specified template and patterns.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/landonschropp/agent-toolkit/ruby-script
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add LandonSchropp/agent-toolkit --skill ruby-script
Clone the repo
git clone --depth 1 https://github.com/LandonSchropp/agent-toolkit

Made for: Claude Code.

Or install ls-scripting, the plugin that ships this one along with the rest of its 4 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ruby-script

README.md
[![agentmods](https://agentmods.dev/badge/skills/landonschropp/agent-toolkit/ruby-script/github.svg)](https://agentmods.dev/skills/landonschropp/agent-toolkit/ruby-script)
Your own site
<a href="https://agentmods.dev/skills/landonschropp/agent-toolkit/ruby-script"><img src="https://agentmods.dev/badge/skills/landonschropp/agent-toolkit/ruby-script/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ruby-script

Your own site · 80×15
<a href="https://agentmods.dev/skills/landonschropp/agent-toolkit/ruby-script"><img src="https://agentmods.dev/badge/skills/landonschropp/agent-toolkit/ruby-script.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 759 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00020 $0.00759
Opus 5.5 $0.00008 $0.00304
Sonnet 5.5 $0.00004 $0.00152
Haiku 4.5 $0.00002 $0.00076

Measured 10d ago against content hash 775b02c0ccfa, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ruby-script scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (assets/template-complex.rb, assets/template-simple.rb), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/ls-scripting/skills/ruby-script/SKILL.md · 68 lines

How it starts

The opening of the file, as written. The whole thing — 68 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Before writing the script, read Testing.

Template

Two templates cover the two kinds of scripts. Copy the right one exactly and fill in the specific logic.

  • Simple: Scripts intended to be run directly by a user. These typically take either no arguments or a single positional argument. Start from assets/template-simple.rb. It shows the one-argument form; if the script takes no arguments, delete the argument check and keep the top comment.
  • Complex: Scripts capable of taking multiple arguments via flags. Skill scripts should always be considered complex scripts. Start from assets/template-complex.rb. These always support --help.

Conventions

  • File: <name>.rb with kebab-case (e.g., extract-pr-number.rb)
  • Make the file executable (chmod +x)
  • Flag-based arguments using --flag-name (kebab-case). Only use positional args for very simple cases.
  • Arguments are always required. Never make script arguments optional unless the user explicitly asks for it.
  • Full variable names (directory, not dir)
  • Call other commands with their long flags (--session=main, not -s main), so the call reads without knowing the command
  • Exit 0 for success, 1 for errors
  • stdout for primary output, stderr for errors/warnings/progress messages
  • Let a call raise and crash instead of wrapping it in begin/rescue. Only add explicit handling when the failure is actually likely or needs a clearer message than the default backtrace.

Gems

When the script runs from inside a repository that has a Gemfile, add its gems to that Gemfile.

Otherwise, such as a skill script that runs from an installed copy of its plugin, declare them with inline Bundler so the script installs its own environment. Nothing else installs the gems, so when the Ruby version changes, the script crashes with a LoadError.

require "bundler/inline"

gemfile do
  source "https://rubygems.org"
  gem "<gem-name>", "~> <major>.<minor>"
end

Read the full file on GitHub · 68 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago Changed 775b02c0ccfa
  2. 1mo ago Changed · +21 lines 9acaad647a2a
  3. 2mo ago Changed · +1 lines 552e87e1dc31
  4. 3mo ago First seen · 46 lines · 20 tokens per session scan A d9fd3bc71e8f

Subscribe to this mod's changes

ruby-script is a skill published in the GitHub repository LandonSchropp/agent-toolkit (3 stars, last pushed today), licensed MIT. It adds 20 tokens to every session and 759 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

ruby-script compared with skills from other repositories

ruby-script next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ruby-scriptLandonSchropp/agent-toolkitSkill3todayMITA20Claude Code
loom-rubycosmix/loomSkill66yesterdayMITA15Claude Code, Codex
newclacky-ai/openclackySkill1.2k3d agoMITA10Claude Code
authoring-java-sdk-tasksastronomer/agentsSkill4646d agoApache-2.0A152Claude Code
configuring-airflow-language-sdksastronomer/agentsSkill4646d agoApache-2.0A155Claude Code
authoring-dagsastronomer/agentsSkill4646d agoApache-2.0A93Claude Code
authoring-go-sdk-tasksastronomer/agentsSkill4646d agoApache-2.0A165Claude Code