Skip to content
Back to skills

Grape Patterns

ASecurity

Grape patterns for params, validators, declared(params), rescue_from and error!, versioning, mounting, and 4.x changes. Load before any edit in a Grape API, however small, and for Grape questions.

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

Works with

  • api

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 grape-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Grape Patterns?

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

Security grade badge for Grape Patterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ku5ic-grape-patterns/badge)](https://www.skillsdirectory.com/skills/ku5ic-grape-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: grape-patterns
description: Grape patterns for params, validators, declared(params), rescue_from and error!, versioning, mounting, and 4.x changes. Load before any edit in a Grape API, however small, and for Grape questions.
---

# Grape patterns

Default assumption: Grape 4.1, on Ruby 3.3.1 or later and ActiveSupport 7.2 or later, per the Grape CHANGELOG. 4.2 is unreleased, and the master README describes its behavior, not 4.1's.

A row applies when the `grape` version in `Gemfile.lock` is at least the row's version. A Grape API mounted in Rails also follows rails-patterns.

## 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 Grape code, or raising the Grape version                                                                                                  | [reference/upgrades.md](reference/upgrades.md)           |
| Writing, changing, or reviewing Grape code                                                                                                        | [reference/anti-patterns.md](reference/anti-patterns.md) |
| Declaring params, a coercion, a helper, a route param, a callback or a mount, an error handler, a version, a format, a status, an entity, or auth | [reference/practices.md](reference/practices.md)         |
| Configuring RuboCop or a scanner for a Grape API                                                                                                  | [reference/tooling.md](reference/tooling.md)             |

Files in this skill

  • SKILL.md2 KB
  • reference/anti-patterns.md4.3 KB
  • reference/practices.md2.8 KB
  • reference/tooling.md732 B
  • reference/upgrades.md7.1 KB
  • sources.md4.4 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.