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.
In this repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- claude-review-tokenSkill
- deploy-gxSkill
- gx-camera-keySkill
- gx-reachSkill
- loop-tokenSkill
- ship-prSkill
- victron-statusSkill
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
- Very specific: line 24
Rules: Test GX work does not change production NN sources.
≈ “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.
Files
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.
- Docker up:
docker versionmust answer. Start the stack from the repo root:.\tools\test-gx\up.ps1 -Sim emu(builds the image the first time, ~5 min). Ready whenhttp://127.0.0.1:8081/stateandhttp://127.0.0.1:1881/flowsanswer. - 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.jsProgress linesRUNNING <name>: N real min elapsedare normal; a scenario's real time depends on itsfaketimerate (@2026-11-16 20:00:00 x60).
- one file:
- Read the result:
PASS/FAIL <name>: step N: expected ..., received .../EXPECTED_FAIL. On a failure, read the step intools/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). - Rules: Test GX work does not change production
NNsources. A real production bug is markedexpected_failwith a reference and fixed in its own PR. A new scenario file must be added to thefilesmatrix in.github/workflows/test-gx.yml(a unit test checks it). - 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.
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
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.

