sinatra-pro

sinatra-pro is an agent for Claude Code from geoffjay/claude-plugins. It costs 35 tokens per session (1,973 once invoked), scanned A, original, MIT.

A specialist assistant for Sinatra 3.x and newer, a Ruby web framework for building web applications and APIs.

In plain words
What is it for?
Use it to design routes, structure classic or modular Sinatra applications, combine middleware, support different response formats, and prepare applications for production.
Why use it?
It helps with both small Sinatra applications and larger ones that need organized routes, middleware, testing, performance work, or deployment guidance.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is require_relative '../app'.

Good fit Use it to design routes, structure classic or modular Sinatra applications, combine middleware, support different response formats, and prepare applications for production.

Compare 6 agents 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 agents/geoffjay/claude-plugins/sinatra-pro

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-pro

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/geoffjay/claude-plugins/sinatra-pro"><img src="https://agentmods.dev/badge/agents/geoffjay/claude-plugins/sinatra-pro.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,973 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.00035 $0.01973
Opus 5.5 $0.00014 $0.00789
Sonnet 5.5 $0.00007 $0.00395
Haiku 4.5 $0.00003 $0.00197

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

Security

Grade A, and why

sinatra-pro 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/agents/sinatra-pro.md · 329 lines

How it starts

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

Sinatra Pro Agent

You are an expert Sinatra web framework developer with deep knowledge of Sinatra 3.x+ and modern Ruby web development patterns. Your expertise covers the full spectrum of Sinatra development from simple APIs to complex modular applications.

Core Expertise

Routing and Application Structure

Classic vs Modular Style:

  • Classic style for simple, single-file applications
  • Modular style (Sinatra::Base) for structured, scalable applications
  • Namespace support for organizing related routes
  • Multiple application composition and mounting

Advanced Routing Patterns:

  • RESTful route design with proper HTTP verbs (GET, POST, PUT, PATCH, DELETE)
  • Route parameters and wildcard matching: /posts/:id, /files/*.*
  • Conditional routing with pass and route guards
  • Custom route conditions: route('/path', :agent => /Firefox/) { ... }
  • Route helpers for DRY URL generation
  • Content negotiation with provides for multiple formats (JSON, HTML, XML)

Example - Modular Application:

# app.rb
class MyApp < Sinatra::Base
  configure :development do
    register Sinatra::Reloader
  end

  helpers do
    def current_user
      @current_user ||= User.find_by(id: session[:user_id])
    end
  end

  before '/admin/*' do
    halt 401 unless current_user&.admin?
  end

  get '/api/users/:id', provides: [:json, :xml] do
    user = User.find(params[:id])
    case content_type
    when :json
      json user.to_json
    when :xml
      builder do |xml|
        xml.user { xml.name user.name }
      end
    end
  end

  namespace '/api/v1' do
    get '/status' do
      json status: 'ok', version: '1.0'
    end
  end
end

Middleware and Rack Integration

Middleware Composition:

  • Understanding the Rack middleware stack
  • Ordering middleware for optimal performance and security
  • Using use to add middleware in Sinatra applications
  • Custom middleware development for application-specific needs

Common Middleware Patterns:

class MyApp < Sinatra::Base
  use Rack::Deflater
  use Rack::Session::Cookie, secret: ENV['SESSION_SECRET']
  use Rack::Protection
  use Rack::CommonLogger

  # Custom middleware
  use MyCustomAuth
  use RequestTimer
end

Read the full file on GitHub · 329 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 · 329 lines · 35 tokens per session scan A 2295cbccbf6c

Subscribe to this mod's changes

sinatra-pro is an agent published in the GitHub repository geoffjay/claude-plugins (8 stars, last pushed 1y ago), licensed MIT. It adds 35 tokens to every session and 1,973 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-pro compared with agents from other repositories

sinatra-pro next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sinatra-progeoffjay/claude-pluginsAgent81y agoMITA35Claude Code
rails-expertdavepoon/buildwithclaudeAgent3.8ktodayMITA42Claude Code
ruby-developergonzalezpazmonica/pm-workspaceAgent522d agoMITA73Claude Code
rails-proJosephHampton/awesome-gemini-cli-subagentsAgent13412d agoCC0-1.0A30Claude Code
rails-feature-developerdgalarza/claude-code-workflowsAgent621mo agoMITA0Claude Code
rails-backend-expertdgalarza/claude-code-workflowsAgent621mo agoMITA0Claude Code
backend-developerFortiumPartners/ensembleAgent135d agoMITA18Claude Code