agentleFS
alanalvestechalanalvestech/hitank/skills/digitalocean/SKILL.md

digitalocean

Skill38 starsChanged 8 months agoMITView on GitHub

Manage DigitalOcean droplets, domains, databases, apps and volumes via API v2

2 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

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If the output is OK, proceed to the Flow section.

    line 37
  2. Very specific:

    If the output is SETUP_NEEDED, guide the user step by step.

    line 39
  3. Distinctive:

    If the script outputs an error, the token is invalid.

    line 57
  4. Distinctive:

    Ask the user for name, region, size, and image.

    line 104

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

Connect to the DigitalOcean API v2 to manage droplets, domains, DNS records, managed databases, App Platform apps and volumes. Pure Ruby, zero gems — stdlib only.

Structure

scripts/
├── auth.rb            # Bearer token + do_request helper (required by all scripts)
├── check_setup.rb     # Check if token exists (outputs OK or SETUP_NEEDED)
├── save_token.rb      # Save and validate an API token
├── account.rb         # Get account info
├── droplets.rb        # List all droplets
├── droplet.rb         # Get droplet details
├── create_droplet.rb  # Create a new droplet
├── droplet_action.rb  # Perform droplet action (reboot, power_off, power_on, etc.)
├── domains.rb         # List all domains
├── dns_records.rb     # List DNS records for a domain
├── databases.rb       # List managed databases
├── apps.rb            # List App Platform apps
└── volumes.rb         # List block storage volumes

Setup (check before using)

ruby ~/.claude/skills/digitalocean/scripts/check_setup.rb

If the output is OK, proceed to the Flow section.

If the output is SETUP_NEEDED, guide the user step by step. Present ONE step at a time, wait for the user to confirm before moving to the next.

Step 1 — Ask the user to create a Personal Access Token:

You need a DigitalOcean Personal Access Token. Go to the API section in the DigitalOcean Control Panel:

https://cloud.digitalocean.com/account/api/tokens

Click Generate New Token, give it a name (e.g. "hitank"), select the scopes you need (read or read+write), and copy the token.

Paste the token here.

Step 2 — When the user pastes the token, save it:

ruby ~/.claude/skills/digitalocean/scripts/save_token.rb 'PASTED_TOKEN'

If the script outputs an error, the token is invalid. Ask the user to double-check and try again.

If setup is not complete, DO NOT proceed to the Flow. Complete all steps first.

Flow

The argument $ARGUMENTS may contain a droplet name or ID.

Step 1: Show account info

ruby ~/.claude/skills/digitalocean/scripts/account.rb

Present the account info to the user.

Step 2: List droplets

ruby ~/.claude/skills/digitalocean/scripts/droplets.rb

Present the droplets to the user. If $ARGUMENTS matches a droplet name or ID, use that droplet. Otherwise ask which droplet to work with.

Step 3: Show droplet details

ruby ~/.claude/skills/digitalocean/scripts/droplet.rb DROPLET_ID

Present the droplet info and ask what the user wants to do.

Step 4: Droplet actions

Perform a droplet action (requires user confirmation):

Show current droplet status first, then ask: "Do you want to perform ACTION on this droplet?" Only execute after a "yes".

Supported actions: reboot, power_off, power_on, shutdown, enable_backups, disable_backups, enable_ipv6, password_reset, snapshot.

ruby ~/.claude/skills/digitalocean/scripts/droplet_action.rb DROPLET_ID ACTION
ruby ~/.claude/skills/digitalocean/scripts/droplet_action.rb DROPLET_ID snapshot --name "my-snapshot"

Create a new droplet (requires user confirmation):

Ask the user for name, region, size, and image. Confirm all details before creating.

ruby ~/.claude/skills/digitalocean/scripts/create_droplet.rb NAME REGION SIZE IMAGE

Example:

ruby ~/.claude/skills/digitalocean/scripts/create_droplet.rb my-server nyc1 s-1vcpu-1gb ubuntu-24-04-x64

Step 5: Other resources

List domains:

ruby ~/.claude/skills/digitalocean/scripts/domains.rb

List DNS records for a domain:

ruby ~/.claude/skills/digitalocean/scripts/dns_records.rb DOMAIN_NAME

List managed databases:

ruby ~/.claude/skills/digitalocean/scripts/databases.rb

List App Platform apps:

ruby ~/.claude/skills/digitalocean/scripts/apps.rb

List block storage volumes:

ruby ~/.claude/skills/digitalocean/scripts/volumes.rb

Notes

  • Pure Ruby, zero gems — stdlib only (json, net/http, uri, fileutils)
  • Auth via Bearer token in Authorization header
  • Token file: ~/.config/digitalocean/token (outside the repo, never commit)
  • Creating droplets and performing droplet actions require explicit user confirmation
  • Base URL: https://api.digitalocean.com/v2

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.