15-deployment

15-deployment is a cursor rule for Cursor from bybren-llc/safe-agentic-workflow. It costs 0 tokens per session (877 once invoked), scanned A, original, MIT.

A set of deployment rules for releasing software with Coolify, Docker, and CI/CD, which means automated checks and delivery pipelines. It covers pre-release validation, post-release smoke tests, and rollback procedures.

In plain words
What is it for?
Use it when preparing, executing, or checking deployments, including CI validation, Docker builds, health checks, staging releases, production releases, and rollbacks.
Why use it?
It reduces the risk of releasing untested code, missing environment settings, broken migrations, or services that fail after deployment.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: reads .claude/ paths.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/bybren-llc/safe-agentic-workflow/15-deployment
Clone the repo
git clone --depth 1 https://github.com/bybren-llc/safe-agentic-workflow

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for 15-deployment

README.md
[![agentmods](https://agentmods.dev/badge/rules/bybren-llc/safe-agentic-workflow/15-deployment.svg)](https://agentmods.dev/rules/bybren-llc/safe-agentic-workflow/15-deployment)
Your own site
<a href="https://agentmods.dev/rules/bybren-llc/safe-agentic-workflow/15-deployment"><img src="https://agentmods.dev/badge/rules/bybren-llc/safe-agentic-workflow/15-deployment.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 877 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00877
Opus 5 $0.00000 $0.00439
Sonnet 5 $0.00000 $0.00175
Haiku 4.5 $0.00000 $0.00088

Measured 2d ago against content hash ebf95647ce34, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

15-deployment scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- [ ] Health endpoint responds: `curl https://{domain}/api/health`
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.cursor/rules/15-deployment.mdc · 118 lines

How it starts

The opening of the file, as written. The whole thing — 118 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Deployment Rules

These rules apply when working on deployment configurations, Docker files, or executing deployments.

Authoritative SOPs (MUST READ before deploying)

Document Location Purpose
Semantic Release SOP docs/ci-cd/Semantic-Release-Deployment-SOP.md Release automation workflow
Staging/UAT Release SOP docs/sop/STAGING-UAT-RELEASE-SOP.md UAT validation process
Linux Dev Machine Access docs/deployment/LINUX-DEV-MACHINE-ACCESS-SOP.md Dev server access
Production Server Access docs/deployment/PRODUCTION-SERVER-ACCESS-SOP.md Production deployment

Always read the relevant SOP before proceeding. This rule provides checklists, not full procedures.

Pre-Deployment Checklist

Before ANY deployment:

  • All CI checks pass (GitHub Actions green)
  • PR merged to target branch ({{DEV_BRANCH}} for staging, {{MAIN_BRANCH}} for prod)
  • No unresolved blockers in Linear
  • Database migrations tested locally
  • Environment variables verified
# Validate before deploy
{{CI_VALIDATE_COMMAND}}
docker compose build

Post-Deployment Smoke Test

After deployment completes:

  • Health endpoint responds: curl https://{domain}/api/health
  • Database connection verified (check health response)
  • Authentication flow works
  • Critical user flows functional
  • No new errors in logs
# Smoke test
curl -s https://{domain}/api/health | jq .
# Expected: {"status":"healthy","timestamp":"..."}

Branch to Environment Mapping

Branch Environment Auto-Deploy
{{DEV_BRANCH}} Staging Manual pull
{{MAIN_BRANCH}} Production (Coolify) Automatic

Read the full file on GitHub · 118 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 118 lines · 0 tokens per session scan A ebf95647ce34

Subscribe to this mod's changes

15-deployment is a cursor rule published in the GitHub repository bybren-llc/safe-agentic-workflow (406 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 877 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.