strut
БесплатноБез исполняемых скриптовНе проверенOperate and manage Docker Compose stacks on VPS infrastructure with the strut CLI. Use for any strut task — deploying and releasing services, database backup…
от gfargo314 установок в других каталогахОб этом скилле
strut — VPS Stack Management
strut is a Bash CLI for managing Docker Compose stacks on VPS infrastructure. Commands follow the shape:
strut <stack> <command> [--env <name>] [options]
--env <name> selects the environment file .<name>.env (e.g. --env prod reads .prod.env). Most commands run against a VPS over SSH; some run locally.
Command Quick Reference
# Deploy
strut <stack> deploy --env prod # deploy to wherever the stack lives
strut <stack> deploy --env prod --local # force the local Docker daemon
strut <stack> deploy --env prod --no-sync # restart without shipping new code
strut <stack> release --env prod # alias for `deploy --require-remote`
strut <stack> rebuild --env prod # build images on target + deploy
strut <stack> stop --env prod # stop containers
strut <stack> rollback --env prod # restore previous deploy snapshot
# Inspect
strut <stack> status --env prod # container status
strut <stack> health --env prod --json # health checks
strut <stack> briefing --env prod # one-call situation report: posture + prioritized actions
strut <stack> preflight --env prod # deploy go/no-go verdict (GO/CAUTION/NO-GO) before releasing
strut <stack> logs <service> --follow --env prod
strut <stack> diff --env prod # preview pending changes vs VPS
strut fleet status # git sync state across all [hosts]
# Data
strut <stack> backup all --env prod # backup all databases
strut <stack> restore <file> --dry-run # rehearse a restore (non-destructive)
strut <stack> db:pull --env prod # pull prod data to local
# Drift & secrets
strut <stack> drift detect --env prod # config drift vs git
strut <stack> drift images --env prod # stale container image digests
strut <stack> secrets push --env prod # sync .env to VPS
strut <stack> keys db:rotate postgres --env prod
# Infrastructure
strut <stack> domain example.com [email protected] --env prod
strut audit <vps-host> [user] [ssh-key] # discover what's running on a VPS
strut migrate <vps-host> # interactive migration wizard
When to Read Each Reference
Load the relevant reference file for detailed, step-by-step procedures:
| Task | Reference |
|---|---|
| Deploying, releasing, updating, stopping services | references/deployment.md |
| Diagnosing production issues, 502s, crashes, disk/DB problems | references/debugging.md |
| Backing up or restoring databases, pulling prod data | references/backups.md |
| Detecting or fixing config drift, auto-fix, drift history | references/drift.md |
| Rotating SSH keys, API keys, DB passwords, env secrets | references/secrets.md |
| Setting up Prometheus/Grafana/Alertmanager monitoring | references/monitoring.md |
| Configuring custom domains and SSL/TLS certificates | references/domains-ssl.md |
| Validating stack structure and config before deploy | references/validation.md |
| Auditing an existing VPS and migrating to strut | references/migration.md |
Core Principles
- Always
--dry-runfirst for destructive commands (deploy, restore, drift fix, stop). On--env prod,stop,rollback,migrate --down,restoreanddrift fixcause downtime or lose data: show the user the dry run (and the backup, for anything touching a database) and get their approval before running them. - Back up before major changes:
strut <stack> backup all --env prod. deploypicks its own target from the stack's topology — a VPS-mapped stack gets the full pipeline on that host, anything else deploys locally. Never choose a command name to choose a target. Use--require-remotein CI/automation so an unresolved host fails instead of silently deploying to the runner;--localis the explicit opt-out.- Make changes in git, not on the VPS — let deployments propagate; drift detection catches manual edits.
- Health checks gate success — driven by
services.conf; keep it current. - Assess before you act — run
briefingto triage a stack in one call, andpreflightfor a go/no-go before any release. Both are read-only aggregations of the checks above (--jsonfor machine parsing).
Environment Files
Per-environment .env files live at the project root (.prod.env, .staging.env). They contain literal KEY=VALUE pairs — shell expansion ($VAR, $(cmd)) is not evaluated (strut reads them with a safe parser, not source). Files are written mode 0600.
Safety Rules for Agents
- Never print secrets. Do not
cat,echoor log.envfiles, SSH private keys, tokens or dump files. Check variable names (cut -d= -f1), not values. - **Never read key file
Установить strut в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл strut?
Operate and manage Docker Compose stacks on VPS infrastructure with the strut CLI. Use for any strut task — deploying and releasing services, database backup and restore, debugging production issues, detecting config drift, rotating secrets and keys, setting up monitoring, configuring domains and SSL, validating stacks, or auditing and migrating existing servers.
Как установить скилл strut?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл strut запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub