Skip to content
Back to skills

Uxd Prototype Publish

ASecurity

Publish a prototype to a git merge request, GitHub Pages, GitLab Pages, or Vercel. Use when sharing a finished prototype for review, deploying a sanitized public copy, or updating Jira with submission links.

  • 11 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 5, 2026
designpythongobashnoderailsdockergitapibackendci/cd

Works with

  • cursor
  • api
  • mcp

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned November 23, 2026

npx -y skills add rh-uxd/ai-helpers --skill uxd-prototype-publish --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Uxd Prototype Publish?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Uxd Prototype Publish
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rh-uxd-uxd-prototype-publish/badge)](https://www.skillsdirectory.com/skills/rh-uxd-uxd-prototype-publish)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: uxd-prototype-publish
version: 0.1.0
description: >-
  Publish a prototype to a git merge request, GitHub Pages, GitLab Pages, or
  Vercel. Use when sharing a finished prototype for review, deploying a
  sanitized public copy, or updating Jira with submission links.
---

# Publish Prototype

Shares a completed prototype: merge request for team review, or a sanitized Pages/Vercel deploy for stakeholders. Updates the source Jira ticket with the link, eval summary, and labels when Jira is available.

Family: `uxd-prototype-create` → `uxd-prototype-evaluate` → **publish**.

## Inputs

Use `artifacts/{ID}/`. Use the legacy `.artifacts/{ID}/` only if the current directory is absent. Do not mix files across roots.

| Input | Source | Required |
|-------|--------|----------|
| Prototype files | `prototype/` or workspace files | **Yes** |
| `metadata.json` | Artifact root | **Yes** |
| Changeset | `changeset.md` | Yes (workspace mode) |
| Workspace analysis | `workspace-analysis.json` | Yes (repo target, workspace mode) |
| Canonical evaluation run | Explicit `--eval-run <run-directory>`; five validated JSON files and linked receipts | Recommended; required for verified AC claims |
| Pages base URL | `--pages-base-url` or product config | Optional (repo target) |

If `{ID}` is missing or artifacts are incomplete, **stop** and list what is missing.

## Outputs

| Output | Description |
|--------|-------------|
| Published prototype | GitLab MR, GitHub Pages, GitLab Pages, or Vercel URL |
| Updated `metadata.json` | `status: submitted` plus submission target/date/url |
| Jira comment + labels | Preview/MR links and eval summary (unless `--skip-jira`) |

## Flags

$ARGUMENTS

Parse as: `<ID> [--target repo|github|gitlab|vercel|<git-url>] …`

| Flag | Values | Default | Description |
|------|--------|---------|-------------|
| `--target` | `repo`, `github`, `gitlab`, `vercel`, or a git URL | `github` | Where to publish. A git URL means open an MR/PR against that repo (implies `repo`) |
| `--target-branch` | branch name | from `workspace-analysis.json` | MR/PR base (repo target) |
| `--remote` | Git URL | workspace origin | Push remote override only — not the MR base |
| `--repo` | `owner/repo` or GitHub URL | — | GitHub repo for `github` target |
| `--pages-base-url` | URL | — | GitLab Pages base for MR preview polling |
| `--pages-timeout` | seconds | `600` | Pages poll timeout |
| `--dry-run` | flag | Off | Preview without external writes |
| `--skip-jira` | flag | Off | Skip Jira comment and labels |
| `--eval-run` | canonical run directory | — | Select the exact reviewed run; never guess the newest run |
| `--include-eval-report` | flag | Off | Workspace repo target only: render/attach selected canonical HTML after source validation; separate report/sharing approval required |
| `--force` | flag | Off | Explicitly submit with AC FAILs or without evaluation; never claim verified success or bypass invalid/stale canonical data |
| `--no-ssl-verify` | flag | Off | Skip SSL for git push (self-signed certs) |

## Conversational Guidance

If the user says "share", "publish", "deploy", "submit", or "I'm done" without a target, ask:

> Your prototype is ready to share. Where should it go?
>
> - **Create a merge request** — I'll push to the repo so your team can review and comment. You can also paste a git URL to open the MR/PR against that repo.
> - **Publish to GitHub** — I'll deploy a sanitized version to GitHub Pages with a shareable URL.
> - **Deploy to GitLab** — I'll deploy a sanitized version to GitLab Pages (self-hosted or gitlab.com).
> - **Deploy to Vercel** — I'll deploy a sanitized version to Vercel with a preview URL.

---

## Step 1: Validate the Prototype

**Workspace mode** (`workspace-analysis.json` present): workspace path accessible, `changeset.md` lists at least one file, `metadata.json` has required fields.

**Standalone mode** (`prototype/` present): `index.html` (or at least one HTML file) and `metadata.json`.

If validation fails: "Prototype `{ID}` is incomplete. Missing: [list]. Fix before publishing."

## Step 2: Check Eval Results

Select the reviewed canonical run explicitly; do not infer it from a CSV or pick
the newest directory. A complete canonical run directly under the chosen artifact root's `eval/`
is also supported. New runs live under `artifacts/{ID}/prototype-evaluations/{run}/`.
Read validated `pe-context.json`, `pe-evaluation-snapshot.json`, `pe-evidence.json`,
`pe-actions.json` and `pe-state.json` plus their linked receipts. Follow the sibling
evaluator's [execution contract](../uxd-prototype-evaluate/references/workflow/split-evaluation.md).

- Verify prototype key, frozen source/scope, completed review state and exact
  prototype revision. Stop on invalid/partial artifacts, stale results or changed
  workspace source; `--force` does not repair evidence or bypass Full's checkpoint.
- **Verified AC success:** a nonempty selected AC set is all `PASS`, with explicit
  task-linked verification evidence validated by the evaluator. Only then use
  `eval-pass`. This covers the recorded scope, not every feature or backend behavior.
- **FAIL:** label `needs-attention`; block submission unless the user explicitly
  selects `--force` after reviewing failures.
- **FLAGGED / NOT_RUN / no ACs:** show the gaps and warn; never label `eval-pass`.
  Classification is triage, including its legacy raw backend-only PASS label.
- **No canonical eval:** warn; use `uxd-evaluator` to scope a selected Quick check,
  independent walkthrough or checkpointed Full run. Evaluation is a separate
  decision, not an automatic publishing step. Preview with `--dry-run`, or obtain
  explicit `--force` approval to publish without evaluation.

`submit_to_repo.py` uses the sibling evaluator's local canonical loader (Node.js
and its declared dependencies required), checks a clean workspace at the recorded
revision, and preserves run/source/digest, route, AC IDs, exact task/persona pairs
and optional inspection scope in the MR summary. It never reads
legacy CSV or rubric summaries as current AC authority. A missing dependency blocks
selected-result validation; do not install it automatically or fall back to CSV.
Install source-affecting bar/runtime/HTML-entry changes before freezing and
evaluating the source revision. Any later source changes require a newly reviewed
evaluation; do not commit prepared report output before the source gate or ignore
dirty paths to make old evidence pass.

