Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Um comando direto ignora o prompt de revisão. Verifique a origem antes de executá-lo.
{"name":"custom_api","schema":{"type":"object","properties":{"base_url":{"type":"string","format":"uri"},"api_key":{"type":"string"},"timeout":{"type":"integer","default":30}},"required":["base_url","api_key"]},"description":"Custom API connection"}
Save as: custom_api.resource-type.json
OAuth Resources
OAuth resources are managed through the Windmill UI and marked:
{"is_oauth":true,"account":123}
OAuth tokens are automatically refreshed by Windmill.
Using Resources in Scripts
TypeScript (Bun/Deno)
exportasyncfunctionmain(db: RT.Postgresql) {
// db contains the resource valuesconst { host, port, user, password, dbname } = db;
}
Python
classpostgresql(TypedDict):
host: str
port: int
user: str
password: str
dbname: strdefmain(db: postgresql):
# db contains the resource valuespass
CLI Commands
# List resources
wmill resource list
# List resource types with schemas
wmill resource-type list --schema
# Get specific resource type schema
wmill resource-type get postgresql
# Deploy resources to the workspace — destructive to remote state, so only run when# the user explicitly asks to deploy/publish/push. Depending on how the repo is wired,# deploy via `git push` or `wmill sync push` (see the Deploying section in AGENTS.wmill.md).
wmill sync push