adapt-game-mobile

adapt-game-mobile is a skill for Codex from zhuanggenhua/BoardGame. It costs 54 tokens per session (2,775 once invoked), scanned A, original, MIT.

A guide for adapting an existing desktop board game or similar game page to mobile web screens and progressive web app views.

In plain words
What is it for?
Use it to check the desktop baseline, add conditional mobile layouts, replace hover or drag interactions where needed, and test phone or tablet views.
Why use it?
It preserves the desktop layout as the source of truth while defining how to handle narrow screens, touch input, orientation, and mobile controls.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to check the desktop baseline, add conditional mobile layouts, replace hover or drag interactions where needed, and test phone or tablet views.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zhuanggenhua/boardgame/adapt-game-mobile
Install

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.

Any agent
npx skills add zhuanggenhua/BoardGame --skill adapt-game-mobile
Clone the repo
git clone --depth 1 https://github.com/zhuanggenhua/BoardGame

Made for: Codex.

Wrote 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.

agentmods badge for adapt-game-mobile

README.md
[![agentmods](https://agentmods.dev/badge/skills/zhuanggenhua/boardgame/adapt-game-mobile/github.svg)](https://agentmods.dev/skills/zhuanggenhua/boardgame/adapt-game-mobile)
Your own site
<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.

agentmods 80×15 button for adapt-game-mobile

Your own site · 80×15
<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>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,775 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured yesterday against content hash 764b68205ee2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

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.

.spec/skills/adapt-game-mobile/SKILL.md · 159 lines

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
  • 手机横屏真实设备基线:2340x108013:6)。
  • E2E 可用等比例缩小视口,例如 936x432;若不直接用真实尺寸,也必须保持 13:6
  • 用户明确说“平板按 PC 看”或“不关心平板”时,只保留 PC + 手机横屏两档。
  • 默认目标是手机横屏尽量可用;不是强行把所有游戏都改成竖屏。

必读

通用口径以本 skill 和 ui-responsive-layout 为准;实现入口不清时再查 docs/mobile-adaptation.mddocs/architecture/ui-dual-platform-architecture.md。旧复盘不能替代当前证据。

核心合同

1. 先过 PC 门禁

移动端适配前,先确认 PC 当前实现已达标:

  • 主信息层级正确。
  • 关键区域尺寸、比例、阅读顺序和主次关系已收口。
  • 新桌面素材或新桌面布局已有桌面真图或测试证据。

PC 仍有明确缺口时,默认继续收 PC;不得提前做手机压缩、断点重排、横屏特化或触控补丁。只有用户明确要求先看移动端,或本轮只修已锁定移动端回归,才可越过。

2. 只做条件覆盖

  • 移动端改动只能在窄视口、manifest / mobile shell 或触控入口条件下生效。
  • 窄视口以 mobileSupport.ts1023px 断点为准。
  • 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/designHeightreferenceWidth/referenceHeight:前者只管外层 contain 缩放,后者只管壳内 UI 单位。不得用 2340 之类移动画布宽度替代 1920 PC 参考宽度来重算内部比例。
  • board-shell 游戏,顶栏、分数、阶段提示、手牌、中央牌区、主按钮和主操作区默认跟随同一缩放体系。
  • 固定构图的移动端默认是 PC 同构等比缩放:阶段轨、HUD、token / 状态、手牌、主按钮和牌桌对象的顺序、槽位和相对比例必须继承 PC;未经用户明确批准,不得把其中任一块改成移动端专用 grid / rail / 摘要条 / 单项显示。
  • 若发现 vw / vh 在缩放壳层内被手机视口和壳层 transform 双重缩放,先把该区域改回设计单位或壳层单位;不得通过重排槽位、压低字号、减少阶段项、隐藏 token 或缩小牌堆来掩盖。
  • 不得把主按钮搬到新 action rail、把手牌另缩一套、把顶栏另排一套后声称只是移动端让位。

Read the full file on GitHub · 159 lines

Files

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.

Changes

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.

  1. yesterday Changed · +3 lines 764b68205ee2
  2. 6d ago Changed · +2 lines 5925db641991
  3. 12d ago First seen · 154 lines · 54 tokens per session scan A 51173a6da829

Subscribe to this mod's changes

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.

Related

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/sceneview · 148 tokens

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…

sceneview/sceneview · 156 tokens

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.

MengTo/Skills · 57 tokens

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…

Intelligent-Internet/ii-agent · 91 tokens

mobile-development

Use when targeting Android/iOS — export and signing, permissions, plugins, in-app purchases, ads, app lifecycle, device features, and mobile performance.

jame581/GodotPrompter · 33 tokens

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.

meta-quest/agentic-tools · 43 tokens