AGENT SKILL

digitalocean-cli

Deploy and manage DigitalOcean resources using the doctl CLI. Use when the user mentions DigitalOcean, DO, droplets, doctl, or DO App Platform.

License 许可
MIT
最近更新
2026-11-02
Stars
★ 0
Forks
0

01 前言 Front Matter

name
digitalocean-cli
description
Deploy and manage DigitalOcean resources using the doctl CLI. Use when the user mentions DigitalOcean, DO, droplets, doctl, or DO App Platform.

03 SKILL.md 正文

DigitalOcean CLI

Deploy and manage DigitalOcean resources directly via the doctl CLI through the Bash tool. Replaces the DigitalOcean MCP server with native CLI calls.

Prerequisites

Verify doctl is installed:

command -v doctl && doctl version

If not installed, guide the user to https://docs.digitalocean.com/reference/doctl/how-to/install/.

Authentication

# Authenticate with API token (interactive prompt)
doctl auth init

# Verify authentication
doctl account get

The user needs a DigitalOcean API token from https://cloud.digitalocean.com/account/api/tokens.

Droplets (Compute)

List droplets

doctl compute droplet list

# With specific output format
doctl compute droplet list --format ID,Name,PublicIPv4,Status

Create a droplet

doctl compute droplet create <name> \
  --region <region> \
  --size <size> \
  --image <image>

# Example: Ubuntu droplet
doctl compute droplet create my-server \
  --region nyc3 \
  --size s-1vcpu-1gb \
  --image ubuntu-22-04-x64 \
  --ssh-keys <key-id>

Manage droplets

# Get droplet details
doctl compute droplet get <id>

# Delete a droplet (confirm with user first)
doctl compute droplet delete <id> --force

# List available sizes
doctl compute size list

# List available regions
doctl compute region list

# List available images
doctl compute image list --public

SSH keys

# List SSH keys
doctl compute ssh-key list

# Import an SSH key
doctl compute ssh-key import <name> --public-key-file ~/.ssh/id_rsa.pub

App Platform

List apps

doctl apps list

Deploy an app

# Create app from spec file
doctl apps create --spec <spec-file.yaml>

# Update an existing app
doctl apps update <app-id> --spec <spec-file.yaml>

# Get app details
doctl apps get <app-id>

App logs and deployments

# View app logs
doctl apps logs <app-id>

# List deployments
doctl apps list-deployments <app-id>

# Get deployment details
doctl apps get-deployment <app-id> <deployment-id>

Create a basic app spec

A minimal .do/app.yaml for a static site:

name: my-app
static_sites:
  - name: web
    github:
      repo: <owner>/<repo>
      branch: main
    build_command: npm run build
    output_dir: dist

Kubernetes (DOKS)

# List clusters
doctl kubernetes cluster list

# Create a cluster
doctl kubernetes cluster create <name> \
  --region <region> \
  --node-pool "name=default;size=s-2vcpu-4gb;count=3"

# Get kubeconfig
doctl kubernetes cluster kubeconfig save <cluster-id>

# List node pools
doctl kubernetes cluster node-pool list <cluster-id>

Databases

# List database clusters
doctl databases list

# Create a database cluster
doctl databases create <name> \
  --engine pg \
  --region nyc3 \
  --size db-s-1vcpu-1gb \
  --num-nodes 1

# Get connection details
doctl databases connection <db-id>

Domains and DNS

# List domains
doctl compute domain list

# Create a domain
doctl compute domain create <domain>

# List DNS records
doctl compute domain records list <domain>

# Create a DNS record
doctl compute domain records create <domain> \
  --record-type A \
  --record-name @ \
  --record-data <ip-address>

Networking

# List load balancers
doctl compute load-balancer list

# List firewalls
doctl compute firewall list

# List floating IPs
doctl compute floating-ip list

Spaces (Object Storage)

# List Spaces (requires s3cmd or AWS CLI configured for DO Spaces)
doctl compute cdn list

Useful Flags

Common flags that work across most commands:

--format <fields>   # Customize output columns
--no-header         # Omit column headers
--output json       # JSON output
-t <token>          # Use a specific API token
--context <name>    # Use a named auth context

Error Handling

"Unable to authenticate"

  • Run doctl auth init and provide a valid API token.
  • Verify the token has the required scopes.

"Service not available in region"

  • Check available regions: doctl compute region list
  • Some services are region-limited.

"Rate limit exceeded"

  • DigitalOcean API has rate limits. Wait and retry.
  • Use --output json to inspect rate limit headers.

04 同仓库更多 Skills

Prekzursil
Prekzursil/agent-skills-toolchain

clarify-requirements

Resolve genuine pre-execution ambiguity by scanning repo context, generating 1-6 grounded options, and asking 1-3 focused questions via AskUserQuestion. NOT for mid-task use (injection risk); NOT when the goal is already unambiguous; use to disambiguate vague prompts before any file edits.

★ 0
Prekzursil
Prekzursil/agent-skills-toolchain

openmm-md

Run FREE, open-source, Windows-native GPU molecular dynamics via the openmm-md MCP (OpenMM + CUDA on the local NVIDIA GPU). Use for protein / protein-ligand MD when you want a free stack or are on Windows without a Schrodinger license. Covers the full workflow (prepare, solvate, minimize, equilibrate, production, analyze, mmgbsa) AND an honest decision guide vs Schrodinger Desmond, including how to run Desmond legitimately on Linux or a cloud GPU with a real license. This is a deliberately LESSER free alternative and does NOT replace the schrodinger MCP tools. Do NOT use it to pick a free tool when a validated FEP+, WaterMap, IFD-MD, or Prime MM-GBSA result is actually required.

★ 0
Prekzursil
Prekzursil/agent-skills-toolchain

visual-review

Take screenshots of web pages and UI using Playwright for visual review and iteration

★ 0
Prekzursil
Prekzursil/agent-skills-toolchain

status

Diagnostic status report — shows metaswarm installation state, project setup, and potential issues

★ 0
Prekzursil
Prekzursil/agent-skills-toolchain

start

Use when starting work on any task, when the user mentions metaswarm, or when the user wants to begin tracked development work

★ 0
Prekzursil
Prekzursil/agent-skills-toolchain

setup

Interactive project setup — detects your project, configures metaswarm, writes project-local files

★ 0