Skip to content
Back to skills

Backend Api Services

ASecurity

"Modify and debug Transformer Lab FastAPI backend routers,

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
databasespythonsqlreactfastapitestingdebuggingapifrontendbackend

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill backend-api-services --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Backend Api Services?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Backend Api Services
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-backend-api-services-arex-skill/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-backend-api-services-arex-skill)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: backend-api-services
description: "Modify and debug Transformer Lab FastAPI backend routers,
  services, schemas, auth/team context, DB migrations, and backend Python
  checks."
disable-model-invocation: true
metadata:
  disco-role: operating
license: AGPL 3.0
---
# backend-api-services

Use this sub-skill for backend work in `api/`: FastAPI app setup, routers, services, Pydantic schemas, auth/team context, SQLAlchemy/Alembic, filesystem-backed storage, and Python backend tests/lint.

## Load order

1. Read [references/api-architecture.md](references/api-architecture.md) before changing code.
2. Use [references/backend-testing.md](references/backend-testing.md) for test/lint commands and test patterns.
3. Use [references/troubleshooting.md](references/troubleshooting.md) when debugging startup, auth, DB, task YAML, cache, or org-context issues.

## Route to another sub-skill

- Task/job/provider launch lifecycle, compute-provider dispatch, local/remote queue semantics: `../task-execution-compute/SKILL.md`.
- CLI behavior, `lab` command UX, SDK package APIs, or remote SDK package behavior: `../cli-sdk-workflows/SKILL.md`.
- Frontend fetch clients, React browser UI, browser auth retries, or visual verification: `../frontend-web-app/SKILL.md`.

## Backend operating rules

- Keep routers thin: request parsing, FastAPI dependencies, HTTP status mapping, and simple response shaping only.
- Put business logic in `api/transformerlab/services/`; use Pydantic request/response schemas in `api/transformerlab/schemas/`.
- Protected routes need `get_user_and_team` or an app-level router dependency; owner-only routes use `require_team_owner`.
- JWT requests require `X-Team-Id` or the team cookie; API-key requests may be team-scoped or fall back through `X-Team-Id`/personal team.
- Use `lab.storage` and workspace helpers for team-scoped filesystem state unless a DB table is clearly required.
- Keep SQLAlchemy code SQLite and PostgreSQL compatible. Do not add DB or Alembic foreign keys.
- For SQLAlchemy `DateTime` values, use `utc_now_naive()` from `transformerlab.utils.datetime_utils`.
- If `lab-sdk/` changes affect backend imports, reinstall the local SDK package and restart the API; the API imports installed `lab` code.
- Remember the API source-run caveat: backend code runs from the `api/` source tree, while `api/pyproject.toml` is mainly dependency packaging.

Files in this skill

  • SKILL.md2.3 KB
  • references/api-architecture.md9 KB
  • references/backend-testing.md6.1 KB
  • references/troubleshooting.md7.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.