skills/ruby-script/SKILL.md
Use when writing a Ruby script. Covers the template, conventions, and required patterns.
npx skillsauth add LandonSchropp/agent-toolkit ruby-scriptInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Start from the template at assets/template.rb. Copy it exactly and fill in the specific logic.
<name>.rb with kebab-case (e.g., extract-pr-number.rb)chmod +x)--flag-name (kebab-case). Only use positional args for very simple cases.directory, not dir)0 for success, 1 for errors#!/usr/bin/env ruby shebang# frozen_string_literal: true magic comment, immediately after the shebangprint_help method for help output--help flag handled inside the OptionParser blockOptionParser from the standard library for argument parsingError: and go to stderr via warnprint_help when validation fails or unknown options are encounteredOptionParser::InvalidOption and print Error: The option <option> is invalid.tools
Use when working with a stack of GitHub pull requests — creating branches, keeping the stack in sync, or merging in order. Covers Git Town setup, PR targeting, rebasing, and landing the stack.
tools
Use when writing or modifying tests in a Bun project
tools
Use when publishing or releasing a new version of an npm/pnpm/yarn/bun package to the registry. Covers package-manager detection, semver bump selection, tagging, pushing, scoped-package access, authentication, and one-time passwords (OTP).
tools
Use when a finished worktree's branch has been reviewed and committed and needs to land. Rebases onto the latest default branch, then either fast-forwards it into the default branch (personal direct-to-main repos) or pushes it for a pull request (shared feature-branch repos).