sinatra-scaffold

sinatra-scaffold is a command for Claude Code from geoffjay/claude-plugins. It costs 18 tokens per session (3,600 once invoked), scanned A, original, MIT.

A project generator for Sinatra applications, which are web applications built with the Ruby Sinatra framework. It creates a starting structure with tests and deployment settings.

In plain words
What is it for?
Use it to start classic, modular, or API-only Sinatra projects. You can choose RSpec or Minitest for tests, Sequel or ActiveRecord for database access, and ERB, Haml, or no frontend.
Why use it?
It removes the repetitive setup work involved in choosing an application style, testing tool, database connection, and view format.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: positional $N argument.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is set :root, File.expand_path('../..', __dir__).

Good fit Use it to start classic, modular, or API-only Sinatra projects. You can choose RSpec or Minitest for tests, Sequel or ActiveRecord for database access, and ERB, Haml, or no frontend.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/geoffjay/claude-plugins
agentmods
npx agentmods add commands/geoffjay/claude-plugins/sinatra-scaffold

Made for: Claude Code.

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 sinatra-scaffold

README.md
[![agentmods](https://agentmods.dev/badge/commands/geoffjay/claude-plugins/sinatra-scaffold/github.svg)](https://agentmods.dev/commands/geoffjay/claude-plugins/sinatra-scaffold)
Your own site
<a href="https://agentmods.dev/commands/geoffjay/claude-plugins/sinatra-scaffold"><img src="https://agentmods.dev/badge/commands/geoffjay/claude-plugins/sinatra-scaffold/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 sinatra-scaffold

Your own site · 80×15
<a href="https://agentmods.dev/commands/geoffjay/claude-plugins/sinatra-scaffold"><img src="https://agentmods.dev/badge/commands/geoffjay/claude-plugins/sinatra-scaffold.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,600 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.00018 $0.03600
Opus 5.5 $0.00007 $0.01440
Sonnet 5.5 $0.00004 $0.00720
Haiku 4.5 $0.00002 $0.00360

Measured 3mo ago against content hash 6ab8762d2acf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sinatra-scaffold 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 3mo ago.

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/ruby-sinatra-advanced/commands/sinatra-scaffold.md · 655 lines

How it starts

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

Sinatra Scaffold Command

Scaffolds a new Sinatra application with modern project structure, testing framework, and deployment configuration.

Arguments

  • $1: project-name (required) - Name of the project/application
  • $2: type (optional) - Application type: classic, modular, or api (default: modular)
  • $3: options (optional) - JSON string with configuration options:
    • testing: rspec or minitest (default: rspec)
    • database: sequel, activerecord, or none (default: sequel)
    • frontend: none, erb, or haml (default: erb)

Usage Examples

# Basic modular app with defaults
/sinatra-scaffold my-app

# Classic app with RSpec and no database
/sinatra-scaffold simple-app classic '{"testing":"rspec","database":"none","frontend":"erb"}'

# API-only app with Minitest and ActiveRecord
/sinatra-scaffold api-service api '{"testing":"minitest","database":"activerecord","frontend":"none"}'

# Full-featured modular app
/sinatra-scaffold webapp modular '{"testing":"rspec","database":"sequel","frontend":"haml"}'

Workflow

Step 1: Validate and Initialize

Actions:

  1. Validate project name format (alphanumeric, hyphens, underscores)
  2. Check if directory already exists
  3. Parse and validate options JSON
  4. Create project directory structure

Validation:

# Check project name
if [[ ! "$PROJECT_NAME" =~ ^[a-zA-Z0-9_-]+$ ]]; then
  echo "Error: Invalid project name. Use alphanumeric characters, hyphens, or underscores."
  exit 1
fi

# Check if directory exists
if [ -d "$PROJECT_NAME" ]; then
  echo "Error: Directory '$PROJECT_NAME' already exists."
  exit 1
fi

Step 2: Create Directory Structure

Classic Structure:

project-name/
├── app.rb
├── config.ru
├── Gemfile
├── Rakefile
├── config/
│   └── environment.rb
├── public/
│   ├── css/
│   ├── js/
│   └── images/
├── views/
│   ├── layout.erb
│   └── index.erb
├── spec/ or test/
└── README.md

Modular Structure:

project-name/
├── app/
│   ├── controllers/
│   │   ├── application_controller.rb
│   │   └── base_controller.rb
│   ├── models/
│   ├── services/
│   └── helpers/
├── config/
│   ├── environment.rb
│   ├── database.yml (if database selected)
│   └── puma.rb
├── config.ru
├── db/
│   └── migrations/
├── lib/
│   └── tasks/
├── public/
│   ├── css/
│   ├── js/
│   └── images/
├── views/
│   ├── layout.erb
│   └── index.erb
├── spec/ or test/
│   ├── spec_helper.rb
│   └── controllers/
├── Gemfile
├── Rakefile
├── .env.example
├── .gitignore
└── README.md

Read the full file on GitHub · 655 lines

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. 3mo ago First seen · 655 lines · 18 tokens per session scan A 6ab8762d2acf

Subscribe to this mod's changes

sinatra-scaffold is a command published in the GitHub repository geoffjay/claude-plugins (8 stars, last pushed 1y ago), licensed MIT. It adds 18 tokens to every session and 3,600 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

sinatra-scaffold compared with commands from other repositories

sinatra-scaffold next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sinatra-scaffoldgeoffjay/claude-pluginsCommand81y agoMITA18Claude Code
rails-generatorsel-feo/ai-contextCommand1210d agoMITA18Claude Code
skill-rails-apidewtech-technologies/dare-methodCommand54mo agoMITA0Claude Code
indexGoldziher/spikardCommand12417d agoMITA0Claude Code
infolistmwguerra/claude-code-pluginsCommand357mo agononeA21Claude Code
app-factoryswesmith/davila7__claude-code-templates.734b8a50Command211mo agoMITA0Claude Code
checklistgithub/spec-kitCommand153ktodayMITA13Claude Code