agentleFS
Ghost7802Ghost7802/awesome-api-skills/skills/digitalocean/SKILL.md

digitalocean

Skill13 starsChanged 27 days agoMITView on GitHub

  • Installs packages

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not run E2E tests against live production Droplets.

    line 28
  2. Very specific:

    If SSH fails after creating a Droplet via API, ensure you passed the correct ssh_keys array (using SSH Key IDs) in the creation payload.

    line 31
  3. Distinctive:

    Use this when your agent works with digitalocean — structured patterns beat pasted docs and prevent common hallucinations.

    line 41

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

DigitalOcean API Skill

Quick Start

DigitalOcean provides Droplets (VPS), Managed Databases, and App Platform. The official API allows full programmatic control over your cloud infrastructure.

npm install doctl

Common Workflows

Programmatic Backups and Snapshots

Automate Droplet snapshots before performing major system upgrades. Call the Actions API to trigger a snapshot, poll the Action ID for completion, and proceed with the upgrade.

Production Patterns

Floating IPs

For high availability, associate a Floating IP with your primary Droplet. If the primary goes down, use the API to immediately reassign the Floating IP to your standby Droplet without waiting for DNS propagation.

Error Recovery

Handle HTTP 404s when polling Action endpoints to ensure the Action hasn't been purged. For HTTP 429 (Rate Limit), inspect the RateLimit-Reset header to calculate the exact wait time before retrying.

Security Notes

Restrict API tokens by generating them with explicitly narrowed scopes (e.g., read-only). Use VPCs to isolate backend database Droplets from public internet exposure.

Performance Considerations

Creating Droplets takes ~60 seconds. Do not block web threads waiting for Droplet creation; handle infrastructure provisioning asynchronously via background workers (e.g., Redis queues).

Testing Guidance

Do not run E2E tests against live production Droplets. Use the API to spawn a temporary Droplet, run tests, and immediately destroy it to save costs.

Troubleshooting

If SSH fails after creating a Droplet via API, ensure you passed the correct ssh_keys array (using SSH Key IDs) in the creation payload.

References

Related Skills

  • [AWS S3](/skills/aws s3)
  • Render

Why use this skill

Use this when your agent works with digitalocean — structured patterns beat pasted docs and prevent common hallucinations.

AI pitfalls

  • Using outdated SDK or API versions from training data
  • Inventing environment variable names
  • Omitting error handling and retry logic

Production checklist

  • Secrets in environment variables, not source code
  • Error handling and logging in place
  • Rate limits and timeouts configured

Related skills

  • [aws s3](../aws s3/SKILL.md) — related to
  • render — related to

Last Verified: 2026-07-02

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.