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.
git clone --depth 1 https://github.com/geoffjay/claude-pluginsnpx agentmods add agents/geoffjay/claude-plugins/sinatra-proWrote 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.
[](https://agentmods.dev/agents/geoffjay/claude-plugins/sinatra-pro)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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
passand route guards - Custom route conditions:
route('/path', :agent => /Firefox/) { ... } - Route helpers for DRY URL generation
- Content negotiation with
providesfor 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
useto 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
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.
- 3mo ago First seen · 329 lines · 35 tokens per session scan A 2295cbccbf6c
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.
sinatra-pro compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| sinatra-progeoffjay/claude-plugins | Agent | 8 | 1y ago | MIT | A | 35 | Claude Code |
| rails-expertdavepoon/buildwithclaude | Agent | 3.8k | today | MIT | A | 42 | Claude Code |
| ruby-developergonzalezpazmonica/pm-workspace | Agent | 52 | 2d ago | MIT | A | 73 | Claude Code |
| rails-proJosephHampton/awesome-gemini-cli-subagents | Agent | 134 | 12d ago | CC0-1.0 | A | 30 | Claude Code |
| rails-feature-developerdgalarza/claude-code-workflows | Agent | 62 | 1mo ago | MIT | A | 0 | Claude Code |
| rails-backend-expertdgalarza/claude-code-workflows | Agent | 62 | 1mo ago | MIT | A | 0 | Claude Code |
| backend-developerFortiumPartners/ensemble | Agent | 13 | 5d ago | MIT | A | 18 | Claude Code |