Platform backend

From VectorSpaceLab/AREX-Skill · View interactive version

Platform backend is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Develop and validate the AutoGPT Platform Python backend, graph runtime, blocks, integrations, Prisma data layer, APIs, and backend tooling.

How to use this skill

Skill file

Platform Backend

Use this sub-skill for the Python FastAPI backend and shared platform libraries:

REST/WebSocket routes, graph execution, scheduler/executor services, blocks,

provider integrations, workspace/media handling, Prisma schema, model catalog,

backend CLI tools, and Python tests.

Reference map

services, API features, data access, authentication, execution, and storage.

ProviderBuilder, credential schemas, OAuth/webhooks, media files, and block

documentation/test contracts.

OpenAPI generation, Prisma/migrations, snapshots, model catalog changes, and

focused validation.

service, auth, database, block, and generated-artifact failures.

import, and CLI-help checks. It does not start Docker or reset a database.

Development sequence

  1. Work from autogpt_platform/backend and use poetry run for Python package

commands. Keep shared-library changes under autogpt_platform/autogpt_libs.

  1. Identify the owning feature and its nearby tests. Route changes through the

public API layer, Pydantic models, data functions, and service boundary

rather than reaching across unrelated features.

  1. For an API change, update the route/model, add or revise focused tests, then

export or fetch OpenAPI before asking the frontend to regenerate hooks.

  1. For a block, define schemas and credentials, implement async run, provide

deterministic test input/output or mocks, and test with the block harness.

  1. For database changes, review schema.prisma and migrations, use the

dedicated test database path, and never point a reset at a developer's live

database.

Useful commands

cd autogpt_platform/backend
poetry install
poetry run app
poetry run rest
poetry run ws
poetry run pytest path/to/test.py::test_name -xvs
poetry run test
poetry run format
poetry run lint
poetry run prisma migrate deploy
poetry run prisma generate
poetry run gen-prisma-stub
poetry run export-api-schema --output openapi.json --pretty
poetry run cli --help
poetry run oauth-tool --help

High-risk boundaries

--help are safer than starting services.

ClamAV, or provider-specific packages. Prefer mocks and the built-in block

test contract for local validation.

references, costs, routing, visibility, and LLMModel enum lines consistent;

use the documented retirement CLI for stored graph migrations.

orchestration and platform-frontend for UI

consumers. Read workspace/media guidance

before changing file persistence or store_media_file() behavior.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.