[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77SNFYTSRSQ6FD0R8FXTHHE":3,"skill-same:01M77SNFYTSRSQ6FD0R8FXTHHE":55},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":13,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M77SNFYTSRSQ6FD0R8FXTHHE","django-q2",null,"Use when adding, changing, testing, or debugging Django Q2 background tasks, scheduled jobs, qcluster workers, Redis broker configuration, or ORM broker fallback in this generated Django SaaS app.","ConcertoNotes\u002Fcodex-plugins","ConcertoNotes","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F249301288?v=4","01M77NJ0BK2KN5YW0D8RHD99TB","01M77NJ0CCEDPATAY3JTXEWNK5",0,"MIT","https:\u002F\u002Fgithub.com\u002FConcertoNotes\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fcommunity\u002Flvtd-skills\u002Fskills\u002Fdjango-q2\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: django-q2\ndescription: \"Use when adding, changing, testing, or debugging Django Q2 background tasks, scheduled jobs, qcluster workers, Redis broker configuration, or ORM broker fallback in this generated Django SaaS app.\"\nlicense: MIT\ncompatibility: Codex, Claude Code, and other Agent Skills-compatible clients.\nmetadata:\n  version: \"0.1.0\"\n  displayName: Django Q2\n  category: Django\n  tags: django,django-q2,background-jobs,redis\n---\n\n# Django Q2 Background Jobs\n\nUse this before touching task enqueueing, schedules, worker deployment,\n`Q_CLUSTER`, or code imported by Django Q2 workers.\n\n## Project Defaults\n\n- The dependency is `django-q2`; the Python import path is `django_q`.\n- `django_q` is in `INSTALLED_APPS`; its migrations provide task result,\n  schedule, and broker models.\n- `Q_CLUSTER` lives in the generated Django settings module and uses Redis\n  through `REDIS_URL` by default.\n- The worker process is `uv run --no-sync python manage.py qcluster`; the local\n  `workers` Docker Compose service and deployment `APP_PROCESS_TYPE=worker`\n  path use that command.\n- Redis also backs the default Django cache. If you remove Redis as the broker,\n  review cache, health check, Docker, deployment, and documentation references\n  separately.\n\n## Mental Model\n\n- Web code calls `async_task(...)` or creates `Schedule` rows.\n- The broker stores queued task packages until a `qcluster` process reserves\n  work.\n- Worker processes execute importable Python functions and save results or\n  failures.\n- The scheduler runs inside the cluster. Schedules are database rows; they do\n  nothing unless `qcluster` is running.\n\n## Adding Tasks\n\n1. Put the task function in the app that owns the behavior, usually\n   `apps\u002Fcore\u002Ftasks.py` for shared product work.\n2. Keep the function importable at module import time. Do not rely on request\n   objects, local closures, or process-local state.\n3. Pass durable identifiers such as primary keys, not model instances, open\n   files, connections, or large payloads.\n4. Make the task idempotent. Redis does not give exactly-once execution\n   guarantees, and receipt-based brokers can re-run work.\n5. If the task depends on a just-saved database row, enqueue it from\n   `transaction.on_commit(...)`.\n\n```python\n# apps\u002Fcore\u002Ftasks.py\ndef send_welcome_email(user_id: int) -> None:\n    from django.contrib.auth import get_user_model\n\n    user = get_user_model().objects.get(pk=user_id)\n    ...\n```\n\n```python\nfrom django.db import transaction\nfrom django_q.tasks import async_task\n\ntransaction.on_commit(\n    lambda: async_task(\"apps.core.tasks.send_welcome_email\", user.pk)\n)\n```\n\nUse `q_options` when Django Q2 options would collide with task kwargs:\n\n```python\nasync_task(\n    \"apps.core.tasks.rebuild_report\",\n    report_id,\n    q_options={\"timeout\": 300, \"group\": \"reports\"},\n)\n```\n\n## Scheduling Work\n\nPrefer named, idempotent schedules created by a migration, admin action, or\nsetup command. Avoid creating schedules unconditionally at import time or app\nstartup.\n\n```python\nfrom django_q.models import Schedule\n\nSchedule.objects.get_or_create(\n    name=\"clear-expired-sessions\",\n    defaults={\n        \"func\": \"django.core.management.call_command\",\n        \"args\": \"'clearsessions'\",\n        \"schedule_type\": Schedule.HOURLY,\n    },\n)\n```\n\nUse `Schedule.objects.get_or_create(name=..., defaults={...})` when seeding\nschedules so repeated setup does not duplicate jobs. Cron schedules require the\noptional `croniter` dependency; do not use `Schedule.CRON` unless the generated\nproject includes it.\n\nMissed schedules catch up by default. Set `Q_CLUSTER[\"catch_up\"] = False` when\na job should run once after downtime instead of replaying every missed interval.\n\n## Broker Choices\n\n### Redis Broker\n\nThis template should normally use Redis:\n\n```python\nQ_CLUSTER = {\n    \"name\": \"...\",\n    \"timeout\": 3600,\n    \"workers\": 4,\n    \"redis\": REDIS_URL,\n}\n```\n\nRedis is fast and matches local Docker, deployment workers, and the default\ncache configuration. The default Redis broker does not support delivery\nreceipts. If a worker host dies catastrophically while executing a task, the\nin-flight package can be lost; if task code raises, Django Q2 records a\nfailure. Use idempotent task design, explicit retries in task code where\nneeded, and monitoring for failures.\n\n### ORM Broker\n\nUse the Django database broker only for low-throughput deployments, local\nsimplicity, or environments where Redis is unavailable:\n\n```python\nQ_CLUSTER = {\n    \"name\": \"...\",\n    \"timeout\": 3600,\n    \"retry\": 4800,\n    \"workers\": 4,\n    \"max_attempts\": 2,\n    \"orm\": \"default\",\n}\n```\n\nWhen switching to ORM:\n\n- Remove the `\"redis\"` broker key; configure one broker per cluster unless you\n  intentionally use custom clusters.\n- Run migrations for `django_q`. If the broker uses a non-default database\n  alias, run migrations with `--database \u003Calias>`.\n- Increase `\"poll\"` above the default `0.2` seconds, for example `\"poll\": 2.0`,\n  when you need lower database polling pressure and can tolerate higher queue\n  pickup latency.\n- The ORM broker enables the Queued Tasks admin table.\n- Review Redis-dependent cache, health check, Docker, and deployment settings\n  separately. Schedules are always database rows; the broker setting controls\n  queued task packages, not the schedule table.\n\n## Testing\n\n- Test task business logic by calling the function directly.\n- Test enqueueing with synchronous mode:\n  - per call: `async_task(\"apps.core.tasks.fn\", arg, sync=True)`\n  - per test: override `Q_CLUSTER[\"sync\"] = True`\n- For worker\u002Fbroker integration, run\n  `uv run --no-sync python manage.py qcluster` in a separate process and wait\n  for `result(task_id, 200)` or a similar bounded wait; do not rely on\n  arbitrary sleeps.\n- Use `pytest.mark.django_db(transaction=True)` when a real worker process must\n  observe committed database rows.\n\n## Debugging Checklist\n\n- Is a `qcluster` process running with the same settings module, `SECRET_KEY`,\n  broker URL, and cluster name as the web process?\n- Can the worker import the dotted task path?\n- Did database migrations run, including `django_q` migrations?\n- Is Redis reachable from both web and worker containers, or is the ORM broker\n  polling the expected database?\n- Did a scheduled task duplicate because setup created another `Schedule` row\n  with no stable name?\n- Did downtime trigger schedule catch-up?\n- Is task failure visible in Django admin, logs, or the configured error\n  reporter?\n\n## References\n\n- Official docs: https:\u002F\u002Fdjango-q2.readthedocs.io\u002Fen\u002Fmaster\u002F\n- Upstream repo: https:\u002F\u002Fgithub.com\u002Fdjango-q2\u002Fdjango-q2\n","# Django Q2 Background Jobs\n\nUse this before touching task enqueueing, schedules, worker deployment,\n`Q_CLUSTER`, or code imported by Django Q2 workers.\n\n## Project Defaults\n\n- The dependency is `django-q2`; the Python import path is `django_q`.\n- `django_q` is in `INSTALLED_APPS`; its migrations provide task result,\n  schedule, and broker models.\n- `Q_CLUSTER` lives in the generated Django settings module and uses Redis\n  through `REDIS_URL` by default.\n- The worker process is `uv run --no-sync python manage.py qcluster`; the local\n  `workers` Docker Compose service and deployment `APP_PROCESS_TYPE=worker`\n  path use that command.\n- Redis also backs the default Django cache. If you remove Redis as the broker,\n  review cache, health check, Docker, deployment, and documentation references\n  separately.\n\n## Mental Model\n\n- Web code calls `async_task(...)` or creates `Schedule` rows.\n- The broker stores queued task packages until a `qcluster` process reserves\n  work.\n- Worker processes execute importable Python functions and save results or\n  failures.\n- The scheduler runs inside the cluster. Schedules are database rows; they do\n  nothing unless `qcluster` is running.\n\n## Adding Tasks\n\n1. Put the task function in the app that owns the behavior, usually\n   `apps\u002Fcore\u002Ftasks.py` for shared product work.\n2. Keep the function importable at module import time. Do not rely on request\n   objects, local closures, or process-local state.\n3. Pass durable identifiers such as primary keys, not model instances, open\n   files, connections, or large payloads.\n4. Make the task idempotent. Redis does not give exactly-once execution\n   guarantees, and receipt-based brokers can re-run work.\n5. If the task depends on a just-saved database row, enqueue it from\n   `transaction.on_commit(...)`.\n\n```python\n# apps\u002Fcore\u002Ftasks.py\ndef send_welcome_email(user_id: int) -> None:\n    from django.contrib.auth import get_user_model\n\n    user = get_user_model().objects.get(pk=user_id)\n    ...\n```\n\n```python\nfrom django.db import transaction\nfrom django_q.tasks import async_task\n\ntransaction.on_commit(\n    lambda: async_task(\"apps.core.tasks.send_welcome_email\", user.pk)\n)\n```\n\nUse `q_options` when Django Q2 options would collide with task kwargs:\n\n```python\nasync_task(\n    \"apps.core.tasks.rebuild_report\",\n    report_id,\n    q_options={\"timeout\": 300, \"group\": \"reports\"},\n)\n```\n\n## Scheduling Work\n\nPrefer named, idempotent schedules created by a migration, admin action, or\nsetup command. Avoid creating schedules unconditionally at import time or app\nstartup.\n\n```python\nfrom django_q.models import Schedule\n\nSchedule.objects.get_or_create(\n    name=\"clear-expired-sessions\",\n    defaults={\n        \"func\": \"django.core.management.call_command\",\n        \"args\": \"'clearsessions'\",\n        \"schedule_type\": Schedule.HOURLY,\n    },\n)\n```\n\nUse `Schedule.objects.get_or_create(name=..., defaults={...})` when seeding\nschedules so repeated setup does not duplicate jobs. Cron schedules require the\noptional `croniter` dependency; do not use `Schedule.CRON` unless the generated\nproject includes it.\n\nMissed schedules catch up by default. Set `Q_CLUSTER[\"catch_up\"] = False` when\na job should run once after downtime instead of replaying every missed interval.\n\n## Broker Choices\n\n### Redis Broker\n\nThis template should normally use Redis:\n\n```python\nQ_CLUSTER = {\n    \"name\": \"...\",\n    \"timeout\": 3600,\n    \"workers\": 4,\n    \"redis\": REDIS_URL,\n}\n```\n\nRedis is fast and matches local Docker, deployment workers, and the default\ncache configuration. The default Redis broker does not support delivery\nreceipts. If a worker host dies catastrophically while executing a task, the\nin-flight package can be lost; if task code raises, Django Q2 records a\nfailure. Use idempotent task design, explicit retries in task code where\nneeded, and monitoring for failures.\n\n### ORM Broker\n\nUse the Django database broker only for low-throughput deployments, local\nsimplicity, or environments where Redis is unavailable:\n\n```python\nQ_CLUSTER = {\n    \"name\": \"...\",\n    \"timeout\": 3600,\n    \"retry\": 4800,\n    \"workers\": 4,\n    \"max_attempts\": 2,\n    \"orm\": \"default\",\n}\n```\n\nWhen switching to ORM:\n\n- Remove the `\"redis\"` broker key; configure one broker per cluster unless you\n  intentionally use custom clusters.\n- Run migrations for `django_q`. If the broker uses a non-default database\n  alias, run migrations with `--database \u003Calias>`.\n- Increase `\"poll\"` above the default `0.2` seconds, for example `\"poll\": 2.0`,\n  when you need lower database polling pressure and can tolerate higher queue\n  pickup latency.\n- The ORM broker enables the Queued Tasks admin table.\n- Review Redis-dependent cache, health check, Docker, and deployment settings\n  separately. Schedules are always database rows; the broker setting controls\n  queued task packages, not the schedule table.\n\n## Testing\n\n- Test task business logic by calling the function directly.\n- Test enqueueing with synchronous mode:\n  - per call: `async_task(\"apps.core.tasks.fn\", arg, sync=True)`\n  - per test: override `Q_CLUSTER[\"sync\"] = True`\n- For worker\u002Fbroker integration, run\n  `uv run --no-sync python manage.py qcluster` in a separate process and wait\n  for `result(task_id, 200)` or a similar bounded wait; do not rely on\n  arbitrary sleeps.\n- Use `pytest.mark.django_db(transaction=True)` when a real worker process must\n  observe committed database rows.\n\n## Debugging Checklist\n\n- Is a `qcluster` process running with the same settings module, `SECRET_KEY`,\n  broker URL, and cluster name as the web process?\n- Can the worker import the dotted task path?\n- Did database migrations run, including `django_q` migrations?\n- Is Redis reachable from both web and worker containers, or is the ORM broker\n  polling the expected database?\n- Did a scheduled task duplicate because setup created another `Schedule` row\n  with no stable name?\n- Did downtime trigger schedule catch-up?\n- Is task failure visible in Django admin, logs, or the configured error\n  reporter?\n\n## References\n\n- Official docs: https:\u002F\u002Fdjango-q2.readthedocs.io\u002Fen\u002Fmaster\u002F\n- Upstream repo: https:\u002F\u002Fgithub.com\u002Fdjango-q2\u002Fdjango-q2\n",{"name":5,"license":14,"metadata":23,"description":7,"compatibility":28},{"tags":24,"version":25,"category":26,"displayName":27},"django,django-q2,background-jobs,redis","0.1.0","Django","Django Q2","Codex, Claude Code, and other Agent Skills-compatible clients.","main","9ba3c9fadff1092395837bf1502e1b8a7f98b1e1","plugins\u002Fcommunity\u002Flvtd-skills\u002Fskills\u002Fdjango-q2","https:\u002F\u002Fgithub.com\u002FConcertoNotes\u002Fcodex-plugins","https:\u002F\u002Fgithub.com\u002FConcertoNotes","2026-06-26 10:13:54",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add ConcertoNotes\u002Fcodex-plugins --skill django-q2",{"tool":41,"command":42},"bunx","bunx skills add ConcertoNotes\u002Fcodex-plugins --skill django-q2",{"tool":44,"command":45},"pnpm","pnpm dlx skills add ConcertoNotes\u002Fcodex-plugins --skill django-q2","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FConcertoNotes\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fcommunity\u002Flvtd-skills\u002Fskills\u002Fdjango-q2\u002FSKILL.md",true,[49],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"assets\u002Fapp-icon.png","ASSET","资产文件",53182,"https:\u002F\u002Fgithub.com\u002FConcertoNotes\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fcommunity\u002Flvtd-skills\u002Fskills\u002Fdjango-q2\u002Fassets\u002Fapp-icon.png",[56,65,72,80,87,94],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":60,"licenseFileUrl":61,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M77YB7WW36DS9AERTWP673E0","android-emulator-qa","Use when validating Android feature flows in an emulator with adb-driven launch, input, UI-tree inspection, screenshots, and logcat capture.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FConcertoNotes\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fofficial\u002Ftest-android-apps\u002Fskills\u002Fandroid-emulator-qa\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FConcertoNotes\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fofficial\u002Ftest-android-apps\u002Fskills\u002Fandroid-emulator-qa\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M77Y7AA8N45G6NM0WJSS2W9C","supabase-postgres-best-practices","Postgres performance optimization and best practices from Supabase. Use this skill when writing, reviewing, or optimizing Postgres queries, schema designs, or database configurations.","https:\u002F\u002Fgithub.com\u002FConcertoNotes\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fofficial\u002Fsupabase\u002Fskills\u002Fsupabase-postgres-best-practices\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":60,"licenseFileUrl":76,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M77Y2W5H5YGSW7MYWEJ8HYXD","sentry","Use when the user asks to inspect Sentry issues or events, summarize recent production errors, or pull basic Sentry health data via the Sentry API; perform read-only queries with the bundled script and require `SENTRY_AUTH_TOKEN`.","https:\u002F\u002Fgithub.com\u002FConcertoNotes\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fofficial\u002Fsentry\u002Fskills\u002Fsentry\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FConcertoNotes\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fofficial\u002Fsentry\u002Fskills\u002Fsentry\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":18},"01M77Y06GV1DAME7PN9KBFHWRX","render-workflows","Sets up, develops, tests, and deploys Render Workflows. Covers first-time scaffolding (via CLI or manual), SDK installation (Python or TypeScript), task patterns (retries, subtasks, fan-out), local development, Dashboard deployment, and troubleshooting. Use when a user wants to set up Render Workflows for the first time, scaffold a workflow service, add or modify workflow tasks, test workflows locally, or deploy workflows to Render.","https:\u002F\u002Fgithub.com\u002FConcertoNotes\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fofficial\u002Frender\u002Fskills\u002Frender-workflows\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":18},"01M77Y01A6RJA8VYT7CZ2TVETF","render-web-services","Configures Render web services—port binding, TLS, health checks, custom domains, auto-deploy, PR previews, persistent disks, and deploy lifecycle. Use when the user needs to set up a web service, fix health check failures, add a custom domain, configure zero-downtime deploys, or troubleshoot port binding issues.","https:\u002F\u002Fgithub.com\u002FConcertoNotes\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fofficial\u002Frender\u002Fskills\u002Frender-web-services\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":18},"01M77XZW1AZ6B6NZTWWFVY72T3","render-static-sites","Deploys and configures static sites on Render's global CDN—build commands, publish paths, SPA routing, redirects, custom headers, and PR previews. Use when the user needs to deploy a static site, set up a React\u002FVue\u002FHugo\u002FGatsby frontend, configure SPA fallback routing, add redirect rules, customize response headers, or choose between a static site and a web service for their frontend. Trigger terms: static site, CDN, SPA, single-page app, React deploy, Vue deploy, Hugo, Gatsby, Docusaurus, Jekyll, staticPublishPath.","https:\u002F\u002Fgithub.com\u002FConcertoNotes\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fofficial\u002Frender\u002Fskills\u002Frender-static-sites\u002FSKILL.md",[],[]]