ai-services
Skill36 starsChanged 10 months agoMITView on GitHub
Configure DigitalOcean Gradient AI serverless inference and Agent Development Kit. Use when adding LLM inference, model access keys, serverless AI endpoints, or building AI agents with ADK on App Platform.
- Installs packages
In this repository13 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- app-platform-routerSkill
- deploymentSkill
- app-platform-designerSkill
- devcontainersSkill
- managed-db-servicesSkill
- app-platform-migrationSkill
- app-platform-networkingSkill
- plannerSkill
- postgresSkill
- app-platform-sandboxSkill
- spacesSkill
- app-platform-troubleshootingSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 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.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 137
Check Gradient AI Models for current availability.
- Distinctive: line 161
→ designer: Add AI service environment variables to app spec
- Distinctive: line 163
→ devcontainers: Test AI integrations locally before deployment
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.
Files
AI Services Skill
Configure DigitalOcean Gradient AI Platform for App Platform applications.
Tip: This is one specialized skill in the App Platform library. For complex multi-step projects, consider using the planner skill to generate a staged approach. For an overview of all available skills, see the root SKILL.md.
Quick Decision
What do you need?
├── Simple LLM API calls → Serverless Inference
│ OpenAI-compatible API, no agent management
│
└── Full AI agents → Agent Development Kit (ADK)
Knowledge bases, RAG, guardrails, multi-agent routing| Need | Solution | Reference |
| Call LLM models directly | Serverless Inference | serverless-inference.md |
| Build agents with knowledge bases | ADK | agent-development-kit.md |
| Content filtering / guardrails | ADK | agent-development-kit.md |
| Multi-agent workflows | ADK | agent-development-kit.md |
Credential Handling
Model access keys follow the standard credential hierarchy:
- GitHub Secrets (recommended): User creates key → adds to GitHub Secrets → app spec references
- App Platform Secrets: Set via
doctl apps updatewithtype: SECRET
# App Spec pattern
envs:
- key: MODEL_ACCESS_KEY
scope: RUN_TIME
type: SECRET
value: ${MODEL_ACCESS_KEY} # From GitHub SecretsKey creation: Control Panel → Serverless Inference → Model Access Keys
Keys shown only once after creation—store securely.
Quick Start: Serverless Inference
# .do/app.yaml
services:
- name: api
envs:
- key: MODEL_ACCESS_KEY
scope: RUN_TIME
type: SECRET
value: ${MODEL_ACCESS_KEY}
- key: INFERENCE_ENDPOINT
value: https://inference.do-ai.run# Python SDK (OpenAI-compatible)
from openai import OpenAI
import os
client = OpenAI(
base_url=os.environ["INFERENCE_ENDPOINT"] + "/v1",
api_key=os.environ["MODEL_ACCESS_KEY"],
)
response = client.chat.completions.create(
model="llama3.3-70b-instruct",
messages=[{"role": "user", "content": "Hello!"}],
)Full guide: See serverless-inference.md
Quick Start: Agent Development Kit
# Install and configure
pip install gradient-adk
gradient agent configure
# Run locally
gradient agent run
# → http://localhost:8080/run
# Deploy to DigitalOcean
gradient agent deploy# Agent entrypoint
from gradient_adk import entrypoint
@entrypoint
def entry(payload, context):
query = payload["prompt"]
return {"response": "Hello from agent!"}Full guide: See agent-development-kit.md
Available Models
| Model | Use Case |
llama3.3-70b-instruct | General purpose, high quality |
llama3-8b | Faster, lower cost |
mistral-7b | Efficient, multilingual |
# List all available models
doctl genai list-modelsCheck Gradient AI Models for current availability.
Reference Files
- serverless-inference.md — SDK setup, API parameters, examples
- agent-development-kit.md — ADK workflow, knowledge bases, guardrails
Quick Troubleshooting
| Error | Cause | Fix |
401 Unauthorized | Invalid model access key | Verify key in GitHub Secrets |
Model not found | Invalid model ID | Run doctl genai list-models |
Rate limit exceeded | Too many requests | Implement exponential backoff |
| ADK deploy fails | Missing token scopes | Ensure genai CRUD + project read scopes |
Integration with Other Skills
- → designer: Add AI service environment variables to app spec
- → deployment: Model access key stored in GitHub Secrets
- → devcontainers: Test AI integrations locally before deployment
- → planner: Plan AI-enabled app deployments
Documentation Links
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
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.

