kanevry/session-orchestrator/peekaboo-driver
Claude Code and agent skill by kanevry/session-orchestrator
- community
Checking that the SKILL.md file is still in the repository.
Use this skill when driving native-UI AX-tree snapshots and screenshots via steipete/peekaboo (MIT, macOS-only). Dispatched by `skills/test-runner/` to capture native-UI AX-tree snapshots + screenshots on macOS 15+ targets, and exits with deterministic JSON output the orchestrator can parse.
Install
npx vskill@latest install kanevry/session-orchestrator/peekaboo-driverSKILL.md
The same SKILL.md was published earlier as kanevry/session-orchestrator/peekaboo-driver.
Peekaboo Driver Skill
Soul
Before anything else, read and internalize soul.md in this skill directory. It defines WHO you are — a thin executor, not an orchestrator. Every action in this session should reflect that identity.
Phase 0: Bootstrap Gate
Read skills/_shared/bootstrap-gate.md and execute the gate check. If GATE_CLOSED, invoke skills/bootstrap/SKILL.md and wait for completion. If GATE_OPEN, continue.
<HARD-GATE> This driver is macOS-only. It wraps the peekaboo binary (steipete/peekaboo, MIT). It does NOT use any MCP adapter layer. The platform gate in Phase 1 is mandatory pre-flight. </HARD-GATE>
Package Note — Installation & Binary Name
Both install paths surface the same peekaboo binary at the same version:
| Install path | Command | Notes | |
|---|---|---|---|
| Homebrew (preferred) | brew install steipete/tap/peekaboo | Installs to /opt/homebrew/bin/peekaboo | |
| npm / npx (CI-friendly) | npx -y @steipete/peekaboo | Requires Node 22+. No global install needed. |
The GitHub repository is github.com/steipete/peekaboo. Older links may surface openclaw/Peekaboo — both redirect to the same canonical repo and binary.
Canonical name verification: Always verify a package name via brew info or npm view before documenting. The playwright-driver PRD originally referenced @playwright/cli@0.1.13 (an unrelated stub) instead of canonical playwright@1.60.0. Verify @steipete/peekaboo against any look-alike before trusting an install path.
Install
Baseline: v3.1.0. Latest at time of writing: v3.1.2 (May 11 2026).
Phase 1: Platform & Version Gate
Mandatory pre-flight. Run before any other peekaboo command.
Exit 0 (non-fatal skip) on non-darwin or macOS < 15.0 (Sequoia). Exit 2 (fatal) only when the binary is missing on an otherwise-compatible system.
Phase 2: Permission Probe
The permissions status --json schema (verified 2026-05-14):
Required: Screen Recording (hard), Accessibility (hard). Optional: Event Synthesizing. Permission failures are never silent. Route to Phase 3 when any required permission is not granted.
Phase 3: Permission Remediation
Surface missing required permissions via AskUserQuestion (per ask-via-tool.md AUQ-003). Do not auto-grant — macOS requires manual user action in System Settings.
If $MISSING from Phase 2 contains more than one permission, present one AUQ per missing permission in the order they appear. The user can grant or skip each independently; the driver re-checks after each grant (one full Phase 2 sweep per round).
The loop executes once per permission in $MISSING, exiting after Phase 3 permission re-probe shows all required permissions granted or the user selects Skip for the current permission.
For each ${PERM_NAME} in $MISSING:
After confirmation, re-probe ($MISSING Phase 2 sweep). If still not granted or user selects Skip for any permission, exit 2 (fatal). Do NOT attempt any capture without required permissions — the binary will fail ungracefully.
Canonical Usage
The orchestrator (skills/test-runner/) dispatches via Bash. Inputs via environment variables: RUN_ID, RUN_DIR, TARGET (app name), PROFILE.
Artifact Layout
Token discipline: NEVER inline AX-tree dumps into the coordinator context. Always write to disk. The ux-evaluator agent reads from disk, not from prompt context.
AX-Snapshot Pattern
Key fields in the see --json output the ux-evaluator reads: snapshot_id (capture ID), ui_elements (flat AX element list — primary consumer input), ui_map (hierarchical tree), interactable_count, capture_mode ("screen" or "window"). Each ui_elements entry carries role, role_description, bounds ({x, y, width, height}), identifier, and children. ux-evaluator Check 4 scans ui_elements for frame identifiers and cross-references the glass-modifiers artifact.
Liquid-Glass Conformance Artifact
For SwiftUI 26+ targets (projects with Package.swift declaring .iOS("26") or .macOS("26")+), emit a conformance artifact alongside the AX snapshot:
HAS_GLASS_V2 has three states, and the third is the reason the fallback is not false:
| Value | Meaning | Driver action | |
|---|---|---|---|
true | The active profile lists glass-v2 in rubric_features | Emit the conformance artifact | |
false | The profile does not list it — a real answer from a readable file, or preconditions unmet (no PROFILE, no profiles file, no jq) | Skip the artifact silently | |
unknown | The probe itself failed — jq could not read/parse $PROFILES_FILE | WARN on stderr, skip the artifact. Never collapsed into false: a crashed probe is not an opt-out, and ux-evaluator Check 4 would otherwise report screenshot-only fallback as if the profile had chosen it |
The ux-evaluator Check 4 reads this file. glassEffect_frames = compliant (uses .glassEffect()). legacy_material_frames = non-compliant (uses .background(.thinMaterial) etc.). blur_modifier_frames = non-compliant (uses .blur(radius:) as background). In v1 the arrays are always empty — the evaluator falls back to screenshot-only analysis. Do NOT emit a bare {} — use the full schema structure with empty arrays.
Composability Contract
Invocation Shape
All inputs via environment variables. No positional arguments accepted.
Exit Codes
| Code | Meaning | Orchestrator Action | |
|---|---|---|---|
| 0 | All captures succeeded (or platform skip) | Record pass or skip, continue | |
| 1 | At least one capture failed | Failures become findings (non-fatal) | |
| 2 | Framework error (missing binary, permission denied, OS mismatch) | Surface as driver error, halt peekaboo portion of run |
Outputs the Orchestrator MUST Parse
${RUN_DIR}/exit_code— plain integer file written by driver before exit${RUN_DIR}/results.json— driver summary withexit_code,scenarios_attempted,scenarios_passed,scenarios_failed${RUN_DIR}/ax-snapshots/<scenario>.json— peekaboo AX-tree output per scenario${RUN_DIR}/ax-snapshots/glass-modifiers-<ts>.json— Liquid Glass conformance artifact (consumed by ux-evaluator Check 4; only emitted when the active profile declaresrubric_features: ['glass-v2']in.orchestrator/policy/test-profiles.json)${RUN_DIR}/screenshots/<step>-<ts>.png— per-step screenshots (evidence for ux-evaluator findings)${RUN_DIR}/console.ndjson— driver log events as NDJSON
Version Pin + Upper-Bound Advisory
Baseline: v3.1.0 (2026-05-14). Latest: v3.1.2 (May 11 2026). Re-validate on v3.2+. Key surfaces: permissions status --json schema, see --json schema (ui_elements, ui_map), image --path flag behavior.
Peekaboo Subcommands Reference
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/peekaboo-driver/SKILL.md
Popularity
- Repository stars
- 52
- Repository forks
- 7
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kanevry/session-orchestrator/peekaboo-driver)