agentleFS
abdullahkhawerabdullahkhawer/devops-skills/skills/digitalocean-cli/SKILL.md

digitalocean-cli

Skill8 starsChanged 7 months agoApache-2.0View on GitHub

Use the correct DigitalOcean CLI (doctl) context and region when running DigitalOcean commands based on the target environment.

  • Installs packages

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 3 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

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

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

    When running doctl commands, always pass the --context flag based on the target environment, and specify the region explicitly for …

    line 8
  2. Very specific:

    Update the context map below with your doctl auth context names:

    line 12
  3. Distinctive:

    If not already authenticated, inform the user that setup is required and ask them to complete the following steps manually.

    line 21
  4. Very specific:

    Always specify --context explicitly — never rely on the default doctl context, as it may point to the wrong account.

    line 80
  5. Very specific:

    Always specify --region explicitly for resource-creating commands — never rely on defaults.

    line 81
  6. Distinctive:

    If the target environment is unclear, ask the user before running the command.

    line 82
  7. Distinctive:

    NEVER run any command in the "Never run" table above without explicit user instruction — a human must execute these, especially against …

    line 83
  8. Very specific:

    NEVER read or output API tokens stored in doctl auth contexts or any credential value.

    line 84
  9. Very specific:

    If unsure which account a context belongs to, run doctl account get --context <context> to verify before proceeding.

    line 85

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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 CLI Skill

When running doctl commands, always pass the --context flag based on the target environment, and specify the region explicitly for resource-creating commands.

Configuration

Update the context map below with your doctl auth context names:

EnvironmentContextDefault Region
Production<your-prod-context><your-prod-region> (e.g. nyc3)
Staging / Non-Prod<your-nonprod-context><your-nonprod-region> (e.g. sgp1)

Prerequisites (one-time setup by user)

If not already authenticated, inform the user that setup is required and ask them to complete the following steps manually. Do not perform these steps yourself.

brew install doctl
doctl auth init --context <your-context-name>
doctl auth list

Command Format

doctl <resource> <command> --context <context> [--region <region>] [options]

Examples

# Production
doctl compute droplet list --context <your-prod-context>

# Staging / Non-Prod
doctl compute droplet list --context <your-nonprod-context>

Available Commands

Read-only (safe, no confirmation needed)

Command patternDescription
doctl compute droplet list/getList or describe droplets
doctl compute domain listList DNS domains
doctl kubernetes cluster list/getList or describe Kubernetes clusters
doctl databases list/getList or describe managed databases
doctl monitoring alert-policy listList monitoring alert policies
doctl account getShow account information
doctl auth listList authenticated contexts

Mutating operations (confirm with user before running)

Command patternDescription
doctl compute droplet createCreate a new droplet
doctl kubernetes cluster createCreate a new Kubernetes cluster
doctl databases createCreate a new managed database
doctl compute droplet resizeResize a droplet

Never run — requires explicit human approval

Command patternReason
doctl compute droplet deleteIrreversible resource deletion
doctl kubernetes cluster deleteIrreversibly deletes a Kubernetes cluster
doctl databases deleteIrreversibly destroys a managed database
doctl compute droplet-action power-off/rebootDisrupts running workloads
doctl compute firewall deleteRemoves network security controls

Rules

  • Always specify --context explicitly — never rely on the default doctl context, as it may point to the wrong account.
  • Always specify --region explicitly for resource-creating commands — never rely on defaults.
  • If the target environment is unclear, ask the user before running the command.
  • NEVER run any command in the "Never run" table above without explicit user instruction — a human must execute these, especially against production.
  • NEVER read or output API tokens stored in doctl auth contexts or any credential value.
  • If unsure which account a context belongs to, run doctl account get --context <context> to verify before proceeding.

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.