Pp mobbin

From mvanhorn/printing-press-library · View interactive version

Pp mobbin is an AI agent skill from the GitHub repository mvanhorn/printing-press-library. Every Mobbin screen, flow, and pattern — searchable offline, deckable in one command, with longitudinal drift no Mobbin tool ships. Trigger phrases: `show me paywall examples`, `build a design deck for <pattern>`, `what does <app> ship for onboarding`, `find empty states across web fintech`, `cross-

How to use this skill

Skill file

<!-- GENERATED FILE — DO NOT EDIT.

This file is a verbatim mirror of library/productivity/mobbin/SKILL.md,

regenerated post-merge by tools/generate-skills/. Hand-edits here are

silently overwritten on the next regen. Edit the library/ source instead.

See the repository agent guide, section "Generated artifacts: registry.json, cli-skills/". -->

Mobbin — Printing Press CLI

Prerequisites: Install the CLI

This skill drives the mobbin-pp-cli binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:

  1. Install via the Printing Press installer. It defaults binaries to $HOME/.local/bin on macOS/Linux and %LOCALAPPDATA%\Programs\PrintingPress\bin on Windows:

```bash

npx -y @mvanhorn/printing-press-library install mobbin --cli-only

```

  1. Verify: mobbin-pp-cli --version
  2. Ensure the reported install directory is on $PATH for the agent/runtime that will invoke this skill.

If the npx install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.6 or newer). This installs into $GOPATH/bin (default $HOME/go/bin), so add that directory to $PATH instead:

go install github.com/mvanhorn/printing-press-library/library/productivity/mobbin/cmd/mobbin-pp-cli@latest

If --version reports "command not found" after install, the runtime cannot see the binary directory on $PATH. Do not proceed with skill commands until verification succeeds.

Wraps Mobbin's curated library of shipped UI (web + mobile) with a local SQLite mirror, full-res batch downloads from the Bytescale CDN, and time-windowed audits across apps. Built for the Wednesday design crit and the quarterly onboarding audit. Uses your existing Chrome session via auth login --chrome — no extra API key, no paid MCP.

When to Use This CLI

Use this CLI when an agent needs to compose design-research workflows that go beyond "search and show." Reach for it for: batch downloading screens to a folder for downstream tooling; building cross-app pattern decks; running time-windowed audits ("every web SaaS onboarding from the last quarter"); or watching a competitor app for flow drift. It is intentionally web-first but iOS works on every command. The official Mobbin MCP exposes one search tool; this CLI exposes the full Mobbin surface plus six commands no Mobbin tool ships.

Unique Capabilities

These capabilities aren't available in any other tool for this API.

Design crit workflows

_Replaces the 20-tab screenshot-and-rename loop designers do every crit week with one command and a reproducible artifact._

```bash

mobbin-pp-cli deck "fintech paywalls" --platform web --limit 20 --export-zip ./deck.zip --agent

```

_Answers "who has shipped this pattern lately?" instantly without re-scrolling Mobbin's UI._

```bash

mobbin-pp-cli bench --pattern paywall --industry fintech --platform web --agent

```

_Replaces hand-dragging 20 PNGs into Finder. The manifest.json is what Figma/Storyboard plugins consume._

```bash

mobbin-pp-cli grab --pattern empty-state --platform web --industry fintech --out ./refs --rename '{app}_{pattern}_{idx}.png'

```

_Web product designers checking whether the iOS reference still matches the desktop pattern. The user's explicit dual-platform ask._

```bash

mobbin-pp-cli cross "paywall" --apps stripe,linear,figma --agent

```

Longitudinal analysis

_Quarterly onboarding/checkout/empty-state audits stop being a manual diff against last quarter's Notion doc._

```bash

mobbin-pp-cli audit onboarding --platform web --industry b2b-saas --since 60d --agent --select app,flow,step_count,captured_at

```

_Tracks competitor product evolution. "What did Stripe ship since last month?" was unanswerable before._

```bash

mobbin-pp-cli drift stripe-web --since 30d --agent

```

Command Reference

apps — Browse and search apps in Mobbin's library (web, iOS, Android).

autocomplete — Cross-entity autocomplete search across apps, screens, and flows.

collections — Manage your saved Mobbin collections (decks of screens, flows, or apps). Read endpoints hit mobbin.com/api; write endpoints hit Supabase PostgREST directly (auth-token + apikey).

filters — Browse the filter taxonomy — every app category, screen pattern, UI element, and flow action with definitions and content counts.

flows — Search and browse user-flow recordings (onboarding, checkout, settings).

screens — Search and inspect individual screens. Filter by pattern, element, OCR keywords, and app category.

sites — Web sites in Mobbin's library (the web-app equivalent of apps for mobile).

trending — Trending entities updated daily by Mobbin's editorial team.

workspaces — List your Mobbin workspaces. The default workspace is required to create collections.

Finding the right command

When you know what you want to do but not which command does it, ask the CLI directly:

mobbin-pp-cli which "<capability in your own words>"

which resolves a natural-language capability query to the best matching command from this CLI's curated feature index. Exit code 0 means at least one match; exit code 2 means no confident match — fall back to --help or use a narrower query.

Recipes

Wednesday paywall deck

mobbin-pp-cli deck "fintech paywalls" --platform web --limit 20 --export-zip ./paywall-deck-$(date +%Y%m%d).zip

Date-stamped zip with full-res PNGs and a manifest CSV — drag straight into Figma for the design crit.

Cross-platform pattern parity

mobbin-pp-cli cross "empty-state" --apps stripe,linear,figma --agent --select app,platform,screen_id

Web + iOS in one fan-out; the join on app slug is what makes parity comparisons cheap.

Quarterly onboarding audit

mobbin-pp-cli audit onboarding --platform web --industry b2b-saas --since 90d --agent --select app,flow,step_count,captured_at

Returns only flows captured in the last 90 days, grouped by app — drop into a CSV diff to show your PM what's changed.

Narrow a verbose screen response

mobbin-pp-cli screens --platform web --screen-patterns paywall --agent --select data.id,data.appName,data.imageUrl,data.screenPatterns

Screen-search payloads ship ~30 fields per row; --select with dotted paths keeps only the four agents actually need, cutting context burn ~85%.

Bench a pattern

mobbin-pp-cli bench --pattern checkout --industry e-commerce --platform web --agent

Local-SQL aggregate: count of screens per app, latest captured_at. Answers "who's shipping checkout flows lately?" without re-scrolling Mobbin.

Auth Setup

Mobbin has no public API key. The CLI imports your logged-in Chrome cookies via pycookiecheat, cookies, or cookie-scoop-cli (one is required). Run mobbin-pp-cli auth login --chrome and the CLI handles the split Supabase JWT cookies (sb-ujasntkfphywizsdaapi-auth-token.0 / .1) and refreshes them automatically. Free-tier sessions work for trending / discover / popular / filters; full content search and per-app HTML scraping need a Mobbin Pro session.

Run mobbin-pp-cli doctor to verify setup.

Agent Mode

Add --agent to any command. Expands to: --json --compact --no-input --no-color --yes.

```bash

