Skip to content
Back to skills

Sinatra Patterns

ASecurity

Sinatra patterns for modular apps, routes, filters, settings, sessions, Rack::Protection, and host authorization. Load before any edit in a Sinatra app, however small, and for Sinatra questions.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsruby

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add ku5ic/claude-kit --skill sinatra-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sinatra Patterns?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Sinatra Patterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ku5ic-sinatra-patterns/badge)](https://www.skillsdirectory.com/skills/ku5ic-sinatra-patterns)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: sinatra-patterns
description: Sinatra patterns for modular apps, routes, filters, settings, sessions, Rack::Protection, and host authorization. Load before any edit in a Sinatra app, however small, and for Sinatra questions.
---

# Sinatra patterns

Default assumption: Sinatra 4.2, on Rack 3 and Ruby 2.7.8 or later, per the Sinatra CHANGELOG.

A row applies when the `sinatra`, `rack`, or `rack-session` version in `Gemfile.lock` is at least the row's version.

## Reference files

Loading this skill isn't enough. Before your next edit, read the file of every row that matches it. The rules live in those files, and this one only points at them.

| Before                                                                                                                                 | Read                                                     |
| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- |
| Writing Sinatra code, or raising the Sinatra, Rack, or rack-session version                                                            | [reference/upgrades.md](reference/upgrades.md)           |
| Writing, changing, or reviewing Sinatra code                                                                                           | [reference/anti-patterns.md](reference/anti-patterns.md) |
| Writing an app class, a route, a filter, a setting, an error handler, a response, an extension, sessions, or `Rack::Protection` config | [reference/practices.md](reference/practices.md)         |
| Configuring or running a Sinatra linter or formatter                                                                                   | [reference/tooling.md](reference/tooling.md)             |

Files in this skill

  • SKILL.md1.8 KB
  • reference/anti-patterns.md2.3 KB
  • reference/practices.md3 KB
  • reference/tooling.md234 B
  • reference/upgrades.md4.2 KB
  • sources.md4.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.