Skip to content
Back to skills

Backend Runtime

ASecurity

"Work on Langflow FastAPI backend routes, graph execution,

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
developmentpythonbashfastapidockerapidatabasebackend

Works with

  • cli
  • api

Security analysis

A100/100

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

Scanned September 8, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Backend Runtime?

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

Security grade badge for Backend Runtime
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-backend-runtime/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-backend-runtime)

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-runtime
description: "Work on Langflow FastAPI backend routes, graph execution,
  services, settings, auth/authz, database, migrations, storage, telemetry, and
  runtime errors."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# Backend Runtime

Use this sub-skill for Langflow backend implementation tasks: FastAPI routes, API router wiring, flow execution internals, service dependencies, settings behavior, authorization guards, database sessions, Alembic migrations, storage boundaries, telemetry, and runtime error diagnosis.

Route elsewhere when the task is primarily:

- SDK or external client usage: use `../sdk-and-api-clients/`.
- Docker, cloud, or production deployment operations: use `../deployment-and-operations/`.
- Python component class authoring or bundles: use `../component-development/`.
- Local flow JSON authoring and validation without backend changes: use `../flow-authoring/`.

## Start Here

1. Classify the affected backend surface: route/API, flow execution, service/settings, authz, database/migration, storage, or telemetry.
2. Read [references/api-and-services.md](references/api-and-services.md) for router mounting, route dependency patterns, `simple_run_flow`, request parsing, tweaks, service access, and focused API validation.
3. Read [references/database-and-authorization.md](references/database-and-authorization.md) before changing guarded routes, share-aware fetches, database models, sessions, or Alembic migrations.
4. Use [references/troubleshooting.md](references/troubleshooting.md) when a backend run, CLI/API call, auth decision, database connection, migration, file upload, or optional dependency fails.
5. Inspect mounted routes with the bundled helper when route prefixes or hidden routes are unclear:

```bash
python scripts/inspect_routes.py --module langflow.api.router --router router --include-hidden
```

## Backend Change Checklist

- Keep route handlers explicit about authentication, authorization, response status, response models, and 403-vs-404 privacy behavior.
- Use `get_*_service()` helpers for managed services; avoid module-level settings reads for flags that may be supplied by `--env-file` or runtime environment variables.
- For flow execution endpoints, preserve JSON and multipart parsing behavior, `tweaks` semantics, telemetry logging, job-service execution, memory-base fire-and-forget behavior, and streaming error propagation.
- For authorization-aware fetches, widen cross-user loading only when an immediate `ensure_*_permission(...)` guard follows.
- For migrations, follow expand/migrate/contract safety and validate the specific migration before broad backend tests.

## Useful Validation Commands

Run the narrowest safe check that covers the change:

```bash
python -m py_compile skills/langflow/sub-skills/backend-runtime/scripts/inspect_routes.py
uv run pytest src/backend/tests/unit/api/v1/test_flows.py -q
uv run pytest src/backend/tests/unit/api/v1/test_authz_share_routes.py -q
uv run pytest src/backend/tests/unit/alembic/test_migration_validator.py -q
```

Use `uv run` for repository Python commands. Avoid credentialed provider tests, live external services, GPU/transformer execution, or destructive migration fixes unless the user explicitly asks and the environment is disposable or backed up.

Files in this skill

  • SKILL.md3.3 KB
  • references/api-and-services.md10.3 KB
  • references/database-and-authorization.md10.4 KB
  • references/troubleshooting.md9.9 KB
  • scripts/inspect_routes.py4.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.