executable-stories-showcase-cli
v0.3.1
Published
executable-stories-showcase CLI: init, guide, doctor, validate, list, shoot, affected, coverage, publish, record, mcp, suggest and promote scenarios.
Readme
executable-stories-showcase-cli
npx executable-stories-showcase init src/scenarios # scaffold, install agent skills, register the MCP server
npx executable-stories-showcase doctor scenarios --base-url http://localhost:5173
npx executable-stories-showcase guide [topic]
npx executable-stories-showcase mcp scenarios --base-url http://localhost:5173
npx executable-stories-showcase validate scenarios --rules rules.ts
npx executable-stories-showcase list scenarios --base-url http://localhost:5173 --json
npx executable-stories-showcase shoot scenarios --base-url http://localhost:5173 --out shots
npx executable-stories-showcase shoot scenarios --base-url http://localhost:5173 --no-panel --viewport 1440x900 --scale 2 --color-scheme dark --locale de-DE --timezone Europe/Berlin
npx executable-stories-showcase affected scenarios --base main --src src
npx executable-stories-showcase shoot scenarios --base-url http://localhost:5173 --only a,b --out shots/after --compare shots/before
npx executable-stories-showcase coverage scenarios
npx executable-stories-showcase publish shots/after/*.diff.png --folder pr-42
npx executable-stories-showcase record scenarios --base-url http://localhost:5173 --steps steps.ts --format mp4
npx executable-stories-showcase record scenarios --base-url http://localhost:5173 --steps steps.ts --format gif --width 900 --fps 10 --hold 1500
npx executable-stories-showcase suggest scenarios --src src --schema scenario.schema.jsonshootopens every scenario in Chromium, waits until it's ready, and saves a screenshot. It fails on unmocked requests, uncaught exceptions andconsole.errorcalls, and writes<out>/<name>.mdfor each failure with the fix. It needs@playwright/test.doctorchecks the wiring one step at a time and prints each fix.mcplets a coding agent open, drive and save scenarios.guideprints the shipped agent skill.- Exit codes:
1a scenario failed,2bad arguments or scenarios,3something needed is missing or down. Errors print a stable code, e.g.[DEV_SERVER_DOWN]. affectedlists the scenarios a branch can affect, and why.shoot --compare <dir>writes a before/after/changed image for each state that differs from an earlier run.coveragecounts the scenario map's states by status.publishpushes files to ascenario-shotsbranch and prints Markdown image links for a PR.recordopens each scenario named in--steps, runs its steps with a visible cursor, and saves an MP4, GIF or WebM, optionally cropped to--elementor to a per-scenario{ element, steps }in the steps module.--widthand--fpsset the size and frame rate, and--holdkeeps the last frame up before a GIF loops.--cursor dotor--cursor pointer.svgswaps the default arrow, and--cursor-colorrecolors it. Each video gets a<name>.video.jsonwith its size, length, description and clicks, whichexecutable-stories-remotionuses to caption it and zoom to the clicks. Video records at--viewportsize;--scaleapplies to screenshots. MP4, GIF, cropping,--widthand--fpsneed ffmpeg.suggestasks Claude, or another model behindANTHROPIC_BASE_URLvia--model, which UI states lack scenarios, and drafts them for review.