mobbin-pp-cli apps list mock-value --agent --select id,name,status

```

Response envelope

Commands that read from the local store or the API wrap output in a provenance envelope:

{
  "meta": {"source": "live" | "local", "synced_at": "...", "reason": "..."},
  "results": <data>
}

Parse .results for data and .meta.source to know whether it's live or local. A human-readable N results (live) summary is printed to stderr only when stdout is a terminal AND no machine-format flag (--json, --csv, --compact, --quiet, --plain, --select) is set — piped/agent consumers and explicit-format runs get pure JSON on stdout.

Paths and state

Agents should treat the CLI's path resolver as part of the runtime contract:

```json

{

"mcpServers": {

"mobbin": {

"command": "mobbin-pp-mcp",

"env": {

"MOBBIN_HOME": "/srv/mobbin"

}

}

}

}

```

Fleet precedence: an inherited per-kind env var overrides an explicit --home for that kind. Use MOBBIN_HOME or per-kind vars as durable fleet levers, and use --home only for a single invocation. Relocation is not reversible by unsetting env vars; move files manually before clearing MOBBIN_HOME, or doctor will not find credentials left under the former root.

Agent Feedback

When you (or the agent) notice something off about this CLI, record it:

mobbin-pp-cli feedback "the --since flag is inclusive but docs say exclusive"
mobbin-pp-cli feedback --stdin < notes.txt
mobbin-pp-cli feedback list --json --limit 10

Entries are stored locally as feedback.jsonl under the resolved data dir. They are never POSTed unless MOBBIN_FEEDBACK_ENDPOINT is set AND either --send is passed or MOBBIN_FEEDBACK_AUTO_SEND=true. Default behavior is local-only.

Write what surprised you, not a bug report. Short, specific, one line: that is the part that compounds.

Output Delivery

Every command accepts --deliver <sink>. The output goes to the named sink in addition to (or instead of) stdout, so agents can route command results without hand-piping. Three sinks are supported:

| Sink | Effect |

|------|--------|

| stdout | Default; write to stdout only |

| file:<path> | Atomically write output to <path> (tmp + rename) |

| webhook:<url> | POST the output body to the URL (application/json or application/x-ndjson when --compact) |

Unknown schemes are refused with a structured error naming the supported set. Webhook failures return non-zero and log the URL + HTTP status on stderr.

Named Profiles

A profile is a saved set of flag values, reused across invocations. Use it when a scheduled or recurring agent reuses the same saved flags while providing different input each run.

mobbin-pp-cli profile save briefing --json
mobbin-pp-cli --profile briefing apps list mock-value
mobbin-pp-cli profile list --json
mobbin-pp-cli profile show briefing
mobbin-pp-cli profile delete briefing --yes

Explicit flags always win over profile values; profile values win over defaults. agent-context lists all available profiles under available_profiles so introspecting agents discover them at runtime.

Exit Codes

| Code | Meaning |

|------|---------|

| 0 | Success |

| 2 | Usage error (wrong arguments) |

| 3 | Resource not found |

| 4 | Authentication required |

| 5 | API error (upstream issue) |

| 7 | Rate limited (wait and retry) |

| 10 | Config error |

Argument Parsing

Parse $ARGUMENTS:

  1. Empty, help, or --help → show mobbin-pp-cli --help output
  2. Starts with install → ends with mcp → MCP installation; otherwise → see Prerequisites above
  3. Anything else → Direct Use (execute as CLI command with --agent)

MCP Server Installation

  1. Install the MCP server:

```bash

go install github.com/mvanhorn/printing-press-library/library/productivity/mobbin/cmd/mobbin-pp-mcp@latest

```

  1. Register with Claude Code:

```bash

claude mcp add mobbin-pp-mcp -- mobbin-pp-mcp

```

  1. Verify: claude mcp list

Direct Use

  1. Check if installed: which mobbin-pp-cli

If not found, offer to install (see Prerequisites at the top of this skill).

  1. Match the user query to the best command from the Unique Capabilities and Command Reference above.
  2. Execute with the --agent flag:

```bash

mobbin-pp-cli <command> [subcommand] [args] --agent

```

  1. If ambiguous, drill into subcommand help: mobbin-pp-cli <command> --help.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.