Get packages_worker running locally — first time or resuming after a break. Spins up packages-db if not running, applies any pending migrations, and starts the worker. All steps are safe to re-run. Use when: "set up packages worker", "start packages worker", "resume packages worker", "get packages-db running", "packages-db stopped", "restart the worker".
96%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Get packages_worker running locally. All steps are idempotent — safe to run
whether this is your first time or you're resuming after a break.
git branch --show-current # should be feat/track-packages
docker info --format '{{.ServerVersion}}'
pnpm --versionIf the branch is wrong: git checkout feat/track-packages && pnpm i.
No-op if already running.
docker compose -f scripts/scaffold.yaml up -d packages
until docker compose -f scripts/scaffold.yaml exec packages pg_isready -U postgres; do sleep 1; done
echo "packages-db is ready"Flyway skips already-applied migrations, so this is safe to re-run.
arch=$(uname -m)
[ "$arch" = "arm64" ] && PLATFORM="--platform=linux/arm64/v8" || PLATFORM="--platform=linux/amd64"
docker build $PLATFORM -t packages_flyway \
-f backend/src/osspckgs/Dockerfile.flyway backend/src/osspckgs --load
docker run --rm --network crowd-bridge \
-e PGHOST=packages \
-e PGPORT=5432 \
-e PGUSER=postgres \
-e PGPASSWORD=example \
-e PGDATABASE=packages-db \
packages_flywayTo create a new migration:
./scripts/cli scaffold create-packages-migration <descriptive_name>DEV=1 ./scripts/cli service packages-worker upDev mode uses hot reload — edits to services/apps/packages_worker/src/ and
services/libs/*/src/ are picked up immediately without restarting.
# Follow logs
./scripts/cli service packages-worker logs
# Stop
./scripts/cli service packages-worker down
# Restart
./scripts/cli service packages-worker restart
# Check status
./scripts/cli service packages-worker status/packages-worker-add-entrypoint/adr/preflight/commit| Symptom | Likely cause | Fix |
|---|---|---|
Connection refused on packages-db | Docker not running | docker compose -f scripts/scaffold.yaml up -d packages |
permission denied: scripts/cli | CLI not executable | chmod +x scripts/cli |
linuxfoundation/crowd.dev
bf72224
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.