Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

workshop-dry-run

БесплатноЗапускает вложенные скриптыНе проверен

Run through a workshop as a participant: follow every page in menu order, copy and run each command, compare with the Expected result, time each step, track…

tsaolот tsaol★ 69 звёзд на GitHub

Об этом скилле

Workshop dry run: test a workshop the way a participant uses it

workshop-review reads the files. This skill does the workshop: it opens the pages in menu order, types each command into one terminal, waits like a participant, opens the pages the workshop says to open, and writes down every place where a real participant would get stuck.

Usage

/workshop-dry-run <repo-or-preview-url> [--locale zh|en] [--chapters 05-setup,10-first-evolution] \
                  [--target local|ssm:<instance-id>] [--budget $N]
  • <repo-or-preview-url>: a workshop repo (or a git ref of it), or a preview URL. If only a URL is given, ask for the repo too: commands are read from the markdown, the URL is only for screenshots.
  • --locale (default en), --chapters (default all), --target (default local), --budget (default $10).
  • Extra flags the user may give: --allow-destructive, --optional free|all|none, --commit <sha>.

Scripts (in this folder, S=~/.claude/skills/workshop-dry-run):

  • walk.py: content folder → plan.json (pages in menu order, steps, code blocks with a kind each).
  • run_steps.py: runs the plan in one persistent participant shell; writes run.json and the outputs.
  • shots.js: Playwright screenshots of the preview pages and of viewer pages (with tab clicks).
  • report.py: plan + run + your judgments.json → report.md + report.json.

Rules

  • Never edit the workshop repo. Other people may be editing it. Test a fixed commit from a copy: git -C <repo> archive <sha> | tar -x -C <tmp>/ws. Write everything under ~/tmp/<name>/dryrun/.
  • Fresh participant environment. Never reuse the user's own lab folders. Build a new one by following the workshop's own setup (bootstrap/UserData script, setup page) under a temp HOME, for example <tmp>/home/rsi plus <tmp>/home/env.sh with the variables the lab instance would have in /etc/profile.d. Write that build as a small script next to the output so it can be rerun.
  • Budget. Pass --budget. The runner stops before a Bedrock step whose page cost alert would go over the budget. Pricing defaults are Claude Opus 5.5 ($4 in / $20 out per 1M tokens); pass --price-in/--price-out for other models.
  • Destructive blocks (delete-stack, s3 rm, rm -rf on paths outside the lab folder, ...) never run unless the user said --allow-destructive.
  • No secrets in output. The runner masks account ids, ARNs, instance ids, IPs, hostnames, model ids (shown as <model-id:matches-env> when it equals $BEDROCK_MODEL_ID) and secret-looking values. Don't quote unmasked values in the report either.
  • Preview servers listen on 127.0.0.1 only. If the box already uses a port the workshop needs (for example 8080), use --port-map 8080=18080 and say so in the report. That is a harness change, not a workshop finding.

Steps

1. Prepare

W=~/tmp/<name>/dryrun; mkdir -p $W/out
git -C <repo> archive <sha> | tar -x -C $W/ws          # fixed copy
# preview server from the copy (only if the repo has one; the RSI workshop: scripts/setup.sh, then uvicorn on 127.0.0.1)
# participant env: follow the workshop's bootstrap, e.g. $W/bootstrap-local.sh <ws> <home> <region> <model>

2. Plan

python3 $S/walk.py $W/ws --locale zh --chapters <list> --out $W/out/plan.json

Read the printed summary and open plan.json. Each block has a kind:

  • instance: run in the participant shell.
  • repo: run in the repo copy (laptop side, e.g. a package script).
  • server: started in the background. The runner waits for the port, takes a screenshot, and stops it when another server needs the same port or at the end.
  • browser: the page says "open http://127.0.0.1:N": screenshot it.
  • port-forward / open-shell: laptop-side Session Manager commands. On local the equivalent is used (the port is already local; a fresh login shell). On ssm: start the port forward yourself in the background (the real laptop step), then screenshot the local port.
  • session: only sudo su - ec2-user. The runner already is the participant user, so the line is dropped.
  • laptop-aws: AWS CLI on the stack or bucket (create-stack, s3 cp, describe-stacks). This is MANUAL unless the user wants real infra.
  • destructive, display: see the rules above. display blocks are code excerpts, not commands.

Check the plan by hand before running it. Prose-only actions have no code block, so you add them yourself, marked "added_by_tester": true. Examples: "press Ctrl+C and start the visualizer again with the step-2 command", or tab clicks ("clicks": "Branching,Performance,List" on a browser block). Keep these edits in a small script next to the output so the run can be repeated. Also check which mutually exclusive paths the workshop offers (for example event mode vs self-paced) and which one the target can really do.

3. Screenshot the pages

node $S/shots.js --plan $W/out/plan.json -
Полный SKILL.md на GitHub

Установить workshop-dry-run в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

report.pyrun_steps.pyshots.jswalk.py

FAQ

Что делает скилл workshop-dry-run?

Run through a workshop as a participant: follow every page in menu order, copy and run each command, compare with the Expected result, time each step, track cost, note confusing wording, and write a pass/fail report. Use for an AWS Workshop Studio workshop (content/<chapter>/<sub>/index.<lang>.md) before an event or after content changes, when the user asks to really test / walk through / 实际测试 / 用用户的方式跑一遍 a workshop. It EXECUTES the steps; for a static audit of files, structure and bilingual parity use workshop-review instead.

Как установить скилл workshop-dry-run?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл workshop-dry-run запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить workshop-dry-run с