[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DE16X80JHTPN394CCS43V4":3,"skill-same:01M7DE16X80JHTPN394CCS43V4":55},{"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":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M7DE16X80JHTPN394CCS43V4","compose-preview-ci",null,"Set up or repair GitHub Actions CI that renders Compose @Preview composables and posts before\u002Fafter diff comments on pull requests. Use when wiring preview diffs into a repo for the first time, when preview comments don't appear on fork PRs (the two-stage render\u002Fpublish split), when migrating off the legacy preview-baselines \u002F preview-comment \u002F a11y-report \u002F notification-previews actions, when a run fails with \"no modules have the compose-preview plugin applied\" (CLI\u002Fplugin version skew), or when preview CI is too slow and needs change-scoping or parallel jobs. Pairs with the compose-preview and compose-preview-review skills.","yschimke\u002Fcompose-agent-plugins","yschimke","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F231923?v=4","01M7DDZCAXN3CGX42M2Z9SERQW","Yuri Schimke","01M7DDZCBY6EH89SNKP7R68FJF",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fyschimke\u002Fcompose-agent-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fcompose-review\u002Fskills\u002Fcompose-preview-ci\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: compose-preview-ci\ndescription: Set up or repair GitHub Actions CI that renders Compose @Preview composables and posts before\u002Fafter diff comments on pull requests. Use when wiring preview diffs into a repo for the first time, when preview comments don't appear on fork PRs (the two-stage render\u002Fpublish split), when migrating off the legacy preview-baselines \u002F preview-comment \u002F a11y-report \u002F notification-previews actions, when a run fails with \"no modules have the compose-preview plugin applied\" (CLI\u002Fplugin version skew), or when preview CI is too slow and needs change-scoping or parallel jobs. Pairs with the compose-preview and compose-preview-review skills.\n---\n\n# Compose Preview — CI setup\n\nWiring the `compose-preview` CI surface into a repository: a\n`compose-preview\u002Fmain` baselines branch, sticky before\u002Fafter diff comments\non pull requests, and the choices that decide whether one workflow is\nenough or you need two.\n\nThis skill is about **standing the pipeline up and keeping it working**.\nFor *reading* the diffs it produces — reviewing a UI PR, triaging a flaky\npreview — see the [**compose-preview-review**](..\u002Fcompose-preview-review\u002FSKILL.md)\nskill. For driving the renderer by hand, see\n[**compose-preview**](..\u002Fcompose-preview\u002FSKILL.md).\n\n## Source\n\nMaintained at [github.com\u002Fyschimke\u002Fskills](https:\u002F\u002Fgithub.com\u002Fyschimke\u002Fskills)\nunder `skills\u002Fcompose-preview-ci\u002F`. The composite actions described here ship\nfrom [yschimke\u002Fcompose-ai-tools](https:\u002F\u002Fgithub.com\u002Fyschimke\u002Fcompose-ai-tools);\nthe canonical, always-current input reference is that repo's\n[`.github\u002Factions\u002Fapply\u002FREADME.md`](https:\u002F\u002Fgithub.com\u002Fyschimke\u002Fcompose-ai-tools\u002Fblob\u002Fmain\u002F.github\u002Factions\u002Fapply\u002FREADME.md).\nWhen this skill and that README disagree, the README wins — check it before\ntelling a user an input doesn't exist.\n\n## Decide the shape first\n\nEverything is one composite action, `apply`. What differs is how many jobs\nand workflows you wrap around it.\n\n| Situation | Shape | Read |\n|---|---|---|\n| PRs come from branches in the repo itself | **One job**, one workflow | [§ The single-job workflow](#the-single-job-workflow) |\n| PRs can come from **forks** (any public repo, OSS) | **Two stages**: unprivileged render + trusted publish | [references\u002Ffork-prs.md](.\u002Freferences\u002Ffork-prs.md) |\n| Renders take long enough to hurt | Split the pipelines across parallel jobs, and\u002For scope by diff | [references\u002Fcost-and-scoping.md](.\u002Freferences\u002Fcost-and-scoping.md) |\n| Repo still wired to four separate legacy actions | Migrate to `apply` | [§ Migrating from the legacy actions](#migrating-from-the-legacy-actions) |\n| Non-Gradle build (Bazel, Buck2, Amper) | `skip-render: true` + `cli-version: none` | [references\u002Fcost-and-scoping.md § Non-Gradle builds](.\u002Freferences\u002Fcost-and-scoping.md#non-gradle-builds) |\n\n**The fork question is the one to ask first**, because it is the only one\nthat changes the *file layout* rather than a few inputs — and it is the one\nthat silently produces a half-working setup if you get it wrong. A\nsingle-job workflow on a repo that takes fork PRs doesn't fail loudly; it\njust never comments on the contributions from outside, because on a\n`pull_request` event from a fork `GITHUB_TOKEN` is read-only for every\nscope regardless of the `permissions:` block.\n\nAsk the user, or infer it: a private repo with no outside contributors is\nsafely single-job. Anything public should assume forks.\n\n## What the pipeline produces\n\nFour pipelines run off one action:\n\n| Pipeline | Baseline branch | What it captures |\n|---|---|---|\n| `compose` | `compose-preview\u002Fmain` | Rendered `@Preview` PNGs + `baselines.json` (preview id → SHA-256) |\n| `resources` | `compose-preview\u002Fresources\u002Fmain` | Rendered resource previews (drawables, colours) |\n| `a11y` | `compose-preview\u002Fa11y\u002Fmain` | Annotated `.a11y.png` overlays + `findings.json` (ATF checks) |\n| `notifications` | `compose-preview\u002Fnotifications\u002Fmain` | Notification surface captures + `.notification.json` sidecars |\n\nThe baseline branches do double duty: each has a generated `README.md` with\ninline images, so the branch is a **browsable gallery** on GitHub as well as\nthe \"before\" side every PR diffs against.\n\nOn PRs the same action renders, compares against the baselines, pushes the\nnew renders to `compose-preview\u002Fpr`, and upserts a **sticky comment** (one\nper pipeline, keyed by an HTML marker) with the before\u002Fafter.\n\n`a11y` and `notifications` are no-ops unless pointed at a Gradle module via\n`a11y-module` \u002F `notifications-module`. Narrow what runs with `only:` \u002F\n`skip:`.\n\n## The single-job workflow\n\n```yaml\n# .github\u002Fworkflows\u002Fcompose-preview.yml\nname: Compose Preview\non:\n  push:\n    branches: [main]\n  pull_request:\n    branches: [main]\n    types: [opened, synchronize, reopened]\n  workflow_dispatch:\n\npermissions:\n  contents: write          # baselines push + compose-preview\u002Fpr branch\n  pull-requests: write     # upserts the sticky PR comment\n\nconcurrency:\n  group: compose-preview-${{ github.event.pull_request.number || github.ref }}\n  # PR runs supersede each other; see the warning below about baseline runs.\n  cancel-in-progress: ${{ github.event_name == 'pull_request' }}\n\njobs:\n  apply:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v7\n        with:\n          persist-credentials: false\n      - uses: actions\u002Fsetup-java@v5\n        with:\n          distribution: temurin\n          java-version: 17\n      - uses: gradle\u002Factions\u002Fsetup-gradle@v6\n      - uses: yschimke\u002Fcompose-ai-tools\u002F.github\u002Factions\u002Fapply@v1.79.0\n        with:\n          # cli-version defaults to `auto` — leave it alone (see below).\n          a11y-module: ''                       # '' = auto-detect all modules\n          notifications-module: samples:android # '' = skip the pipeline\n```\n\n`mode` defaults to `auto` and is picked from the event: a `push` to\n`development-branch` (default `main`) → **baseline**, a `pull_request` →\n**comment**. Override with `mode: baseline | comment | skip` for one-off\n`workflow_dispatch` runs.\n\n> **Do not `cancel-in-progress` baseline runs.** A cancelled baseline run\n> doesn't just waste a render — it strands the baseline at an older commit,\n> and every subsequent PR then reports the skipped commits' output as its\n> own New\u002FChanged\u002FRemoved. Back-to-back merges make that the norm rather\n> than the exception. Gate cancellation on `github.event_name ==\n> 'pull_request'`, as above. Queueing is bounded, not unbounded: GitHub\n> keeps at most one *pending* run per group.\n\n## Pin the CLI: leave `cli-version` on `auto`\n\n**This is the single most common way the action breaks**, so it is worth\nbeing explicit even though the default is now correct.\n\nPinning the *action* ref (`apply@v1.79.0`) does **not** pin the *CLI*. Under\nthe old `cli-version: latest`, every new compose-ai-tools release\nauto-installed the newest CLI against a still-pinned Gradle plugin. A CLI\nnewer than the applied plugin cannot discover that older plugin, so the\nrender finds zero preview modules and the pipeline fails repo-wide — on\nsomebody else's release, not on your diff — with a misleading:\n\n```\n✗ no modules have the compose-preview plugin applied\ncompose pipeline: No preview modules discovered ... skipping.\n```\n\n`cli-version: auto` (the default) removes this: it reads the plugin version\npinned in your checkout — a version-catalog `[plugins]` entry, or a literal\n`id(\"…\") version \"…\"` in a build script — and installs the CLI at *exactly*\nthat version. Declare the plugin version once and the CLI follows it:\n\n```toml\n# gradle\u002Flibs.versions.toml\n[versions]\ncomposePreviewPlugin = \"1.79.0\"\n\n[plugins]\ncomposePreview = { id = \"ee.schimke.composeai.preview\", version.ref = \"composePreviewPlugin\" }\n```\n\nRenovate bumps that one entry on each release and `auto` picks it up — no\n`cli-version` or `catalog-key` wiring needed. When no plugin is pinned (the\nauto-inject \u002F zero-code path, where the CLI injects a matching plugin via\n`--init-script`) `auto` falls back to the project's\n`composePreview.version` pin in `gradle.properties` if there is one, else to\n`latest` — both correct there, because the injected plugin always matches\nthe installed CLI.\n\nOther values: `latest` (opts back into floating), `catalog` +\n`catalog-key` (pin to a dedicated `[versions]` key), a literal version,\n`source` (build from the checkout — internal CI only), `none` (skip install).\n\n**The skew guardrail** backs this up independently: after install, `apply`\ncompares the resolved CLI against the pinned plugin and, when the CLI is\nnewer, fails fast with an actionable message instead of the confusing \"no\nmodules\" error downstream. `skew-check: fail` (default) | `warn` | `off`.\nIt only acts when it can read a concrete plugin version and both sides are\nclean releases, so projects deliberately tracking `latest` with no pinned\nplugin are never tripped.\n\n## Migrating from the legacy actions\n\nThe four original composite actions — `preview-baselines`,\n`preview-comment`, `a11y-report`, `notification-previews` — were replaced\nby the unified `apply` action in `v0.11.6`. They survive as **deprecated\nshims that forward to `apply`**.\n\nIf you find a project still wired to any of them, migrate as part of the\nnext change touching CI. The migration is mechanical and collapses four\nworkflow files — plus their duplicated checkout \u002F Java \u002F Gradle setup —\ninto the single `compose-preview.yml` above:\n\n| Legacy action | Replacement |\n|---|---|\n| `preview-baselines` | `apply` with `only: compose,resources` (mode auto-selects `baseline` on push) |\n| `preview-comment` | `apply` with `only: compose,resources` (mode auto-selects `comment` on PR) |\n| `a11y-report` | `apply` with `only: a11y` + `a11y-module:` |\n| `notification-previews` | `apply` with `only: notifications` + `notifications-module:` |\n\nTwo things to carry over deliberately:\n\n- The shims default `cli-version` to `latest`, not `auto`, because they\n  forward to a *pinned released* `apply` that may predate the `auto`\n  resolver. Once you call `apply` directly, **drop the input** and take the\n  `auto` default.\n- `a11y-report`'s `baseline-branch` \u002F `pr-branch` inputs were already\n  ignored — `apply` hardcodes the branch names. Delete them rather than\n  translating them.\n\n## When it goes wrong\n\n| Symptom | Cause | Fix |\n|---|---|---|\n| `no modules have the compose-preview plugin applied` | CLI newer than the pinned plugin | Use `cli-version: auto` (default); check `skew-check` isn't `off` |\n| No comment at all on some PRs | Those PRs are from forks | Two-stage split — [references\u002Ffork-prs.md](.\u002Freferences\u002Ffork-prs.md) |\n| PR reports many phantom New + Removed previews | Baseline branch is stale — a baseline run on `main` was cancelled | Stop cancelling baseline runs (see the warning above), then re-run the workflow on `main` |\n| Comment says \"no changes\" for a pipeline that didn't run | `only` \u002F `skip` mismatch across a two-stage split | The render job's resolved pipeline set travels in the handoff; don't re-specify `only`\u002F`skip` on the publish call |\n| Run cancelled mid-build, reported as \"Render failed\" \u002F rc=2 | Per-invocation `timeout` too low for a cold runner | Raise `timeout` (seconds). It is a hung-build ceiling, not a budget — keep it well above the slowest observed run |\n| A preview that legitimately can't render fails the gate | Default `missing-renders: fail` | Mark that capture `optional` at discovery rather than downgrading the gate to `warn`. `show` then reports it as `[no PNG, optional]` and counts it under `counts.skipped`, not `counts.missing` |\n\n## Reference docs\n\n| Path | When to read |\n|---|---|\n| [references\u002Ffork-prs.md](.\u002Freferences\u002Ffork-prs.md) | The two-stage render\u002Fpublish split: both workflow files, why `pull_request_target` is not the answer, what travels in the handoff, and what the trusted job is and isn't allowed to trust. |\n| [references\u002Fcost-and-scoping.md](.\u002Freferences\u002Fcost-and-scoping.md) | Making preview CI cheap: parallel pipeline jobs, change-scoped rendering (`.github\u002Fpreview-scope.json`), A\u002FB variant comparison, the re-run checkbox, and non-Gradle builds. |\n\n## Related\n\n- [**compose-preview-review**](..\u002Fcompose-preview-review\u002FSKILL.md) — reading\n  the diffs: reviewing a UI PR, agent-authored PR bodies, triaging flaky\n  previews.\n- [**compose-preview**](..\u002Fcompose-preview\u002FSKILL.md) — the renderer itself:\n  CLI, Gradle plugin, capture modes, accessibility checks.\n","# Compose Preview — CI setup\n\nWiring the `compose-preview` CI surface into a repository: a\n`compose-preview\u002Fmain` baselines branch, sticky before\u002Fafter diff comments\non pull requests, and the choices that decide whether one workflow is\nenough or you need two.\n\nThis skill is about **standing the pipeline up and keeping it working**.\nFor *reading* the diffs it produces — reviewing a UI PR, triaging a flaky\npreview — see the [**compose-preview-review**](..\u002Fcompose-preview-review\u002FSKILL.md)\nskill. For driving the renderer by hand, see\n[**compose-preview**](..\u002Fcompose-preview\u002FSKILL.md).\n\n## Source\n\nMaintained at [github.com\u002Fyschimke\u002Fskills](https:\u002F\u002Fgithub.com\u002Fyschimke\u002Fskills)\nunder `skills\u002Fcompose-preview-ci\u002F`. The composite actions described here ship\nfrom [yschimke\u002Fcompose-ai-tools](https:\u002F\u002Fgithub.com\u002Fyschimke\u002Fcompose-ai-tools);\nthe canonical, always-current input reference is that repo's\n[`.github\u002Factions\u002Fapply\u002FREADME.md`](https:\u002F\u002Fgithub.com\u002Fyschimke\u002Fcompose-ai-tools\u002Fblob\u002Fmain\u002F.github\u002Factions\u002Fapply\u002FREADME.md).\nWhen this skill and that README disagree, the README wins — check it before\ntelling a user an input doesn't exist.\n\n## Decide the shape first\n\nEverything is one composite action, `apply`. What differs is how many jobs\nand workflows you wrap around it.\n\n| Situation | Shape | Read |\n|---|---|---|\n| PRs come from branches in the repo itself | **One job**, one workflow | [§ The single-job workflow](#the-single-job-workflow) |\n| PRs can come from **forks** (any public repo, OSS) | **Two stages**: unprivileged render + trusted publish | [references\u002Ffork-prs.md](.\u002Freferences\u002Ffork-prs.md) |\n| Renders take long enough to hurt | Split the pipelines across parallel jobs, and\u002For scope by diff | [references\u002Fcost-and-scoping.md](.\u002Freferences\u002Fcost-and-scoping.md) |\n| Repo still wired to four separate legacy actions | Migrate to `apply` | [§ Migrating from the legacy actions](#migrating-from-the-legacy-actions) |\n| Non-Gradle build (Bazel, Buck2, Amper) | `skip-render: true` + `cli-version: none` | [references\u002Fcost-and-scoping.md § Non-Gradle builds](.\u002Freferences\u002Fcost-and-scoping.md#non-gradle-builds) |\n\n**The fork question is the one to ask first**, because it is the only one\nthat changes the *file layout* rather than a few inputs — and it is the one\nthat silently produces a half-working setup if you get it wrong. A\nsingle-job workflow on a repo that takes fork PRs doesn't fail loudly; it\njust never comments on the contributions from outside, because on a\n`pull_request` event from a fork `GITHUB_TOKEN` is read-only for every\nscope regardless of the `permissions:` block.\n\nAsk the user, or infer it: a private repo with no outside contributors is\nsafely single-job. Anything public should assume forks.\n\n## What the pipeline produces\n\nFour pipelines run off one action:\n\n| Pipeline | Baseline branch | What it captures |\n|---|---|---|\n| `compose` | `compose-preview\u002Fmain` | Rendered `@Preview` PNGs + `baselines.json` (preview id → SHA-256) |\n| `resources` | `compose-preview\u002Fresources\u002Fmain` | Rendered resource previews (drawables, colours) |\n| `a11y` | `compose-preview\u002Fa11y\u002Fmain` | Annotated `.a11y.png` overlays + `findings.json` (ATF checks) |\n| `notifications` | `compose-preview\u002Fnotifications\u002Fmain` | Notification surface captures + `.notification.json` sidecars |\n\nThe baseline branches do double duty: each has a generated `README.md` with\ninline images, so the branch is a **browsable gallery** on GitHub as well as\nthe \"before\" side every PR diffs against.\n\nOn PRs the same action renders, compares against the baselines, pushes the\nnew renders to `compose-preview\u002Fpr`, and upserts a **sticky comment** (one\nper pipeline, keyed by an HTML marker) with the before\u002Fafter.\n\n`a11y` and `notifications` are no-ops unless pointed at a Gradle module via\n`a11y-module` \u002F `notifications-module`. Narrow what runs with `only:` \u002F\n`skip:`.\n\n## The single-job workflow\n\n```yaml\n# .github\u002Fworkflows\u002Fcompose-preview.yml\nname: Compose Preview\non:\n  push:\n    branches: [main]\n  pull_request:\n    branches: [main]\n    types: [opened, synchronize, reopened]\n  workflow_dispatch:\n\npermissions:\n  contents: write          # baselines push + compose-preview\u002Fpr branch\n  pull-requests: write     # upserts the sticky PR comment\n\nconcurrency:\n  group: compose-preview-${{ github.event.pull_request.number || github.ref }}\n  # PR runs supersede each other; see the warning below about baseline runs.\n  cancel-in-progress: ${{ github.event_name == 'pull_request' }}\n\njobs:\n  apply:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v7\n        with:\n          persist-credentials: false\n      - uses: actions\u002Fsetup-java@v5\n        with:\n          distribution: temurin\n          java-version: 17\n      - uses: gradle\u002Factions\u002Fsetup-gradle@v6\n      - uses: yschimke\u002Fcompose-ai-tools\u002F.github\u002Factions\u002Fapply@v1.79.0\n        with:\n          # cli-version defaults to `auto` — leave it alone (see below).\n          a11y-module: ''                       # '' = auto-detect all modules\n          notifications-module: samples:android # '' = skip the pipeline\n```\n\n`mode` defaults to `auto` and is picked from the event: a `push` to\n`development-branch` (default `main`) → **baseline**, a `pull_request` →\n**comment**. Override with `mode: baseline | comment | skip` for one-off\n`workflow_dispatch` runs.\n\n> **Do not `cancel-in-progress` baseline runs.** A cancelled baseline run\n> doesn't just waste a render — it strands the baseline at an older commit,\n> and every subsequent PR then reports the skipped commits' output as its\n> own New\u002FChanged\u002FRemoved. Back-to-back merges make that the norm rather\n> than the exception. Gate cancellation on `github.event_name ==\n> 'pull_request'`, as above. Queueing is bounded, not unbounded: GitHub\n> keeps at most one *pending* run per group.\n\n## Pin the CLI: leave `cli-version` on `auto`\n\n**This is the single most common way the action breaks**, so it is worth\nbeing explicit even though the default is now correct.\n\nPinning the *action* ref (`apply@v1.79.0`) does **not** pin the *CLI*. Under\nthe old `cli-version: latest`, every new compose-ai-tools release\nauto-installed the newest CLI against a still-pinned Gradle plugin. A CLI\nnewer than the applied plugin cannot discover that older plugin, so the\nrender finds zero preview modules and the pipeline fails repo-wide — on\nsomebody else's release, not on your diff — with a misleading:\n\n```\n✗ no modules have the compose-preview plugin applied\ncompose pipeline: No preview modules discovered ... skipping.\n```\n\n`cli-version: auto` (the default) removes this: it reads the plugin version\npinned in your checkout — a version-catalog `[plugins]` entry, or a literal\n`id(\"…\") version \"…\"` in a build script — and installs the CLI at *exactly*\nthat version. Declare the plugin version once and the CLI follows it:\n\n```toml\n# gradle\u002Flibs.versions.toml\n[versions]\ncomposePreviewPlugin = \"1.79.0\"\n\n[plugins]\ncomposePreview = { id = \"ee.schimke.composeai.preview\", version.ref = \"composePreviewPlugin\" }\n```\n\nRenovate bumps that one entry on each release and `auto` picks it up — no\n`cli-version` or `catalog-key` wiring needed. When no plugin is pinned (the\nauto-inject \u002F zero-code path, where the CLI injects a matching plugin via\n`--init-script`) `auto` falls back to the project's\n`composePreview.version` pin in `gradle.properties` if there is one, else to\n`latest` — both correct there, because the injected plugin always matches\nthe installed CLI.\n\nOther values: `latest` (opts back into floating), `catalog` +\n`catalog-key` (pin to a dedicated `[versions]` key), a literal version,\n`source` (build from the checkout — internal CI only), `none` (skip install).\n\n**The skew guardrail** backs this up independently: after install, `apply`\ncompares the resolved CLI against the pinned plugin and, when the CLI is\nnewer, fails fast with an actionable message instead of the confusing \"no\nmodules\" error downstream. `skew-check: fail` (default) | `warn` | `off`.\nIt only acts when it can read a concrete plugin version and both sides are\nclean releases, so projects deliberately tracking `latest` with no pinned\nplugin are never tripped.\n\n## Migrating from the legacy actions\n\nThe four original composite actions — `preview-baselines`,\n`preview-comment`, `a11y-report`, `notification-previews` — were replaced\nby the unified `apply` action in `v0.11.6`. They survive as **deprecated\nshims that forward to `apply`**.\n\nIf you find a project still wired to any of them, migrate as part of the\nnext change touching CI. The migration is mechanical and collapses four\nworkflow files — plus their duplicated checkout \u002F Java \u002F Gradle setup —\ninto the single `compose-preview.yml` above:\n\n| Legacy action | Replacement |\n|---|---|\n| `preview-baselines` | `apply` with `only: compose,resources` (mode auto-selects `baseline` on push) |\n| `preview-comment` | `apply` with `only: compose,resources` (mode auto-selects `comment` on PR) |\n| `a11y-report` | `apply` with `only: a11y` + `a11y-module:` |\n| `notification-previews` | `apply` with `only: notifications` + `notifications-module:` |\n\nTwo things to carry over deliberately:\n\n- The shims default `cli-version` to `latest`, not `auto`, because they\n  forward to a *pinned released* `apply` that may predate the `auto`\n  resolver. Once you call `apply` directly, **drop the input** and take the\n  `auto` default.\n- `a11y-report`'s `baseline-branch` \u002F `pr-branch` inputs were already\n  ignored — `apply` hardcodes the branch names. Delete them rather than\n  translating them.\n\n## When it goes wrong\n\n| Symptom | Cause | Fix |\n|---|---|---|\n| `no modules have the compose-preview plugin applied` | CLI newer than the pinned plugin | Use `cli-version: auto` (default); check `skew-check` isn't `off` |\n| No comment at all on some PRs | Those PRs are from forks | Two-stage split — [references\u002Ffork-prs.md](.\u002Freferences\u002Ffork-prs.md) |\n| PR reports many phantom New + Removed previews | Baseline branch is stale — a baseline run on `main` was cancelled | Stop cancelling baseline runs (see the warning above), then re-run the workflow on `main` |\n| Comment says \"no changes\" for a pipeline that didn't run | `only` \u002F `skip` mismatch across a two-stage split | The render job's resolved pipeline set travels in the handoff; don't re-specify `only`\u002F`skip` on the publish call |\n| Run cancelled mid-build, reported as \"Render failed\" \u002F rc=2 | Per-invocation `timeout` too low for a cold runner | Raise `timeout` (seconds). It is a hung-build ceiling, not a budget — keep it well above the slowest observed run |\n| A preview that legitimately can't render fails the gate | Default `missing-renders: fail` | Mark that capture `optional` at discovery rather than downgrading the gate to `warn`. `show` then reports it as `[no PNG, optional]` and counts it under `counts.skipped`, not `counts.missing` |\n\n## Reference docs\n\n| Path | When to read |\n|---|---|\n| [references\u002Ffork-prs.md](.\u002Freferences\u002Ffork-prs.md) | The two-stage render\u002Fpublish split: both workflow files, why `pull_request_target` is not the answer, what travels in the handoff, and what the trusted job is and isn't allowed to trust. |\n| [references\u002Fcost-and-scoping.md](.\u002Freferences\u002Fcost-and-scoping.md) | Making preview CI cheap: parallel pipeline jobs, change-scoped rendering (`.github\u002Fpreview-scope.json`), A\u002FB variant comparison, the re-run checkbox, and non-Gradle builds. |\n\n## Related\n\n- [**compose-preview-review**](..\u002Fcompose-preview-review\u002FSKILL.md) — reading\n  the diffs: reviewing a UI PR, agent-authored PR bodies, triaging flaky\n  previews.\n- [**compose-preview**](..\u002Fcompose-preview\u002FSKILL.md) — the renderer itself:\n  CLI, Gradle plugin, capture modes, accessibility checks.\n",{"name":5,"description":7},"main","1b900170940ebf725461d1a9b9bb31e0b0b12239","plugins\u002Fcompose-review\u002Fskills\u002Fcompose-preview-ci","https:\u002F\u002Fgithub.com\u002Fyschimke\u002Fcompose-agent-plugins","https:\u002F\u002Fgithub.com\u002Fyschimke","Itinerant Developer","2026-11-15 02:44:38",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add yschimke\u002Fcompose-agent-plugins --skill compose-preview-ci",{"tool":37,"command":38},"bunx","bunx skills add yschimke\u002Fcompose-agent-plugins --skill compose-preview-ci",{"tool":40,"command":41},"pnpm","pnpm dlx skills add yschimke\u002Fcompose-agent-plugins --skill compose-preview-ci","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fyschimke\u002Fcompose-agent-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fcompose-review\u002Fskills\u002Fcompose-preview-ci\u002FSKILL.md",true,[45,51],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"references\u002Fcost-and-scoping.md","REFERENCE","参考文档",9218,"https:\u002F\u002Fgithub.com\u002Fyschimke\u002Fcompose-agent-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fcompose-review\u002Fskills\u002Fcompose-preview-ci\u002Freferences\u002Fcost-and-scoping.md",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Ffork-prs.md",10949,"https:\u002F\u002Fgithub.com\u002Fyschimke\u002Fcompose-agent-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fcompose-review\u002Fskills\u002Fcompose-preview-ci\u002Freferences\u002Ffork-prs.md",[56,63,70,77,84,91],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7DE26ZPFATWKZ6H2GS8HVGF","harness-notes","Use whenever you change Compose UI code (composables, @Preview functions, themes) or render or review Compose previews, catalog components or UI Builder designs. Carries the mandatory cross-harness agent rules (R1–R4) and per-host notes for these tools.","https:\u002F\u002Fgithub.com\u002Fyschimke\u002Fcompose-agent-plugins\u002Fblob\u002Fmain\u002Fsrc\u002Fskills\u002Fharness-notes\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7DE239T4FDZGE7ZSBP7TH0C","compose-preview-setup","Run right after the compose-preview plugin is installed, or when a render fails because the CLI is missing or the project is \"not prepared\". Checks the compose-preview CLI, prepares the current Gradle project once, and renders one preview so the person sees it working.","https:\u002F\u002Fgithub.com\u002Fyschimke\u002Fcompose-agent-plugins\u002Fblob\u002Fmain\u002Fsrc\u002Fskills\u002Fcompose-preview-setup\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7DE200SVCFX2VE3CB0G500Z","compose-catalogs-setup","Run right after the compose-catalogs plugin is installed, or when the hosted catalog server cannot be reached or asks for access. Checks the hosted preview.coo.ee catalog server, completes the access grant, and shows one catalog so the person sees it working.","https:\u002F\u002Fgithub.com\u002Fyschimke\u002Fcompose-agent-plugins\u002Fblob\u002Fmain\u002Fsrc\u002Fskills\u002Fcompose-catalogs-setup\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7DE1TJGYTTVJGD4MM2B345S","antigravity-viewer-card","Show a render of the person's own Compose previews in Antigravity — one render_preview call with preview=\u003CFunctionName> on the local compose-preview-mcp server, a look at the PNG, then the card and a few bullets.","https:\u002F\u002Fgithub.com\u002Fyschimke\u002Fcompose-agent-plugins\u002Fblob\u002Fmain\u002Fsrc\u002Fskills\u002Fantigravity-viewer-card\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7DE1Q68HHV5AX6R9GZ9VPKJ","spike-p2","Use when the user says 'spike check'.","https:\u002F\u002Fgithub.com\u002Fyschimke\u002Fcompose-agent-plugins\u002Fblob\u002Fmain\u002Fspike\u002Fp2\u002Fskills\u002Fspike\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M7DE1M39FDCGPEAVHTQVVXVE","spike-p1","https:\u002F\u002Fgithub.com\u002Fyschimke\u002Fcompose-agent-plugins\u002Fblob\u002Fmain\u002Fspike\u002Fp1\u002Fskills\u002Fspike\u002FSKILL.md",[],[]]