## Step 2a: Static Eval path for Prototype Bar

Only when report rendering and sharing were explicitly selected: pass
`--include-eval-report` to workspace repo submission. After canonical validation
and the exact-revision clean-source gate, the publisher renders the selected
canonical run, checks its canonical/HTML integrity hashes, rechecks the source,
then attaches only `public/prototype-evaluations/{ID}/index.html`. Keep the run outside the source
workspace. Do not copy an old root report or pre-copy HTML into the workspace.
`--dry-run` validates evidence/source but does not render or copy report files.

```bash
# Only after the source-affecting bar installation was committed and evaluated,
# and report/sharing plus repo submission were approved:
python3 "${CLAUDE_SKILL_DIR}/scripts/submit_to_repo.py" \
  --rfe-key {ID} --title "{title}" \
  --eval-run "<selected-canonical-run>" --include-eval-report
```

The final publication commit may add/change that derived HTML; it does not become
a newly evaluated source revision. The MR summary retains the evaluated source
commit, canonical digest and attached HTML hash. `--force` never bypasses evidence,
revision or clean-source checks. A dirty pre-copied report must be removed/reconciled
by the user before retrying, not silently excluded. Canonical JSON stays authoritative.
Without report approval, retain canonical results and disclose the absent hosted view.
Do not materialize CSV for publish gating; the evaluator no longer ships that adapter.

```
public/
  prototype-evaluations/{ID}/index.html  ← derived HTML from the explicitly selected run
  uxd-prototype-bar/         ← bar runtime
```

