用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/jackeydou/Pichu --skill computer-use命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | computer-use |
| description | Inspect and control Mac apps through Pichu Computer Use, screen capture, mouse, and keyboard tools. |
Use this skill when the user asks you to inspect their Mac screen or control another Mac app.
Computer Use includes app discovery/launch (computerEnsureApp), app state inspection (computerGetAppState), unified click input (computerClick), keyboard/drag tools (computerDrag, computerType, computerPressKey), and screen capture tools (captureDesktop, listScreenSources).
listScreenSources is an advanced capture/display diagnostic tool, not the normal app selection path.
computerEnsureApp first. It finds existing windows and can launch the app if it is not currently visible.computerGetAppState for a target app window. It returns compact AX refs such as e62 AXTextField ~ "Message" plus a local screenshot path and geometry.computerClick({ ref: "e62" }) for controls returned by computerGetAppState. Pichu tries AX actions first and falls back to a plain physical click at the element frame when needed.computerClick only when no useful AX ref exists. Pass screenshot pixels with the geometry from the latest state whenever possible.computerGetAppState. Do not trust the input result alone.captureDesktop when the user asks "what's on my screen" or you need to see the whole desktop.computerGetAppState with a query such as "Safari" or "VS Code" to inspect a specific application window.computerEnsureApp to find an app/window for normal app tasks. Call listScreenSources only if you need available displayId values or raw capture source diagnostics.maxDimension such as 1280 to reduce generated screenshot size when full resolution is not necessary.computerGetAppState.details.screenshot.geometry describes how screenshot pixels map to global coordinates.captureDesktop, use details.geometry for pixel-to-point mapping.CGEventPostToPid; mouse events also carry per-window-id field tagging so the event targets the exact window.computerClick and computerDrag accept screenshot-pixels, window-points, or cg-global-points. Pichu converts to CG global points internally, so you do not need to do screenshot-pixel math yourself.ref values from the latest computerGetAppState result, e.g. computerClick({ ref: "e62" }).windowId. Get it from computerGetAppState.details.screenshot.source.cgWindowId or listScreenSources.windowId (strongly preferred) or a raw pid.computerType for prose. It uses the Unicode input path so CJK, emoji, and accents land literally without IME.computerPressKey for shortcuts such as Cmd+S and special keys such as return, escape, arrows, and function keys.