/oddyssey:run-scenariofrom Oddyssey
Drives reproducible request scenarios against a locally running service using ad-hoc requests or stored k6 benchmarks, recording them verbatim for before/after telemetry comparison.
Ships in Oddyssey. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
One protocol on both ends of the ODD loop: the same commands that produced the numbers in an observation report produce the numbers that verify the fix. A scenario that cannot be replayed verbatim makes before/after comparison an impression, not a measurement.
A step this package ships a script for is run, never rewritten. The
ad-hoc drive is this skill's scripts/drive_scenario.py (step 2); a
stored benchmark's replay is k6-guides' scripts/replay_benchmark.py
(references/benchmark-replay.md). A curl loop, a helper with a sleep
in it, a poller written for either yields a different command each time —
two runs then measure two things.
Steps 1 to 5 and the rules are the method; a reference is read by the block that applies, never whole:
| Situation | Reference |
|---|---|
| Every drive: the clean-base order and the reset decisions, the identity the queries are qualified by and the instance read from the rows, the run's t0 after the warmup — a port already served, a remote target the run cannot launch, a restart that is not possible, a reset that is forbidden | references/run-identity.md, the block that applies |
| An iteration that is expensive or non-deterministic; the watch of a run someone else drives, on a backend that ships no watch script | references/long-scenarios.md |
A stored k6 benchmark under .odd/benchmarks/<name>/ — driven here, or driven elsewhere and only watched | references/benchmark-replay.md, in place of step 2; its watching section for a run someone else drives |
Start with the identity reference, then follow the steps below.
In order of preference:
setup-local-stack skill's) and the backend
reference's discovery script both list them — read that output
rather than querying again.Prefer a handful of representative operations covered properly over every operation covered once. Note anything you deliberately left out.
What you decide: the operations (step 1), the count per operation (step 3), concurrency or not, the signal the flush wait is sized by (step 5), the run slug and the prompt's name. Everything else is the script's:
python3 <skills>/run-scenario/scripts/drive_scenario.py http://127.0.0.1:<port> --run-slug <slug> --prompt <observe|verify> --op 'GET /api/users' --op 'POST /api/orders {"sku": "A1"}' --count 30 --wait-for traces --out <scratch>/<slug>
The whole surface: the base URL (positional; 127.0.0.1, never
localhost — refused; the mission's or the Machine: line's when it
carries one), --run-slug, --prompt, --op 'METHOD PATH [COUNT] [BODY]' (repeatable; the count overrides --count for that operation,
the body goes out as application/json), --ops <file> (one per line),
--count (default 30), --warmup (default 5, discarded),
--concurrency (default 1), --prefix (default 0ddc0ffe), -H 'Name: value' (repeatable; a credential-named header's value is never
recorded), --timeout (per request, default 60 s), --wait-for traces|metrics|none (default traces), --scenario <name> (default the
slug), --out <dir>, --detach, --status <dir> [--wait <duration>],
--dry-run (the plan and the command, nothing sent), --json (the
record as one object) — nothing else, so --help has nothing to add and
the file nothing to read. It prints step 4's record, three lines of
which are <yours: ...> placeholders to fill, and writes
drive-record.json and requests.jsonl under --out — the directory
this run alone owns, <scratch>/<slug>/ unless the caller named one: a
sibling's file overwriting yours is silent.
A scenario longer than a tool call is the same invocation with
--detach (returns at once), then --status <dir> --wait <the length plus a margin> — exit 3 when the bound passes with the drive still
going, run it again. Never a poller or a helper around it, never a turn
ended to wait: as a subagent, ending the turn ends the mission.
references/long-scenarios.md.The record is what the script printed — the deliverable, quoted in the
report and re-run from its Commands: line after a fix:
Scenario: <name>
Base URL: http://127.0.0.1:<port>
Listeners: none # or: :8000 served by 41234 uvicorn (127.0.0.1) and 51022 com.docker (*)
Backend: <yours: odd_stack_reset, env: {...} - or "no reset - separated by the slug and the window">
Instance: <yours: read from the run's own rows after the wait>
Identity: User-Agent "odd-<prompt>/<slug>" (+ "-warmup" on the warmup); traceparent "00-<prefix><run8><seq:016x>-<seq:016x>-01", run8 = sha256(<slug>)[:8] = <hex>, trace ids start <prefix><run8>; one sequence run-wide from 1
Warmup: 5 requests per operation (discarded; seq 1-10)
Load: 30 requests per operation, sequential (seq 11-70)
Started (UTC): 2026-08-17T10:04:12Z
Ended (UTC): 2026-08-17T10:05:03Z
Query points: 1 (after Ended; after the 60 s flush wait for traces)
Commands:
python3 <skills>/run-scenario/scripts/drive_scenario.py http://127.0.0.1:<port> --run-slug <slug> ... # as printed
Requests:
GET http://127.0.0.1:<port>/api/users x30 (seq 11-40) -> 200:30
POST http://127.0.0.1:<port>/api/orders {"sku": "A1"} x30 (seq 41-70) -> 201:28, error:2
Not reproducible: <yours: auth token / seeded data / time-dependent input, or "none">
Started/Ended are the observation window of every query.Backend: carries how the stack was (re)started including any
env: a bare odd_stack_reset reapplies the env persisted in
stack_config.local; only the credential-named variables the reset
result lists under env_not_persisted must be passed again. A reset
the mission requires (references/run-identity.md) is a Commands:
line of its own, with its env and its reason.Query points: is the one point the script pays for; a mission that
must read the store at several points (one store per reset in a
lifecycle test) runs the script once per point and lists them here,
each with its reason.references/benchmark-replay.md's.--wait-for is sized by the slowest signal the point reads: ~60 s
for traces to become searchable on the local stack (a trace fetch by
id may work before search does — cross-check a suspicious search
result against a fetch), ~10 s for metrics.--status --wait; a background notifier fires after a subagent's turn has ended.observe-run's to size (its documented
ingest latency, or a bounded proof query): --wait-for none, then that.The record above (or references/benchmark-replay.md's for a stored
benchmark), ready to paste into an observation report — the run record,
and the replay instruction in the measurement protocol — and ready to
re-run unchanged after a fix.
gen_ai.*
spans under it, or when the service's own contract names a model;
an operation you cannot rule either way is left out too, named in
the record as unruled — a stop-and-report, never a question the
drive waits on.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub using-system/oddyssey --plugin oddyssey9 skills in this plugin
/backend-configurationOwn the configured observability backend, in two sections invoked by name. Check: display the configured stack and the instance the runs will hit, prove the CLI connected, guide the user when it is not, and hand the preflight over to the mission. Switch: verify the target backend's CLI is installed (offer a guided install when missing), persist the switch via odd_config_set, persist the per-stack stack_config values the missions will need, then run Check for the proof. Stack-agnostic - the stack list and everything about a given stack come from the observability-cli-guides skill. Use before dispatching an observe, verify or bench mission, when the configured stack must be confirmed or the CLI's connection proven, when the user needs guidance to set their CLI up, and when the user asks to change the configured backend or to persist targeting values. Never installs silently, never authenticates on the user's behalf, never stores or echoes a secret./get-statusRender the state of the ODD loop from the repository's committed .odd/ history and git alone - one screen by default (the loop state per lineage with its burn-down and next action), the full tables on request (per-service loop state, findings ledger, trends, open telemetry gaps) - read-only, no backend queries, no report written. Use when answering where the loop is, when /odd-status runs, or when a status must be computed offline from the clone./k6-guidesCurated map of the official k6 load-testing docs - installation, running a script, scripting (checks/thresholds/scenarios), test types, protocols, and which questions a benchmark's inputs require before it can be authored. Use when authoring or reasoning about a k6 benchmark - pick the topic, open its reference file, and follow the linked official docs. Read by /odd-instrument-bench (which questions to ask), k6-benchmark-expert (authoring and validating), a stored benchmark's replay (running one), and the /odd-instrument-bench, /odd-observe, and /odd-verify preflights (ensuring k6 is present)./observability-cli-guidesThe package's knowledge of every observability stack it supports, one reference file per stack - the terminal query surface (how to authenticate and query metrics, traces, logs, and profiles from the CLI), how the stack's configuration is displayed and proven, and what its stack_config persists - plus the list of built-in stacks. Use when observing a run, local or remote, and when backend-configuration's Check or Switch need anything about a stack - Grafana (gcx), Datadog (Pup CLI), Dynatrace (dtctl and DQL), Azure Monitor (az), AWS CloudWatch and X-Ray (aws), and the local stack./odd-memoryThe .odd/ memory - its contract and one reference per kind. The contract states what every kind shares (where the memory lives, the frontmatter and the whole body, append-only reports versus living-source benchmarks, recall by frontmatter then by section, the no-secrets rule, the work branch and the lone commit, the reply that carries a synthesis and never the artifact); each reference says how to persist, recall and show its kind - observation reports, instrumentation reports, benchmarks, the maintainer-ruling ledgers (finding decisions, tree-entry classifications), custom stacks. Read when a report, a benchmark, a custom stack or a decision is persisted, recalled, shown or inventoried, or when a finding is declined (wontfix) or such a decision reversed, or a tree entry is ruled runtime or non-runtime; never invoked on its own./otel-guidesCurated map of the official OpenTelemetry documentation by language. Use when planning or implementing OpenTelemetry instrumentation for a codebase - pick the language, open its reference file, and follow the linked official docs for traces, metrics, logs, instrumentation libraries, exporters, and SDK configuration. Covers C++, .NET, Erlang/Elixir, Go, Java, JavaScript, Kotlin, PHP, Python, Ruby, Rust, Swift, and other community SDKs, plus the cross-language references for SDK configuration, semantic conventions, generative AI (the gen_ai conventions and the instrumentation library per LLM SDK or agent framework), the Collector, and profiling.Other plugins' skills for the same job