`submit_to_repo.py` includes the approved derived attachment and already evaluated
bar assets even if absent from `changeset.md`. Other publishing targets do not use
this automatic attachment path: prepare their derived output only after validating
the selected run/source and retain the same provenance; never weaken the source gate.

**Do not delete `public/` during sanitize** — only strip internal metadata. See [references/sensitive-files.md](references/sensitive-files.md).

## Step 2b: Audit CI/CD Configs for Secrets

Scan `.gitlab-ci.yml`, `.github/workflows/*`, `Jenkinsfile`, `.circleci/config.yml`, `Dockerfile`, `docker-compose*.yml` for hardcoded tokens, internal registries, inline keys, and secret-like `variables:` (vs `$CI_*` / `${{ secrets.* }}`).

- **`github` / `gitlab` / `vercel`:** publish scripts replace CI with clean templates. Still warn — secrets may exist elsewhere in the repo.
- **`repo`:** CI is pushed as-is. Flag hardcoded secrets; do not block the MR.

---

## Step 3: Publish to Target

### Target: repo (or a git URL)

Push and create a GitLab merge request. A git-URL `--target` normalizes to `repo` and is the MR/PR base (`upstream`). Read `target_repo_url` / `upstream_url` from `pipeline-config.yaml` or `workspace-analysis.json` when present.

**Workspace mode** — `submit_to_repo.py` (fork-aware `glab mr create`):

```bash
python3 "${CLAUDE_SKILL_DIR}/scripts/submit_to_repo.py" \
  --rfe-key {ID} --title "{title}" \
  [--eval-run "{RUN_DIRECTORY}"] [--include-eval-report] [--force] \
  [--upstream "{TARGET_REPO_URL}"] \
  [--target-branch "{TARGET_BRANCH}"] \
  [--pages-base-url {url}] [--pages-timeout 600] \
  [--jira-comment-id {id}] \
  [--no-ssl-verify] [--dry-run]
```

Requires authenticated `glab`. Details: [references/repo-submit-details.md](references/repo-submit-details.md). Git push needs `required_permissions: ["all"]` in Cursor.

Repo submission uses ordinary non-force pushes, including fork recovery. A
divergent remote branch requires human reconciliation, not automatic overwrite.
If the destination branch already exists but is not checked out, select it and
verify its source revision before submission; the publisher will not switch to
an existing branch after validating another revision.

**Standalone mode:** `git init` in the chosen artifact root's `prototype/`, commit, add remote, push.

### Targets: github, gitlab, vercel (sanitized deploys)

These three share the same flow: stage a copy, **strip sensitive files** ([references/sensitive-files.md](references/sensitive-files.md)), replace CI with a clean template, deploy.

**GitHub**

1. Confirm or create a repo: `gh repo create <repo-name> --public --description "UX Prototype — {title}"`
2. Run:

```bash
bash "${CLAUDE_SKILL_DIR}/scripts/publish-github-pages.sh" \
  --repo "<owner/repo>" \
  --source "<path-to-prototype>"
```

3. Enable Pages: `gh api repos/<owner>/<repo>/pages -X POST -f build_type=workflow`
4. URL: `https://<owner>.github.io/<repo-name>/`

**GitLab** (gitlab.com or self-hosted; same sanitization)

1. Ask for `namespace/project` or a full self-hosted URL. The script can create the project (`GITLAB_TOKEN` with `api` scope).
2. Run:

```bash
bash "${CLAUDE_SKILL_DIR}/scripts/publish-gitlab-pages.sh" \
  --project "<namespace/project>" \
  --source "<path-to-prototype>" \
  [--gitlab-url "<https://gitlab.example.com>"] \
  [--no-ssl-verify]
```

3. gitlab.com URL: `https://<namespace>.gitlab.io/<project>/`. Self-hosted: instance Pages domain (or `pages_url` from the GitLab API).

**Vercel**

1. Confirm existing project name or a fresh deploy.
2. Run:

```bash
bash "${CLAUDE_SKILL_DIR}/scripts/publish-vercel.sh" \
  --source "<path-to-prototype>" \
  [--project-name "<vercel-project-name>"]
```

3. URL: `https://<project-name>.vercel.app`

---

## Step 4: Update Jira (Optional)

If Jira is available and `--skip-jira` is not set:

