15-deployment

15-deployment is a cursor rule for Cursor from bybren-llc/a-safe-pulse. It costs 0 tokens per session (867 once invoked), scanned A, a copy of 15-deployment, MIT.

Deployment procedures are rules for checking, releasing, and verifying an application. They cover Docker, Coolify, continuous integration and delivery, smoke tests, and rollback steps.

In plain words
What is it for?
Use them when changing deployment files or deploying to staging or production. They guide validation, container builds, health checks, and rollback work.
Why use it?
They provide a checklist before and after deployment so missing tests, settings, migrations, or health checks are less likely to cause a bad release.

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/a-safe-pulse/15-deployment
Clone the repo
git clone --depth 1 https://github.com/bybren-llc/a-safe-pulse

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/a-safe-pulse/15-deployment.svg)](https://agentmods.dev/rules/bybren-llc/a-safe-pulse/15-deployment)
Your own site
<a href="https://agentmods.dev/rules/bybren-llc/a-safe-pulse/15-deployment"><img src="https://agentmods.dev/badge/rules/bybren-llc/a-safe-pulse/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 867 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin 89% copy Near-identical to another mod 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.00867
Opus 5 $0.00000 $0.00434
Sonnet 5 $0.00000 $0.00173
Haiku 4.5 $0.00000 $0.00087

Measured yesterday against content hash f8f9a2ebf93f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 yesterday.

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

This is a copy

89% identical to 15-deployment — 6 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.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, dev 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
dev Production (Coolify) Automatic

Rollback Procedure

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. yesterday First seen · 118 lines · 0 tokens per session scan A f8f9a2ebf93f

Subscribe to this mod's changes

15-deployment is a cursor rule published in the GitHub repository bybren-llc/a-safe-pulse (9 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 867 tokens. A static security scan graded it A with 1 finding (makes network calls). It is 89% identical to 15-deployment, differing in 6 lines, and is treated as a copy.