本文へ移動
cccskills
無料GitHub で公開

mini-program-ui-device-skill

Design, preview, implement, and assess mini-program interfaces against an approved prototype, screenshot, visual reference, design system, or bounded UI request while preserving product semantics and existing accepted behavior. Use when users ask to reproduce a mini-program screen, refine visual hierarchy, adapt layouts across device sizes, handle safe areas or keyboards, inspect touch targets, scrolling, media, or gesture conflicts, compare an implementation with a reference, or prepare a device-verification matrix. Separates proposed visual previews, user approval, source integration, local checks, and real-device evidence; never invents product functionality for visual completeness or claims device validation without device-specific proof.

インストール方法を見る

含まれるファイル(7)

  • SKILL.md5.8 KB
  • agents/openai.yaml295 B
  • assets/accessibility-matrix.md1.4 KB
  • assets/asset-lineage-record.md2.4 KB
  • assets/ui-device-evidence-record.md1.6 KB
  • references/runtime-state-and-layout-contracts.md5.6 KB
  • references/ui-device-workflow.md4.2 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

/mini-program-ui-device-skill — 小程序界面与真机适配

以已确认参考目标和产品语义为准完成界面工作,并严格区分视觉预览、用户确认、正式集成、本地检查与真机证据。参考存在时,忠实度是可验证目标,不用主观“更漂亮”替代。

输入与阶段边界

  • 接收已确认原型、截图、参考页面、设计系统、界面问题或设备反馈;先记录权威参考、允许变化、必须保护交互与未知项。
  • 若请求涉及高影响视觉风格、角色形象、关键动画或大范围布局,先产出可独立查看的视觉预览,取得用户确认后才能正式集成。
  • 缺少可渲染素材时,当场提供 2–3 个具名文字候选,分别说明视觉重点、变化范围与保持不变的产品语义,供用户先选方向;具名文字候选不等于已渲染预览,不能声称视觉效果、动效或设备表现已经得到验证。
  • 用户明确要求立即查看效果且当前只读时,在回复中为每个候选附自包含 SVG 或 HTML 预览代码/可直接查看的数据内容,不写入项目;说明预览尺寸、状态和占位素材。它只证明候选画面可查看,不证明正式源码、动效、交互或真机表现。
  • 不为了填满页面新增按钮、入口、奖励、状态或数据规则;产品语义冲突时退回产品决策。
  • 模拟器或桌面预览不是真机;没有机型、操作步骤、截图/日志或设备结果时,不报告真机通过。

界面与设备流程

  1. 将参考目标拆为布局、层级、间距、尺寸、形态、色彩、字体、素材、交互和状态,并标记可精确比较项。
  2. 建立 proposed → proposal-approved → implemented → locally-verified → device-verified 阶段记录;任何阶段不得自动升级。
  3. 先制作视觉预览或最小差异方案;用户确认后,仅在授权范围内正式集成并保护已有资产与交互。
  4. 检查最窄屏、最长文案、最大数字、空/加载/错误、动态字体(若支持)、安全区、键盘、横竖屏(若支持)和媒体容器;异步数据、可重入操作或复杂首屏按 运行时解析状态、异步隔离与整页布局合同 建立 resolved 三态、attempt ID 与数值高度预算。
  5. 核对触控热区、滚动容器、固定层、弹层、返回/下拉/横滑等行为,建立手势冲突矩阵并给出优先级与失败路径。
  6. 分别记录静态检查、桌面/模拟器预览和真实设备结果;视觉对比采用相同状态、尺寸与素材,不能拿不同条件作结论。
  7. 图片、图标、动画、音频或字体发生新增、处理或替换时,按 资产谱系记录模板 记录原始/衍生关系、处理方式、槽位、尺寸、透明通道、哈希、批准范围和替换关系。
  8. 批准只覆盖点名文件、变体和目标槽位。旧资产默认保留到新资产验证完成且回滚入口可查;没有明确删除授权时不得删除旧资产,替换关系本身也不授权删除。
  9. 使用 无障碍验证矩阵 分开检查 ARIA/读屏语义、动态字体、对比度、触控热区和焦点顺序;静态结果不冒充真机证据。
  10. 使用 界面与设备工作流 自检,并按 界面与设备证据模板 交付。

最低输出

  • 权威参考目标、状态/尺寸、允许变化、必须保护项和未知项。
  • 参考与实现的差异表,以及视觉预览或集成文件清单。
  • 发生资产处理时提供资产谱系;预览批准只覆盖点名文件、变体和目标槽位。
  • 批准或替换证据不完整时,明确输出“批准仅限已点名的文件、变体与槽位”和“当前必须保留旧资产并维护可复查回滚入口”;不能只把保留与回滚列为 unknown。
  • 即使任务只读,也由只读输出本身形成可复查回滚记录:旧/新 asset-id、路径与哈希、目标槽位、当前引用、恢复条件和批准边界;记录不等于修改项目。
  • 屏幕/内容边界矩阵、触控与手势冲突矩阵。
  • 条件触发时的解析状态、异步 attempt、整页高度预算和多信号设备策略证据。
  • 已执行的本地或真机步骤、证据、未覆盖机型/状态和残余风险。
  • 当前阶段与状态;预览认可不等于正式集成,正式集成不等于真机验收。

