using-celery

using-celery is a skill for Claude Code, Codex from FortiumPartners/ensemble. It costs 45 tokens per session (2,952 once invoked), scanned A, original, MIT.

A development reference for Celery, a Python system that runs background jobs outside the main request, with Beat for scheduled jobs. It also covers Redis or RabbitMQ message brokers and FastAPI integration.

In plain words
What is it for?
It is for building background jobs, periodic tasks, task workflows, and asynchronous processing in Python applications.
Why use it?
It helps keep slow, asynchronous, or recurring work out of the main application flow and provides patterns for connecting these parts safely.

Skill for Claude CodeCodex

Part of the ensemble-development plugin — 11 skills, 7 agents 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/fortiumpartners/ensemble/using-celery
Any agent
npx skills add FortiumPartners/ensemble --skill using-celery
Clone the repo
git clone --depth 1 https://github.com/FortiumPartners/ensemble

Made for: Claude Code, Codex.

Or install ensemble-development, the plugin that ships this one along with the rest of its 11 skills, 7 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/fortiumpartners/ensemble/using-celery.svg)](https://agentmods.dev/skills/fortiumpartners/ensemble/using-celery)
Your own site
<a href="https://agentmods.dev/skills/fortiumpartners/ensemble/using-celery"><img src="https://agentmods.dev/badge/skills/fortiumpartners/ensemble/using-celery.svg" alt="Measured on agentmods" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,952 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.00045 $0.02952
Opus 5 $0.00023 $0.01476
Sonnet 5 $0.00009 $0.00590
Haiku 4.5 $0.00005 $0.00295

Measured yesterday against content hash 4814bfa96b29, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

using-celery 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 yesterday.

The scan reads SKILL.md. This mod also ships 6 executable files (examples/fastapi_celery.example.py, examples/task_patterns.example.py, templates/beat_schedule.template.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

packages/development/skills/using-celery/SKILL.md · 457 lines

How it starts

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

Celery & Beat Development Skill

Quick Reference

Celery 5.3+ distributed task queue with Beat scheduler for Python applications. Background job processing, periodic scheduling, workflow patterns, and FastAPI integration.


Table of Contents

  1. Quick Reference
  2. When to Use
  3. Project Structure
  4. Celery Application Setup
  5. Task Definitions
  6. Queue Routing
  7. Beat Scheduler
  8. Workflow Patterns
  9. FastAPI Integration
  10. Testing
  11. CLI Commands
  12. Essential Configuration
  13. Anti-Patterns to Avoid
  14. Integration Checklist
  15. See Also

When to Use

This skill is loaded by backend-developer when:

  • celery or celery[redis] in dependencies
  • celeryconfig.py or celery.py present
  • Beat schedule configuration detected
  • User mentions "background tasks", "job queue", or "periodic tasks"
  • Task decorator patterns (@app.task) found

Minimum Detection Confidence: 0.8 (80%)

Prerequisite: Python skill should be loaded for core patterns.


Project Structure

my_project/
├── src/my_app/
│   ├── celery_app.py        # Celery application
│   ├── config.py            # Settings
│   ├── tasks/               # Task modules
│   │   ├── email.py
│   │   ├── reports.py
│   │   └── cleanup.py
│   └── workers/queues.py    # Queue definitions
├── tests/
│   ├── conftest.py          # Celery fixtures
│   └── tasks/
├── docker-compose.yml       # Redis + workers
└── pyproject.toml

Celery Application Setup

from celery import Celery
from kombu import Queue
from .config import settings

app = Celery(
    "my_app",
    broker=settings.celery_broker_url,
    backend=settings.celery_result_backend,
    include=["my_app.tasks.email", "my_app.tasks.reports"],
)

app.conf.update(
    task_serializer="json",
    accept_content=["json"],
    result_serializer="json",
    timezone="UTC",
    enable_utc=True,
    task_track_started=True,
    task_time_limit=300,
    task_soft_time_limit=240,
    worker_prefetch_multiplier=1,
    task_acks_late=True,
    task_reject_on_worker_lost=True,
)

# Queue routing
app.conf.task_queues = (
    Queue("default", routing_key="default"),
    Queue("high_priority", routing_key="high"),
    Queue("low_priority", routing_key="low"),
)

Read the full file on GitHub · 457 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. yesterday First seen · 457 lines · 45 tokens per session scan A 4814bfa96b29

Subscribe to this mod's changes

using-celery is a skill published in the GitHub repository FortiumPartners/ensemble (11 stars, last pushed 1mo ago), licensed MIT. It adds 45 tokens to every session and 2,952 once invoked, about $0.0002 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-09-03.

Related

Other skills, from other repositories

saas-payments

Implement production-ready payment processing with Stripe including one-time payments, recurring subscriptions, customer portal, metered billing, and webhook handling. This skill covers the complete billing lifecycle from checkout through subscription management.

TheWayWithin/agent-11 · 4 tokens

saas-auth

Implement production-ready authentication for SaaS applications including email/password, OAuth social login, session management, and security best practices. This skill covers the complete auth lifecycle from signup through password recovery.

TheWayWithin/agent-11 · 3 tokens

saas-analytics

Implement product analytics for understanding user behavior, tracking key metrics, and making data-driven decisions. Covers event tracking, user identification, cohort analysis, and integration with analytics platforms like PostHog, Mixpanel, or custom solutions.

TheWayWithin/agent-11 · 4 tokens

saas-onboarding

Implement effective user onboarding flows that drive activation and reduce churn. Covers setup wizards, progress checklists, contextual tooltips, and tracking of key activation milestones. Focus on getting users to their "aha moment" quickly.

TheWayWithin/agent-11 · 4 tokens

saas-billing

Implement subscription lifecycle management, plan enforcement, usage tracking, and billing operations. Covers trial periods, plan changes, quota enforcement, and subscription status synchronization with payment providers.

TheWayWithin/agent-11 · 4 tokens

saas-email

Implement reliable transactional email delivery for SaaS applications including templating, queuing, delivery tracking, and provider abstraction. Covers common email types: welcome, verification, password reset, notifications, and invoices.

TheWayWithin/agent-11 · 3 tokens