# Django celery

> Django celery is an open-source agent skill for developer tools. Guides an AI agent through Django background jobs, retries, Celery Beat scheduling. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/smartworldarafath/REA_Skill/tree/main/.agents/skills/django-celery
- **Repository:** https://github.com/smartworldarafath/rea_skill
- **GitHub stars:** 66
- **License:** MIT
- **Skill name:** django-celery
- **Collection:** https://github.com/smartworldarafath/REA_Skill
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill gives an agent a reference set of patterns for running asynchronous work in Django with Celery. It covers the app entrypoint and settings for a Redis or RabbitMQ broker, django-celery-results and django-celery-beat setup, worker and beat startup commands, and task design such as idempotent handlers, retries with backoff, soft and hard time limits, and canvas chains, groups and chords.

The skill also points the agent at operational concerns: periodic-task scheduling in code or in the database, publishing tasks only after a database transaction commits, failure reporting through task_failure signals, and monitoring with Celery inspect commands and Flower. Testing guidance separates fast unit tests with mocks, eager-mode integration checks, and worker tests against a real broker. Some topics are linked to a separate reliability reference file.

The examples assume a Django project with pytest and the Celery and Django packages installed, and they reference Redis for the broker and Sentry for error capture.

## When your agent uses it

> Django + Celery async task patterns — configuration, task design, beat scheduling, retries, canvas workflows, monitoring, and testing. Use when adding background jobs, scheduled tasks, or async processing to a Django app.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/smartworldarafath/REA_Skill/tree/HEAD/.agents/skills/django-celery)
- [License: MIT](https://github.com/smartworldarafath/REA_Skill/tree/HEAD/.agents/skills/django-celery)

## Features

- **Celery configuration setup:** Covers the Celery app entrypoint, broker and result backend settings, serialization and time limits for a Django project.
- **Retry and idempotency patterns:** Shows retryable tasks with exponential backoff and jitter, plus guarded updates so tasks can run more than once safely.
- **Beat scheduling options:** Explains defining periodic tasks in settings or through django-celery-beat database schedules, and the overlap risks to consider.
- **Canvas workflow composition:** Describes chaining, grouping and chord callbacks to sequence or parallelise background tasks.
- **Celery testing approaches:** Covers mocked unit tests, eager-mode Django integration tests and worker tests against a real broker.
- **Failure monitoring guidance:** Describes hooking task_failure signals to error tracking and inspecting workers and queues from the command line.

## Good for

- Move sending welcome emails out of the request cycle
- Add a nightly cron-style job to clean up expired sessions
- Retry a flaky third-party API sync with exponential backoff
- Chain data fetch, transform and load steps as Celery tasks
- Write pytest tests for Celery tasks in a Django app
- Set up Celery worker and beat commands for production

## Install

### Claude Code

This skill ships in the `rea-skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add smartworldarafath/REA_Skill
/plugin install rea-skills@smartworldarafath
```

Or copy only this skill to `~/.claude/skills/django-celery`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/django-celery &&
cp -R "$tmp/.agents/skills/django-celery" ~/.claude/skills/django-celery &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/django-celery` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/django-celery` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/django-celery &&
cp -R "$tmp/.agents/skills/django-celery" ~/.agents/skills/django-celery &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/django-celery` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/django-celery` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/django-celery &&
cp -R "$tmp/.agents/skills/django-celery" ~/.cursor/skills/django-celery &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/django-celery` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/smartworldarafath/REA_Skill.git --path .agents/skills/django-celery
```

Or copy the folder to `~/.gemini/skills/django-celery` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/django-celery`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/django-celery &&
cp -R "$tmp/.agents/skills/django-celery" ~/.copilot/skills/django-celery &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/django-celery` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git
```

Then copy `REA_Skill/.agents/skills/django-celery` into your agent's skills folder as `django-celery`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need from my project?

It assumes a Django project using Celery, with Redis or RabbitMQ as the broker. The setup examples install celery[redis], django-celery-results and django-celery-beat, and the testing examples use pytest.

### Does Django celery change my code or run scripts?

No. The skill ships only instructions and reference files, with no scripts. It gives the agent patterns to apply when a task matches.

### When does the skill trigger?

It is meant for adding background jobs, scheduled tasks or async processing to a Django app, as described in its description field.

### How do I install Django celery in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/django-celery to use it in all your projects, or to .claude/skills/django-celery in one project. Or install the rea-skills plugin, which includes it: /plugin marketplace add smartworldarafath/REA_Skill, then /plugin install rea-skills@smartworldarafath.

### Does Django celery run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Django celery?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Django celery?

The closest alternatives to Django celery are Django patterns, Django TDD, Django security, Django perf review and Orchestration.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Django patterns](https://ai-powered.com/skills/django-patterns): Django patterns is an open-source agent skill for developer tools.
- [Django TDD](https://ai-powered.com/skills/django-tdd): Django TDD is an open-source agent skill for developer tools.
- [Django security](https://ai-powered.com/skills/django-security): Django security is an open-source agent skill for security.
- [Django perf review](https://ai-powered.com/skills/django-perf-review): Django perf review is an open-source agent skill for databases.
- [Orchestration](https://ai-powered.com/skills/orchestration-xiaolai): Orchestration is an open-source agent skill for developer tools.
- [Django verification](https://ai-powered.com/skills/django-verification): Django verification is an open-source agent skill for developer tools.
- [Alembic knowledge patch](https://ai-powered.com/skills/alembic-knowledge-patch): Alembic knowledge patch is an open-source agent skill for databases.
- [Pytest skill](https://ai-powered.com/skills/pytest-skill): Pytest skill is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/django-celery
