sidekiq

sidekiq is a skill for Claude Code from slbug/claude-ruby-grape-rails. It costs 56 tokens per session (2,367 once invoked), scanned A, original, MIT.

A guide to building background jobs with Sidekiq or Solid Queue, including safe retries, database timing, and job arguments.

In plain words
What is it for?
Use it when creating or troubleshooting asynchronous jobs, worker queues, retries, and large data-processing tasks.
Why use it?
It helps avoid duplicate work, jobs that run before database changes are saved, invalid arguments, and unclear retry behavior.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

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

Good fit Use it when creating or troubleshooting asynchronous jobs, worker queues, retries, and large data-processing tasks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/slbug/claude-ruby-grape-rails/sidekiq
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.

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

Made for: Claude Code.

Or install ruby-grape-rails, the plugin that ships this one along with the rest of its 52 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 sidekiq

README.md
[![agentmods](https://agentmods.dev/badge/skills/slbug/claude-ruby-grape-rails/sidekiq/github.svg)](https://agentmods.dev/skills/slbug/claude-ruby-grape-rails/sidekiq)
Your own site
<a href="https://agentmods.dev/skills/slbug/claude-ruby-grape-rails/sidekiq"><img src="https://agentmods.dev/badge/skills/slbug/claude-ruby-grape-rails/sidekiq/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 sidekiq

Your own site · 80×15
<a href="https://agentmods.dev/skills/slbug/claude-ruby-grape-rails/sidekiq"><img src="https://agentmods.dev/badge/skills/slbug/claude-ruby-grape-rails/sidekiq.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,367 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 360
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
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.00056 $0.02367
Opus 5.5 $0.00022 $0.00947
Sonnet 5.5 $0.00011 $0.00473
Haiku 4.5 $0.00006 $0.00237

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

Security

Grade A, and why

sidekiq 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 1mo 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/sidekiq/SKILL.md · 390 lines

How it starts

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

Sidekiq

Iron Laws

  1. Jobs are idempotent - Safe to retry multiple times
  2. Pass IDs and JSON primitives only - Never pass ORM objects
  3. Enqueue after commit - Use the active ORM's commit-safe hook, not after_save or inline before commit
  4. Keep queue names intentional - Operationally meaningful
  5. Use retries intentionally - Don't hide permanent failures
  6. Profile slow jobs - Use Sidekiq 8 profiling
  7. Iterate large datasets - Use Sidekiq::Iteration

Version Compatibility

Sidekiq Rails Redis Key Features
6.x 6+ 4.0+ Basic processing
7.x 7+ 6.2+ Capsules, metrics
8.x 7+ 7.0+ Profiling, iteration, Valkey

Job Template

class MyJob
  include Sidekiq::Job

  sidekiq_options queue: 'default', retry: 3

  def perform(user_id)
    user = User.find(user_id)
    # Do work
  end
end

JSON-Safe Arguments

✅ Correct:

MyJob.perform_async(user.id)                    # IDs
MyJob.perform_async(123, "string", true)        # Primitives
MyJob.perform_async(user.created_at.iso8601)    # Dates as strings

❌ Incorrect:

MyJob.perform_async(user)              # ORM objects
MyJob.perform_async(Date.today)        # Date objects
MyJob.perform_async(status: :active)   # Symbols

Idempotency

Jobs must be safe to run multiple times:

class ProcessPaymentJob
  include Sidekiq::Job

  def perform(payment_id)
    payment = Payment.find(payment_id)
    return if payment.processed?  # State check
    
    payment.with_lock do
      return if payment.processed?  # Double-check
      payment.process!
    end
  end
end

Strategies: State check | Upsert | UUID dedup | Locking

Commit-Safe Enqueueing by ORM

Always identify the ORM for the touched package before giving enqueue advice.

Active Record

Use after_commit for model-driven enqueueing that depends on committed data:

class User < ApplicationRecord
  after_commit :enqueue_welcome_email, on: :create

  private

  def enqueue_welcome_email
    WelcomeEmailJob.perform_async(id)
  end
end

Read the full file on GitHub · 390 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 390 lines · 56 tokens per session scan A f5b7c5bb56da

Subscribe to this mod's changes

sidekiq is a skill published in the GitHub repository slbug/claude-ruby-grape-rails (7 stars, last pushed 16d ago), licensed MIT. It adds 56 tokens to every session and 2,367 once invoked, about $0.0002 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-09-03.

Related

Other skills, from other repositories

open-source

Documentation reference for writing Python code using the browser-use open-source library. Use this skill whenever the user needs help with Agent, Browser, or Tools configuration, is writing code that imports from browseruse, asks about @sandbox deployment, supported LLM models, Actor API, custom tools, lifecycle…

browser-use/browser-use · 137 tokens

omh-backend

This is an OMH backend workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).

rlaope/oh-my-hermes · 75 tokens

pinme-llm

Use this skill when a PinMe project (Worker TypeScript) needs to call OpenRouter-backed LLM APIs, including models, chat/completions, streaming, or OpenRouter web search. Guides AI to generate correct Worker TS code.

glitternetwork/pinme · 54 tokens

design-mcp-server

Design the tool surface, resources, and service layer for a new MCP server. Use when starting a new server, planning a major feature expansion, or when the user describes a domain/API they want to expose via MCP. Produces a design doc at docs/design.md that drives implementation.

cyanheads/obsidian-mcp-server · 62 tokens

api-telemetry

Catalog of OpenTelemetry instrumentation built into framework @cyanheads/mcp-ts-core — spans, metrics, completion logs, env config, runtime caveats, custom instrumentation patterns, and cardinality rules. Use when enabling OTel export, adding custom spans or metrics in services, debugging missing telemetry, looking up…

cyanheads/obsidian-mcp-server · 85 tokens

unicli-explorer

Create new Uni-CLI adapters by exploring websites and APIs. Use when adding support for a new site, desktop app, or service that unicli doesn't cover yet.

olo-dot-io/Uni-CLI · 38 tokens