From 1ced76a0533e167013281299ae80bde100734c7d Mon Sep 17 00:00:00 2001
From: Nathan Broadbent
Date: Fri, 4 Dec 2026 14:25:41 +1300
Subject: [PATCH 1/7] Onboarding: "Add a GitHub organization" on the
Organizations page and in the account menu; other accounts' installations
listed quietly below the install step
---
frontend/src/__tests__/menu.test.tsx | 2 +-
frontend/src/components/AppShell.tsx | 5 ++++-
frontend/src/components/SetupChecklist.tsx | 25 ++++++++++++++--------
frontend/src/pages/OrgsPage.tsx | 14 ++++++++----
frontend/src/styles.css | 23 ++++++++++++++++++++
scripts/screenshots/pages.mjs | 2 ++
6 files changed, 56 insertions(+), 15 deletions(-)
diff --git a/frontend/src/__tests__/menu.test.tsx b/frontend/src/__tests__/menu.test.tsx
index 0d79f347..51a5ffbe 100644
--- a/frontend/src/__tests__/menu.test.tsx
+++ b/frontend/src/__tests__/menu.test.tsx
@@ -36,7 +36,7 @@ describe('the account menu', () => {
const menu = container.querySelector('details.menu') as HTMLDetailsElement
const items = Array.from(container.querySelectorAll('.menu-item'))
expect(items.map((i) => i.textContent?.trim())).toEqual(
- expect.arrayContaining(['Acme', 'Other', 'All organizations', 'Account and tokens', 'Billing', 'Sign out']),
+ expect.arrayContaining(['Acme', 'Other', 'All organizations', 'Add a GitHub organization', 'Account and tokens', 'Billing', 'Sign out']),
)
for (const item of items) {
menu.open = true
diff --git a/frontend/src/components/AppShell.tsx b/frontend/src/components/AppShell.tsx
index 8a1e2407..15a6fda8 100644
--- a/frontend/src/components/AppShell.tsx
+++ b/frontend/src/components/AppShell.tsx
@@ -1,6 +1,6 @@
import { useEffect, useRef, type MouseEvent, type ReactNode } from 'react'
import { Link, Outlet, useNavigate, useParams } from '@tanstack/react-router'
-import { ChatTextIcon, CreditCardIcon, KeyIcon, MonitorIcon, MoonIcon, PaperPlaneTiltIcon, SignOutIcon, SunIcon, UsersIcon } from '@phosphor-icons/react'
+import { ChatTextIcon, CreditCardIcon, GithubLogoIcon, KeyIcon, MonitorIcon, MoonIcon, PaperPlaneTiltIcon, SignOutIcon, SunIcon, UsersIcon } from '@phosphor-icons/react'
import { useInvitationAnswer, useLogout, useMe, useProject, useSnapshot } from '../api/hooks'
import { errorMessage } from '../api/client'
import { useTheme, type ThemePref } from '../lib/theme'
@@ -83,6 +83,9 @@ export function UserMenu() {
)}
+
+ Add a GitHub organization
+
Account and tokens
diff --git a/frontend/src/components/SetupChecklist.tsx b/frontend/src/components/SetupChecklist.tsx
index edd0c950..efcd79da 100644
--- a/frontend/src/components/SetupChecklist.tsx
+++ b/frontend/src/components/SetupChecklist.tsx
@@ -74,15 +74,6 @@ function InstallGithubApp({ org, data, onCreateProject }: { org: string; data: O
{setUp.error.message}
)}
- {elsewhere.map((o) => (
-
- The GitHub App on {o.account_login} is set up in the{' '}
-
- {o.organization}
- {' '}
- organization.
-
- ))}
+ {elsewhere.length > 0 && (
+ // Installations set up in other organizations: for reference, below this step's action
+
+
Your other GitHub installations
+
+ {elsewhere.map((o) => (
+
+ {o.account_login}: in{' '}
+
+ {o.organization}
+
+
+ ))}
+
+
+ )}
{onCreateProject && (
Not on GitHub?{' '}
diff --git a/frontend/src/pages/OrgsPage.tsx b/frontend/src/pages/OrgsPage.tsx
index 34392a71..7d588c50 100644
--- a/frontend/src/pages/OrgsPage.tsx
+++ b/frontend/src/pages/OrgsPage.tsx
@@ -1,6 +1,6 @@
import { useState } from 'react'
import { Link, useNavigate } from '@tanstack/react-router'
-import { CaretRightIcon, PlusIcon } from '@phosphor-icons/react'
+import { CaretRightIcon, GithubLogoIcon, PlusIcon } from '@phosphor-icons/react'
import { useCreateOrg, useMe } from '../api/hooks'
import { CreateForm } from '../components/CreateForm'
import { HeardAboutCard } from '../components/HeardAboutCard'
@@ -22,9 +22,15 @@ export function OrgsPage() {
Signed in as {me.user.login ? `@${me.user.login}` : me.user.email}
{!showForm && (
- setCreating(true)}>
- New organization
-
+
+
setCreating(true)}>
+ New organization
+
+ {/* The usual way in: install the GitHub App on an organization, which sets one up named after it */}
+
+ Add a GitHub organization
+
+
)}
diff --git a/frontend/src/styles.css b/frontend/src/styles.css
index 961cf1d5..ff355e09 100644
--- a/frontend/src/styles.css
+++ b/frontend/src/styles.css
@@ -4356,6 +4356,29 @@ svg.regions-dim {
width: auto;
}
+/* Other accounts' installations, set up elsewhere: quiet reference below the install step's action */
+.setup-elsewhere {
+ margin-top: var(--space-3);
+ font-size: var(--text-sm);
+ color: var(--color-muted);
+}
+
+.setup-elsewhere h4 {
+ margin: 0 0 var(--space-1);
+ font-size: var(--text-xs);
+ font-weight: 600;
+ text-transform: none;
+ color: var(--color-muted);
+}
+
+.setup-elsewhere ul {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+ display: grid;
+ gap: 2px;
+}
+
.setup-then {
font-weight: 500;
}
diff --git a/scripts/screenshots/pages.mjs b/scripts/screenshots/pages.mjs
index 798d0b8d..cac68cdf 100644
--- a/scripts/screenshots/pages.mjs
+++ b/scripts/screenshots/pages.mjs
@@ -40,6 +40,8 @@ export function pages() {
['app/repositories', '/acme/repositories', true, ALL],
['app/repositories/search', '/acme/repositories?q=pdf', true, ['1440-light', '390-light']],
['app/repositories/progress', '/side-project/repositories', true, ALL],
+ // A personal organization's checklist: Ada's own installation, and Acme's listed under "Your other GitHub installations"
+ ['app/org/personal', '/side-project', true, ['1440-light', '390-light']],
['app/billing/team', '/acme/billing', true, ALL],
['app/billing/free', '/side-project/billing', true, ALL],
['app/account', '/account', true, ALL],
From f891684716a5515e2e6552ca81f54df93f398c6a Mon Sep 17 00:00:00 2001
From: Nathan Broadbent
Date: Fri, 4 Dec 2026 14:37:32 +1300
Subject: [PATCH 2/7] Setup: connect your coding agent comes second; Add
VisualCI to CI gives the agent a prompt for the project, with "I'll set it up
myself" for the manual way
---
app/src/auth/setup.rs | 5 +-
app/tests/installations.rs | 2 +-
app/tests/setup.rs | 9 +--
docs/design.md | 2 +-
frontend/content/docs/quick-start.md | 30 +++++++---
frontend/src/api/types.ts | 2 +-
frontend/src/components/SetupChecklist.tsx | 70 ++++++++++++++++------
frontend/src/components/ui.tsx | 4 +-
frontend/src/pages/RepositoriesPage.tsx | 18 ++++--
frontend/src/router.tsx | 2 +-
frontend/src/styles.css | 11 ++++
scripts/screenshots/journeys.mjs | 13 +++-
skills/visualci/SKILL.md | 28 ++++++---
13 files changed, 142 insertions(+), 54 deletions(-)
diff --git a/app/src/auth/setup.rs b/app/src/auth/setup.rs
index 79adf14a..2369fbd2 100644
--- a/app/src/auth/setup.rs
+++ b/app/src/auth/setup.rs
@@ -13,8 +13,9 @@ pub fn routes(route: &mut Router) {
route.post("/api/ui/orgs/{org}/setup", update);
}
-/// The steps, in order. Installing the GitHub App makes the projects (sc-9027), so it comes first.
-pub const STEPS: &[&str] = &["install_github_app", "add_to_ci", "connect_agent", "review_changes"];
+/// The steps, in order. Installing the GitHub App makes the projects (sc-9027), so it comes first; then the coding agent,
+/// which adds VisualCI to CI over MCP.
+pub const STEPS: &[&str] = &["install_github_app", "connect_agent", "add_to_ci", "review_changes"];
/// The checklist for an organization as `user_pid` sees it (a connected agent is per person: an MCP connection, or a
/// personal token that has been used; with no person, such as a project token, it isn't done): each step and whether
diff --git a/app/tests/installations.rs b/app/tests/installations.rs
index 20d74c43..c6dd7806 100644
--- a/app/tests/installations.rs
+++ b/app/tests/installations.rs
@@ -168,7 +168,7 @@ async fn installed_on_her_own_account_it_maps_to_her_organization_and_she_picks(
assert!(!done.organization_created);
assert!(projects(org.id).await?.is_empty(), "setting up makes no projects: she picks them");
let state = app::auth::setup::state(org.id, Some(ada.pid)).await?;
- assert_eq!(state["next"], "add_to_ci", "{state}");
+ assert_eq!(state["next"], "connect_agent", "{state}");
assert_eq!(state["installations"][0]["organization"], org.slug.as_str());
// The picker: both repositories, only the one she maintains can be added
diff --git a/app/tests/setup.rs b/app/tests/setup.rs
index da0d787e..d34aaa76 100644
--- a/app/tests/setup.rs
+++ b/app/tests/setup.rs
@@ -25,7 +25,7 @@ async fn the_checklist_follows_what_happened(app: Application) -> laravel::Resul
let state = app::auth::setup::state(org, Some(ada.pid)).await?;
assert_eq!(state["next"], "install_github_app");
let keys: Vec<&str> = state["steps"].as_array().unwrap().iter().map(|s| s["key"].as_str().unwrap()).collect();
- assert_eq!(keys, ["install_github_app", "add_to_ci", "connect_agent", "review_changes"]);
+ assert_eq!(keys, ["install_github_app", "connect_agent", "add_to_ci", "review_changes"]);
// A used personal token ticks it for her; nobody's (a project token's view) never does
db::query!(
"INSERT INTO user_tokens (user_id, name, token_hash, token_prefix, last_used_at, created_at, updated_at) \
@@ -33,8 +33,8 @@ async fn the_checklist_follows_what_happened(app: Application) -> laravel::Resul
)
.insert()
.await?;
- assert_eq!(app::auth::setup::state(org, Some(ada.pid)).await?["steps"][2]["done"], true);
- assert_eq!(app::auth::setup::state(org, None).await?["steps"][2]["done"], false);
+ assert_eq!(app::auth::setup::state(org, Some(ada.pid)).await?["steps"][1]["done"], true);
+ assert_eq!(app::auth::setup::state(org, None).await?["steps"][1]["done"], false);
db::query!(
"INSERT INTO projects (pid, organization_id, slug, name, forge_installation, created_at, updated_at) \
VALUES (gen_random_uuid(), {org}, 'web', 'Web', '7', now(), now())"
@@ -43,7 +43,8 @@ async fn the_checklist_follows_what_happened(app: Application) -> laravel::Resul
.await?;
let state = app::auth::setup::state(org, Some(ada.pid)).await?;
assert_eq!(state["steps"][0]["done"], true, "a project on the App's installation");
- assert_eq!(state["steps"][1]["done"], false);
+ assert_eq!(state["steps"][2]["done"], false, "no CI build yet");
+ assert_eq!(state["next"], "add_to_ci");
assert_eq!(state["complete"], false);
let close = |dismissed: bool| {
diff --git a/docs/design.md b/docs/design.md
index 60c0d840..3f0dfc75 100644
--- a/docs/design.md
+++ b/docs/design.md
@@ -400,7 +400,7 @@ installation, with their permission, as of their last GitHub sign-in (which list
searches with no GitHub call. The repositories they pick (Maintain or Admin, not archived, at most 50 at a time) become
a `repository_imports` row and a queued job (`ImportRepositories`) links them one by one through the usual link checks,
saving progress after each; the picker shows it, and `/status` reports `stalled_repository_import_seconds`. Nothing
-becomes a project on its own: repositories added to an installation later wait in the picker too. The checklist (`install_github_app`, `add_to_ci`, `connect_agent`, `review_changes`) offers
+becomes a project on its own: repositories added to an installation later wait in the picker too. The checklist (`install_github_app`, `connect_agent`, `add_to_ci`, `review_changes`: the coding agent comes before CI because it adds VisualCI to CI, from a prompt the step pre-fills for the project) offers
installations the person can reach that aren't set up yet (`POST /api/ui/installations/{id}/setup`).
**GitLab.** GitLab is parked in app/ (sign-in and the bot's token are read, the rest of this is the design to finish).
diff --git a/frontend/content/docs/quick-start.md b/frontend/content/docs/quick-start.md
index 1f6394b2..7e027ac0 100644
--- a/frontend/content/docs/quick-start.md
+++ b/frontend/content/docs/quick-start.md
@@ -1,6 +1,6 @@
---
title: Quick start
-description: Install the GitHub App and pick the repositories to test, then install the visualci CLI and send your first build from CI.
+description: Install the GitHub App and pick the repositories to test, connect your coding agent, then let it add VisualCI to CI and review the first build.
skill: visualci
skill_description: Sets up VisualCI, visual regression and snapshot review for PDFs, screenshots, images, JSON, HTML and text: installs the GitHub App (the person picks which repositories become projects) and the CLI, creates a CI token, sends the first build, and picks the visualci-* skill for the user's CI provider and test tools. Use when the user mentions VisualCI, wants visual regression testing, screenshot or PDF comparison, or snapshot changes that wait for review instead of failing CI. Not for a specific CI provider or test tool once VisualCI is set up: use that skill.
---
@@ -13,13 +13,28 @@ Sign in at [app.visualci.com](https://app.visualci.com) with GitHub, then choose
Back in VisualCI, pick the repositories to test: search and page through everything the App can reach, even an organization with hundreds of repositories. Each one you pick becomes a project, linked to the repository, so its pull requests get a VisualCI check. You can pick repositories you maintain or administer on GitHub; the others say why not. **Add repositories** on the organization's page picks more later. Already installed the App? The setup steps offer that installation: choose **Set it up**.
-Then create a project token on the project's **Tokens** tab (the **Add VisualCI to CI** step does it for you). Project tokens start with `vci_`.
-
Not on GitHub? Create a project by hand from the organization's page, or let a coding agent do it over MCP with `create_project` and `create_project_token`. See [Coding agents](/docs/agents/).
-## 2. Install the CLI
+## 2. Connect your coding agent
-On Linux (x86_64 or arm64) or macOS:
+Add VisualCI's MCP server, `https://mcp.visualci.com/mcp`, to your coding agent and sign in. The **Connect your coding agent** step shows the command for Claude Code, Codex, Cursor, VS Code and others. In Claude Code:
+
+```sh
+claude plugin marketplace add DocSpring/visualci
+claude plugin install visualci@visualci
+```
+
+Then run `/mcp` and sign in. See [Coding agents](/docs/agents/).
+
+## 3. Add VisualCI to CI
+
+Your agent does this. The **Add VisualCI to CI** step gives you a prompt to paste into it, filled in for your project. The agent reads this guide and the skill for your CI provider (`get_skill`), finds the screenshots, PDFs and snapshot files your tests produce, creates a CI token (`create_project_token`) and saves it as the `VISUALCI_TOKEN` secret, adds `visualci.yml` and a VisualCI step after your tests, and opens a pull request. The step ticks when the first build from CI arrives.
+
+### Doing it yourself
+
+Choose **I'll set it up myself** in that step, or follow these steps.
+
+Install the CLI on Linux (x86_64 or arm64) or macOS:
```sh
curl -fsSL https://visualci.com/install.sh | sh
@@ -31,9 +46,7 @@ It installs to `/usr/local/bin`, or to `$VISUALCI_INSTALL_DIR`, and checks the d
cargo install --git https://github.com/DocSpring/visualci visualci-cli
```
-## 3. Send a build
-
-Set `VISUALCI_TOKEN` to the project token in your CI provider's secrets. Then, in the CI job:
+Create a project token on the project's **Tokens** tab and set `VISUALCI_TOKEN` to it in your CI provider's secrets. Project tokens start with `vci_`. Then, in the CI job:
```sh
export VISUALCI_BUILD_ID=$(visualci build create)
@@ -56,7 +69,6 @@ Two things make that loop hold: [require the VisualCI check](/docs/agents/#make-
## Next
- [Set up your CI provider](/docs/ci/github-actions/)
-- [Connect your coding agent](/docs/agents/)
- [Send your snapshot tests](/docs/snapshots/jest/)
- [Keep settings in visualci.yml](/docs/reference/config/)
- [Install the agent skills](/docs/skills/)
diff --git a/frontend/src/api/types.ts b/frontend/src/api/types.ts
index a12fdb05..cb8144f7 100644
--- a/frontend/src/api/types.ts
+++ b/frontend/src/api/types.ts
@@ -113,7 +113,7 @@ export type EmailPreview = { label: string; kind: string; subject: string; text:
export type HeardAboutOption = { key: string; label: string; short_label: string; detail_label: string | null }
-export type SetupStepKey = 'install_github_app' | 'add_to_ci' | 'connect_agent' | 'review_changes'
+export type SetupStepKey = 'install_github_app' | 'connect_agent' | 'add_to_ci' | 'review_changes'
/** An installation of the VisualCI GitHub App the signed-in person can reach. */
export type InstallationOffer = {
diff --git a/frontend/src/components/SetupChecklist.tsx b/frontend/src/components/SetupChecklist.tsx
index efcd79da..8f161824 100644
--- a/frontend/src/components/SetupChecklist.tsx
+++ b/frontend/src/components/SetupChecklist.tsx
@@ -6,7 +6,6 @@ import type { InstallationSetUp, Org, SetupStepKey } from '../api/types'
import { apiUrl, mcpUrl } from '../lib/hosts'
import { Button, CodeBlock, CopyButton, Help } from './ui'
import { RequestBox } from './RequestBox'
-import { AgentPrompt } from './AgentPrompt'
import githubActions from '../../content/docs/ci/github-actions.md?raw'
import circleci from '../../content/docs/ci/circleci.md?raw'
import gitlab from '../../content/docs/ci/gitlab.md?raw'
@@ -14,8 +13,8 @@ import buildkite from '../../content/docs/ci/buildkite.md?raw'
const TITLES: Record = {
install_github_app: 'Install the GitHub App',
- add_to_ci: 'Add VisualCI to CI',
connect_agent: 'Connect your coding agent',
+ add_to_ci: 'Add VisualCI to CI',
review_changes: 'Review your first changes',
}
@@ -166,7 +165,6 @@ function ConnectAgent() {
{h.note && {h.note}
}
-
>
)
}
@@ -192,32 +190,68 @@ const SNIPPETS: Record('GitHub Actions')
- const [token, setToken] = useState(null)
- const create = useCreateToken(org, project)
- const s = SNIPPETS[provider]
- const api = apiUrl()
+ const [manual, setManual] = useState(false)
if (!project) return Install the GitHub App first: it makes a project for each repository.
return (
<>
-
- {projects.length > 1 && (
-
{ setProject(e.target.value); setToken(null) }}>
+ {projects.length > 1 && (
+
+ setProject(e.target.value)}>
{projects.map((p) => (
{p.name}
))}
- )}
- {!token && (
+
+ )}
+ {manual ? (
+
+ ) : (
+ <>
+
+ setManual(true)}>
+ I’ll set it up myself
+
+ >
+ )}
+ >
+ )
+}
+
+/** The manual way: a token to save as a CI secret, and the CI provider's snippet. */
+function ManualCi({ org, project }: { org: string; project: string }) {
+ const [provider, setProvider] = useState('GitHub Actions')
+ const [token, setToken] = useState(null)
+ const create = useCreateToken(org, project)
+ const s = SNIPPETS[provider]
+ const api = apiUrl()
+ return (
+ <>
+ {!token && (
+
create.mutate('CI', { onSuccess: ({ token }) => setToken(token) })}>
Create a token
- )}
-
+
+ )}
{token && (
@@ -269,7 +303,7 @@ export function SetupChecklist({
org: string
data: Org
onCreateProject?: () => void
- /** The step to open (the Setup URL lands on `add_to_ci`); else the next one. */
+ /** The step to open; else the next one. */
focus?: SetupStepKey
/** The installation just set up, to say what it did. */
installation?: string
@@ -279,8 +313,8 @@ export function SetupChecklist({
const [open, setOpen] = useState
(focus ?? setup.next)
const just = installation ? setup.github.find((g) => g.installation_id === installation)?.result : undefined
const body: Record = {
- connect_agent: ,
install_github_app: ,
+ connect_agent: ,
add_to_ci: ,
review_changes: ,
}
@@ -298,7 +332,7 @@ export function SetupChecklist({
{just && (
- VisualCI is set up for {just.account_login} . Next, add it to CI.
+ VisualCI is set up for {just.account_login} .
)}
diff --git a/frontend/src/components/ui.tsx b/frontend/src/components/ui.tsx
index c9fd2bfa..13049766 100644
--- a/frontend/src/components/ui.tsx
+++ b/frontend/src/components/ui.tsx
@@ -195,9 +195,9 @@ export function CopyButton({ text, label = 'Copy' }: { text: string; label?: str
)
}
-export function CodeBlock({ code, label }: { code: string; label?: string }) {
+export function CodeBlock({ code, label, wrap }: { code: string; label?: string; wrap?: boolean }) {
return (
-
+
{label ?? 'shell'}
diff --git a/frontend/src/pages/RepositoriesPage.tsx b/frontend/src/pages/RepositoriesPage.tsx
index 525364a1..e3bcc3cb 100644
--- a/frontend/src/pages/RepositoriesPage.tsx
+++ b/frontend/src/pages/RepositoriesPage.tsx
@@ -2,7 +2,7 @@ import { useEffect, useRef, useState } from 'react'
import { Link, getRouteApi, useNavigate } from '@tanstack/react-router'
import { ArrowRightIcon, CaretLeftIcon, CaretRightIcon, LockSimpleIcon, MagnifyingGlassIcon } from '@phosphor-icons/react'
import { useImportRepositories, useOrg, useRepositoryImport, useRepositoryPicker } from '../api/hooks'
-import type { PickerRepository, RepositoryImport } from '../api/types'
+import type { PickerRepository, RepositoryImport, SetupStepKey } from '../api/types'
import { QueryState } from '../components/QueryState'
import { Button, Empty, Help } from '../components/ui'
@@ -41,7 +41,7 @@ export function RepositoriesPage() {
const o = orgQ.data
const p = picker.data
const shown = progress.data ?? (importId == null ? running : null)
- if (shown) return
setImportId(null)} />
+ if (shown) return setImportId(null)} />
const pages = Math.max(1, Math.ceil(p.total / p.per_page))
const from = p.total === 0 ? 0 : (p.page - 1) * p.per_page + 1
@@ -252,8 +252,14 @@ function PageCheckbox({ checked, mixed, disabled, onChange }: { checked: boolean
return
}
+const NEXT: Record, string> = {
+ connect_agent: 'Next: connect your coding agent',
+ add_to_ci: 'Next: add VisualCI to CI',
+ review_changes: 'Next: review your first changes',
+}
+
/** A pick being made into projects: how far it's got, then the next step. */
-function Progress({ org, orgName, state, onMore }: { org: string; orgName: string; state: RepositoryImport; onMore: () => void }) {
+function Progress({ org, orgName, next, state, onMore }: { org: string; orgName: string; next: SetupStepKey | null; state: RepositoryImport; onMore: () => void }) {
const navigate = useNavigate()
const done = state.linked.length + state.skipped.length
const first = state.linked[0]?.project
@@ -297,9 +303,9 @@ function Progress({ org, orgName, state, onMore }: { org: string; orgName: strin
)}
{state.finished && (
- {first && (
-
navigate({ to: '/$org', params: { org }, search: { setup: 'add_to_ci' } })}>
- Next: add VisualCI to CI
+ {first && next && next !== 'install_github_app' && (
+ navigate({ to: '/$org', params: { org }, search: { setup: next } })}>
+ {NEXT[next]}
)}
Add more repositories
diff --git a/frontend/src/router.tsx b/frontend/src/router.tsx
index d7e811c6..625971e0 100644
--- a/frontend/src/router.tsx
+++ b/frontend/src/router.tsx
@@ -51,7 +51,7 @@ const askRoute = createRoute({ getParentRoute: () => appRoute, path: 'account/as
// `device` is a reserved slug: `visualci login` sends people here to approve the CLI's code.
const deviceRoute = createRoute({ getParentRoute: () => appRoute, path: 'device', component: DevicePage })
-const SETUP_STEPS = ['install_github_app', 'add_to_ci', 'connect_agent', 'review_changes'] as const
+const SETUP_STEPS = ['install_github_app', 'connect_agent', 'add_to_ci', 'review_changes'] as const
const orgRoute = createRoute({
getParentRoute: () => appRoute,
path: '$org',
diff --git a/frontend/src/styles.css b/frontend/src/styles.css
index ff355e09..7185eb2a 100644
--- a/frontend/src/styles.css
+++ b/frontend/src/styles.css
@@ -996,6 +996,12 @@ select.input {
line-height: 1.7;
}
+/* Prose to copy (an agent prompt): wrapped, not scrolled */
+.code-wrap pre {
+ white-space: pre-wrap;
+ overflow-wrap: anywhere;
+}
+
/* ---------- App shell ---------- */
.app {
min-height: 100dvh;
@@ -4449,6 +4455,11 @@ svg.regions-dim {
border-top: 1px solid var(--color-rule);
}
+.setup-manual-link {
+ justify-self: start;
+ font-size: var(--text-sm);
+}
+
.setup-prompt {
display: flex;
align-items: center;
diff --git a/scripts/screenshots/journeys.mjs b/scripts/screenshots/journeys.mjs
index 2f93b0fe..30465cea 100644
--- a/scripts/screenshots/journeys.mjs
+++ b/scripts/screenshots/journeys.mjs
@@ -392,9 +392,20 @@ await journey('setup-picks-from-300-repositories', async ({ page, shot }) => {
await shot('added')
const after = await api(page, `/api/ui/orgs/${org}`)
expect(after.projects.length === 2, `picking two made ${after.projects.length} projects`)
- await page.getByRole('button', { name: 'Next: add VisualCI to CI' }).click()
+ // Next comes the coding agent, which then adds VisualCI to CI from a prompt filled in for the project
+ await page.getByRole('button', { name: 'Next: connect your coding agent' }).click()
await page.waitForURL((url) => url.pathname === `/${org}`)
+ await page.getByRole('radiogroup', { name: 'Coding agent' }).waitFor()
await shot('next-step')
+ await page.getByRole('button', { name: 'Add VisualCI to CI' }).click()
+ const prompt = page.locator('figure.code', { hasText: 'Paste this into your coding agent' })
+ const text = await prompt.locator('pre').innerText()
+ const project = `${org}/${after.projects[0].slug}`
+ expect(text.includes(`Set up VisualCI for the project ${project}`) && text.includes('create_project_token'), `the prompt: ${text}`)
+ await shot('add-to-ci')
+ await page.getByRole('button', { name: 'I’ll set it up myself' }).click()
+ await page.getByRole('button', { name: 'Create a token' }).waitFor()
+ await shot('add-to-ci-myself')
})
// 9. Uninstalled and installed again (Nathan's case on 3 Dec 2026, a new installation ID): the same organization, its
diff --git a/skills/visualci/SKILL.md b/skills/visualci/SKILL.md
index 5aa075ec..bcb5860c 100644
--- a/skills/visualci/SKILL.md
+++ b/skills/visualci/SKILL.md
@@ -18,13 +18,28 @@ Sign in at [app.visualci.com](https://app.visualci.com) with GitHub, then choose
Back in VisualCI, pick the repositories to test: search and page through everything the App can reach, even an organization with hundreds of repositories. Each one you pick becomes a project, linked to the repository, so its pull requests get a VisualCI check. You can pick repositories you maintain or administer on GitHub; the others say why not. **Add repositories** on the organization's page picks more later. Already installed the App? The setup steps offer that installation: choose **Set it up**.
-Then create a project token on the project's **Tokens** tab (the **Add VisualCI to CI** step does it for you). Project tokens start with `vci_`.
-
Not on GitHub? Create a project by hand from the organization's page, or let a coding agent do it over MCP with `create_project` and `create_project_token`. See [Coding agents](https://visualci.com/docs/agents.md).
-## 2. Install the CLI
+## 2. Connect your coding agent
-On Linux (x86_64 or arm64) or macOS:
+Add VisualCI's MCP server, `https://mcp.visualci.com/mcp`, to your coding agent and sign in. The **Connect your coding agent** step shows the command for Claude Code, Codex, Cursor, VS Code and others. In Claude Code:
+
+```sh
+claude plugin marketplace add DocSpring/visualci
+claude plugin install visualci@visualci
+```
+
+Then run `/mcp` and sign in. See [Coding agents](https://visualci.com/docs/agents.md).
+
+## 3. Add VisualCI to CI
+
+Your agent does this. The **Add VisualCI to CI** step gives you a prompt to paste into it, filled in for your project. The agent reads this guide and the skill for your CI provider (`get_skill`), finds the screenshots, PDFs and snapshot files your tests produce, creates a CI token (`create_project_token`) and saves it as the `VISUALCI_TOKEN` secret, adds `visualci.yml` and a VisualCI step after your tests, and opens a pull request. The step ticks when the first build from CI arrives.
+
+### Doing it yourself
+
+Choose **I'll set it up myself** in that step, or follow these steps.
+
+Install the CLI on Linux (x86_64 or arm64) or macOS:
```sh
curl -fsSL https://visualci.com/install.sh | sh
@@ -36,9 +51,7 @@ It installs to `/usr/local/bin`, or to `$VISUALCI_INSTALL_DIR`, and checks the d
cargo install --git https://github.com/DocSpring/visualci visualci-cli
```
-## 3. Send a build
-
-Set `VISUALCI_TOKEN` to the project token in your CI provider's secrets. Then, in the CI job:
+Create a project token on the project's **Tokens** tab and set `VISUALCI_TOKEN` to it in your CI provider's secrets. Project tokens start with `vci_`. Then, in the CI job:
```sh
export VISUALCI_BUILD_ID=$(visualci build create)
@@ -61,7 +74,6 @@ Two things make that loop hold: [require the VisualCI check](https://visualci.co
## Next
- [Set up your CI provider](https://visualci.com/docs/ci/github-actions.md)
-- [Connect your coding agent](https://visualci.com/docs/agents.md)
- [Send your snapshot tests](https://visualci.com/docs/snapshots/jest.md)
- [Keep settings in visualci.yml](https://visualci.com/docs/reference/config.md)
- [Install the agent skills](https://visualci.com/docs/skills.md)
From 2dd314b5301d85ea81ea4c330c67d6dcad2f395b Mon Sep 17 00:00:00 2001
From: Nathan Broadbent
Date: Fri, 4 Dec 2026 14:40:44 +1300
Subject: [PATCH 3/7] Docs: Vitest's toMatchFileSnapshot files are uploaded as
plain files (found walking the setup prompt)
---
frontend/content/docs/snapshots/vitest.md | 8 +++++++-
skills/visualci-vitest/SKILL.md | 8 +++++++-
2 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/frontend/content/docs/snapshots/vitest.md b/frontend/content/docs/snapshots/vitest.md
index f7f0cefc..058d11a3 100644
--- a/frontend/content/docs/snapshots/vitest.md
+++ b/frontend/content/docs/snapshots/vitest.md
@@ -2,7 +2,7 @@
title: Vitest
description: Send Vitest snapshot files to VisualCI, so a changed snapshot waits for review instead of failing the build.
skill: visualci-vitest
-skill_description: Sends Vitest snapshot files to VisualCI, so a changed snapshot waits for review instead of failing the build: running Vitest with -u in CI and uploading the .snap files, one snapshot per test. Use when a project uses Vitest snapshots (toMatchSnapshot, __snapshots__/*.snap) with VisualCI. Not for Jest or screenshots.
+skill_description: Sends Vitest snapshot files to VisualCI, so a changed snapshot waits for review instead of failing the build: running Vitest with -u in CI and uploading the .snap files, one snapshot per test. Use when a project uses Vitest snapshots (toMatchSnapshot, toMatchFileSnapshot, __snapshots__/*.snap) with VisualCI. Not for Jest or screenshots.
---
Vitest writes snapshots to `__snapshots__/*.snap` next to each test file, in the same format as Jest. VisualCI reads those files and splits them into one snapshot per test.
@@ -38,6 +38,12 @@ visualci build finalize
Snapshot names are the file's path without `__snapshots__/` and the extension, then the test's name. `--from auto` detects each file's framework, for repositories with several.
+`toMatchFileSnapshot` writes a plain file (`invoice.html`), which `--from` doesn't read: it reads `.snap` files. Upload those files as they are, in their own command or `uploads` entry:
+
+```sh
+visualci upload src/__snapshots__/invoice.html
+```
+
When a snapshot changed, CI still passes and the pull request's check waits. Your coding agent reads the change with `get_snapshot`, which shows text snapshots as a unified diff and JSON as changes by path (`items[3].price: 10 → 12`), then approves it or fixes the code. See [Coding agents](/docs/agents/).
## Ignore volatile values
diff --git a/skills/visualci-vitest/SKILL.md b/skills/visualci-vitest/SKILL.md
index b2c585b3..4d7f63a5 100644
--- a/skills/visualci-vitest/SKILL.md
+++ b/skills/visualci-vitest/SKILL.md
@@ -1,6 +1,6 @@
---
name: visualci-vitest
-description: "Sends Vitest snapshot files to VisualCI, so a changed snapshot waits for review instead of failing the build: running Vitest with -u in CI and uploading the .snap files, one snapshot per test. Use when a project uses Vitest snapshots (toMatchSnapshot, __snapshots__/*.snap) with VisualCI. Not for Jest or screenshots."
+description: "Sends Vitest snapshot files to VisualCI, so a changed snapshot waits for review instead of failing the build: running Vitest with -u in CI and uploading the .snap files, one snapshot per test. Use when a project uses Vitest snapshots (toMatchSnapshot, toMatchFileSnapshot, __snapshots__/*.snap) with VisualCI. Not for Jest or screenshots."
license: Apache-2.0
metadata:
docs: https://visualci.com/docs/snapshots/vitest.md
@@ -43,6 +43,12 @@ visualci build finalize
Snapshot names are the file's path without `__snapshots__/` and the extension, then the test's name. `--from auto` detects each file's framework, for repositories with several.
+`toMatchFileSnapshot` writes a plain file (`invoice.html`), which `--from` doesn't read: it reads `.snap` files. Upload those files as they are, in their own command or `uploads` entry:
+
+```sh
+visualci upload src/__snapshots__/invoice.html
+```
+
When a snapshot changed, CI still passes and the pull request's check waits. Your coding agent reads the change with `get_snapshot`, which shows text snapshots as a unified diff and JSON as changes by path (`items[3].price: 10 → 12`), then approves it or fixes the code. See [Coding agents](https://visualci.com/docs/agents.md).
## Ignore volatile values
From a98a1850c7c5c5d82d82167979ae375de9433bbb Mon Sep 17 00:00:00 2001
From: Nathan Broadbent
Date: Fri, 4 Dec 2026 14:51:16 +1300
Subject: [PATCH 4/7] MCP goldens: the new step order and the Vitest skill's
description
---
.../get_organization.json | 10 +++++-----
.../whoami.json | 10 +++++-----
.../get_organization.json | 6 +++---
.../get_skill.json | 4 ++--
.../get_organization.json | 6 +++---
5 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/app/tests/golden/mcp/a_personal_token_manages_organizations_projects_and_tokens/get_organization.json b/app/tests/golden/mcp/a_personal_token_manages_organizations_projects_and_tokens/get_organization.json
index de9fca3d..5e3e699b 100644
--- a/app/tests/golden/mcp/a_personal_token_manages_organizations_projects_and_tokens/get_organization.json
+++ b/app/tests/golden/mcp/a_personal_token_manages_organizations_projects_and_tokens/get_organization.json
@@ -5,7 +5,7 @@
"result": {
"content": [
{
- "text": "{\"billing_url\":\"https://app.visualci.test//billing\",\"invitations\":[],\"members\":[{\"avatar_url\":null,\"email\":\"@example.com\",\"id\":\"\",\"identities\":[],\"login\":null,\"name\":\"owner\",\"role\":\"admin\",\"since\":\"\",\"source\":\"created\",\"synced_at\":null}],\"name\":\"Org\",\"projects\":[{\"last_build\":null,\"name\":\"PDFs\",\"project\":\"/pdfs\"},{\"last_build\":null,\"name\":\"Screenshots\",\"project\":\"/shots\"}],\"role\":\"admin\",\"setup\":{\"complete\":false,\"dismissed\":false,\"github\":[],\"install_url\":\"/github/install\",\"installations\":[],\"next\":\"install_github_app\",\"steps\":[{\"done\":false,\"key\":\"install_github_app\"},{\"done\":false,\"key\":\"add_to_ci\"},{\"done\":true,\"key\":\"connect_agent\"},{\"done\":false,\"key\":\"review_changes\"}]},\"slug\":\"\",\"usage\":{\"auto_reload_packs\":4,\"billing_problem\":null,\"credit_pack\":{\"credits\":500000,\"price_cents\":1500,\"reload_below\":100000},\"credits_this_month\":0,\"included_credits\":25000,\"open_source\":{\"pool\":1000000,\"projects\":0,\"used\":0},\"out_of_credits\":false,\"pack_credits\":0,\"plan\":{\"credit_packs\":false,\"id\":\"free\",\"included_credits\":25000,\"name\":\"Free\",\"price_cents\":0,\"unlimited\":false},\"rates\":{\"image_diff\":10,\"rendered_page\":20,\"snapshot_check\":1,\"text_diff\":5},\"reloads_paused\":false,\"reloads_this_month\":0,\"renews_at\":\"\",\"unlimited\":false},\"usage_history\":[]}",
+ "text": "{\"billing_url\":\"https://app.visualci.test//billing\",\"invitations\":[],\"members\":[{\"avatar_url\":null,\"email\":\"@example.com\",\"id\":\"\",\"identities\":[],\"login\":null,\"name\":\"owner\",\"role\":\"admin\",\"since\":\"\",\"source\":\"created\",\"synced_at\":null}],\"name\":\"Org\",\"projects\":[{\"last_build\":null,\"name\":\"PDFs\",\"project\":\"/pdfs\"},{\"last_build\":null,\"name\":\"Screenshots\",\"project\":\"/shots\"}],\"role\":\"admin\",\"setup\":{\"complete\":false,\"dismissed\":false,\"github\":[],\"install_url\":\"/github/install\",\"installations\":[],\"next\":\"install_github_app\",\"steps\":[{\"done\":false,\"key\":\"install_github_app\"},{\"done\":true,\"key\":\"connect_agent\"},{\"done\":false,\"key\":\"add_to_ci\"},{\"done\":false,\"key\":\"review_changes\"}]},\"slug\":\"\",\"usage\":{\"auto_reload_packs\":4,\"billing_problem\":null,\"credit_pack\":{\"credits\":500000,\"price_cents\":1500,\"reload_below\":100000},\"credits_this_month\":0,\"included_credits\":25000,\"open_source\":{\"pool\":1000000,\"projects\":0,\"used\":0},\"out_of_credits\":false,\"pack_credits\":0,\"plan\":{\"credit_packs\":false,\"id\":\"free\",\"included_credits\":25000,\"name\":\"Free\",\"price_cents\":0,\"unlimited\":false},\"rates\":{\"image_diff\":10,\"rendered_page\":20,\"snapshot_check\":1,\"text_diff\":5},\"reloads_paused\":false,\"reloads_this_month\":0,\"renews_at\":\"\",\"unlimited\":false},\"usage_history\":[]}",
"type": "text"
}
],
@@ -53,14 +53,14 @@
"done": false,
"key": "install_github_app"
},
- {
- "done": false,
- "key": "add_to_ci"
- },
{
"done": true,
"key": "connect_agent"
},
+ {
+ "done": false,
+ "key": "add_to_ci"
+ },
{
"done": false,
"key": "review_changes"
diff --git a/app/tests/golden/mcp/a_personal_token_manages_organizations_projects_and_tokens/whoami.json b/app/tests/golden/mcp/a_personal_token_manages_organizations_projects_and_tokens/whoami.json
index 4350f2fe..244a5c5f 100644
--- a/app/tests/golden/mcp/a_personal_token_manages_organizations_projects_and_tokens/whoami.json
+++ b/app/tests/golden/mcp/a_personal_token_manages_organizations_projects_and_tokens/whoami.json
@@ -3,7 +3,7 @@
"result": {
"content": [
{
- "text": "{\"email\":\"@example.com\",\"identities\":[],\"kind\":\"user\",\"name\":\"owner\",\"organizations\":[{\"blocked\":null,\"name\":\"Org\",\"projects\":[\"/pdfs\",\"/shots\"],\"role\":\"admin\",\"setup\":{\"complete\":false,\"dismissed\":false,\"github\":[],\"install_url\":\"/github/install\",\"installations\":[],\"next\":\"install_github_app\",\"steps\":[{\"done\":false,\"key\":\"install_github_app\"},{\"done\":false,\"key\":\"add_to_ci\"},{\"done\":true,\"key\":\"connect_agent\"},{\"done\":false,\"key\":\"review_changes\"}]},\"slug\":\"\"}],\"via\":{\"source\":\"personal_token\",\"token_name\":\"agent\"},\"waiting_for_review\":[]}",
+ "text": "{\"email\":\"@example.com\",\"identities\":[],\"kind\":\"user\",\"name\":\"owner\",\"organizations\":[{\"blocked\":null,\"name\":\"Org\",\"projects\":[\"/pdfs\",\"/shots\"],\"role\":\"admin\",\"setup\":{\"complete\":false,\"dismissed\":false,\"github\":[],\"install_url\":\"/github/install\",\"installations\":[],\"next\":\"install_github_app\",\"steps\":[{\"done\":false,\"key\":\"install_github_app\"},{\"done\":true,\"key\":\"connect_agent\"},{\"done\":false,\"key\":\"add_to_ci\"},{\"done\":false,\"key\":\"review_changes\"}]},\"slug\":\"\"}],\"via\":{\"source\":\"personal_token\",\"token_name\":\"agent\"},\"waiting_for_review\":[]}",
"type": "text"
}
],
@@ -34,14 +34,14 @@
"done": false,
"key": "install_github_app"
},
- {
- "done": false,
- "key": "add_to_ci"
- },
{
"done": true,
"key": "connect_agent"
},
+ {
+ "done": false,
+ "key": "add_to_ci"
+ },
{
"done": false,
"key": "review_changes"
diff --git a/app/tests/golden/mcp/a_project_token_acts_as_a_member_not_an_admin/get_organization.json b/app/tests/golden/mcp/a_project_token_acts_as_a_member_not_an_admin/get_organization.json
index 4a450a40..55822714 100644
--- a/app/tests/golden/mcp/a_project_token_acts_as_a_member_not_an_admin/get_organization.json
+++ b/app/tests/golden/mcp/a_project_token_acts_as_a_member_not_an_admin/get_organization.json
@@ -5,7 +5,7 @@
"result": {
"content": [
{
- "text": "{\"billing_url\":\"https://app.visualci.test//billing\",\"invitations\":[],\"members\":[],\"name\":\"Org\",\"projects\":[{\"last_build\":null,\"name\":\"PDFs\",\"project\":\"/pdfs\"}],\"role\":\"project\",\"setup\":{\"complete\":false,\"dismissed\":false,\"github\":[],\"install_url\":\"/github/install\",\"installations\":[],\"next\":\"install_github_app\",\"steps\":[{\"done\":false,\"key\":\"install_github_app\"},{\"done\":false,\"key\":\"add_to_ci\"},{\"done\":false,\"key\":\"connect_agent\"},{\"done\":false,\"key\":\"review_changes\"}]},\"slug\":\"\",\"usage\":{\"auto_reload_packs\":4,\"billing_problem\":null,\"credit_pack\":{\"credits\":500000,\"price_cents\":1500,\"reload_below\":100000},\"credits_this_month\":0,\"included_credits\":25000,\"open_source\":{\"pool\":1000000,\"projects\":0,\"used\":0},\"out_of_credits\":false,\"pack_credits\":0,\"plan\":{\"credit_packs\":false,\"id\":\"free\",\"included_credits\":25000,\"name\":\"Free\",\"price_cents\":0,\"unlimited\":false},\"rates\":{\"image_diff\":10,\"rendered_page\":20,\"snapshot_check\":1,\"text_diff\":5},\"reloads_paused\":false,\"reloads_this_month\":0,\"renews_at\":\"\",\"unlimited\":false},\"usage_history\":[]}",
+ "text": "{\"billing_url\":\"https://app.visualci.test//billing\",\"invitations\":[],\"members\":[],\"name\":\"Org\",\"projects\":[{\"last_build\":null,\"name\":\"PDFs\",\"project\":\"/pdfs\"}],\"role\":\"project\",\"setup\":{\"complete\":false,\"dismissed\":false,\"github\":[],\"install_url\":\"/github/install\",\"installations\":[],\"next\":\"install_github_app\",\"steps\":[{\"done\":false,\"key\":\"install_github_app\"},{\"done\":false,\"key\":\"connect_agent\"},{\"done\":false,\"key\":\"add_to_ci\"},{\"done\":false,\"key\":\"review_changes\"}]},\"slug\":\"\",\"usage\":{\"auto_reload_packs\":4,\"billing_problem\":null,\"credit_pack\":{\"credits\":500000,\"price_cents\":1500,\"reload_below\":100000},\"credits_this_month\":0,\"included_credits\":25000,\"open_source\":{\"pool\":1000000,\"projects\":0,\"used\":0},\"out_of_credits\":false,\"pack_credits\":0,\"plan\":{\"credit_packs\":false,\"id\":\"free\",\"included_credits\":25000,\"name\":\"Free\",\"price_cents\":0,\"unlimited\":false},\"rates\":{\"image_diff\":10,\"rendered_page\":20,\"snapshot_check\":1,\"text_diff\":5},\"reloads_paused\":false,\"reloads_this_month\":0,\"renews_at\":\"\",\"unlimited\":false},\"usage_history\":[]}",
"type": "text"
}
],
@@ -37,11 +37,11 @@
},
{
"done": false,
- "key": "add_to_ci"
+ "key": "connect_agent"
},
{
"done": false,
- "key": "connect_agent"
+ "key": "add_to_ci"
},
{
"done": false,
diff --git a/app/tests/golden/mcp/get_skill_lists_the_skills_and_returns_one/get_skill.json b/app/tests/golden/mcp/get_skill_lists_the_skills_and_returns_one/get_skill.json
index 6047f174..9bf6c562 100644
--- a/app/tests/golden/mcp/get_skill_lists_the_skills_and_returns_one/get_skill.json
+++ b/app/tests/golden/mcp/get_skill_lists_the_skills_and_returns_one/get_skill.json
@@ -3,7 +3,7 @@
"result": {
"content": [
{
- "text": "{\"skills\":[{\"description\":\"Sets up VisualCI, visual regression and snapshot review for PDFs, screenshots, images, JSON, HTML and text: installs the GitHub App (the person picks which repositories become projects) and the CLI, creates a CI token, sends the first build, and picks the visualci-* skill for the user's CI provider and test tools. Use when the user mentions VisualCI, wants visual regression testing, screenshot or PDF comparison, or snapshot changes that wait for review instead of failing CI. Not for a specific CI provider or test tool once VisualCI is set up: use that skill.\",\"name\":\"visualci\"},{\"description\":\"Sets up VisualCI in Bitbucket Pipelines (bitbucket-pipelines.yml): the token as a secured variable, installing the CLI, creating the build, uploading snapshots and finalizing, including parallel steps. Use when the user wants visual or snapshot review in Bitbucket Pipelines, or a project has bitbucket-pipelines.yml and VisualCI. Not for other CI providers, or for writing the tests themselves.\",\"name\":\"visualci-bitbucket\"},{\"description\":\"Sets up VisualCI in Buildkite pipelines: the token as a secret, installing the CLI, creating the build, uploading snapshots and finalizing, including parallel jobs. Use when the user wants visual or snapshot review in Buildkite, or a project has .buildkite/ and VisualCI. Not for other CI providers, or for writing the tests themselves.\",\"name\":\"visualci-buildkite\"},{\"description\":\"Sets up VisualCI in CircleCI (.circleci/config.yml): the token in a context or project variable, installing the CLI, creating the build, uploading snapshots and finalizing, including parallelism. Use when the user wants visual or snapshot review in CircleCI, or a project has .circleci/config.yml and VisualCI. Not for other CI providers, or for writing the tests themselves.\",\"name\":\"visualci-circleci\"},{\"description\":\"Writes and edits visualci.yml: ignore rules scoped to snapshot globs (JSON paths and regular expressions for text, masked regions and rectangles for screenshots), thresholds, PDF rendering, the CI mode and what to upload. Use when the user wants to ignore volatile values such as timestamps or IDs, leave a part of a screenshot that differs on every run (a status bar, a tab bar's glass effect) out of the diff, change thresholds or the CI mode, or keep VisualCI settings in the repository. Not for per-snapshot ignores in a single test.\",\"name\":\"visualci-config\"},{\"description\":\"Sends Cypress screenshots to VisualCI: taking them with cy.screenshot, turning off failure screenshots, uploading cypress/screenshots with a platform per browser and a threshold, and reviewing changes. Use when a project uses Cypress (cypress.config, cy.screenshot) and wants visual review with VisualCI. Not for Playwright or Capybara.\",\"name\":\"visualci-cypress\"},{\"description\":\"Makes browser screenshots deterministic so VisualCI shows only real changes, covering seeded randomness, loaded and self-hosted fonts, reduced motion, frozen animations, GIFs and videos, a pinned clock and timezone, a hermetic network, and a fixed viewport, scrollbar and device pixel ratio. Gives recipes for Playwright, Cypress and Storybook. Use when screenshots differ between runs of the same commit (flaky diffs), or when setting up visual tests. Not for uploading screenshots or setting up the CI provider.\",\"name\":\"visualci-deterministic\"},{\"description\":\"Sets up VisualCI in GitHub Actions, including Blacksmith and Depot runners, with VisualCI's action (DocSpring/visualci/clients/github-action): the token as a secret, what to upload, and matrix and parallel jobs, or with the CLI directly. Use when the user wants visual or snapshot review in GitHub Actions, or a project has .github/workflows and VisualCI. Not for other CI providers, or for writing the tests themselves.\",\"name\":\"visualci-github-actions\"},{\"description\":\"Sets up VisualCI in GitLab CI (.gitlab-ci.yml): the token as a masked variable, installing the CLI, creating the build, uploading snapshots and finalizing, and the CI modes for reviewing without a GitHub check. Use when the user wants visual or snapshot review in GitLab CI, or a project has .gitlab-ci.yml and VisualCI. Not for other CI providers, or for writing the tests themselves.\",\"name\":\"visualci-gitlab\"},{\"description\":\"Sends insta (Rust) snapshot files to VisualCI, so a changed snapshot waits for review instead of failing cargo test: accepting snapshots in CI and uploading the .snap files. Use when a Rust project uses insta (assert_snapshot!, snapshots/*.snap) with VisualCI. Not for other languages.\",\"name\":\"visualci-insta\"},{\"description\":\"Sets up VisualCI in a Jenkins pipeline (Jenkinsfile): the token as a credential, installing the CLI, creating the build, uploading snapshots and finalizing, including parallel stages. Use when the user wants visual or snapshot review in Jenkins, or a project has a Jenkinsfile and VisualCI. Not for other CI providers, or for writing the tests themselves.\",\"name\":\"visualci-jenkins\"},{\"description\":\"Sends Jest snapshot files to VisualCI, so a changed snapshot waits for review instead of failing the build: running Jest with -u in CI and uploading the .snap files, one snapshot per test. Use when a project uses Jest snapshots (toMatchSnapshot, __snapshots__/*.snap) with VisualCI. Not for Vitest or screenshots.\",\"name\":\"visualci-jest\"},{\"description\":\"Sets up VisualCI for a Laravel Rust app's tests with the snapshot-testing-laravel crate: browser screenshots and HTML, JSON and text snapshots of responses, run under `visualci test -- cargo test`, with names, platforms, ignore rules and thresholds as VisualCI sees them. Use when a Laravel Rust project uses snapshot-testing-laravel, or wants screenshot or snapshot tests with VisualCI. Not for other Rust projects (see visualci-insta) or other frameworks.\",\"name\":\"visualci-laravel-rust\"},{\"description\":\"Runs tests on a laptop against VisualCI's baselines: local environments, each test failing once with every snapshot it changed, and approving local changes so the branch's baseline matches. Use when the user runs visual or snapshot tests locally with VisualCI, sees VisualCI failures in a local run, or wants to approve local results. Not for CI setup.\",\"name\":\"visualci-local-runs\"},{\"description\":\"Sends mobile app screenshots to VisualCI from iOS (XCUITest, swift-snapshot-testing), Android (Espresso, Paparazzi, Roborazzi), Maestro, Detox (React Native) and Flutter golden tests, with a platform tag per OS version and device. Use when an iOS, Android, React Native or Flutter project wants visual review with VisualCI. Not for browser screenshots (Playwright, Cypress) or for setting up the CI provider.\",\"name\":\"visualci-mobile\"},{\"description\":\"Compares PDFs a test suite generates (Ruby, Node, Python or anything else) with VisualCI, page by page in one pinned renderer: uploading them, fingerprints, checking fingerprints are stable, and reading page, text and moved-line changes. Use when a project generates PDFs (invoices, reports, statements, labels) and the user wants them checked for visual changes. Not for screenshots.\",\"name\":\"visualci-pdfs\"},{\"description\":\"Sends Playwright screenshots to VisualCI instead of toHaveScreenshot baselines in the repository: saving screenshots in tests, uploading them with a platform per browser project and a threshold, and reviewing changes. Use when a project uses Playwright (playwright.config, @playwright/test) and wants visual review with VisualCI. Not for Cypress or Capybara.\",\"name\":\"visualci-playwright\"},{\"description\":\"Reviews a VisualCI build over the MCP server: finds what changed, reads each snapshot's diff images, text diff or JSON changes, checks them against the code and the task, then approves intended changes or fixes the code and pushes. Use when a VisualCI check is pending or failing on a pull request, the user asks what changed visually, or asks to approve or reject snapshots. Not for setting VisualCI up in CI.\",\"name\":\"visualci-review\"},{\"description\":\"Adds VisualCI to RSpec feature and system specs with the visualci gem: screenshots from Capybara, PDFs, JSON, HTML and text matchers, per-snapshot ignore rules, local runs that fail each example once, and sharded CI builds. Use when a Ruby project wants visual review of Capybara screenshots or generated documents in RSpec. Not for rspec-snapshot files: see visualci-rspec-snapshot.\",\"name\":\"visualci-rspec-screenshots\"},{\"description\":\"Sends rspec-snapshot files to VisualCI, so a changed snapshot waits for review instead of failing RSpec: updating snapshots in CI and uploading the .snap files. Use when a Ruby project uses rspec-snapshot (match_snapshot) with VisualCI. Not for RSpec screenshots or PDFs: see visualci-rspec-screenshots and visualci-pdfs.\",\"name\":\"visualci-rspec-snapshot\"},{\"description\":\"Sets up VisualCI in Semaphore (.semaphore/semaphore.yml): the token as a secret, installing the CLI, creating the build, uploading snapshots and finalizing, including parallelism. Use when the user wants visual or snapshot review in Semaphore, or a project has .semaphore/ and VisualCI. Not for other CI providers, or for writing the tests themselves.\",\"name\":\"visualci-semaphore\"},{\"description\":\"Sends syrupy (pytest) snapshot files to VisualCI, so a changed snapshot waits for review instead of failing pytest: updating snapshots in CI and uploading the .ambr files, one snapshot per test. Use when a Python project uses syrupy (snapshot fixture, __snapshots__/*.ambr) with VisualCI. Not for other languages.\",\"name\":\"visualci-syrupy\"},{\"description\":\"Sets up VisualCI in TeamCity: the token as a password parameter, the commit, branch and pull request from TeamCity's parameters, installing the CLI, creating the build, uploading snapshots and finalizing. Use when the user wants visual or snapshot review in TeamCity, or a project has a .teamcity/ directory and VisualCI. Not for other CI providers, or for writing the tests themselves.\",\"name\":\"visualci-teamcity\"},{\"description\":\"Sets up VisualCI in Travis CI (.travis.yml): the token as a repository variable, installing the CLI, creating the build, uploading snapshots and finalizing. Use when the user wants visual or snapshot review in Travis CI, or a project has .travis.yml and VisualCI. Not for other CI providers, or for writing the tests themselves.\",\"name\":\"visualci-travis\"},{\"description\":\"Sends Vitest snapshot files to VisualCI, so a changed snapshot waits for review instead of failing the build: running Vitest with -u in CI and uploading the .snap files, one snapshot per test. Use when a project uses Vitest snapshots (toMatchSnapshot, __snapshots__/*.snap) with VisualCI. Not for Jest or screenshots.\",\"name\":\"visualci-vitest\"}]}",
+ "text": "{\"skills\":[{\"description\":\"Sets up VisualCI, visual regression and snapshot review for PDFs, screenshots, images, JSON, HTML and text: installs the GitHub App (the person picks which repositories become projects) and the CLI, creates a CI token, sends the first build, and picks the visualci-* skill for the user's CI provider and test tools. Use when the user mentions VisualCI, wants visual regression testing, screenshot or PDF comparison, or snapshot changes that wait for review instead of failing CI. Not for a specific CI provider or test tool once VisualCI is set up: use that skill.\",\"name\":\"visualci\"},{\"description\":\"Sets up VisualCI in Bitbucket Pipelines (bitbucket-pipelines.yml): the token as a secured variable, installing the CLI, creating the build, uploading snapshots and finalizing, including parallel steps. Use when the user wants visual or snapshot review in Bitbucket Pipelines, or a project has bitbucket-pipelines.yml and VisualCI. Not for other CI providers, or for writing the tests themselves.\",\"name\":\"visualci-bitbucket\"},{\"description\":\"Sets up VisualCI in Buildkite pipelines: the token as a secret, installing the CLI, creating the build, uploading snapshots and finalizing, including parallel jobs. Use when the user wants visual or snapshot review in Buildkite, or a project has .buildkite/ and VisualCI. Not for other CI providers, or for writing the tests themselves.\",\"name\":\"visualci-buildkite\"},{\"description\":\"Sets up VisualCI in CircleCI (.circleci/config.yml): the token in a context or project variable, installing the CLI, creating the build, uploading snapshots and finalizing, including parallelism. Use when the user wants visual or snapshot review in CircleCI, or a project has .circleci/config.yml and VisualCI. Not for other CI providers, or for writing the tests themselves.\",\"name\":\"visualci-circleci\"},{\"description\":\"Writes and edits visualci.yml: ignore rules scoped to snapshot globs (JSON paths and regular expressions for text, masked regions and rectangles for screenshots), thresholds, PDF rendering, the CI mode and what to upload. Use when the user wants to ignore volatile values such as timestamps or IDs, leave a part of a screenshot that differs on every run (a status bar, a tab bar's glass effect) out of the diff, change thresholds or the CI mode, or keep VisualCI settings in the repository. Not for per-snapshot ignores in a single test.\",\"name\":\"visualci-config\"},{\"description\":\"Sends Cypress screenshots to VisualCI: taking them with cy.screenshot, turning off failure screenshots, uploading cypress/screenshots with a platform per browser and a threshold, and reviewing changes. Use when a project uses Cypress (cypress.config, cy.screenshot) and wants visual review with VisualCI. Not for Playwright or Capybara.\",\"name\":\"visualci-cypress\"},{\"description\":\"Makes browser screenshots deterministic so VisualCI shows only real changes, covering seeded randomness, loaded and self-hosted fonts, reduced motion, frozen animations, GIFs and videos, a pinned clock and timezone, a hermetic network, and a fixed viewport, scrollbar and device pixel ratio. Gives recipes for Playwright, Cypress and Storybook. Use when screenshots differ between runs of the same commit (flaky diffs), or when setting up visual tests. Not for uploading screenshots or setting up the CI provider.\",\"name\":\"visualci-deterministic\"},{\"description\":\"Sets up VisualCI in GitHub Actions, including Blacksmith and Depot runners, with VisualCI's action (DocSpring/visualci/clients/github-action): the token as a secret, what to upload, and matrix and parallel jobs, or with the CLI directly. Use when the user wants visual or snapshot review in GitHub Actions, or a project has .github/workflows and VisualCI. Not for other CI providers, or for writing the tests themselves.\",\"name\":\"visualci-github-actions\"},{\"description\":\"Sets up VisualCI in GitLab CI (.gitlab-ci.yml): the token as a masked variable, installing the CLI, creating the build, uploading snapshots and finalizing, and the CI modes for reviewing without a GitHub check. Use when the user wants visual or snapshot review in GitLab CI, or a project has .gitlab-ci.yml and VisualCI. Not for other CI providers, or for writing the tests themselves.\",\"name\":\"visualci-gitlab\"},{\"description\":\"Sends insta (Rust) snapshot files to VisualCI, so a changed snapshot waits for review instead of failing cargo test: accepting snapshots in CI and uploading the .snap files. Use when a Rust project uses insta (assert_snapshot!, snapshots/*.snap) with VisualCI. Not for other languages.\",\"name\":\"visualci-insta\"},{\"description\":\"Sets up VisualCI in a Jenkins pipeline (Jenkinsfile): the token as a credential, installing the CLI, creating the build, uploading snapshots and finalizing, including parallel stages. Use when the user wants visual or snapshot review in Jenkins, or a project has a Jenkinsfile and VisualCI. Not for other CI providers, or for writing the tests themselves.\",\"name\":\"visualci-jenkins\"},{\"description\":\"Sends Jest snapshot files to VisualCI, so a changed snapshot waits for review instead of failing the build: running Jest with -u in CI and uploading the .snap files, one snapshot per test. Use when a project uses Jest snapshots (toMatchSnapshot, __snapshots__/*.snap) with VisualCI. Not for Vitest or screenshots.\",\"name\":\"visualci-jest\"},{\"description\":\"Sets up VisualCI for a Laravel Rust app's tests with the snapshot-testing-laravel crate: browser screenshots and HTML, JSON and text snapshots of responses, run under `visualci test -- cargo test`, with names, platforms, ignore rules and thresholds as VisualCI sees them. Use when a Laravel Rust project uses snapshot-testing-laravel, or wants screenshot or snapshot tests with VisualCI. Not for other Rust projects (see visualci-insta) or other frameworks.\",\"name\":\"visualci-laravel-rust\"},{\"description\":\"Runs tests on a laptop against VisualCI's baselines: local environments, each test failing once with every snapshot it changed, and approving local changes so the branch's baseline matches. Use when the user runs visual or snapshot tests locally with VisualCI, sees VisualCI failures in a local run, or wants to approve local results. Not for CI setup.\",\"name\":\"visualci-local-runs\"},{\"description\":\"Sends mobile app screenshots to VisualCI from iOS (XCUITest, swift-snapshot-testing), Android (Espresso, Paparazzi, Roborazzi), Maestro, Detox (React Native) and Flutter golden tests, with a platform tag per OS version and device. Use when an iOS, Android, React Native or Flutter project wants visual review with VisualCI. Not for browser screenshots (Playwright, Cypress) or for setting up the CI provider.\",\"name\":\"visualci-mobile\"},{\"description\":\"Compares PDFs a test suite generates (Ruby, Node, Python or anything else) with VisualCI, page by page in one pinned renderer: uploading them, fingerprints, checking fingerprints are stable, and reading page, text and moved-line changes. Use when a project generates PDFs (invoices, reports, statements, labels) and the user wants them checked for visual changes. Not for screenshots.\",\"name\":\"visualci-pdfs\"},{\"description\":\"Sends Playwright screenshots to VisualCI instead of toHaveScreenshot baselines in the repository: saving screenshots in tests, uploading them with a platform per browser project and a threshold, and reviewing changes. Use when a project uses Playwright (playwright.config, @playwright/test) and wants visual review with VisualCI. Not for Cypress or Capybara.\",\"name\":\"visualci-playwright\"},{\"description\":\"Reviews a VisualCI build over the MCP server: finds what changed, reads each snapshot's diff images, text diff or JSON changes, checks them against the code and the task, then approves intended changes or fixes the code and pushes. Use when a VisualCI check is pending or failing on a pull request, the user asks what changed visually, or asks to approve or reject snapshots. Not for setting VisualCI up in CI.\",\"name\":\"visualci-review\"},{\"description\":\"Adds VisualCI to RSpec feature and system specs with the visualci gem: screenshots from Capybara, PDFs, JSON, HTML and text matchers, per-snapshot ignore rules, local runs that fail each example once, and sharded CI builds. Use when a Ruby project wants visual review of Capybara screenshots or generated documents in RSpec. Not for rspec-snapshot files: see visualci-rspec-snapshot.\",\"name\":\"visualci-rspec-screenshots\"},{\"description\":\"Sends rspec-snapshot files to VisualCI, so a changed snapshot waits for review instead of failing RSpec: updating snapshots in CI and uploading the .snap files. Use when a Ruby project uses rspec-snapshot (match_snapshot) with VisualCI. Not for RSpec screenshots or PDFs: see visualci-rspec-screenshots and visualci-pdfs.\",\"name\":\"visualci-rspec-snapshot\"},{\"description\":\"Sets up VisualCI in Semaphore (.semaphore/semaphore.yml): the token as a secret, installing the CLI, creating the build, uploading snapshots and finalizing, including parallelism. Use when the user wants visual or snapshot review in Semaphore, or a project has .semaphore/ and VisualCI. Not for other CI providers, or for writing the tests themselves.\",\"name\":\"visualci-semaphore\"},{\"description\":\"Sends syrupy (pytest) snapshot files to VisualCI, so a changed snapshot waits for review instead of failing pytest: updating snapshots in CI and uploading the .ambr files, one snapshot per test. Use when a Python project uses syrupy (snapshot fixture, __snapshots__/*.ambr) with VisualCI. Not for other languages.\",\"name\":\"visualci-syrupy\"},{\"description\":\"Sets up VisualCI in TeamCity: the token as a password parameter, the commit, branch and pull request from TeamCity's parameters, installing the CLI, creating the build, uploading snapshots and finalizing. Use when the user wants visual or snapshot review in TeamCity, or a project has a .teamcity/ directory and VisualCI. Not for other CI providers, or for writing the tests themselves.\",\"name\":\"visualci-teamcity\"},{\"description\":\"Sets up VisualCI in Travis CI (.travis.yml): the token as a repository variable, installing the CLI, creating the build, uploading snapshots and finalizing. Use when the user wants visual or snapshot review in Travis CI, or a project has .travis.yml and VisualCI. Not for other CI providers, or for writing the tests themselves.\",\"name\":\"visualci-travis\"},{\"description\":\"Sends Vitest snapshot files to VisualCI, so a changed snapshot waits for review instead of failing the build: running Vitest with -u in CI and uploading the .snap files, one snapshot per test. Use when a project uses Vitest snapshots (toMatchSnapshot, toMatchFileSnapshot, __snapshots__/*.snap) with VisualCI. Not for Jest or screenshots.\",\"name\":\"visualci-vitest\"}]}",
"type": "text"
}
],
@@ -107,7 +107,7 @@
"name": "visualci-travis"
},
{
- "description": "Sends Vitest snapshot files to VisualCI, so a changed snapshot waits for review instead of failing the build: running Vitest with -u in CI and uploading the .snap files, one snapshot per test. Use when a project uses Vitest snapshots (toMatchSnapshot, __snapshots__/*.snap) with VisualCI. Not for Jest or screenshots.",
+ "description": "Sends Vitest snapshot files to VisualCI, so a changed snapshot waits for review instead of failing the build: running Vitest with -u in CI and uploading the .snap files, one snapshot per test. Use when a project uses Vitest snapshots (toMatchSnapshot, toMatchFileSnapshot, __snapshots__/*.snap) with VisualCI. Not for Jest or screenshots.",
"name": "visualci-vitest"
}
]
diff --git a/app/tests/golden/mcp/runs_a_build_from_uploaded_files/get_organization.json b/app/tests/golden/mcp/runs_a_build_from_uploaded_files/get_organization.json
index f863f9aa..746b2ef5 100644
--- a/app/tests/golden/mcp/runs_a_build_from_uploaded_files/get_organization.json
+++ b/app/tests/golden/mcp/runs_a_build_from_uploaded_files/get_organization.json
@@ -5,7 +5,7 @@
"result": {
"content": [
{
- "text": "{\"billing_url\":\"https://app.visualci.test//billing\",\"invitations\":[],\"members\":[{\"avatar_url\":null,\"email\":\"@example.com\",\"id\":\"\",\"identities\":[],\"login\":null,\"name\":\"owner\",\"role\":\"admin\",\"since\":\"\",\"source\":\"created\",\"synced_at\":null}],\"name\":\"Org\",\"projects\":[{\"last_build\":{\"blocked\":null,\"branch\":\"main\",\"ci_mode\":\"review\",\"commit\":\"abc\",\"conclusion\":\"changes\",\"created_at\":\"\",\"environment\":\"ci\",\"environment_info\":{},\"error\":null,\"id\":\"\",\"mode\":\"ci\",\"name\":\"default\",\"number\":1,\"passed\":true,\"pr_number\":null,\"project\":\"/pdfs\",\"review_state\":\"auto_approved\",\"reviewable\":true,\"reviews\":[],\"state\":\"completed\",\"stats\":{\"added\":1,\"changed\":0,\"config\":0,\"failed\":0,\"ignored\":0,\"pending\":0,\"removed\":0,\"total\":1,\"unchanged\":0},\"url\":\"https://app.visualci.test//pdfs/builds/1\",\"warnings\":[]},\"name\":\"PDFs\",\"project\":\"/pdfs\"},{\"last_build\":null,\"name\":\"Screenshots\",\"project\":\"/shots\"}],\"role\":\"admin\",\"setup\":{\"complete\":false,\"dismissed\":false,\"github\":[],\"install_url\":\"/github/install\",\"installations\":[],\"next\":\"install_github_app\",\"steps\":[{\"done\":false,\"key\":\"install_github_app\"},{\"done\":true,\"key\":\"add_to_ci\"},{\"done\":true,\"key\":\"connect_agent\"},{\"done\":false,\"key\":\"review_changes\"}]},\"slug\":\"\",\"usage\":{\"auto_reload_packs\":4,\"billing_problem\":null,\"credit_pack\":{\"credits\":500000,\"price_cents\":1500,\"reload_below\":100000},\"credits_this_month\":1,\"included_credits\":25000,\"open_source\":{\"pool\":1000000,\"projects\":0,\"used\":0},\"out_of_credits\":false,\"pack_credits\":0,\"plan\":{\"credit_packs\":false,\"id\":\"free\",\"included_credits\":25000,\"name\":\"Free\",\"price_cents\":0,\"unlimited\":false},\"rates\":{\"image_diff\":10,\"rendered_page\":20,\"snapshot_check\":1,\"text_diff\":5},\"reloads_paused\":false,\"reloads_this_month\":0,\"renews_at\":\"\",\"unlimited\":false},\"usage_history\":[{\"created_at\":\"\",\"credits\":1,\"kind\":\"build\",\"reference\":\"build pdfs/1: 1 snapshot checked\"}]}",
+ "text": "{\"billing_url\":\"https://app.visualci.test//billing\",\"invitations\":[],\"members\":[{\"avatar_url\":null,\"email\":\"@example.com\",\"id\":\"\",\"identities\":[],\"login\":null,\"name\":\"owner\",\"role\":\"admin\",\"since\":\"\",\"source\":\"created\",\"synced_at\":null}],\"name\":\"Org\",\"projects\":[{\"last_build\":{\"blocked\":null,\"branch\":\"main\",\"ci_mode\":\"review\",\"commit\":\"abc\",\"conclusion\":\"changes\",\"created_at\":\"\",\"environment\":\"ci\",\"environment_info\":{},\"error\":null,\"id\":\"\",\"mode\":\"ci\",\"name\":\"default\",\"number\":1,\"passed\":true,\"pr_number\":null,\"project\":\"/pdfs\",\"review_state\":\"auto_approved\",\"reviewable\":true,\"reviews\":[],\"state\":\"completed\",\"stats\":{\"added\":1,\"changed\":0,\"config\":0,\"failed\":0,\"ignored\":0,\"pending\":0,\"removed\":0,\"total\":1,\"unchanged\":0},\"url\":\"https://app.visualci.test//pdfs/builds/1\",\"warnings\":[]},\"name\":\"PDFs\",\"project\":\"/pdfs\"},{\"last_build\":null,\"name\":\"Screenshots\",\"project\":\"/shots\"}],\"role\":\"admin\",\"setup\":{\"complete\":false,\"dismissed\":false,\"github\":[],\"install_url\":\"/github/install\",\"installations\":[],\"next\":\"install_github_app\",\"steps\":[{\"done\":false,\"key\":\"install_github_app\"},{\"done\":true,\"key\":\"connect_agent\"},{\"done\":true,\"key\":\"add_to_ci\"},{\"done\":false,\"key\":\"review_changes\"}]},\"slug\":\"\",\"usage\":{\"auto_reload_packs\":4,\"billing_problem\":null,\"credit_pack\":{\"credits\":500000,\"price_cents\":1500,\"reload_below\":100000},\"credits_this_month\":1,\"included_credits\":25000,\"open_source\":{\"pool\":1000000,\"projects\":0,\"used\":0},\"out_of_credits\":false,\"pack_credits\":0,\"plan\":{\"credit_packs\":false,\"id\":\"free\",\"included_credits\":25000,\"name\":\"Free\",\"price_cents\":0,\"unlimited\":false},\"rates\":{\"image_diff\":10,\"rendered_page\":20,\"snapshot_check\":1,\"text_diff\":5},\"reloads_paused\":false,\"reloads_this_month\":0,\"renews_at\":\"\",\"unlimited\":false},\"usage_history\":[{\"created_at\":\"\",\"credits\":1,\"kind\":\"build\",\"reference\":\"build pdfs/1: 1 snapshot checked\"}]}",
"type": "text"
}
],
@@ -89,11 +89,11 @@
},
{
"done": true,
- "key": "add_to_ci"
+ "key": "connect_agent"
},
{
"done": true,
- "key": "connect_agent"
+ "key": "add_to_ci"
},
{
"done": false,
From 05dbb60c3f380dd50f74b4b5aeb26b2bb879c711 Mon Sep 17 00:00:00 2001
From: Nathan Broadbent
Date: Fri, 4 Dec 2026 15:02:19 +1300
Subject: [PATCH 5/7] journeys: the finished pick's next button is 'Next:
connect your coding agent'
---
scripts/screenshots/journeys.mjs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/screenshots/journeys.mjs b/scripts/screenshots/journeys.mjs
index 30465cea..e1d7b896 100644
--- a/scripts/screenshots/journeys.mjs
+++ b/scripts/screenshots/journeys.mjs
@@ -384,7 +384,7 @@ await journey('setup-picks-from-300-repositories', async ({ page, shot }) => {
await page.getByRole('button', { name: 'Add 2 repositories' }).click()
await page.getByRole('heading', { name: 'Added 2 projects' }).waitFor({ timeout: 30000 })
// The finished state, settled: the bar full, the next step offered, and the refetches that follow it done
- await page.getByRole('button', { name: 'Next: add VisualCI to CI' }).waitFor()
+ await page.getByRole('button', { name: 'Next: connect your coding agent' }).waitFor()
await page.waitForFunction(() => {
const bar = document.querySelector('.picker-progress progress')
return bar instanceof HTMLProgressElement && bar.value === bar.max
From 9264af0bb4e0bcea815bf0b7fe28e24c8fca3e64 Mon Sep 17 00:00:00 2001
From: Nathan Broadbent
Date: Fri, 4 Dec 2026 15:26:23 +1300
Subject: [PATCH 6/7] Setup: the prompt says how to connect VisualCI's MCP when
it isn't; "How did you hear about VisualCI?" waits until setup is finished or
hidden; prompt unit tests
---
frontend/src/__tests__/setup-prompt.test.ts | 18 ++++++++++++++++++
frontend/src/components/SetupChecklist.tsx | 5 +++--
frontend/src/pages/OrgPage.tsx | 6 ++----
3 files changed, 23 insertions(+), 6 deletions(-)
create mode 100644 frontend/src/__tests__/setup-prompt.test.ts
diff --git a/frontend/src/__tests__/setup-prompt.test.ts b/frontend/src/__tests__/setup-prompt.test.ts
new file mode 100644
index 00000000..1ba654e8
--- /dev/null
+++ b/frontend/src/__tests__/setup-prompt.test.ts
@@ -0,0 +1,18 @@
+import { describe, expect, it } from 'vitest'
+import { setupPrompt } from '../components/SetupChecklist'
+
+describe('setupPrompt', () => {
+ it('names the project, and leaves VISUALCI_API_URL out for the production API', () => {
+ const p = setupPrompt('acme/web', 'https://api.visualci.com', 'https://mcp.visualci.com/mcp')
+ expect(p).toContain('Set up VisualCI for the project acme/web in this repository')
+ expect(p).toContain('create_project_token for acme/web')
+ expect(p).toContain('claude mcp add --transport http visualci https://mcp.visualci.com/mcp')
+ expect(p).not.toContain('VISUALCI_API_URL')
+ })
+
+ it('asks for VISUALCI_API_URL on another API host', () => {
+ const p = setupPrompt('acme/web', 'https://api.visualci.test', 'https://mcp.visualci.test/mcp')
+ expect(p).toContain('Set VISUALCI_API_URL=https://api.visualci.test in CI too.')
+ expect(p).toContain('claude mcp add --transport http visualci https://mcp.visualci.test/mcp')
+ })
+})
diff --git a/frontend/src/components/SetupChecklist.tsx b/frontend/src/components/SetupChecklist.tsx
index 8f161824..1470bad1 100644
--- a/frontend/src/components/SetupChecklist.tsx
+++ b/frontend/src/components/SetupChecklist.tsx
@@ -191,9 +191,10 @@ const SNIPPETS: Record
) : (
<>
-
+
setManual(true)}>
I’ll set it up myself
diff --git a/frontend/src/pages/OrgPage.tsx b/frontend/src/pages/OrgPage.tsx
index 88629f33..1f8a3886 100644
--- a/frontend/src/pages/OrgPage.tsx
+++ b/frontend/src/pages/OrgPage.tsx
@@ -27,7 +27,6 @@ export function OrgPage() {
const o = q.data
const canCreate = o.role === 'admin'
const showSetup = !o.setup.complete && !o.setup.dismissed
- const appInstalled = o.setup.steps.some((s) => s.key === 'install_github_app' && s.done)
return (
@@ -58,9 +57,8 @@ export function OrgPage() {
/>
)}
- {/* "How did you hear about VisualCI?" waits until the GitHub App step is done (or setup steps aren't shown),
- below the checklist, so a new person's first step is installing the App */}
- {me.data?.heard_about_pending && me.data.heard_about_options && (!showSetup || appInstalled) && (
+ {/* "How did you hear about VisualCI?" waits until setup is finished or hidden, so it never competes with a step */}
+ {me.data?.heard_about_pending && me.data.heard_about_options && !showSetup && (
)}
From ab64f8e70b7ea26ca37ed43451265a407581275e Mon Sep 17 00:00:00 2001
From: Nathan Broadbent
Date: Fri, 4 Dec 2026 16:21:13 +1300
Subject: [PATCH 7/7] Plugin 0.1.55
---
.claude-plugin/marketplace.json | 2 +-
.claude-plugin/plugin.json | 2 +-
.cursor-plugin/plugin.json | 2 +-
gemini-extension.json | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json
index 19b94c5c..33a9c495 100644
--- a/.claude-plugin/marketplace.json
+++ b/.claude-plugin/marketplace.json
@@ -5,7 +5,7 @@
"plugins": [
{
"name": "visualci",
- "version": "0.1.54",
+ "version": "0.1.55",
"description": "Visual regression and snapshot review for PDFs, screenshots, JSON, HTML and text: VisualCI's MCP server and its skills for each CI provider and test tool.",
"author": { "name": "DocSpring", "url": "https://visualci.com" },
"homepage": "https://visualci.com/docs/skills/",
diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json
index f010870c..485ee845 100644
--- a/.claude-plugin/plugin.json
+++ b/.claude-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "visualci",
- "version": "0.1.54",
+ "version": "0.1.55",
"description": "Visual regression and snapshot review for PDFs, screenshots, JSON, HTML and text: VisualCI's MCP server and its skills for each CI provider and test tool.",
"author": { "name": "DocSpring", "url": "https://visualci.com" },
"homepage": "https://visualci.com/docs/skills/",
diff --git a/.cursor-plugin/plugin.json b/.cursor-plugin/plugin.json
index c7adfe7d..411a8753 100644
--- a/.cursor-plugin/plugin.json
+++ b/.cursor-plugin/plugin.json
@@ -1,7 +1,7 @@
{
"name": "visualci",
"displayName": "VisualCI",
- "version": "0.1.54",
+ "version": "0.1.55",
"description": "Visual regression and snapshot review for PDFs, screenshots, JSON, HTML and text: VisualCI's MCP server and its skills for each CI provider and test tool.",
"author": {
"name": "DocSpring"
diff --git a/gemini-extension.json b/gemini-extension.json
index e7a39871..f7255ffb 100644
--- a/gemini-extension.json
+++ b/gemini-extension.json
@@ -1,6 +1,6 @@
{
"name": "visualci",
- "version": "0.1.54",
+ "version": "0.1.55",
"description": "Visual regression and snapshot review for PDFs, screenshots, JSON, HTML and text: VisualCI's MCP server and its skills for each CI provider and test tool.",
"mcpServers": {
"visualci": {