Local development

From VectorSpaceLab/AREX-Skill · View interactive version

Local development is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Operate the Airweave local Docker stack safely: start, reuse, restart, recreate, destroy, seed environment, check ports, and recover health failures.

How to use this skill

Skill file

Airweave Local Development

Use this sub-skill when a future Airweave task needs the local Docker stack running or diagnosed. It owns stack bootstrap, restart/recreate/destroy decisions, .env seeding, service profiles, port checks, and health recovery.

Do not use this sub-skill for backend endpoint details, connector implementation, frontend page logic, MCP transport behavior, or Monke connector orchestration. After the stack is healthy, route search, collection, source-connection, connect-session, and webhook workflows to ../backend-api/SKILL.md.

Safe operating rules

  1. Work from an explicit repository root. The bundled helper accepts --repo-root /path/to/airweave and works from any current directory.
  2. Prefer status before mutation:

```bash

bash skills/disco/airweave/sub-skills/local-development/scripts/local-stack.sh \

--repo-root "$AIRWEAVE_REPO" status

```

  1. A plain start is state-preserving: it seeds .env only when needed, starts missing/stopped services, and reuses running containers instead of deleting data.
  2. Use restart for already-created containers when you want to preserve Postgres/Redis/Vespa volumes.
  3. Use recreate only when container state is stale or service definitions changed; it removes compose containers and volumes, then starts fresh from the current .env.
  4. Use destroy only with explicit user intent. It removes compose containers and Docker volumes; it does not intentionally edit .env or purge manually managed host files.

Common commands

# Fresh or reuse-safe start, including backend, frontend, connect widget, Vespa, Temporal, Redis, Postgres, Svix.
bash skills/disco/airweave/sub-skills/local-development/scripts/local-stack.sh \
  --repo-root "$AIRWEAVE_REPO" start

# Backend/service stack without frontend UI.
bash skills/disco/airweave/sub-skills/local-development/scripts/local-stack.sh \
  --repo-root "$AIRWEAVE_REPO" start --skip-frontend

# Preserve data; restart existing containers and rerun health checks.
bash skills/disco/airweave/sub-skills/local-development/scripts/local-stack.sh \
  --repo-root "$AIRWEAVE_REPO" restart

# Recreate containers and compose volumes from current repo config.
bash skills/disco/airweave/sub-skills/local-development/scripts/local-stack.sh \
  --repo-root "$AIRWEAVE_REPO" recreate

# Destructive cleanup; add --yes for noninteractive confirmation.
bash skills/disco/airweave/sub-skills/local-development/scripts/local-stack.sh \
  --repo-root "$AIRWEAVE_REPO" destroy

Equivalent environment toggles are supported for automation: NONINTERACTIVE=1, SKIP_FRONTEND=1, SKIP_CONNECT=1, SKIP_LOCAL_EMBEDDINGS=1, ENABLE_DOCLING=1, VERBOSE=1, and QUIET=1.

Startup decisions

Expected local service surface

See references/local-stack.md for the service graph, ports, startup modes, and health commands. The primary expected endpoints are:

Verification hooks

For command-level checks before a real stack run:

bash -n skills/disco/airweave/sub-skills/local-development/scripts/local-stack.sh
bash skills/disco/airweave/sub-skills/local-development/scripts/local-stack.sh --help
bash skills/disco/airweave/sub-skills/local-development/scripts/local-stack.sh --repo-root "$AIRWEAVE_REPO" status

For a backend-native smoke after the stack is healthy and a Python 3.13 backend environment with pytest/pytest-asyncio is active:

cd "$AIRWEAVE_REPO/backend"
TEST_ENV=local python -m pytest tests/e2e/smoke/test_storage_backend.py -q

This storage smoke verifies the backend health endpoint, stub-source sync, ARF files, manifests, and entity files. If it fails because stub is unavailable, check whether internal sources are enabled for the local test environment before treating storage as broken.

Troubleshooting entry points

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.