Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add zhuanggenhua/BoardGame --skill adapt-game-mobilegit clone --depth 1 https://github.com/zhuanggenhua/BoardGameWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/zhuanggenhua/boardgame/adapt-game-mobile)<a href="https://agentmods.dev/skills/zhuanggenhua/boardgame/adapt-game-mobile"><img src="https://agentmods.dev/badge/skills/zhuanggenhua/boardgame/adapt-game-mobile/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/zhuanggenhua/boardgame/adapt-game-mobile"><img src="https://agentmods.dev/badge/skills/zhuanggenhua/boardgame/adapt-game-mobile.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00054 | $0.02775 |
| Opus 5 | $0.00027 | $0.01388 |
| Sonnet 5 | $0.00011 | $0.00555 |
| Haiku 4.5 | $0.00005 | $0.00278 |
Grade A, and why
adapt-game-mobile scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 159 lines — stays where its author put it; the contents beside it link to each section on GitHub.
适配游戏移动端
本 skill 用于把已有游戏页面适配到移动 H5 / PWA 视口。默认前提是 PC 版是权威布局,移动端只做条件化适配;不重写第二套移动端 UI,不把 WebView 当作移动适配本身。
mobile-adaptive 是旧兼容入口,只能转入本 skill;不得维护第二套移动端执行规范。
基线
- PC 对照分辨率:
1920x1080。 - 手机横屏真实设备基线:
2340x1080(13:6)。 - E2E 可用等比例缩小视口,例如
936x432;若不直接用真实尺寸,也必须保持13:6。 - 用户明确说“平板按 PC 看”或“不关心平板”时,只保留 PC + 手机横屏两档。
- 默认目标是手机横屏尽量可用;不是强行把所有游戏都改成竖屏。
必读
- 游戏注册与运行时入口:
openspec/specs/game-registry/spec.md - UI 总原则:
ui-ux - 引擎系统边界:
engine-systems - 字段与命名:
references/manifest-fields.md - 审查与验收:
references/checklist.md
通用口径以本 skill 和 ui-responsive-layout 为准;实现入口不清时再查 docs/mobile-adaptation.md 和 docs/architecture/ui-dual-platform-architecture.md。旧复盘不能替代当前证据。
核心合同
1. 先过 PC 门禁
移动端适配前,先确认 PC 当前实现已达标:
- 主信息层级正确。
- 关键区域尺寸、比例、阅读顺序和主次关系已收口。
- 新桌面素材或新桌面布局已有桌面真图或测试证据。
PC 仍有明确缺口时,默认继续收 PC;不得提前做手机压缩、断点重排、横屏特化或触控补丁。只有用户明确要求先看移动端,或本轮只修已锁定移动端回归,才可越过。
2. 只做条件覆盖
- 移动端改动只能在窄视口、manifest / mobile shell 或触控入口条件下生效。
- 窄视口以
mobileSupport.ts的1023px断点为准。 coarse pointer只用于 hover 替代入口显隐,不可单独作为缩小 PC 尺寸或重排桌面的依据。- 触屏笔记本仍按 PC 布局处理。
3. 固定构图默认等比缩放
本节只适用于移动端保留 PC 固定画布的场景;它不授权桌面端给开放地图、棋盘、牌桌自由查看或底部主 UI 额外套 16:9 内框 / 自造摆放范围。若地图本体需要自由拖拽缩放,或玩家状态、手牌 / 法术书、计划区、主动作栏需要贴真实视口边缘,先回到 ui-responsive-layout 的“场景层与界面锚点”分层。
固定牌桌、棋盘、地图、卡面、格子、战区背景和主界面对象默认属于同一 PC 构图:
scale = min(availableWidth / designWidth, availableHeight / designHeight)
px在主体画布内表示设计坐标,最终显示由壳层缩放承接。vw/vh只用于真实设备 / 浏览器安全区、壳层可用高度和局部辅助;不得重算主体画布、主按钮、主字号、手牌轨道、中央牌区或界面对象尺度,也不得把安全区解释成桌面内框。- 当移动横屏设计画布与 PC 参考画布不同,必须分开
designWidth/designHeight和referenceWidth/referenceHeight:前者只管外层 contain 缩放,后者只管壳内 UI 单位。不得用 2340 之类移动画布宽度替代 1920 PC 参考宽度来重算内部比例。 - 对
board-shell游戏,顶栏、分数、阶段提示、手牌、中央牌区、主按钮和主操作区默认跟随同一缩放体系。 - 固定构图的移动端默认是 PC 同构等比缩放:阶段轨、HUD、token / 状态、手牌、主按钮和牌桌对象的顺序、槽位和相对比例必须继承 PC;未经用户明确批准,不得把其中任一块改成移动端专用 grid / rail / 摘要条 / 单项显示。
- 若发现
vw/vh在缩放壳层内被手机视口和壳层 transform 双重缩放,先把该区域改回设计单位或壳层单位;不得通过重排槽位、压低字号、减少阶段项、隐藏 token 或缩小牌堆来掩盖。 - 不得把主按钮搬到新 action rail、把手牌另缩一套、把顶栏另排一套后声称只是移动端让位。
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday Changed · +3 lines 764b68205ee2
- 6d ago Changed · +2 lines 5925db641991
- 12d ago First seen · 154 lines · 54 tokens per session scan A 51173a6da829
adapt-game-mobile is a skill published in the GitHub repository zhuanggenhua/BoardGame (23 stars, last pushed yesterday), licensed MIT. It adds 54 tokens to every session and 2,775 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
sceneview-ios
Build 3D and AR apps on Apple platforms (iOS, macOS, visionOS) with SceneViewSwift — the SwiftUI wrapper around RealityKit. Use whenever the user asks for "3D in SwiftUI", "AR with ARKit in SwiftUI", a model viewer for iOS, or any Apple-platform 3D/AR app where the dependency is the SceneViewSwift Swift Package from…
sceneview
Build 3D and AR apps with the SceneView SDK in Jetpack Compose, SwiftUI (iOS/macOS/visionOS via SceneViewSwift), Web (Filament.js), Flutter and React Native. Use whenever the user asks for "3D in Compose", "AR with ARCore in Compose", a model viewer, or any cross-platform 3D/AR app where the dependency is…
build-mobile-threejs-games
Build, tune, or test a Three.js game for mobile web. Use for touch movement, action controls, target selection, touch inventory, safe areas, portrait/landscape layouts, responsive HUD, battery/performance budgets, and real mobile browser QA.
building-mobile-game
Build mobile games and game-like interactive experiences in React Native and Expo. Use when Codex is creating or refactoring arcade, puzzle, casual, action, physics-based, or animation-heavy gameplay, including Expo game setup with the with-reanimated template, sprite-sheet generation and extraction, frame-based…
mobile-development
Use when targeting Android/iOS — export and signing, permissions, plugins, in-app purchases, ads, app lifecycle, device features, and mobile performance.
hz-new-project-creation
Scaffolds new Meta Quest and Horizon OS projects with recommended settings for Unity, Unreal, Android/Spatial SDK, or WebXR. Use when creating a new Quest app from scratch.