Skip to content
Skills Library
DevOps & cloud · Building & coding

build-operations

/build-operations

Shipwright build rules for Operations (Infrastructure, Deployment, Monitoring, Backups). Use when configuring servers, Docker, PM2, Nginx, HTTPS, CI, deployment and rollback, monitoring, alerts, logs or backups and restores. FR: serveur, déploiement, retour arrière, monitoring, alertes, logs, sauvegardes, restauration.

Licence
MIT
Last repository change
13.11.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
1
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 13.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • SKILL.md zawiera komentarze HTML (1). Nie widać ich w podglądzie Markdown, a model je czyta.

What it does and when to use it

Shipwright build rules for Operations (Infrastructure, Deployment, Monitoring, Backups). Use when configuring servers, Docker, PM2, Nginx, HTTPS, CI, deployment and rollback, monitoring, alerts, logs or backups and restores. FR: serveur, déploiement, retour arrière, monitoring, alertes, logs, sauvegardes, restauration.

Original author description

Shipwright build rules for Operations (Infrastructure, Deployment, Monitoring, Backups). Use when configuring servers, Docker, PM2, Nginx, HTTPS, CI, deployment and rollback, monitoring, alerts, logs or backups and restores. FR: serveur, déploiement, retour arrière, monitoring, alertes, logs, sauvegardes, restauration.

How it works

  1. Infrastructure (INF)
  2. Deployment (DEP)
  3. Monitoring (MON)
  4. Backups (BAK)
Original SKILL.md headings · 93 lines, 832 words
SKILL.md preview
---
name: build-operations
description: "Shipwright build rules for Operations (Infrastructure, Deployment, Monitoring, Backups). Use when configuring servers, Docker, PM2, Nginx, HTTPS, CI, deployment and rollback, monitoring, alerts, logs or backups and restores. FR: serveur, déploiement, retour arrière, monitoring, alertes, logs, sauvegardes, restauration."
---
<!-- Generated by tools/build.py from the referential YAML. Do not edit by hand. -->

# Operations: build rules

Apply these rules while you build. Domains or criteria whose `applies_if` flags are false in `.quality/project.json` do not apply to this project. Before you call a task done, check your work against the criteria of the domains you touched: each one must be true and verifiable.

If a stack module of Shipwright is installed (sw-nextjs, sw-node-api, sw-vps, sw-expo, sw-capacitor, sw-tauri, sw-electron), its rules skill adds stack-specific rules on top of these.

## Infrastructure (INF)

Server configuration, process management and automatic restart.

Applies when: Hosted on a team-managed server (VPS, dedicated).

Rules:

- Server configuration described in versioned files (Docker Compose, Nginx config, PM2 ecosystem), never only by hand.
- Every process restarts automatically after a crash and on server reboot.
- Firewall on: only required ports open; database and Redis not exposed publicly.
- SSH by key only, automatic security updates.

Done means:

- [BLOCKER] INF-01: Database, Redis and admin ports not publicly exposed. Check: External port scan; bindings on 127.0.0.1 or internal Docker network.
- [major] INF-02: Automatic restart after crash and after reboot. Check: restart: unless-stopped, pm2 startup and pm2 save, or a systemd unit.
- [major] INF-03: Server configuration versioned and reproducible. Check: Rebuild the environment from the repo and a .env.
- [major] INF-04: HTTPS everywhere with automatic certificate renewal. Check: HTTP to HTTPS redirect; expiry date and auto-renewal.
- [minor] INF-05: Hardened server access (SSH keys, firewall, automatic updates). Check: PasswordAuthentication no, ufw or equivalent, unattended-upgrades.
- [minor] INF-06: Resource limits and log rotation. Check: Memory limit per container or process; logs that do not fill the disk.

## Deployment (DEP)

Release and rollback.

Rules:

- Deploy through one command or pipeline, never by copying files by hand.
- Every deployed version is identifiable (Git tag, build number) and the previous one stays available.
- Write and test the rollback procedure before you need it.
- Deploy to staging first when the change touches data, payments or authentication.

Done means:

