ruby-script

Scaffold Ruby CLI scripts with a reusable template and OptionParser conventions.

1|Updated Sep 1, 2025
One-click install
npx skills add https://github.com/LandonSchropp/agent-toolkit --skill ruby-script
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ruby-script
Source: https://github.com/LandonSchropp/agent-toolkit/tree/main/skills/ruby-script
Command: npx skills add https://github.com/LandonSchropp/agent-toolkit --skill ruby-script

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) components.

What problem does it solve?

This Skill provides a ready-to-use Ruby script template and clear conventions, reducing boilerplate and helping teams start new CLI tools with consistent structure.

Core Features & Use Cases

  • Template with shebang and # frozen_string_literal: true
  • Enforced conventions around file naming, executable bits, and argument parsing with OptionParser
  • Use Case: Quickly scaffold a small Ruby CLI tool with predictable error handling and help output.

Quick Start

Start from assets/template.rb, copy it exactly, and fill in the specific Ruby logic for your script.

Frequently Asked Questions about ruby-script

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a Ruby CLI script with standard conventions?

To scaffold a Ruby CLI script with standard conventions, copy the provided template file directly and insert your specific logic. It automatically enforces a standard shebang, frozen_string_literal, and OptionParser argument parsing for consistent structure.

What is the best way to set up OptionParser for a Ruby command line tool?

The best way to set up OptionParser for a Ruby command line tool is using a preconfigured template that already includes standard argument parsing logic. This ensures predictable error handling and generates consistent help output without manual boilerplate setup.

Does this Ruby template include the frozen_string_literal pragma by default?

Yes, the Ruby template includes the frozen_string_literal pragma by default. It also enforces file naming conventions and sets the executable bit, ensuring your CLI script starts with a clean, predictable structure and prevents mutable string bugs.

Can I use this Ruby script template for large CLI applications?

You should not use this Ruby script template for large CLI applications. It is specifically designed for small to mid-sized Ruby CLI tools, providing a predictable structure and basic error handling without the complex architectural overhead required by larger projects.