[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AX7MDSBZC8GXRXR0893WQT":3,"skill-same:01M7AX7MDSBZC8GXRXR0893WQT":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":29,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7AX7MDSBZC8GXRXR0893WQT","journey-author",null,"Writing, changing or debugging a product journey (journeys\u002F) — use whenever you are adding a scenario for a user-facing flow, a journey fails or flakes, a selector stopped matching after a TUI change, you need to decide whether something is a new scene or a new file, or you are about to assert on UZE's own output instead of on the machine. Covers the chapter spine, the scene\u002Ffile split rule, the gesture and check vocabularies, the probe loop, reading evidence\u002Fverdict.json, and the four world constraints a naive runner gets wrong.","uze-sh\u002Fuze","uze-sh","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F334211959?v=4","01M7AX5KNT81AC56YMRT586MBW","uze","01M7AX5KPDQA2QP7DWGZFMH4PQ",4,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fuze-sh\u002Fuze\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fjourney-author\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: journey-author\ndescription: Writing, changing or debugging a product journey (journeys\u002F) — use whenever you are adding a scenario for a user-facing flow, a journey fails or flakes, a selector stopped matching after a TUI change, you need to decide whether something is a new scene or a new file, or you are about to assert on UZE's own output instead of on the machine. Covers the chapter spine, the scene\u002Ffile split rule, the gesture and check vocabularies, the probe loop, reading evidence\u002Fverdict.json, and the four world constraints a naive runner gets wrong.\n---\n\n# Writing a product journey\n\nA journey performs a user's flow — through the real CLI, the real TUI, or\nboth — in a disposable world, then checks **the machine it left behind**.\n`tests\u002F` proves the domain deterministically against fake harnesses;\n`conformance\u002F` proves what a vendor harness does; a journey proves what UZE\ndoes, including the parts of `src\u002Fui\u002F` no Rust test can click.\n\nRead `journeys\u002FREADME.md` for the full vocabulary. This is what to do, in\nwhat order, and what goes wrong.\n\n## The two rules everything else serves\n\n**Never validate UZE with UZE.** Every `then` check reads the filesystem,\nGit, the recorded task state, or the process table. UZE's own report is the\n*subject* — a `cmd` step whose output you assert *against* those checks —\nnever the source of truth for another check. This is the whole reason the\ntier exists: it is the only place that catches \"exited zero, reported the\nartifact, wrote nothing\".\n\n**Screen text is a gate, never an assertion.** `expect` proves a gesture\nlanded, so the next one acts on the state you think it does. If you find\nyourself asserting on what the screen says, the claim belongs in\n`src\u002Fui\u002F`'s own `TestBackend` tests, where it is cheaper and more precise.\n\n## Step 1 — decide where it goes before writing it\n\nChapters are the order a person meets the product, not subsystems:\n\n```\n01-first-run  02-packages  03-context  04-workspace  05-delivery  06-recovery  07-upgrade\n```\n\nNumbers are reading order only — every journey builds its own world, so\nnothing depends on a lower number having run. A chapter appears when its\nfirst journey does.\n\n**Scene or file?** A scene continues the story; a file starts one over.\nJoined by \"and then\" → scene. Joined by \"also\" → file. Four things force a\nfile: a different world; a claim that does not depend on the story so far; a\ndifferent cadence (`gate` vs nightly); and — a property of this runner, not\nof taste — **a run stops at the first failure, so claims sharing a file share\na fate**. Two claims you want proven independently do not belong together.\n\n**Does the scene earn its place?** Delete it: a later scene must break, or\nits checks must be the only proof of its own claim. A scene that survives its\nown deletion was a step, not a claim.\n\n## Step 2 — find the selectors by hand, never by guessing\n\n```bash\nmake build\npython3 journeys\u002Fjourney.py probe journeys\u002Fsuites\u002F\u003Cchapter>\u002F\u003Cfile>.yml\ntmux capture-pane -t journey-\u003Cpid> -p | cat -n\n```\n\nAim at what is stable. In order of preference:\n\n- a **landmark plus an offset** — `click: \" new agent \"`, `in: pane`,\n  `row_offset: 2` clicks the second row of a popup by its title, which\n  survives whatever the pane behind it happens to say;\n- a **glyph set** — `glyph: \"●○\"`, `in: sidebar`, `occurrence: last`;\n- a **band** — `in: strip` \u002F `sidebar` \u002F `pane` keeps a sidebar entry apart\n  from a pane that says the same words.\n\nAvoid aiming at a count of a repeated character (`occurrence: 2` on `✦`)\nwhen the count changes with the number of agents. The tab strip's new-agent\nbutton is `click: \"│\"`, `in: strip`, `occurrence: 2`, `offset: 2` — anchored\non the separator, stable at any agent count.\n\n**Every gesture states its `expect`.** `journey validate` fails a click that\ndoes not, because an untimed gesture is where a suite like this dies. Never\nuse `pause` as synchronization: it is settling time after a gate, nothing\nmore. Wait on a condition with `wait: screen|file|shell` + `until:`.\n\n## Step 3 — assert the machine, in product terms\n\n`dir`, `file`, `launcher`, `tree`, `json`, `git`, `tasks`, `agents`,\n`process`, `cmd`, `capture`. Write the\n`about:` as the outcome (\"the slot survives its agent — a checkout is reused,\nnot destroyed\"), never the mechanism.\n\nCarry state between scenes with `capture` — that is how \"the slot survived\nits agent\" is expressible at all:\n\n```yaml\n- capture: { name: slots, dirs: \"{project}\u002F.worktrees\u002F*\" }\n# ... later scene ...\n- dir: \"{project}\u002F.worktrees\u002F*\"\n  same_as: slots\n```\n\nWhere UZE writes what a check reads: agents in\n`$UZE_HOME\u002Fstate\u002Fprojects\u002F\u003Cproject id>\u002Fagents.json` (`id`, `harness`,\n`state`, and for an isolated one an `isolation` carrying `checkout` and\n`branch`); checkouts in `\u003Cproject>\u002F.worktrees\u002F\u003Cslot id>` on branch\n`agent\u002F\u003Ctask id>`; terminal state under `$UZE_HOME\u002Fstate\u002Fterminal`.\n\n## Step 4 — when it fails, read the evidence before touching anything\n\n`journeys\u002F.evidence\u002F\u003Cjourney>-\u003Cstamp>\u002F` holds `verdict.json` (per check: the\n`asked` against the `read` and whether it `held`), `run.log`, the frame each\nscene ended on, the world's tree, and the processes it was holding.\n\n- **`screen-N.txt` is empty** → the app exited. The pane outlives it on\n  purpose, so the frame carries `[journey] the app exited with \u003Cstatus>` and\n  the error above it.\n- **\"target is not on screen\"** → the frame is in the evidence; look at it\n  before changing the selector. A TUI change may have moved a landmark, which\n  is the journey doing its job.\n- **A check failed** → `verdict.json` has both sides. If `read` is right and\n  `asked` is wrong, the journey encoded an assumption the product never made\n  (an empty task store *is* written on open, for instance).\n- **It passed and then failed with no code change** → do not re-run it green.\n  Find the cause: a flake here is usually the runner racing itself, and the\n  two found so far were a teardown that did not wait, and a test identifying\n  a child by a command line anyone could share.\n\n## The world constraints, each of which was learned the hard way\n\n- **Outside `.worktrees\u002F`.** `isolated_checkout` is lexical, so a world under\n  a checkout of this repo makes the app open a space rooted at *this repo*\n  instead of at the fixture. Worlds live in `\u002Ftmp\u002Fuze-journeys`.\n- **Built, never inherited.** The app launches under `env -i`. One inherited\n  `UZE_PANE` makes it believe it is nested inside a pane of the developer's\n  own workspace and refuse to open a client.\n- **Teardown waits.** The endpoint is named after the world's `UZE_HOME`, so\n  a terminal server still shutting down when the next run starts is a live\n  socket the next client connects to and then watches die — which looks like\n  \"a tab was created and its pane never painted\".\n- **One run per world.** Two runs of the same journey at once share a HOME,\n  a terminal server and a task store, and each tears the other down\n  mid-scene — a `wait` that never happens, a pane that says `Terminated`, a\n  recorded store the other run wrote. The runner makes the second wait; a\n  flake that only shows up when two suites run side by side is this.\n\n## Before you finish\n\n```bash\npython3 journeys\u002Fjourney.py validate journeys\u002Fsuites\npython3 journeys\u002Fjourney.py run journeys\u002Fsuites --tag gate\nmake journey-docker          # the same run in a container, kept away from your own tmux and HOME (CI runs natively)\nruff format journeys\u002F && ruff check journeys\u002F\n```\n\nRun it at least twice. One green proves it can pass; two proves it does not\ndepend on the machine being idle.\n","# Writing a product journey\n\nA journey performs a user's flow — through the real CLI, the real TUI, or\nboth — in a disposable world, then checks **the machine it left behind**.\n`tests\u002F` proves the domain deterministically against fake harnesses;\n`conformance\u002F` proves what a vendor harness does; a journey proves what UZE\ndoes, including the parts of `src\u002Fui\u002F` no Rust test can click.\n\nRead `journeys\u002FREADME.md` for the full vocabulary. This is what to do, in\nwhat order, and what goes wrong.\n\n## The two rules everything else serves\n\n**Never validate UZE with UZE.** Every `then` check reads the filesystem,\nGit, the recorded task state, or the process table. UZE's own report is the\n*subject* — a `cmd` step whose output you assert *against* those checks —\nnever the source of truth for another check. This is the whole reason the\ntier exists: it is the only place that catches \"exited zero, reported the\nartifact, wrote nothing\".\n\n**Screen text is a gate, never an assertion.** `expect` proves a gesture\nlanded, so the next one acts on the state you think it does. If you find\nyourself asserting on what the screen says, the claim belongs in\n`src\u002Fui\u002F`'s own `TestBackend` tests, where it is cheaper and more precise.\n\n## Step 1 — decide where it goes before writing it\n\nChapters are the order a person meets the product, not subsystems:\n\n```\n01-first-run  02-packages  03-context  04-workspace  05-delivery  06-recovery  07-upgrade\n```\n\nNumbers are reading order only — every journey builds its own world, so\nnothing depends on a lower number having run. A chapter appears when its\nfirst journey does.\n\n**Scene or file?** A scene continues the story; a file starts one over.\nJoined by \"and then\" → scene. Joined by \"also\" → file. Four things force a\nfile: a different world; a claim that does not depend on the story so far; a\ndifferent cadence (`gate` vs nightly); and — a property of this runner, not\nof taste — **a run stops at the first failure, so claims sharing a file share\na fate**. Two claims you want proven independently do not belong together.\n\n**Does the scene earn its place?** Delete it: a later scene must break, or\nits checks must be the only proof of its own claim. A scene that survives its\nown deletion was a step, not a claim.\n\n## Step 2 — find the selectors by hand, never by guessing\n\n```bash\nmake build\npython3 journeys\u002Fjourney.py probe journeys\u002Fsuites\u002F\u003Cchapter>\u002F\u003Cfile>.yml\ntmux capture-pane -t journey-\u003Cpid> -p | cat -n\n```\n\nAim at what is stable. In order of preference:\n\n- a **landmark plus an offset** — `click: \" new agent \"`, `in: pane`,\n  `row_offset: 2` clicks the second row of a popup by its title, which\n  survives whatever the pane behind it happens to say;\n- a **glyph set** — `glyph: \"●○\"`, `in: sidebar`, `occurrence: last`;\n- a **band** — `in: strip` \u002F `sidebar` \u002F `pane` keeps a sidebar entry apart\n  from a pane that says the same words.\n\nAvoid aiming at a count of a repeated character (`occurrence: 2` on `✦`)\nwhen the count changes with the number of agents. The tab strip's new-agent\nbutton is `click: \"│\"`, `in: strip`, `occurrence: 2`, `offset: 2` — anchored\non the separator, stable at any agent count.\n\n**Every gesture states its `expect`.** `journey validate` fails a click that\ndoes not, because an untimed gesture is where a suite like this dies. Never\nuse `pause` as synchronization: it is settling time after a gate, nothing\nmore. Wait on a condition with `wait: screen|file|shell` + `until:`.\n\n## Step 3 — assert the machine, in product terms\n\n`dir`, `file`, `launcher`, `tree`, `json`, `git`, `tasks`, `agents`,\n`process`, `cmd`, `capture`. Write the\n`about:` as the outcome (\"the slot survives its agent — a checkout is reused,\nnot destroyed\"), never the mechanism.\n\nCarry state between scenes with `capture` — that is how \"the slot survived\nits agent\" is expressible at all:\n\n```yaml\n- capture: { name: slots, dirs: \"{project}\u002F.worktrees\u002F*\" }\n# ... later scene ...\n- dir: \"{project}\u002F.worktrees\u002F*\"\n  same_as: slots\n```\n\nWhere UZE writes what a check reads: agents in\n`$UZE_HOME\u002Fstate\u002Fprojects\u002F\u003Cproject id>\u002Fagents.json` (`id`, `harness`,\n`state`, and for an isolated one an `isolation` carrying `checkout` and\n`branch`); checkouts in `\u003Cproject>\u002F.worktrees\u002F\u003Cslot id>` on branch\n`agent\u002F\u003Ctask id>`; terminal state under `$UZE_HOME\u002Fstate\u002Fterminal`.\n\n## Step 4 — when it fails, read the evidence before touching anything\n\n`journeys\u002F.evidence\u002F\u003Cjourney>-\u003Cstamp>\u002F` holds `verdict.json` (per check: the\n`asked` against the `read` and whether it `held`), `run.log`, the frame each\nscene ended on, the world's tree, and the processes it was holding.\n\n- **`screen-N.txt` is empty** → the app exited. The pane outlives it on\n  purpose, so the frame carries `[journey] the app exited with \u003Cstatus>` and\n  the error above it.\n- **\"target is not on screen\"** → the frame is in the evidence; look at it\n  before changing the selector. A TUI change may have moved a landmark, which\n  is the journey doing its job.\n- **A check failed** → `verdict.json` has both sides. If `read` is right and\n  `asked` is wrong, the journey encoded an assumption the product never made\n  (an empty task store *is* written on open, for instance).\n- **It passed and then failed with no code change** → do not re-run it green.\n  Find the cause: a flake here is usually the runner racing itself, and the\n  two found so far were a teardown that did not wait, and a test identifying\n  a child by a command line anyone could share.\n\n## The world constraints, each of which was learned the hard way\n\n- **Outside `.worktrees\u002F`.** `isolated_checkout` is lexical, so a world under\n  a checkout of this repo makes the app open a space rooted at *this repo*\n  instead of at the fixture. Worlds live in `\u002Ftmp\u002Fuze-journeys`.\n- **Built, never inherited.** The app launches under `env -i`. One inherited\n  `UZE_PANE` makes it believe it is nested inside a pane of the developer's\n  own workspace and refuse to open a client.\n- **Teardown waits.** The endpoint is named after the world's `UZE_HOME`, so\n  a terminal server still shutting down when the next run starts is a live\n  socket the next client connects to and then watches die — which looks like\n  \"a tab was created and its pane never painted\".\n- **One run per world.** Two runs of the same journey at once share a HOME,\n  a terminal server and a task store, and each tears the other down\n  mid-scene — a `wait` that never happens, a pane that says `Terminated`, a\n  recorded store the other run wrote. The runner makes the second wait; a\n  flake that only shows up when two suites run side by side is this.\n\n## Before you finish\n\n```bash\npython3 journeys\u002Fjourney.py validate journeys\u002Fsuites\npython3 journeys\u002Fjourney.py run journeys\u002Fsuites --tag gate\nmake journey-docker          # the same run in a container, kept away from your own tmux and HOME (CI runs natively)\nruff format journeys\u002F && ruff check journeys\u002F\n```\n\nRun it at least twice. One green proves it can pass; two proves it does not\ndepend on the machine being idle.\n",{"name":5,"description":7},"main","e2cfbb55eec2aa007135f9a2256b73f7170a3b9e",".agents\u002Fskills\u002Fjourney-author",1,"https:\u002F\u002Fgithub.com\u002Fuze-sh\u002Fuze","https:\u002F\u002Fuze.sh","https:\u002F\u002Fgithub.com\u002Fuze-sh","🧩 Agents come and go. Your work stays.","2026-11-13 05:15:37",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add uze-sh\u002Fuze --skill journey-author",{"tool":39,"command":40},"bunx","bunx skills add uze-sh\u002Fuze --skill journey-author",{"tool":42,"command":43},"pnpm","pnpm dlx skills add uze-sh\u002Fuze --skill journey-author","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fuze-sh\u002Fuze\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fjourney-author\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7AXDFA81RA77NHGYVZRCH0E","commit","North Star fixture skill — used to prove native\u002Fgenerated delivery across harnesses.","https:\u002F\u002Fgithub.com\u002Fuze-sh\u002Fuze\u002Fblob\u002Fmain\u002Ftests\u002F_fixtures\u002Fgolden\u002Fmarketplace\u002Fplugins\u002Fflow\u002Fskills\u002Fcommit\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7AXCYQ5WMH46JRJVF57FTHA","oc-skill","opencode native","https:\u002F\u002Fgithub.com\u002Fuze-sh\u002Fuze\u002Fblob\u002Fmain\u002Ftests\u002F_fixtures\u002Fforeign\u002Fopencode\u002Fnative-plugin\u002Fskills\u002Foc-skill\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7AXCVSFQ76DR4GXGJ1Q9PBA","uze-plugin-first","Emits the deterministic UZE Plugin First conformance proof.","https:\u002F\u002Fgithub.com\u002Fuze-sh\u002Fuze\u002Fblob\u002Fmain\u002Ftests\u002F_fixtures\u002Fforeign\u002Fcodex\u002Fnative-plugin\u002Fskills\u002Fuze-plugin-first\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7AXCTD57QJ3GEN54W5PREV2","hello","says hello","https:\u002F\u002Fgithub.com\u002Fuze-sh\u002Fuze\u002Fblob\u002Fmain\u002Ftests\u002F_fixtures\u002Fforeign\u002Fclaude\u002Fnative-plugin\u002Fskills\u002Fhello\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7AXCR1HKRHJ7PP39JQS8SQ5","agy-native","antigravity native","https:\u002F\u002Fgithub.com\u002Fuze-sh\u002Fuze\u002Fblob\u002Fmain\u002Ftests\u002F_fixtures\u002Fforeign\u002Fantigravity\u002Fnative-plugin\u002Fskills\u002Fagy-native\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7AXCNTR4WXE4VT89MK4XQST","review","Review code for correctness and missing tests","https:\u002F\u002Fgithub.com\u002Fuze-sh\u002Fuze\u002Fblob\u002Fmain\u002Ftests\u002F_fixtures\u002Fcanonical\u002Fworkflow\u002Fskills\u002Freview\u002FSKILL.md",[],[]]