- [BLOCKER] DEP-01: A rollback procedure exists and has been tested. Check: Rollback document and date of last trial.
- [major] DEP-02: Automated and reproducible deployment. Check: Single script or pipeline; no undocumented manual step.
- [major] DEP-03: Tests and build gate production releases. Check: The pipeline stops if typecheck, lint, tests or build fail.
- [major] DEP-04: Migrations applied safely at deployment (only if: has_db). Check: Migration and code order compatible; backup before destructive migration.
- [minor] DEP-05: Deployed version identifiable and visible. Check: Git tag or hash exposed in a health endpoint or the logs.
- [minor] DEP-06: Staging environment separate from production. Check: Separate database, secrets and domain.

## Monitoring (MON)

Monitoring, error logs and alerts.

Applies when: The project has a server or API or Public pages meant to be found on the web.

Rules:

- Send server and client errors to a tool (Sentry, GlitchTip…) with the version and no personal data.
- Expose a health endpoint and monitor it from outside (Uptime Kuma, Better Stack…).
- Structured logs (JSON) with a level and a request ID.
- An alert must reach a channel that is read (email, phone), and only for what needs action.

Done means:

- [BLOCKER] MON-01: A site outage triggers an alert someone receives. Check: External monitoring configured; test alert received.
- [major] MON-02: Server and client errors reported to a tracking tool. Check: SDK configured, test error visible with version and trace.
- [major] MON-03: Health endpoint that checks critical dependencies (only if: has_backend). Check: /health responds and checks database and Redis.
- [minor] MON-04: Structured, timestamped logs kept for a defined period (only if: has_backend). Check: JSON format, level, request ID, rotation.
- [minor] MON-05: Alert before domain and certificate expiry, and on disk space. Check: Monitoring of expiry dates and disk.

## Backups (BAK)

Automated backups, tested restore and recovery.

Applies when: Database or User file uploads.

Rules:

- Automatic daily backup of the database and user-uploaded files.
- 3-2-1 rule: at least one copy off the production server, with another provider or region.
- Backups encrypted and kept for a defined period.
- Test a full restore at least once a quarter and record how long it takes.

Done means:

- [BLOCKER] BAK-01: Automatic backup of the database and user files. Check: Scheduled job and latest backup less than 24 h old.
- [BLOCKER] BAK-02: A full restore has been tested. Check: Date and duration of the last successful restore on a separate environment.
- [major] BAK-03: At least one copy off the production server. Check: External destination (object storage, other server) checked.
- [major] BAK-04: Backup failure raises an alert. Check: The backup script alerts on failure or absence.
- [minor] BAK-05: Encrypted backups with a defined retention period. Check: Encryption and rotation configured.
- [minor] BAK-06: Written recovery plan (who does what, in which order). Check: Recovery document with acceptable downtime and data-loss targets.

Versions

The database has no other skills named build-operations.

Database snapshot: 13.11.2026 · package version af13ec52571a (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90uds-operations
    Use when preparing or maintaining production monitoring, logging, alerts, backups, disaster recovery, or incident response.
  • 90infrastructure-monitoring
    Use when reviewing infrastructure health, investigating alerts or operational degradation, configuring dashboards and alerts, or handing off post-release monitoring.
  • 100nginx-ops-skill
    服务器 Nginx 配置盘点、架构整理与优化,覆盖原生/systemd和Docker部署、虚拟主机与路径隔离、 SSL自动签发、续期、补发及事务回滚,日志轮转与永久归档、备份恢复、发布和修改前后验证。 用户要求检查或优化服务器Nginx、整理conf.d/html/cert/logs/backup、排查域名错配、 证书未更新、日志过大,或规范部署脚本时使用。优先复用服务器现有机制,基于实测给方案并实施已授权改动。 适用于不同服务器与部署方式;现场盘点后再选择目录、域名、工具和保留策略,不包含真实生产环境快照。 不用于仅讲解Nginx语法、与服务器无关的前端设计或其他代理软件的纯概念问答。
  • 100logging-monitoring-backups
    Establish audit logging, security monitoring and tested backups: missing audit logs, missing alerts, untested backups. Use when assessing operational readiness, incident detection or recovery capability.
  • 100infrastructure-monitor
    Set up monitoring, logging, and alerting for infrastructure and applications. Use when implementing observability, creating dashboards, or configuring alerts.
  • 100supabase-backup
    Use when the user wants to back up a Supabase project to their own S3, R2 or B2 bucket with the open-source backupdrill CLI, estimate what those backups add to their Supabase egress bill, check that a backup actually restores (a restore drill in Docker), schedule backups in…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.