agentleFS
developerz-aideveloperz-ai/db-mcp-gateway/.claude/skills/stack/SKILL.md

stack

Skill5 starsChanged 10 days agoMITView on GitHub

Bring up the local Postgres, Mongo and MySQL stack the gateway and its tests run against. Use for dev stack, bin/dev, state db, target db, mongo.

8 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use review.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • SentrySkill

    review

    Fixture review skill.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run the suite against it: bin/test (it always runs docker compose -f docker-compose.dev.yml up -d --wait first — even when the stack is …

    line 10
  2. Very specific:

    Stop the stack without losing data: bin/dev down removes the containers, the volumes stay.

    line 12

“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

House skill — established by dz-runner setup mode from this repo's own evidence, then owned by its maintainers. Correct it in place; setup never overwrites a skill that exists.

  1. Bring the stack up: bin/dev up — it runs docker compose -f docker-compose.dev.yml up -d --wait and starts state-db (localhost:5433), target-db (localhost:5434), target-mongo (localhost:27018) and permissions-mysql (localhost:3307). fail -> a container never became healthy: docker compose -f docker-compose.dev.yml ps then docker compose -f docker-compose.dev.yml logs <service>.
  2. Confirm health: docker compose -f docker-compose.dev.yml ps must show every service healthy. The integration tests hard-code these ports; changing them means changing the fallback URLs in tests/*.rs.
  3. Run the suite against it: bin/test (it always runs docker compose -f docker-compose.dev.yml up -d --wait first — even when the stack is already up — and waits for all four services to become healthy; a service that never becomes healthy returns 75 without running cargo) or one file with bin/test --test run_query_e2e.
  4. Inspect a database by hand: bin/dev psql state (gateway state — sessions, audit_calls) or bin/dev psql target (the example target DB).
  5. Stop the stack without losing data: bin/dev down removes the containers, the volumes stay. Only docker compose -f docker-compose.dev.yml down -v wipes the volumes, and only when a test needs a virgin database.
  6. Boot the gateway against it: write the minimal config from website/docs/deployment/quickstart.md §"Run it locally" to config/local.yaml (gitignored) — one server on localhost:5434, tls: insecure, password: ${ENV:TARGET_DB_PASSWORD} — then TLS_DISABLED=true cargo run -- --config config/local.yaml. fail -> the log never shows "state DB connected, migrations applied", so the state-DB migration failed; check bin/dev psql state.
  7. Smoke the endpoint: curl -s -o /dev/null -w '%{http_code}\n' -X POST http://127.0.0.1:8443/mcp -H 'content-type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}' — 401 means the MCP endpoint and the auth gate are live; anything else means the process is not serving.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.