intent-detection

intent-detection is a skill for Claude Code, Codex from slbug/claude-ruby-grape-rails. It costs 68 tokens per session (2,290 once invoked), scanned A, original, MIT.

A routing skill for Ruby and Rails projects, including tools such as Grape, Sidekiq, Active Record, Sequel, and Hotwire. It identifies the kind of work being requested and points to the matching command before work begins.

In plain words
What is it for?
Use it when you describe a Rails-related task without naming a command. It can route requests for bugs, features, refactoring, reviews, audits, testing, research, and releases.
Why use it?
It helps avoid choosing the wrong workflow when a task is described in everyday language. It also separates tasks such as bug investigation, feature planning, code review, research, and deployment.

Skill for Claude CodeCodex

Part of the ruby-grape-rails plugin — 23 skills, 19 agents, 17 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/slbug/claude-ruby-grape-rails/intent-detection
Any agent
npx skills add slbug/claude-ruby-grape-rails --skill intent-detection
Clone the repo
git clone --depth 1 https://github.com/slbug/claude-ruby-grape-rails

Made for: Claude Code, Codex.

Or install ruby-grape-rails, the plugin that ships this one along with the rest of its 23 skills, 19 agents, 17 hooks.

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 intent-detection

README.md
[![agentmods](https://agentmods.dev/badge/skills/slbug/claude-ruby-grape-rails/intent-detection.svg)](https://agentmods.dev/skills/slbug/claude-ruby-grape-rails/intent-detection)
Your own site
<a href="https://agentmods.dev/skills/slbug/claude-ruby-grape-rails/intent-detection"><img src="https://agentmods.dev/badge/skills/slbug/claude-ruby-grape-rails/intent-detection.svg" alt="Measured on agentmods" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,290 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00068 $0.02290
Opus 5 $0.00034 $0.01145
Sonnet 5 $0.00014 $0.00458
Haiku 4.5 $0.00007 $0.00229

Measured 3d ago against content hash 8e2c805a1987, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

intent-detection 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 3d 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-grape-rails/skills/intent-detection/SKILL.md · 147 lines

How it starts

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

Intent Detection — Workflow Routing

When user describes work WITHOUT specifying a /rb: command, analyze their intent and suggest the appropriate workflow BEFORE starting work.

Routing Table — Visible Skills

Signal phrase Detected intent Workflow target
"bug", "error", "crash", "failing", "broken", stack trace Bug investigation /rb:investigate
"add", "implement", "build", "create" + multi-step New feature /rb:plan
"review", "check" code Code review (changed files) /rb:review
"audit code", "audit project", "codebase health" Project audit (whole codebase) /rb:audit
"fix" + small/specific scope Quick fix handle directly or /rb:quick
"refactor", "clean up", "improve" Refactoring /rb:plan (needs scope)
"research", "how to", "what's the best" Research /rb:research
"evaluate", "compare", "adopt", "library", "should we use" Library evaluation /rb:research --library
"test", "spec", "coverage" Testing handle directly or /rb:plan
Describes 1-2 file changes, < 50 lines Small task handle directly
"deploy", "release", "production" Deployment /rb:verify then deploy
"performance", "slow", "N+1", "memory" Performance /rb:perf
"PR review", "review comments", "address feedback", "respond to PR" PR response /rb:pr-review
"permission prompts", "stop asking", "settings.json", "allow commands", "permission fatigue" Permission tuning /rb:permissions
"that worked", "fixed it", "problem solved" Knowledge capture /rb:compound
"enhance plan", "more detail", "deepen" Plan enhancement /rb:plan --existing
"triage", "which findings", "prioritize fixes" Finding triage /rb:triage
"brainstorm", "explore options", "not sure how", "multiple approaches", "what's the best way to architect" Design exploration /rb:brainstorm

Routing Table (DMI roster — slash-only)

Skills below carry disable-model-invocation: true. They never auto-load through the routing prompt; reach them via /rb:<name> slash invocation when the signal matches. Suggest the right command when triggers appear.

Read the full file on GitHub · 147 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. 3d ago First seen · 147 lines · 68 tokens per session scan A 8e2c805a1987

Subscribe to this mod's changes

intent-detection is a skill published in the GitHub repository slbug/claude-ruby-grape-rails (7 stars, last pushed 4d ago), licensed MIT. It adds 68 tokens to every session and 2,290 once invoked, about $0.0003 per session on Opus 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

Other skills, from other repositories