원클릭으로
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