Webar Mindar Ios

SKILL图像处理
图像处理 未标注权限 许可证不明确

Build, debug, and ship browser-based AR image-tracking experiences (MindAR + A-Frame + Three.js inside a Next.js App Router H5), and especially diagnose the iOS-Safari/WebKit-only failures that desktop Chromium never reproduces — blank or black camera after "start AR", scenes collapsing to width:0, next/image not rendering, gyro/DeviceOrientation not firing. Use this whenever the task involves WebAR / MindAR / A-Frame / image-tracking / "扫描识别" AR on phones, an AR page that works in Chrome but is blank/broken on iPhone, reproducing iOS WebKit bugs without a physical device, or deploying such an app to a GCE VM behind a cloudflare quick tunnel for on-phone testing. Reach for it even when the user just says "the camera is blank on iPhone after I tap start" or "make the AR camera fullscreen" — the iOS-WebKit gotchas and the Playwright-WebKit verification combo here save hours of guess-and-redeploy.

一句话选型结论

按资料字段整理

Webar Mindar Ios是图像处理类的 Agent Skill,安装方式:GitHub 仓库,权限级别未标注,许可证不明确,没有现成安装命令,需按说明手动放置 SKILL.md。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类图像处理 安装方式GitHub 仓库 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 hhh-skills
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

GitHub 仓库
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    按安装说明或仓库 README,把 SKILL.md 放到客户端的 skills 目录(一般一个技能一个文件夹)。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

图像处理
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方cyl19970726仓库 hhh-skills · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式GitHub 仓库安装包 cyl19970726/hhh-skills
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验未标注上游最后核验时间 · 数据更新 2026-06-13
正文体量9.6 KBSKILL.md 原文大小,越大说明说明书写得越细

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
改图与修图

按描述调整图片内容与风格。

批量处理图片

统一尺寸、格式与命名。

生成图像说明

给图片补描述与标签。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 基础信息齐全,可以先按说明装一个试试。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 没有现成安装命令,要按安装说明或仓库 README 手动放置。
  • 没有做站内核验,内容以作者仓库为准。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在图像处理场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
Webar Mindar Ios当前 未标注权限 GitHub 仓库 未标注 未标注 无
AI 图像生成 调用外部服务 GitHub 仓库 436.6 万 Codex、Claude、Cursor 有
OpenAI 图像生成 联网访问 ClawHub 市场 190.7 万 OpenClaw 有
针迹设计品味 调用外部服务 GitHub 仓库 64.6 万 Codex、Claude、Cursor 有
QQ 空间照片 联网访问 ClawHub 市场 54.3 万 OpenClaw 有
图像 联网访问 ClawHub 市场 52.6 万 OpenClaw 有

SKILL.md 全文

9.6 KB
模型实际读到的说明书原文,来自技能仓库

WebAR (MindAR) on Next.js — build, iOS-WebKit debug, and deploy

This skill captures a battle-tested workflow for web AR image tracking (point
the phone camera at a printed/displayed target, anchor an animated overlay on it)
built as a Next.js H5 page, plus the parts that are genuinely hard: iOS
WebKit-only bugs
and how to verify them without a physical iPhone.

The single most important idea: iOS Safari AND iOS Chrome both run WebKit
(Apple mandates it). Desktop Chromium ≠ iOS. A page that is perfect in Chromium
can be blank on every iPhone browser. So the verification loop is built around
Playwright's WebKit engine (= Safari's engine) on the desktop, with a
fake camera injected via getUserMedia override, because that's the only way
to see the real error fast instead of round-tripping screenshots with the user.

Tech stack (what actually shipped)

AR runtime (vendored as static files under public/vendor/ar/, not npm — keeps
them out of the bundle and lets you cache-bust with a ?v= query):
- A-Frame 1.5.0 + MindAR mindar-image-aframe 1.2.5 (image tracking) + Three.js (bundled in A-Frame).
- Targets are precompiled .mind files (from the printed artwork) served from public/.

App: Next.js 16 (App Router) + React 19, AR components are "use client".
- MindAR/A-Frame scripts are lazy-loaded only after a user gesture ("开启 AR")
via a loadMindArScripts() that appends <script> and resolves on onload.
- The AR scene is a reusable ArImageTrackingScene component wrapping the
<a-scene mindar-image> + <a-camera> + a target <a-entity mindar-image-target>.
- Visual approach is 2.5D parallax + CSS/SVG/Canvas placeholders + render
tiering
(full | lite | 2d), NOT real 3D models — cheapest, most WebView-compatible.

Verification: Playwright WebKit (desktop Safari engine) + fake camera,
plus jsdom unit tests (vitest) that mock MindAR/getUserMedia. The two are
complementary — see "Why the test pyramid has a hole" below.

Deploy (for on-phone testing / staging): source tarball → GCE VM over IAP SSH
→ npm ci && next build && next start (Node 20 via nvm) → cloudflare quick
tunnel
for an instant public HTTPS URL. (Real production for a China 文旅/微信
audience is a separate target — Aliyun + ICP 备案 + .cn; GCP is blocked/slow in
mainland China and only suitable for staging.)

The verification combo (read this first — it is the point of the skill)

