terminalPrompt recipes

These prompts are split into two modes:

  • Local-agent mode (has local git/worktree access): recipe 0 for docs automation.

  • Web-LLM mode (internet + GitHub browsing, no local repo access): recipes 1+.

In both modes, treat spx-examples on GitHub as the canonical spec and convention source.

Before generating any code, instruct the LLM to open and follow these files from the repo:

  • LLM contract: https://github.com/HammerHeads-Engineers/spx-examples/blob/main/docs/LLM_SPEC.md

  • Model DSL: https://github.com/HammerHeads-Engineers/spx-examples/blob/main/docs/MODEL_LANGUAGE.md

  • Task template: https://github.com/HammerHeads-Engineers/spx-examples/blob/main/docs/LLM_TASK_TEMPLATE.md

  • Validation script: https://github.com/HammerHeads-Engineers/spx-examples/blob/main/tools/validate_models.py

  • Catalog (new models must be registered): https://github.com/HammerHeads-Engineers/spx-examples/blob/main/library/catalog/models.yaml

Important: a web LLM must not claim it ran commands. It should output:

  • file-by-file changes (or a unified diff),

  • exact local validation commands to run (python tools/validate_models.py, pytest / poetry run pytest),

  • and any assumptions/questions when documentation is incomplete.

0) Update documentation from source repos (single-branch automation)

Use this when you are updating spx-docs based on spx-examples changes.

1) Generate a model + protocol mapping from device/protocol documentation

Use this when you have a device datasheet, protocol manual, or register map and want the LLM to “recreate the protocol surface” with the minimum simulation behavior required for MiL tests.

2) Create a new model (copy the closest template)

3) Add protocol mapping to an existing model

4) Add faults + MiL tests (scenarios are the contract)

5) Generate a MiL integration test for an existing model

Use this when the model YAML already exists and you want a deterministic, protocol-driven test that validates the SUT-facing behavior.

6) Generate client-software integration tests against an SPX model (MiL)

Use this when you need to modify or create client code (SUT) and verify it end-to-end against an SPX model via MiL tests.

7) Generate production-device tests + report (_test_logs)

Use this when you need automated regression tests for a production client/device driver, plus a test report derived from attributes/_test_logs.

Last updated