← ClaudeAtlas

publish-demolisted

Publish a finished /human-review page as a demo snapshot — copy it into the human-review repo's demo/, render its landing-page card from the page itself, commit and push, which is what makes the Pages copy, the rolling zip and the ghcr image. Explicit invocation only — user types /publish-demo.
victorrentea/human-review · ★ 46 · Code & Development · score 83
Install: claude install-skill victorrentea/human-review
# /publish-demo Run this one command, and nothing else: ```sh for c in "${CLAUDE_PLUGIN_ROOT:-/nonexistent}/skills/human-review" "${HUMAN_REVIEW_HOME:-/nonexistent}" \ "$(readlink -f .claude/skills/human-review 2>/dev/null)" ".claude/skills/human-review" \ "$HOME/workspace/human-review/skills/human-review"; do [ -x "$c/scripts/publish-demo.sh" ] && { "$c/scripts/publish-demo.sh" --push $ARGS; break; } done ``` `$ARGS` is empty unless the user named something: - a slug — pass it as the first positional argument; - a source directory other than `.human-review` — pass `--src DIR`; - "don't push yet" / "let me look first" — drop `--push` and pass `--card` instead; - "make this the featured demo" / "put this one in the README" — add `--feature`; - "skip the screenshots" — add `--no-tour`; - several snapshots, "both demos" — pass `slug=DIR` per snapshot instead of a slug and `--src`, and keep `--push`: one commit and one push, so the three workflows fire once. The script derives the slug from the project directory, copies the snapshot, leaves behind the run's own dot-prefixed bookkeeping and `*.raw.webm`, refuses any file over 50 MB, rewrites that snapshot's card in `demo/index.html` from `review.html` and `content.json`, then commits and pushes. When the slug is the featured one (`demo`), it also screenshots every tab headlessly and rewrites the README's tour, the pages under `docs/tabs/` and the top of the Pages landing page around the new pictures, in