gamified-app
Three screens: Cover / Today's quests with XP / Quest details, dark stage
1How It Works & Mechanism
The three-screen narrative structure is hardcoded in the body: Cover → Today's quests (XP ribbon + level bar) → Quest detail (subtasks + rewards).
- Frame 2: Today's quests + XP ribbon + level bar
The 'dark stage' is implemented in the example as a dark showcase background with `--stage: #0e0d0c`, featuring three phone frames side by side.
--stage: #0e0d0c;
Level/XP semantics are standardized into reusable tags: LEVEL / Level 14 / +N XP.
<div class="meta"><div class="label">LEVEL</div><div class="name">Level 14</div></div>
The template itself is the prompt: The body of SKILL.md is read by the loader, assembled with the shared prelude and user content, and passed to the local agent CLI for execution.
prompt = assemblePrompt({ body: skill.body, content, format });
The skill directory consists purely of text assets: The loader reads SKILL.md from disk, and no executable code within the directory is ever loaded.
const raw = safeRead(path.join(dir, "SKILL.md"));
The shared prelude is injected before the template, establishing the highest priority rule: 'The template only defines layout/style/color palette/fonts/component library; quantity is determined by user content.'
【内容驱动数量 — 最高优先级, 覆盖模板里的任何数字】
The shared prelude is injected before the template, establishing the highest priority rule: 'The template only defines layout/style/color palette/fonts/component library; quantity is determined by user content.'
- **禁止使用 Write / Edit / MultiEdit / Bash / Create / 任何文件系统工具**。不要把 HTML 写到任何 \`.html\` 文件里。前端直接捕获你的 stdout 文本, 文件落盘由前端负责。
The skill directory consists purely of text assets: The loader reads SKILL.md from disk, and no executable code within the directory is ever loaded.
const exampleHtml = safeRead(path.join(dir, "example.html"));
2Core Capabilities
4Recommended Governance & Evidence
- SKILL.md: Pure prompt instructions and rule text, without script execution or external side effects
5Second-Pass Verification
- [ok] 规范↔示例:覆盖率 — 正文 4 行(三屏 + quest tile 渐变/等级 ribbon/tab bar)在示例中全部落地:stage-bar + 3 台 phone + level-ribbon + quests 双列网格 + steps + 两个 tabbar。
- [discrepancy] 示例自述的 [theme] 切换 — 示例 tip 写「Toggle [theme] in the toolbar to switch theme & layout」,但全文件无 toolbar 控件、无 <script>——照抄该提示会出现做不到的说明。
- [ok] 「暗色舞台」措辞核对 — 示例 `--stage: #0e0d0c;` 与深色 body 底色落地了正文的 dark showcase stage 描述。
- [discrepancy] 示例规模 vs 规范强度 — 正文只有 4 行规范,示例却是 16KB 完整三屏(含示例自创的 stage-bar/tabbar/steps 命名)——规范未覆盖的实现细节全部由示例单方面定义,两次生成差异可能较大。
- [ok] 目录资产面普查 — glob 全量:SKILL.md、example.html;无 scripts/、无 references/、无数据文件、无包管理器清单。
- [ok] 可执行代码普查 — example.html 内 <script> 计数 = 0,fetch/XMLHttpRequest/WebSocket 命中 0;SKILL.md 全篇无脚本或可执行代码。
- [ok] 外链端点普查 — 目录内 URL:https://fonts.googleapis.com、https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap、https://fonts.gstatic.com(皆为 example.html 产物示例或 frontmatter 出处标注;正文未要求运行期外发)
- [ok] official_desc 逐字核对 — meta.official_desc 与 SKILL.md frontmatter 的 description 逐字一致。
6Verdict & Scenarios
f8255d49dbd0de8f…