Generate a Celery task with retry configuration
Generates a Celery task module with the @shared_task decorator, retry configuration,
error handling, and a corresponding test file.
/new-task sync_external_data # Creates tasks/sync_external_data.py
/new-task send_notification # Creates tasks/send_notification.py
/new-task process_upload # Creates tasks/process_upload.py
Read reference patterns. Load the task pattern from:
skills/new-task/references/task-examples.mdpatterns/backend-patterns.mdstyles/backend-python.mdDetermine task name. Parse the argument to determine the function name and file path:
sync_external_data becomes sync_external_data() in
src/app/tasks/sync_external_data.pyGenerate the task file. Create the task with:
from __future__ import annotations@shared_task(bind=True, max_retries=3, default_retry_delay=60)self.retry(exc=exc)Generate the test file. Create a test file with:
Run quality checks.
uv run ruff format <generated_files>
uv run ruff check <generated_files>
uv run mypy <generated_files>
Report results. Show the generated files.
src/app/tasks/<task_name>.py
tests/tasks/test_<task_name>.py
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer