ワンクリックで
incident
Respond to production incidents on fancai.ru. Use when the site is down, slow, returning errors, or AI features are broken.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Respond to production incidents on fancai.ru. Use when the site is down, slow, returning errors, or AI features are broken.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
Deploy fancai to production VPS. Use when deploying, shipping, or pushing to production.
Create and run database migrations for fancai. Use when changing database schema, adding columns, creating tables, or modifying SQLAlchemy models.
Use when discussing architecture, adding features, or understanding fancai project structure. Provides technology overview and conventions.
Debug Celery task failures, memory issues, and queue problems. Use when celery tasks fail, book processing hangs, image generation times out, or workers consume too much memory.
Debug and improve the entity extraction, deduplication, and spoiler-free pipeline. Use when entities are missing, duplicated, have wrong spoiler levels, or chunk boundary issues occur.
Monitor and debug OpenRouter AI pipeline health, costs, rate limits, model availability. Use when AI features fail, images don't generate, or LLM responses are degraded.
SOC 職業分類に基づく
| name | incident |
| description | Respond to production incidents on fancai.ru. Use when the site is down, slow, returning errors, or AI features are broken. |
| allowed-tools | Bash, Read, Grep, Glob |
curl -s -o /dev/null -w '%{http_code} %{time_total}s' https://fancai.ru
curl -s -o /dev/null -w '%{http_code} %{time_total}s' https://fancai.ru/api/v1/health
ssh fancai "cd /opt/fancai/app && docker compose -f docker-compose.prod.yml ps"
ssh fancai "docker stats --no-stream --format 'table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}'"
ssh fancai "cd /opt/fancai/app && docker compose -f docker-compose.prod.yml logs --since 5m backend celery-worker"
| Symptom | Likely Cause | Action |
|---|---|---|
| 502/504 | Backend crashed | Restart backend |
| Slow (>3s) | DB/memory | Check PG connections, memory |
| Images broken | OpenRouter down | /openrouter-monitor |
| Books stuck | Celery OOM | /celery-debug |
| Entities missing | Extraction failed | /entity-pipeline |
| SSL error | Caddy cert | Check Caddy logs |
# Restart single service
ssh fancai "cd /opt/fancai/app && docker compose -f docker-compose.prod.yml restart backend"
# Full restart
ssh fancai "cd /opt/fancai/app && docker compose -f docker-compose.prod.yml down && docker compose -f docker-compose.prod.yml up -d"
docs/reports/YYYY-MM-DD-incident-<desc>.md