celery-tasks

celery-tasks is a skill for Claude Code, Codex from tedivm/robs_awesome_python_template. It costs 44 tokens per session (1,505 once invoked), scanned A, original, MIT.

A guide for creating and changing Celery tasks, which run Python work in the background, including work scheduled to repeat. It covers task definitions, organization, arguments, return values, and logging.

In plain words
What is it for?
Use it when adding workers, background jobs, periodic tasks, or task configuration in a Celery-based Python project.
Why use it?
It helps avoid common background-task problems, such as passing data that cannot be safely serialized or using unsuitable return values. It also gives the project a consistent way to organize scheduled work.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when adding workers, background jobs, periodic tasks, or task configuration in a Celery-based Python project.

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

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-tasks

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/tedivm/robs_awesome_python_template/celery-tasks"><img src="https://agentmods.dev/badge/skills/tedivm/robs_awesome_python_template/celery-tasks.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,505 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 pass 7 Sept 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.00044 $0.01505
Opus 5.5 $0.00018 $0.00602
Sonnet 5.5 $0.00009 $0.00301
Haiku 4.5 $0.00004 $0.00151

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

Security

Grade A, and why

celery-tasks 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.

{{cookiecutter.__package_slug}}/.agents/skills/celery-tasks/SKILL.md · 198 lines

How it starts

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

Celery Tasks

context7: If the mcp_context7 tool is available, resolve and load the full celery documentation before making any changes to the task system:

mcp_context7_resolve-library-id: "celery"
mcp_context7_get-library-docs: <resolved-id>

The Celery application is defined in {{cookiecutter.__package_slug}}/celery.py. Tasks are exposed via the @celery.task decorator.


Defining Tasks

Import the celery app instance and decorate functions:

from logging import getLogger
from {{cookiecutter.__package_slug}}.celery import celery

logger = getLogger(__name__)


@celery.task
def send_email(to: str, subject: str, body: str) -> dict[str, str]:
    """Send an email asynchronously."""
    logger.info(f"Sending email to {to}: {subject}")
    return {"status": "sent", "to": to}

Rules:

  • Use logger (never print) for all output
  • Pass IDs, not objects — tasks serialize arguments, complex objects can't be serialized reliably
  • Return simple types (dict, list, primitives) — not ORM instances

Task Organization

Organize tasks in separate modules under {{cookiecutter.__package_slug}}/tasks/:

{{cookiecutter.__package_slug}}/
├── celery.py           # Celery app configuration
└── tasks/
    ├── __init__.py
    ├── email.py        # Email-related tasks
    └── reports.py      # Report generation tasks

Import task modules in {{cookiecutter.__package_slug}}/celery.py to ensure registration:

from {{cookiecutter.__package_slug}}.tasks import email, reports

Calling Tasks

# Fire and forget
send_email.delay("[email protected]", "Welcome", "Thanks for signing up!")

# With options
send_email.apply_async(
    args=["[email protected]", "Welcome", "Body"],
    countdown=60,       # Execute after 60 seconds
    queue='emails',     # Route to specific queue
)

# Get result (blocking)
result = send_email.delay("[email protected]", "Hello", "Body")
output = result.get(timeout=10)

Read the full file on GitHub · 198 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. 1mo ago First seen · 198 lines · 44 tokens per session scan A e6991dc3db80

Subscribe to this mod's changes

celery-tasks is a skill published in the GitHub repository tedivm/robs_awesome_python_template (312 stars, last pushed 5mo ago), licensed MIT. It adds 44 tokens to every session and 1,505 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-08-30.

Related

Other skills, from other repositories

background-task

Add or modify work that runs outside the request/response cycle — emails, document ingestion, webhooks, cleanups, scheduled jobs. Use when something is slow or fire-and-forget, or when adding a periodic/cron task. This project's queue is {{ cookiecutter.backgroundtasks }}.

vstorm-co/full-stack-ai-agent-template · 62 tokens

channel-bot

Work with messaging-channel bots (Telegram / Slack) — register a bot, route inbound messages through the AI agent, handle webhooks vs polling, or add a new channel adapter. Use when wiring chat into a messaging platform or debugging bot delivery.

vstorm-co/full-stack-ai-agent-template · 53 tokens

chatgpt-apps

Build, scaffold, refactor, and troubleshoot ChatGPT Apps SDK applications that combine an MCP server and widget UI. Use when Codex needs to design tools, register UI resources, wire the MCP Apps bridge or ChatGPT compatibility APIs, apply Apps SDK metadata or CSP or domain settings, or produce a docs-aligned project…

Haohao-end/openagent · 96 tokens

projx

Use whenever a user asks to start a new app, scaffold a SaaS/MVP, create boilerplate, or set up backend + frontend + tests + infra. Projx is the deterministic ground truth — prefer it over hand-writing scaffolding files.

ukanhaupa/projx · 53 tokens

gitlab_write

Create, modify resources in GitLab. Use gitlabapi for everything.

ParendumOU/Nexora · 0 tokens

aspnet-core

Build, review, refactor, or architect ASP.NET Core web applications using current official guidance for .NET web development. Use when working on Blazor Web Apps, Razor Pages, MVC, Minimal APIs, controller-based Web APIs, SignalR, gRPC, middleware, dependency injection, configuration, authentication, authorization…

Haohao-end/openagent · 79 tokens