agentleFS
vzakusylovzakusylo/victron/.claude/skills/test-gx-local/SKILL.md

test-gx-local

Skill4 starsChanged 13 days agoMITView on GitHub

Run Test GX scenarios locally in Docker (Venus simulator + Node-RED with the synthetic fixture) - start the stack, run one scenario file or one scenario, read the result, stop the stack. Use when the user asks to run GX tests / Test GX / scenarios locally, reproduce a failing Test GX scenario, or check a new scenario before pushing.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

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

    Rules: Test GX work does not change production NN sources.

    line 24

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “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

Test GX locally

Fake data only: never pass a real backup unless the owner asks (-Backup needs a sanitized directory).

On a shared Docker host, do not use up.ps1 or -Down: the script deletes the selected project's volume. Build the synthetic fixture with node tools/test-gx/build-fixture.js, then use docker compose -p <unique-project> -f tools/test-gx/docker-compose.yml -f tools/test-gx/docker-compose.fixture.yml up -d --build with a unique TEST_GX_TAG and TEST_GX_SIM=emu. Check that the fixed localhost ports are free first. Set TEST_GX_COMPOSE_PROJECT and TEST_GX_COMPOSE_OVERRIDE for the scenario runner. Stop the same named project with docker compose … down without -v.

  1. Docker up: docker version must answer. Start the stack from the repo root: .\tools\test-gx\up.ps1 -Sim emu (builds the image the first time, ~5 min). Ready when http://127.0.0.1:8081/state and http://127.0.0.1:1881/flows answer.
  2. Run scenarios (long: start in the background or a terminal tab, never block on it):
    • one file: node tools/test-gx/run-scenarios.js --file heating-review.yml --junit out/junit.xml
    • one scenario: node tools/test-gx/run-scenarios.js --scenario "<exact name>"
    • all: node tools/test-gx/run-scenarios.js Progress lines RUNNING <name>: N real min elapsed are normal; a scenario's real time depends on its faketime rate (@2026-11-16 20:00:00 x60).
  3. Read the result: PASS / FAIL <name>: step N: expected ..., received ... / EXPECTED_FAIL. On a failure, read the step in tools/test-gx/scenarios/<file>.yml, the emulator writes (curl http://127.0.0.1:8081/writes) and the Node-RED log (docker compose -p test-gx logs nodered).
  4. Rules: Test GX work does not change production NN sources. A real production bug is marked expected_fail with a reference and fixed in its own PR. A new scenario file must be added to the files matrix in .github/workflows/test-gx.yml (a unit test checks it).
  5. Stop: .\tools\test-gx\up.ps1 -Down. Do not remove Docker data volumes without the owner.

CI: test-gx.yml runs one job per scenario file in parallel; the required check is the final scenarios job.

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.