# Preview My Work

Boot, reopen, update, or reset OpenWork PR previews.

- Repository: https://github.com/different-ai/openwork (24362 stars)
- Category: Testing
- License: see repository
- Last updated: 2026-11-01
- Runs scripts: yes, review before use

## Install

Claude Code: `npx skills add different-ai/openwork --skill preview-my-work -g -a claude-code -y`
Codex: `npx skills add different-ai/openwork --skill preview-my-work -g -a codex -y`
Cursor: `npx skills add different-ai/openwork --skill preview-my-work -g -a cursor -y`
Gemini CLI: `npx skills add different-ai/openwork --skill preview-my-work -g -a gemini-cli -y`

## Description

Boot, reopen, update, or reset OpenWork PR previews. Discover script worlds; choose preview-desktop (app only), preview-den (Den only), preview-full (Den plus desktop), or preview-app-web locally, on a private Daytona URL, or on Freestyle for hands-on testing.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Preview my work

Use the repository's world lifecycle. These are disposable test environments,
not production or a user's installed desktop profile. Do not touch another
world or an existing test sandbox. Run from the requested worktree.

## Agent quick path

Three calls take you from intent to a running preview; each prints what the
next one needs.

1. `pnpm world help <world> --json`: each target's seeds and sources, what an
   omitted `--source` means, the login or key each placement needs with its
   fix, and ready-to-run commands by intent. Remote desktop and Den previews
   default to the current `origin/dev` commit (the source the alpha channel is
   built from), so "the latest alpha" needs no `--source` there; the per-target
   `defaultSource` shows where a source is required instead. `pnpm world help
   --json` lists every world with a one-line summary.
2. `pnpm world plan <world> --place <place> --stage <stage>`: checks those
   requirements without creating anything and exits 1 with the fix while one is
   unmet. `pnpm world outputs <world> --stage <stage> --json` answers
   `{"exists": false}` when there is nothing to reopen.
3. `pnpm world up ...` from an example. It checks the requirements again before
   any side effect and prints the exact command to rerun.

A refused `--seed` names the worlds and placements that offer it.

### Credentials, scoped to one command

Load keys only inside a command substitution on the one command that needs
them, from the repo root; never print a value.

The rest: https://github.com/different-ai/openwork/blob/HEAD/.opencode/skills/preview-my-work/SKILL.md
