diff --git a/skills/web-shot/SKILL.md b/skills/web-shot/SKILL.md index d4184ce..cb4e68f 100644 --- a/skills/web-shot/SKILL.md +++ b/skills/web-shot/SKILL.md @@ -22,18 +22,28 @@ Screenshot a locally-running web UI without installing a browser on the agent's ## Usage +`shot.sh` ships beside this SKILL.md, so resolve it from wherever the harness +installed the skill rather than from a checkout path — an absolute `~/dev/...` +went stale the first time the repo moved and cost a caller three hand-rolled +Job attempts before they found the working script (#26). + ```bash +# Claude Code installs the plugin; Crush/Pi/OpenCode get ~/.agents/skills. +SHOT=$(ls ~/.claude/plugins/marketplaces/*/skills/web-shot/shot.sh \ + ~/.agents/skills/web-shot/shot.sh 2>/dev/null | head -1 || true) +[ -n "$SHOT" ] || { echo "web-shot not installed on this host: run install.sh or the plugin install" >&2; exit 1; } + # auto-detect Tailscale hostname, screenshot port 8099 root -~/dev/.skills/web-shot/shot.sh --port 8099 +"$SHOT" --port 8099 # explicit URL -~/dev/.skills/web-shot/shot.sh --url http://flamingo:5173 +"$SHOT" --url http://flamingo:5173 # capture a search state too (types into input[name=q]) -~/dev/.skills/web-shot/shot.sh --port 8181 --search agentsquad +"$SHOT" --port 8181 --search agentsquad # different output dir -~/dev/.skills/web-shot/shot.sh --port 3000 --out /tmp/shots +"$SHOT" --port 3000 --out /tmp/shots ``` ## Flags