Logo vun App Platform Router

App Platform Router

Organisatioun
digitalocean-labs
app-platform-router

Routes DigitalOcean App Platform tasks to specialized sub-skills. Use when working with App Platform deployments, migrations, database configuration, networking, or troubleshooting.

Iwwersiicht

Editeurdigitalocean-labs
Repositorydo-app-platform-skills
Skill-Nummapp-platform-router
Stären
38
Forks
4
Matgeliwwert Fichieren
189
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 189 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum digitalocean-labs op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill App Platform Router an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/digitalocean-labs/do-app-platform-skills/tree/main
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/digitalocean-labs/do-app-platform-skills.git \
  .claude/skills/app-platform-router
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert App Platform Router an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet App Platform Router automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass App Platform Router net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

App Platform Skills — Router

Overview

This skill routes DigitalOcean App Platform tasks to specialized sub-skills. Each sub-skill is optimized for a specific workflow, keeping context focused and responses precise.

Philosophy: These skills are opinionated playbooks, not documentation replicas. They make decisions for you (VPC by default, GitHub Actions for CI/CD, etc.) and only defer to docs for edge cases.

Key Principle: Skills contain only DO-specific knowledge the LLM doesn't have from training. Generic SQL, SDK patterns, and programming concepts are NOT duplicated here.

Trust the AI: The AI assistant should reason about the full workflow, chain skills together when needed, and adapt based on context (greenfield vs brownfield vs troubleshooting). Skills provide domain knowledge, not rigid scripts to follow blindly.

Available Skills

Development Phase

SkillPurposeKey Artifacts
devcontainersLocal development environment with prod parity.devcontainer/, docker-compose.dev.yml

Architecture Phase

