AI Coding Agent Skill — 移动端适配质量审查工具技能
审查任意前端页面(Vue / React / Svelte / Next / Nuxt / Remix / Astro / 原生 HTML)在移动端的适配质量,输出 可复现、可修复、可回归 的结构化诊断报告。
100vh 在 iOS 动态地址栏下抖动< 16px 自动放大| Phase | 内容 |
|---|---|
| Phase 0 | 快速分型 — viewport / 横向溢出 / 遮挡 / 触控 / 输入体验 |
| Phase 1 | 布局根因 — 容器约束 / Flex·Grid / 媒体资源 / 长文本 / 断点一致性 |
| Phase 2 | 移动专项 — Safe Area / 高度策略 / 滚动治理 / Fixed 冲突 / 性能体感 |
| Phase 3 | 修复方案 — 最小改动修复 + 替代方案 + 回归清单 |
1) 测试范围(页面 / 设备 / 浏览器)
2) 结论摘要(P0 / P1 / P2 计数 + 总体评价)
3) 问题清单(复现步骤 → 根因 → 修复建议 → 验证方式)
4) 修复优先级建议(Day 0 / Day 1)
5) 统一规范建议(断点 / 容器 / 媒体 / Safe Area / 高度策略)
| 级别 | 定义 |
|---|---|
| P0 | 阻断使用 — 无法点击、关键内容不可见、流程无法完成 |
| P1 | 明显影响 — 错位、遮挡、误触、滚动异常 |
| P2 | 轻微问题 — 视觉一致性、边缘场景 |
| 视口 | 说明 |
|---|---|
| 320×568 | 小屏基线 |
| 375×812 | iPhone 常见 |
| 390×844 | 近年 iPhone 常见 |
| 412×915 | Android 常见 |
| 812×375 | 横屏抽检 |
浏览器:iOS Safari + Android Chrome
npx skills add https://github.com/Costany/mobile-adaptation-auditor
根据你使用的 AI Coding Agent 选择对应路径:
Claude Code
cd ~/.claude/skills/
git clone https://github.com/Costany/mobile-adaptation-auditor.git mobile-adaptation-auditor
OpenAI Codex CLI
cd ~/.codex/skills/
git clone https://github.com/Costany/mobile-adaptation-auditor.git mobile-adaptation-auditor
Codex CLI 需要 v0.76.0+ 并启用 skills feature flag:
codex --enable skills
安装后即可使用,支持多种调用方式(下方介绍两种):
/mobile-adaptation-auditor [url]
或直接描述移动端适配问题,Claude 会根据 description 自动匹配触发。
技能存放位置:
| 作用域 | 路径 |
|---|---|
| 个人级(所有项目生效) | ~/.claude/skills/mobile-adaptation-auditor/SKILL.md |
| 项目级(仅当前项目) | <project>/.claude/skills/mobile-adaptation-auditor/SKILL.md |
安装后通过以下方式调用:
$mobile-adaptation-auditor [url]
或在对话中描述移动端适配问题,Codex 会自动匹配。
技能存放位置:
| 作用域 | 路径 |
|---|---|
| 个人级 | ~/.codex/skills/mobile-adaptation-auditor/SKILL.md |
| 项目级 | <project>/.agents/skills/mobile-adaptation-auditor/SKILL.md |
| 跨工具兼容 | ~/.agents/skills/mobile-adaptation-auditor/SKILL.md |
如需禁用技能,在 ~/.codex/config.toml 中添加:
[[skills.config]]
path = "~/.codex/skills/mobile-adaptation-auditor/SKILL.md"
enabled = false