celery-expert

celery-expert is a skill for Claude Code, Codex from martinholovsky/claude-skills-generator. It costs 87 tokens per session (4,245 once invoked), scanned A, original, Unlicense.

A guide to Celery, a Python task queue that runs work asynchronously through services such as Redis or RabbitMQ.

In plain words
What is it for?
Use it to define tasks, chains, groups, and chords; configure brokers and result storage; schedule jobs; add retries and rate limits; monitor workers; and secure task messages.
Why use it?
It helps make background jobs reliable and observable when work must run later, be retried, scheduled, distributed, or processed in workflows.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: model in frontmatter.

Good fit Use it to define tasks, chains, groups, and chords; configure brokers and result storage; schedule jobs; add retries and rate limits; monitor workers; and secure task messages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/martinholovsky/claude-skills-generator/celery-expert
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 martinholovsky/claude-skills-generator --skill celery-expert
Clone the repo
git clone --depth 1 https://github.com/martinholovsky/claude-skills-generator

Made for: Claude Code, Codex.

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 celery-expert

README.md
[![agentmods](https://agentmods.dev/badge/skills/martinholovsky/claude-skills-generator/celery-expert/github.svg)](https://agentmods.dev/skills/martinholovsky/claude-skills-generator/celery-expert)
Your own site
<a href="https://agentmods.dev/skills/martinholovsky/claude-skills-generator/celery-expert"><img src="https://agentmods.dev/badge/skills/martinholovsky/claude-skills-generator/celery-expert/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 celery-expert

Your own site · 80×15
<a href="https://agentmods.dev/skills/martinholovsky/claude-skills-generator/celery-expert"><img src="https://agentmods.dev/badge/skills/martinholovsky/claude-skills-generator/celery-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,245 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 18 Mar 2026
  • Snyk warn 15 Feb 2026
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.00087 $0.04245
Opus 5 $0.00044 $0.02122
Sonnet 5 $0.00017 $0.00849
Haiku 4.5 $0.00009 $0.00424

Measured 11d ago against content hash 12677f42d806, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

celery-expert scanned grade A with 1 finding 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 11d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

response = requests.get(url, timeout=10)
skills/celery-expert/SKILL.md · 631 lines

How it starts

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

Celery Distributed Task Queue Expert

1. Overview

You are an elite Celery engineer with deep expertise in:

  • Core Celery: Task definition, async execution, result backends, task states, routing
  • Workflow Patterns: Chains, groups, chords, canvas primitives, complex workflows
  • Brokers: Redis vs RabbitMQ trade-offs, connection pools, broker failover
  • Result Backends: Redis, database, memcached, result expiration, state tracking
  • Task Reliability: Retries, exponential backoff, acks late, task rejection, idempotency
  • Scheduling: Celery Beat, crontab schedules, interval tasks, solar schedules
  • Performance: Prefetch multiplier, concurrency models (prefork, gevent, eventlet), autoscaling
  • Monitoring: Flower, Prometheus metrics, task inspection, worker management
  • Security: Task signature validation, secure serialization (no pickle), message signing
  • Error Handling: Dead letter queues, task timeouts, exception handling, logging

Core Principles

  1. TDD First - Write tests before implementation; verify task behavior with pytest-celery
  2. Performance Aware - Optimize for throughput with chunking, pooling, and proper prefetch
  3. Reliability - Task retries, acknowledgment strategies, no task loss
  4. Scalability - Distributed workers, routing, autoscaling, queue prioritization
  5. Security - Signed tasks, safe serialization, broker authentication
  6. Observable - Comprehensive monitoring, metrics, tracing, alerting

Risk Level: MEDIUM

  • Task processing failures can impact business operations
  • Improper serialization (pickle) can lead to code execution vulnerabilities
  • Missing retries/timeouts can cause task accumulation and system degradation
  • Broker misconfigurations can lead to task loss or message exposure

2. Implementation Workflow (TDD)

Step 1: Write Failing Test First

# tests/test_tasks.py
import pytest
from celery.contrib.testing.tasks import ping
from celery.result import EagerResult

@pytest.fixture
def celery_config():
    return {
        'broker_url': 'memory://',
        'result_backend': 'cache+memory://',
        'task_always_eager': True,
        'task_eager_propagates': True,
    }

class TestProcessOrder:
    def test_process_order_success(self, celery_app, celery_worker):
        """Test order processing returns correct result"""
        from myapp.tasks import process_order

        # Execute task
        result = process_order.delay(order_id=123)

        # Assert expected behavior
        assert result.get(timeout=10) == {
            'order_id': 123,
            'status': 'success'
        }

    def test_process_order_idempotent(self, celery_app, celery_worker):
        """Test task is idempotent - safe to retry"""
        from myapp.tasks import process_order

        # Run twice
        result1 = process_order.delay(order_id=123).get(timeout=10)
        result2 = process_order.delay(order_id=123).get(timeout=10)

        # Should be safe to retry
        assert result1['status'] in ['success', 'already_processed']
        assert result2['status'] in ['success', 'already_processed']

    def test_process_order_retry_on_failure(self, celery_app, celery_worker, mocker):
        """Test task retries on temporary failure"""
        from myapp.tasks import process_order

        # Mock to fail first, succeed second
        mock_process = mocker.patch('myapp.tasks.perform_order_processing')
        mock_process.side_effect = [TemporaryError("Timeout"), {'result': 'ok'}]

        result = process_order.delay(order_id=123)

        assert result.get(timeout=10)['status'] == 'success'
        assert mock_process.call_count == 2

Read the full file on GitHub · 631 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. 11d ago First seen · 631 lines · 87 tokens per session scan A 12677f42d806

Subscribe to this mod's changes

celery-expert is a skill published in the GitHub repository martinholovsky/claude-skills-generator (45 stars, last pushed 9mo ago), licensed Unlicense. It adds 87 tokens to every session and 4,245 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

mem0-oss-to-platform

Plan and then execute a migration of a project from the mem0 open-source / self-hosted SDK (the local Memory class) to the mem0 Platform / hosted / managed SDK (the MemoryClient class). Use this whenever a developer wants to move, switch, or migrate their mem0 usage off OSS/self-hosted to the hosted API — e.g.…

mem0ai/mem0 · 273 tokens

agui-dotnet-protobuf

Use the protobuf wire transport (instead of the default Server-Sent Events) for an AG-UI connection with the AG-UI .NET SDK — a compact binary event stream negotiated via the Accept header. USE FOR: making an AGUIChatClient prefer protobuf by wiring an AGUIEventStreamHandler with ProtobufEventStreamFormatter (then…

ag-ui-protocol/ag-ui · 162 tokens

azure-mgmt-botservice-dotnet

Azure Resource Manager SDK for Bot Service in .NET. Management plane operations for creating and managing Azure Bot resources, channels (Teams, DirectLine, Slack), and connection settings. Triggers: "Bot Service", "BotResource", "Azure Bot", "DirectLine channel", "Teams channel", "bot management .NET", "create bot".

microsoft/skills · 78 tokens

fastapi-router-py

Create FastAPI routers with CRUD operations, authentication dependencies, and proper response models. Use when building REST API endpoints, creating new routes, implementing CRUD operations, or adding authenticated endpoints in FastAPI applications.

microsoft/skills · 46 tokens

migrate-segw-to-rap

Reverse-engineer a SEGW-built OData V2 service (MPC/DPC/MPCEXT/DPCEXT) into a modern RAP V4 service — tables, CDS views (interface + projection), behavior definitions, draft entities, service definition + binding. Use when asked to "migrate this SEGW service to RAP", "convert OData V2 to V4 RAP", "modernize this…

arc-mcp/arc-1 · 106 tokens

telnyx-messaging-hosted-curl

Set up hosted SMS numbers, toll-free verification, and RCS messaging. Use when migrating numbers or enabling rich messaging features. This skill provides REST API (curl) examples.

team-telnyx/ai · 45 tokens