一键导入
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 页面并帮你完成安装。
基于 SOC 职业分类
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.
| 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