When an AR page is "blank/broken on iPhone but fine in Chrome", do NOT keep asking
the user to retry. Reproduce it yourself in WebKit. Full scripts and the exact
flow are in references/verification-playwright-webkit.md and
scripts/webkit-repro.mjs. The essentials:

  1. Use the WebKit engine, emulating an iPhone. npx playwright install webkit
    (it must match your installed playwright version), then
    webkit.launch() + browser.newContext({ ...devices['iPhone 13'] }).
  2. Inject a fake camera — Playwright WebKit has NO --use-fake-device... flag
    (that's Chromium-only) and grantPermissions(['camera']) throws ("Unknown
    permission"). Instead, in an addInitScript, override
    navigator.mediaDevices.getUserMedia to return a canvas.captureStream(). Now
    MindAR mounts and proceeds as if a camera exists.
  3. Capture everything: page.on('console' | 'pageerror' | 'requestfailed').
  4. Drive the real state machine: click "开启 AR", then wait long enough
    for the heavy vendored scripts to download (A-Frame ~1.4MB + MindAR ~1.7MB —
    over a slow tunnel this can be 20s+; too short a wait looks like a hang at the
    loading spinner and sends you chasing the wrong bug).
  5. Measure layout, not just presence: after the scene mounts, read
    getBoundingClientRect() of a-scene, <video>, <canvas>. A WebKit-only
    width: 0 is the classic blank-camera cause. If width is 0, walk the DOM
    ancestors logging each offsetWidth
    to find the element that collapses.

Versions/UA matter: the user's iPhone may run an older WebKit than Playwright's
latest. If you cannot reproduce with the latest, ask for their iOS version and
match it, or use the on-screen error overlay (below) to read the real device error.

iOS-WebKit gotchas catalogue

These are documented with root cause + fix in
references/ios-webkit-gotchas.md. The headline ones:

  • AR viewport collapses to width:0 (blank camera after "start AR"). Cause: a
    CSS-grid container with place-items-center (i.e. justify-items: center) sizes
    its in-flow grid item to content width; when the only children are
    absolutely-positioned (a-scene, overlays) there is no content width → WebKit
    collapses it to 0 (Chromium happened to keep a width, so it only repros on iOS).
    Fix: make the AR scene container fill its positioned parent with
    absolute inset-0 instead of in-flow relative h-full
    — the same pattern a
    working next/image fill already uses.
  • next/image blank on some iOS versions. The optimizer + AVIF/format
    negotiation can yield an image the device can't decode (works via curl with a
    PNG Accept). For pre-sized art, set images: { unoptimized: true } to serve
    the raw file and sidestep the optimizer entirely.
  • Gyro/DeviceOrientation never fires on iOS 13+. You must call
    DeviceOrientationEvent.requestPermission() from inside a user gesture; gate the
    listener on the grant and always keep a touch-drag fallback.
  • Camera "shows then goes black" / not visible. Keep the <video> explicitly
    visible via CSS, and avoid React effect-cleanup tearing down MindAR — store
    callbacks in a ref so the effect doesn't re-run and stop() the tracker.
  • Fullscreen AR. A small embedded aspect-[4/3] box feels tiny; when the
    camera is active, promote the viewport to fixed inset-0 (camera fills screen),
    float the controls in a bottom sheet (fixed bottom-0, safe-area padded), hide
    page chrome, and add a safe-area-aware exit button.

Build patterns worth reusing

  • Load AR scripts only on user gesture, then transition state
    (entry → loading → scanning → tracking). Camera permission appears only after
    the tap — required for iOS and good for trust.
  • One reusable ArImageTrackingScene (single target, targetIndex, callbacks
    onSceneReady/onSceneError/onTargetFound/onTargetLost) keeps every AR page
    consistent and keeps the black-screen mitigation in one place.
  • Render tiering (detectRenderTier() → full/lite/2d from
    prefers-reduced-motion, hardwareConcurrency, deviceMemory, WeChat UA) so
    low-end phones and WeChat WebView degrade instead of breaking.
  • On-screen error overlay: a tiny client component that listens for
    window.error/unhandledrejection and renders a dismissible panel only when an
    error occurs. This is your "remote eyes" on a real phone when you can't attach a
    Mac/Safari Web Inspector.
  • Cultural/red-line guards as code: when content has hard "must not say/show"
    rules, encode them as a copy whitelist that throws + test assertions that scan
    for forbidden strings, so they can't regress.

Deploy for on-phone testing

Full pipeline + the exact gotchas in references/deploy-gce-cloudflare.md and
the template in scripts/deploy-gce-cloudflare.sh. The traps that cost time:

  • IAP SSH is flaky — wrap every gcloud compute ssh/scp in a retry loop, and
    run the actual deploy as a setsid detached script on the VM that logs to a
    file, then poll the log. A dropped SSH must not kill the build.
  • Next 16 needs Node ≥ 20.9 — install via nvm on the VM (don't touch system Node).
  • Private repo + broken gh auth on the VM → ship a source tarball via scp
    (exclude node_modules/.next/.git and stray junk like a Windows D:/... cache
    dir) and npm ci on the VM, rather than git pull.
  • next start renames its process to next-server — pkill -f "next start"
    misses it, so the old build keeps port 3100 and your new build silently fails to
    bind. Kill by port (ss -tlnp → pid → kill -9).
  • Keep a stable tunnel URL across redeploys by restarting only next, not
    cloudflared (the quick-tunnel URL changes every time cloudflared restarts).
  • Cache-bust client retests with a ?v=N query (Safari caches aggressively; even
    "private tab" can mislead if you don't change the URL).

When to stop and hand off

You can verify everything except a real camera recognizing a real printed target
and device-specific performance/heat. That last mile (recognition rate across a
device matrix, WeChat WebView, real lighting) is the human's on-site job — say so
plainly rather than implying you tested it.

常见问题

5 问
答案由本站依据条目字段整理
Webar Mindar Ios怎么安装?

没有现成安装命令:按安装说明或仓库 README,把 SKILL.md 放进客户端的 skills 目录(一般一个技能一个文件夹)。

Webar Mindar Ios支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

Webar Mindar Ios权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

Webar Mindar Ios收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

Webar Mindar Ios用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 未标注。