SkillPurposeKey Artifacts
designerNatural language → production-ready App Spec.do/app.yaml
migrationConvert existing apps (Heroku, AWS, etc.) to App Platform. Deep Heroku chapter with Procfile/app.json/heroku.yml parsing, add-on mapping, pipeline migration.do/app.yaml, migration checklist
plannerGenerate staged project plans from design to deploymentPlan/*.md stage files

Operations Phase

SkillPurposeKey Artifacts
deploymentShip code to production via GitHub Actions.github/workflows/deploy.yml
troubleshootingDebug running apps with pre-built debug container, analyze logsFixes, diagnostic reports
sandboxIsolated containers for AI agent code execution, testingEphemeral sandboxes

Data Services

SkillPurposeKey Artifacts
postgresFull PostgreSQL setup: schemas, users, permissions, multi-tenantSQL scripts (user-executed)
managed-db-servicesMySQL, MongoDB, Valkey, Kafka, OpenSearch (bindable vars)App spec snippets
spacesS3-compatible object storage configurationCORS config, app spec snippets

AI Services

SkillPurposeKey Artifacts
ai-servicesGradient AI inference endpointsApp spec snippets

Console SDK for AI Assistants

CRITICAL: AI assistants cannot use doctl apps console — it opens an interactive WebSocket session that requires human input. Use the do-app-sandbox Python package instead.

bash
# Install
uv pip install do-app-sandbox  # or: pip install do-app-sandbox

Two Use Cases (Same Package, Different Skills)

Use CaseSDK MethodSkill
Debug EXISTING appSandbox.get_from_id(app_id, component)troubleshooting
Create NEW sandboxSandbox.create(), SandboxManagersandbox
python
# Debug existing app (troubleshooting skill)
app = Sandbox.get_from_id(app_id="your-app-id", component="web")

# Create new isolated sandbox (sandbox skill)
sandbox = Sandbox.create(image="python")

Full guide: See shared/console-sdk-patterns.md


Routing Decision Tree

┌─────────────────────────────────────────────────────────────────┐
│                        USER REQUEST                              │
└─────────────────────────────────────────────────────────────────┘
                              │
                              ▼
                ┌─────────────────────────┐
                │ Setting up development? │
                └─────────────────────────┘
                              │
                      "local" / "devcontainer"
                              ▼
                      ┌───────────┐
                      │devcontainers│
                      └───────────┘
                              │
                              ▼
                ┌─────────────────────────┐
                │ Designing or creating?  │
                └─────────────────────────┘
                      │           │           │
             "new app"│           │ "migrate" │ "plan" / "staged"
                      ▼           ▼           ▼
              ┌───────────┐  ┌───────────┐  ┌───────────┐
              │ designer  │  │ migration │  │  planner  │
              └───────────┘  └───────────┘  └───────────┘
                              │
                              ▼
                ┌─────────────────────────┐
                │    Shipping code?       │
                └─────────────────────────┘
                              │
                      "deploy" / "ship" / "release"
                              ▼
                      ┌───────────┐
                      │deployment │
                      └───────────┘
                              │
                              ▼
                ┌─────────────────────────┐
                │   Something broken?     │
                └─────────────────────────┘
                              │
                      "broken" / "failing" / "debug" / "logs"
                              ▼
                    ┌───────────────┐
                    │troubleshooting│
                    └───────────────┘
                              │
                              ▼
                ┌─────────────────────────┐
                │ Need isolated execution?│
                └─────────────────────────┘
                              │
                      "sandbox" / "isolated" / "execute code" / "code interpreter"
                              ▼
                      ┌───────────┐
                      │  sandbox  │
                      └───────────┘
                              │
                              ▼
                ┌─────────────────────────┐
                │ Configuring data?       │
                └─────────────────────────┘
                      │           │           │
           "postgres" │  "mysql"  │           │ "storage" / "S3" / "spaces"
           (complex)  │  "mongo"  │           │
                      │  "valkey" │           │
                      │  "kafka"  │           │
                      │  "opensearch"         │
                      ▼           ▼           ▼
              ┌───────────┐  ┌─────────────────────┐  ┌───────────┐
              │ postgres  │  │ managed-db-services │  │  spaces   │
              └───────────┘  └─────────────────────┘  └───────────┘
                              │
                              ▼
                ┌─────────────────────────┐
                │ AI inference needed?    │
                └─────────────────────────┘
                              │
                      "gradient" / "LLM" / "inference"
                              ▼
                      ┌─────────────┐
                      │ ai-services │
                      └─────────────┘

Workflow Chaining

The AI assistant should reason about the full workflow, not just route to a single skill.

Workflow Types

Request TypeWorkflowSkills Chain
Full Greenfield"Build a new app from scratch"devcontainers → designer → planner → deployment
Migration"Migrate from Heroku/AWS"migration → (then full greenfield workflow)
Brownfield"Deploy my existing app"planner → deployment
Enhancement"Add Kafka to my app"managed-db-services → update app.yaml → deployment
Troubleshooting"My app is broken"troubleshooting (standalone)
AI Agent Execution"Run code in isolation"sandbox (standalone)
Specific Task"Set up PostgreSQL"postgres (standalone)

Chaining Logic

┌─────────────────────────────────────────────────────────────────┐
│                    UNDERSTAND THE GOAL                           │
│  Is this a single task or a multi-phase workflow?                │
└─────────────────────────────────────────────────────────────────┘
                              │
              ┌───────────────┴───────────────┐
              │                               │
              ▼                               ▼
       ┌─────────────┐                 ┌─────────────┐
       │ Single Task │                 │  Workflow   │
       │             │                 │             │
       │ Route to    │                 │ Chain       │
       │ one skill   │                 │ multiple    │
       └─────────────┘                 └─────────────┘
              │                               │
              ▼                               ▼
       troubleshooting              migration → designer →
       postgres                     planner → deployment
       spaces
       etc.

Examples

"I want to build a new event-driven app with Kafka"

  1. Start with designer → create .do/app.yaml with Kafka
  2. Use managed-db-services for Kafka-specific bindable variables
  3. Use planner → generate staged Plan/ files
  4. Execute with deployment skill

"Migrate my Heroku app to DigitalOcean"

  1. Start with migration → Heroku deep chapter auto-routes based on intent (Q&A, Guided, Auto-Migrate)
  2. Parses Procfile, app.json, heroku.yml, maps add-ons, generates .do/app.yaml
  3. Use planner → plan the staged deployment
  4. Execute with deployment skill

"My deployed app keeps returning 502"

  1. Route directly to troubleshooting (single skill, no chaining)
  2. Use debug container, analyze logs, fix issue

"Add PostgreSQL to my existing app"

  1. Use postgres for schema/user setup
  2. Update .do/app.yaml with database binding
  3. Redeploy with deployment skill

Key Principle

The AI assistant should:

  1. Understand the overall goal (not just the immediate request)
  2. Identify which skills are needed and in what order
  3. Chain skills together, passing artifacts between them
  4. Adapt based on what already exists (greenfield vs brownfield)

Trust the AI to reason. These skills provide domain knowledge, not rigid scripts.


Trigger Phrases Reference

Route ToTrigger Phrases
devcontainers"local dev", "docker compose", "run locally", "devcontainer"
designer"design my app", "create app spec", "new application", "architect"
migration"migrate", "convert", "move from Heroku", "move from AWS", "Heroku", "Procfile", "heroku.yml", "dynos", "Heroku add-ons", "Heroku pipeline"
planner"create a plan", "plan this project", "staged approach", "plan deployment", "how should I deploy"
deployment"deploy", "ship", "release", "GitHub Actions", "CI/CD"
troubleshooting"broken", "failing", "debug", "logs", "502", "crash", "error"
sandbox"sandbox", "isolated environment", "execute code", "code interpreter", "run untrusted code", "agent execution", "hot pool"
postgres"postgres", "postgresql", "schema isolation", "multi-tenant database"
managed-db-services"mysql", "mongodb", "mongo", "valkey", "redis", "kafka", "opensearch"
spaces"object storage", "S3", "Spaces", "file upload", "bucket"
ai-services"gradient", "inference", "LLM endpoint", "AI platform"

Third-Party Integrations (No Skill Needed)

For integrations not covered by dedicated skills (DataDog, Sentry, New Relic, Stripe, etc.):

  1. Get credentials from the vendor
  2. Add to GitHub Secrets (Repo → Settings → Secrets → Actions)
  3. Reference in app spec:
    yaml
    envs:
      - key: DATADOG_API_KEY
        scope: RUN_TIME
        value: ${DATADOG_API_KEY}  # From GitHub Secrets
  4. Follow vendor documentation for SDK/agent setup

→ The agent's training covers vendor-specific patterns — no skill required.


Credential Handling Philosophy

CRITICAL: These skills are designed to keep credentials out of agent hands.

Priority Order (Most to Least Preferred)

1. GITHUB SECRETS (RECOMMENDED DEFAULT)
   ├── Agent never sees credentials
   ├── User manually adds: Repo → Settings → Secrets → Actions
   ├── Workflow references: ${{ secrets.DATABASE_URL }}
   └── Agent generates workflow, user handles secrets

2. APP PLATFORM BINDABLE VARIABLES
   ├── For DO Managed Databases (Postgres, MySQL, MongoDB, etc.)
   ├── Credentials injected via ${db.DATABASE_URL}
   ├── Agent configures app spec, never sees credentials
   └── Best for: Apps using DO managed services

3. LOCAL .ENV + EPHEMERAL APP SPEC
   ├── User maintains .env file locally
   ├── Agent creates temp app spec with placeholders
   └── Substitutes values → Deploys → Deletes temp file

4. EXTERNAL SERVICES
   ├── Same patterns as #1 or #3
   └── User responsible for credential management

Artifact Contracts

All skills produce and consume artifacts with consistent naming:

ArtifactFilenameProducerConsumer
App Spec.do/app.yamldesigner, migrationdeployment, planner
Deploy Button.do/deploy.template.yamldesigner, migrationGitHub
Deployment PlanPlan/0N-*.mdplannerUser, deployment
Dev Environment.devcontainer/devcontainer.jsondevcontainersVS Code, Cursor
Docker Composedocker-compose.ymldevcontainersDocker Desktop
CI/CD Workflow.github/workflows/deploy.ymldeployment, plannerGitHub Actions
SQL Scriptsdb-*.sqlpostgresUser (manual execution)
CORS Configspaces-cors.jsonspacesDO Console

Handoff Protocol

When a skill completes, it should:

  1. State the artifact(s) produced: "Created .do/app.yaml with 3-component architecture"
  2. Indicate the file path: Relative to project root
  3. Suggest next skill if applicable: "To deploy this, use the deployment skill"

Plugin/Tool Requirements

SkillRequiredOptional
devcontainersfilesystem, docker, gitgh
designerfilesystem—
migrationfilesystem, doctl, git, pythongh, DigitalOcean MCP
deploymentfilesystem, doctl, git, pythongh, GitHub MCP
troubleshootingfilesystem, python, doctl—
sandboxfilesystem, python, doctl—
postgresfilesystem, psql— (scripts only)
managed-db-servicesfilesystem, doctl—
spacesfilesystems3cmd (for bucket ops; doctl only manages keys)
ai-servicesfilesystem—

Sub-Skill Locations

app-platform-skills/
├── SKILL.md                              # This file (router)
├── skills/
│   ├── devcontainers/SKILL.md
│   ├── designer/SKILL.md
│   ├── migration/SKILL.md
│   ├── deployment/SKILL.md
│   ├── planner/SKILL.md                  # Staged project plans (design to deployment)
│   │   └── templates/                    # Local + Tier 1, 2, 3 stage templates
│   ├── troubleshooting/SKILL.md
│   ├── sandbox/SKILL.md                  # Isolated containers for AI agent execution
│   ├── postgres/SKILL.md
│   ├── managed-db-services/SKILL.md      # MySQL, MongoDB, Valkey, Kafka, OpenSearch
│   ├── spaces/SKILL.md
│   └── ai-services/SKILL.md              # Gradient AI
└── shared/
    ├── app-spec-schema.yaml
    ├── artifact-contracts.md
    └── credential-patterns.md

Opinionated Defaults Summary

DomainDefaultOverride Trigger
NetworkingVPC-only, internal routingUser explicitly requests public
CI/CDGitHub + GitHub ActionsUser specifies GitLab/Bitbucket
SecretsGitHub SecretsUser has existing vault
BuildDockerfileUser explicitly prefers buildpacks
DatabaseDO Managed + Bindable VariablesUser has external DB
MonorepoSupported by default (source_dir)N/A
Python envuv for package/venv managementUser prefers pip/poetry
Node envnvm for version managementUser prefers n/volta

Escalation

If a task doesn't fit any skill or spans multiple skills ambiguously:

  1. Ask clarifying question to determine primary intent
  2. Suggest skill sequence if task is multi-phase
  3. For truly novel tasks, fall back to App Platform documentation: https://docs.digitalocean.com/products/app-platform/

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

a weider 129 Fichieren.

Heefeg gestallte Froen

Wat mécht de KI-Skill App Platform Router?

Routes DigitalOcean App Platform tasks to specialized sub-skills. Use when working with App Platform deployments, migrations, database configuration, networking, or troubleshooting.

Firwat App Platform Router op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. App Platform Router besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech App Platform Router an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/digitalocean-labs/do-app-platform-skills/tree/main an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen App Platform Router benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat App Platform Router benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir App Platform Router domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill App Platform Router gratis?

Jo. De Skill gëtt vum digitalocean-labs ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