| name | ry-deploy |
| description | Развёртывание с sync local↔GitHub↔server, проверками логов, fix-forward и docs/git финализацией. Используй для: /rldyour-flow:ry-deploy, задеплой, прод, продакшен, деплой на сервер, выкатить. EN triggers: deploy to server, ship to prod, production deploy, deploy and verify, deployment lifecycle, sync local to server, ship release, fix-forward deploy. |
| disable-model-invocation | true |
ry-deploy
Purpose
Synchronize local repository, GitHub, and server, then deploy safely with evidence. Automation is expected, but risky operations require code/log evidence and user questions with options.
Workflow
- Read deploy contract from
AGENTS.md, then .claude/CLAUDE.md, then .serena/deploy/*.md. See ${CLAUDE_PLUGIN_ROOT}/references/deploy-contract.md for the required field set.
- Run
bash ${CLAUDE_PLUGIN_ROOT}/scripts/deploy_readiness.sh <server> when available as the deploy preflight.
- Verify local git state, open PR, checks, Serena memories, docs, and GitHub sync.
- Inspect server baseline: git status, current commit, disk, logs before restart, process manager.
- Sync code to server.
- Run migrations only when readiness is clear.
- Restart/build services.
- Run postflight verification: logs, tests, health checks, and critical behavior.
- If anything fails, perform root cause analysis using server logs, code, and internet research. Fix-forward and redeploy. Ask the user with options for risky or ambiguous decisions.
- DB rollback only when explicit rollback command and backup/restore point are verified.
- Finish with
flow-post-task-sync.
No Fake Success
If auth, missing credentials, server access, or unavailable health checks prevent validation, state the limitation and what evidence was still collected.
Anti-patterns
- Restart services без чтения logs до restart (нет baseline для compare).
- Migrations без verified backup/rollback contract.
- DB rollback без explicit rollback command + verified restore point.
- Fake success report когда auth blocked validation.
- Skip
flow-post-task-sync after deploy.