1. Comment with published location, canonical AC summary (`PASS`/`FAIL`/`FLAGGED`/`NOT_RUN`), run ID, revision/scope, evidence limitations and refinement count. Never describe classification-only coverage as verified success. Prefer wiki-markup: `[Preview|https://…]`, `[Merge request|https://…]`.
2. Include `pages_url` from `submit_to_repo.py` when present (`--jira-comment-id` to update).
3. Labels: `uxd-prototype-created` plus `eval-pass` only for Step 2's verified scope, otherwise `needs-attention` when results need review.

Uses Atlassian MCP if available; otherwise skip silently.

## Step 5: Update Metadata

Set `metadata.json` in the chosen artifact root to `status: submitted` with `submission.target`, `date`, and `url`. A git-URL `--target` stores `submission.target` as `"repo"`; the MR base lives in `workspace-analysis.json` as `upstream_url`.

```bash
python3 "${CLAUDE_SKILL_DIR}/../uxd-prototype-create/scripts/frontmatter.py" set "<chosen-artifact-root>/rfe-snapshot.md" \
  status="submitted" updated_at="$(date -u +%Y-%m-%dT%H:%M:%SZ)"
```

## Step 6: Report

Print ID, target, eval FAIL count, labels, Jira status, MR/Pages URL, and warnings. `--dry-run`: show what would happen without external writes.

## Re-Publishing

Same workflow again. `github` / `gitlab` force-push; `vercel` redeploys; `repo` creates a new branch/MR.

## Guardrails

- **Do not publish an incomplete prototype.** List missing files and stop.
- **Do not publish AC FAILs** unless `--force`.
- **Strip sensitive files** on `github` / `gitlab` / `vercel` (AGENTS.md, `.env`, agent configs, credentials). See [references/sensitive-files.md](references/sensitive-files.md).
- **Keep `public/`** when sanitizing — Eval and the Prototype Bar live there.
- **Do not send data to remotes in `--dry-run`.**

## Edge Cases

| Scenario | Handling |
|----------|----------|
| No eval exists | Warn; recommend evaluate. Proceed with `--force`. |
| Eval has FAIL | Block unless `--force`. |
| Empty MR after push | `submit_to_repo.py` auto-recovers; report `verification.verified: false` if still failing. |
| No Jira key in metadata | Skip Jira; log a warning. |
| Already submitted | Proceed (new submission record). |
| `--dry-run` with selected invalid eval or missing evaluator deps | Stop validation; dry-run prevents writes, not evidence checks. |
| Large prototype (5+ MB) | Warn before push. |

## Reference Docs

| Doc | When to load |
|-----|-------------|
| [sensitive-files.md](references/sensitive-files.md) | Sanitized github/gitlab/vercel deploys |
| [repo-submit-details.md](references/repo-submit-details.md) | Fork-aware GitLab MR submit |

Files in this skill

  • README.md897 B
  • SKILL.md10.5 KB
  • eval/cases/asks-target/annotations.yaml23 B
  • eval/cases/asks-target/input.yaml292 B
  • eval/cases/blocks-ac-fail/.artifacts/DEMO/evaluation-report.csv350 B
  • eval/cases/blocks-ac-fail/.artifacts/DEMO/metadata.json124 B
  • eval/cases/blocks-ac-fail/.artifacts/DEMO/prototype/index.html264 B
  • eval/cases/blocks-ac-fail/annotations.yaml26 B
  • eval/cases/blocks-ac-fail/input.yaml392 B
  • eval/cases/dry-run-incomplete/.artifacts/INCOMPLETE/README.md66 B
  • eval/cases/dry-run-incomplete/annotations.yaml30 B
  • eval/cases/dry-run-incomplete/input.yaml315 B
  • eval/cases/sensitive-files-github/.artifacts/SANITIZE/evaluation-report.csv277 B
  • eval/cases/sensitive-files-github/.artifacts/SANITIZE/metadata.json128 B
  • eval/cases/sensitive-files-github/.artifacts/SANITIZE/prototype/AGENTS.md98 B
  • eval/cases/sensitive-files-github/.artifacts/SANITIZE/prototype/index.html264 B
  • eval/cases/sensitive-files-github/annotations.yaml33 B
  • eval/cases/sensitive-files-github/input.yaml382 B
  • eval/eval.yaml4.5 KB
  • references/repo-submit-details.md5.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in design →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.