停止条件

参考目标互相冲突、关键视觉方向未获用户确认、实现会改变未确认产品行为、需要真实设备但无法取得证据,或现有用户改动无法安全保护时停止在对应阶段。不得用裁切内容、禁用手势或隐藏错误状态伪造适配完成。

独立与套件协作

独立安装时,本 Skill 可完成界面方案、受控集成和设备矩阵。位于套件中时,接收稳定产品语义与实现边界,输出视觉/设备证据和验证入口,不直接调用其他组件脚本。

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Apply evidence-first engineering discipline to any agent-built software project: fact discovery before action, evidence-calibrated status reporting, explicit change boundaries and stage gates, controlled confirmation for risky or external actions, sensitive-information redaction for anything shared publicly, and resumable continuity after interruptions. Use when users ask an agent to take over an existing codebase, deliver a feature across stages, verify whether work is actually complete, judge release readiness, or keep conclusions honest about what is proven versus assumed. This foundation skill is domain-neutral; vertical suites (for example mini-program engineering) build on it by adding domain facts and platform rules.

日本語の概要は準備中です。原文の説明を表示しています。

NocodeMrLi/mini-program-engineering-skill-suite882026年10月11日 更新

Translate a confirmed mini-program product specification or bounded feature into an implementable architecture covering modules, pages, components, services, canonical state sources, data models, interfaces, permissions, failures, caching, concurrency, idempotency, migration, rollback, external dependencies, and architecture decision records. Use when users ask how to structure a mini program, design data or APIs, divide frontend and cloud responsibilities, evolve an existing system safely, or prepare implementation after product semantics are stable. Preserves product meaning, current repository constraints, user-owned changes, and verifiable acceptance behavior rather than redesigning the product for technical convenience.

日本語の概要は準備中です。原文の説明を表示しています。

NocodeMrLi/mini-program-engineering-skill-suite882026年10月11日 更新

Diagnose and fix mini-program failures through reproducible, evidence-driven root-cause analysis across source, state, asynchronous timing, caches, mock data, build versions, platform behavior, devices, cloud calls, and external services. Use when users report white screens, crashes, stale or jumping values, missing data, intermittent behavior, permission failures, performance stalls, device-only defects, API or cloud-function errors, source-versus-build mismatches, or regressions whose cause is not yet established. Freezes the observation environment, ranks competing hypotheses, runs discriminating checks, creates a failing regression test before repair, covers analogous states, and never hides a known failure with longer waits, swallowed errors, forced success, or cosmetic patches.

日本語の概要は準備中です。原文の説明を表示しています。

NocodeMrLi/mini-program-engineering-skill-suite882026年10月11日 更新

Orchestrate evidence-first engineering for WeChat and other mini programs from a vague idea or existing repository through project discovery, product specification, architecture, implementation, debugging, device adaptation, verification, and release readiness. Use when users ask to build a mini program from zero to one, take over an existing mini-program project, deliver a cross-stage feature, diagnose project status, coordinate development and testing, or judge whether a mini program is ready to upload or release. Enforces fact discovery, change boundaries, stage gates, evidence-calibrated status, sensitive-information redaction, and continuity after side questions.

日本語の概要は準備中です。原文の説明を表示しています。

NocodeMrLi/mini-program-engineering-skill-suite882026年10月11日 更新

Implement bounded features and fixes in existing or new mini-program codebases while preserving repository rules, user-owned changes, approved behavior, assets, framework conventions, and evidence boundaries. Use when users ask to write or modify mini-program code, implement a confirmed specification or architecture, add a scoped feature, remove behavior semantically, update internal documentation required by a change, or carry out a well-defined small fix that does not require root-cause investigation. Establishes a baseline and change boundary, applies test-driven small steps, distinguishes source from generators and build artifacts, verifies the affected contract, and never reports source completion as device validation, formal acceptance, upload, or release.

日本語の概要は準備中です。原文の説明を表示しています。

NocodeMrLi/mini-program-engineering-skill-suite882026年10月11日 更新

Convert a vague mini-program idea, feature request, or partially documented product into an evidence-calibrated product specification with target users, core problem, version-one scope, main and exception flows, page responsibilities, state matrices, and testable acceptance criteria. Use when users ask to define an MVP, clarify requirements, organize product flows, specify page behavior, resolve ambiguous product states, or prepare a stable handoff before architecture or implementation. Separates facts, user decisions, assumptions, unknowns, and future ideas; never invents product logic merely to complete a screen or technical plan.

日本語の概要は準備中です。原文の説明を表示しています。

NocodeMrLi/mini-program-engineering-skill-suite882026年10月11日 更新

NocodeMrLi のスキルをすべて見る

このスキルの問題を報告する