digitalocean

digitalocean is a cursor rule for Cursor from sanjeed5/awesome-cursor-rules-mdc. It costs 2,554 tokens per session, scanned B, original, CC0-1.0.

Cloud development and deployment guidelines for DigitalOcean, a cloud hosting provider. They focus on networking, security, infrastructure setup, and managing application resources.

In plain words
What is it for?
Using private VPC networking, connecting managed databases securely, organising infrastructure as code, and planning cloud-native applications on DigitalOcean.
Why use it?
They help keep services isolated, reduce unnecessary public exposure, and make deployments easier to manage while controlling reliability, performance, and cost risks.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc). Also seen: mentions Claude Code.

Good fit Using private VPC networking, connecting managed databases securely, organising infrastructure as code, and planning cloud-native applications on DigitalOcean.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/sanjeed5/awesome-cursor-rules-mdc/digitalocean
About the project

awesome-cursor-rules-mdc is a generator that creates Cursor MDC rule files from structured library information, using semantic search and language models to gather and organize guidance. Developers use it to produce reusable rules for libraries in Cursor, and the catalogue includes 200 of those rules.

sanjeed5/awesome-cursor-rules-mdc · 3,588 stars · on GitHub

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.

Clone the repo
git clone --depth 1 https://github.com/sanjeed5/awesome-cursor-rules-mdc

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 digitalocean

README.md
[![agentmods](https://agentmods.dev/badge/rules/sanjeed5/awesome-cursor-rules-mdc/digitalocean/github.svg)](https://agentmods.dev/rules/sanjeed5/awesome-cursor-rules-mdc/digitalocean)
Your own site
<a href="https://agentmods.dev/rules/sanjeed5/awesome-cursor-rules-mdc/digitalocean"><img src="https://agentmods.dev/badge/rules/sanjeed5/awesome-cursor-rules-mdc/digitalocean/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for digitalocean

Your own site · 80×15
<a href="https://agentmods.dev/rules/sanjeed5/awesome-cursor-rules-mdc/digitalocean"><img src="https://agentmods.dev/badge/rules/sanjeed5/awesome-cursor-rules-mdc/digitalocean.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,554 This file is loaded in full into every session.
When invoked 2,554 The same file — it is already loaded in full.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.02554 $0.02554
Opus 5.5 $0.01022 $0.01022
Sonnet 5.5 $0.00511 $0.00511
Haiku 4.5 $0.00255 $0.00255

Measured 3mo ago against content hash a7bd9dbb9b00, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

digitalocean scanned grade B 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 3mo 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo apt update && sudo apt install postgresql postgresql-contrib
rules-mdc/digitalocean.mdc · 262 lines

How it starts

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

digitalocean Best Practices

This guide outlines the definitive best practices for developing and deploying applications on DigitalOcean. Adhering to these rules ensures your projects are secure, performant, scalable, and maintainable, leveraging DigitalOcean's managed services and cloud-native patterns.

1. VPC-Centric Networking (Security & Simplicity)

ALWAYS isolate your infrastructure within Virtual Private Clouds (VPCs). This is the cornerstone of secure and efficient communication between your services. Connect all compute resources (Droplets, Kubernetes nodes, Functions) and managed services (Databases) within the same VPC.

  • Connect Managed Databases via VPC: Use the private connection string and add the VPC's CIDR block as the only trusted source. This drastically reduces the attack surface and simplifies IP management.

    ❌ BAD: Public database connections, individual IP trusted sources.

    -- Public connection string, exposed to the internet
    psql "postgresql://doadmin:[email protected]:25060/defaultdb?sslmode=require"
    

    ✅ GOOD: Private VPC connection, CIDR block trusted source.

    -- Private connection string, only accessible within the VPC
    psql "postgresql://doadmin:[email protected]:25060/defaultdb?sslmode=require"
    

    Configuration: In DigitalOcean Control Panel, for your database, add your VPC's CIDR (e.g., 10.108.0.0/20) to Trusted Sources.

  • All Compute in VPC: Ensure all Droplets, Kubernetes nodes, and Functions are launched within the same VPC as your managed services.

2. Microservices-First Architecture

Embrace a microservices architecture for agility, scalability, and resilience. DigitalOcean provides excellent platforms for this.

  • Managed Kubernetes (DOKS) for Orchestration: For complex, containerized applications requiring fine-grained control and high availability.
  • App Platform for Rapid CI/CD: For web apps, APIs, and static sites needing fast, automated deployments with integrated CI/CD. Ideal for AI-assisted development workflows (e.g., with Claude Code).
  • Premium CPU-Optimized Droplets: For high-performance, resource-intensive workloads that benefit from dedicated CPU.

Read the full file on GitHub · 262 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. 3mo ago First seen · 262 lines · 0 tokens per session scan B a7bd9dbb9b00

Subscribe to this mod's changes

digitalocean is a cursor rule published in the GitHub repository sanjeed5/awesome-cursor-rules-mdc (3,588 stars, last pushed 9d ago), licensed CC0-1.0. It adds 2,554 tokens to every session, about $0.0102 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

digitalocean compared with cursor rules from other repositories

digitalocean next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
digitaloceansanjeed5/awesome-cursor-rules-mdcCursor rule3.6k9d agoCC0-1.0B2,554Cursor
log-watchbriiirussell/cybersecurity-skillsCursor rule5422d agoMITA184Cursor
beanstalk-deploypr-pm/prpmCursor rule1251mo agoMITA0Cursor
deploymentlacymorrow/paperclip-hubCursor rule16yesterdayMITA0Cursor
advisor-routingmicrosoft/azure-skillsCursor rule1.7kyesterdayMITA37Cursor
aws-rds-best-practicesbeettlle/CursorRulesCursor rule216d agononeA0Cursor
ponytailDietrichGebert/ponytailCursor rule204k11d agoMITA604Cursor