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 znlgis/opengis-skills --skill chagsgit clone --depth 1 https://github.com/znlgis/opengis-skillsWrote 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/znlgis/opengis-skills/chags)<a href="https://agentmods.dev/skills/znlgis/opengis-skills/chags"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/chags/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/znlgis/opengis-skills/chags"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/chags.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00114 | $0.06994 |
| Opus 5.5 | $0.00046 | $0.02798 |
| Sonnet 5.5 | $0.00023 | $0.01399 |
| Haiku 4.5 | $0.00011 | $0.00699 |
Grade A, and why
chags 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 today.
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 — 404 lines — stays where its author put it; the contents beside it link to each section on GitHub.
项目地址: https://github.com/znlgis/CHAGS
许可证: MIT | 最新版本:
v0.0.5(GitHub tag / Release 一致,截至2026-10)
概述
CHAGS(Chinese Historical Anecdotes Game Series,中国历史典故儿童游戏合集)是面向 6–12 岁儿童的开源 H5 游戏合集:「一个典故一个小游戏」,让孩子在「做」故事的过程中记住典故。17 个典故已全部跑通,界面 / 内容 / 语音支持中英双语一键切换。架构是「Phaser 4.2 管游戏 + Vue 3.5 管外壳」的双栈:外壳负责典故馆 / 图鉴 / 路由,每个典故是一个独立游戏包,懒加载、纯代码绘制。无后端、无账号、无广告,进度只存本机 IndexedDB;同一份站点产物还能打成 Windows 便携 exe(约 3.3 MB)与安卓 apk。
核心特性
| 特性 | 说明 |
|---|---|
| 典故合集 | 17 部(神话 / 传说 / 信史 / 寓言),每部有一个只属于它的「动词」 |
| 双栈隔离 | Phaser 绝不进外壳首屏包,只在进入游戏时按需加载 |
| 契约层 | packages/game-kit 定义 GameModule / GameContext / 事件协议,游戏与外壳互不认识 |
| 玩法模板库 | story / substitution / tap / place / aim / sort / trace / wait / mark / split / burrow / quiz / reward |
| 内容驱动 | 典故 = 一份 JSON(zod schema 构建期校验),换典故不改代码 |
| 记忆工程 | keyMoment 关键抉择 + misconceptions + transfer 迁移题 + 1/3/7/21/60 天复习调度 |
| 质量门禁 | pnpm verify 六连跑 + Playwright 真实鼠标操作通关 + 体积守卫 |
| 多端分发 | Web 静态站点 / Tauri 2 便携 exe / Capacitor 8 apk |
环境准备 / 快速开始
前置条件
- Node.js 24.x(Vite 8 要求现代 Node,CI 统一用 Node 24)
- pnpm 11.x(根
package.json声明"packageManager": "[email protected]") - Chromium 系浏览器(开发预览与端到端测试)
安装与启动
git clone https://github.com/znlgis/CHAGS.git
cd CHAGS
pnpm install
pnpm dev # http://127.0.0.1:5183(strictPort,端口被占用会直接报错)
验证方式
pnpm verify # typecheck → lint → test → content:check → build → size,全绿才算「完成」
pnpm e2e # 首次需 npx playwright install chromium
常用命令
| 命令 | 作用 |
|---|---|
pnpm dev |
开发服务器 127.0.0.1:5183(改 packages/games 即时热更新) |
pnpm verify |
提交前完整门禁:typecheck → lint → test → content:check → build → size |
pnpm test |
Vitest 单测(Node 环境,纯逻辑,不碰 DOM / WebGL) |
pnpm content:check |
典故 JSON + 模板关卡脚本 + 双语完整性校验 |
pnpm e2e / pnpm e2e:dist |
Playwright 端到端(开发服务器 / 生产构建产物) |
pnpm audit:i18n |
双语版面巡检,截图到 .scratch/i18n-audit/(不入库) |
pnpm dist:win / pnpm dist:apk |
打包 Windows 便携 exe / 安卓 apk |
调试直达
http://127.0.0.1:5183/?autoplay=1#/play/caochong-elephant # 自动通关,用于无头验证
http://127.0.0.1:5183/?lang=en#/play/pangu # 强制英文(界面 + 内容 + 语音)
http://127.0.0.1:5183/?seed=fixed#/play/pangu # 注入确定性种子(预留参数)
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.
- today Changed · +10 lines 9ad776515221
- yesterday First seen · 394 lines · 114 tokens per session scan A 2b7a01fdc6f4
chags is a skill published in the GitHub repository znlgis/opengis-skills (64 stars, last pushed yesterday), licensed MIT. It adds 114 tokens to every session and 6,994 once invoked, about $0.0005 per session on Opus 5.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-10-15.
Other skills, from other repositories
slidev
Create and present web-based slidedecks for developers using Slidev with Markdown, Vue components, code highlighting, animations, and interactive features. Use when building technical presentations, conference talks, code walkthroughs, teaching materials, or developer decks.
teach-me
Teach the user to build browser games themselves across sessions, by building real games together. Not for building a game for them.
vue
Vue 3 - Progressive JavaScript framework with Composition API, reactivity system, single-file components, Vite integration, TypeScript support.
nuxt-docs
Nuxt 4.x — full-stack Vue.js framework. File-based routing, auto-imports, SSR, Nitro, layers, modules.
phaser3-engineer
!cat skills/shared/game-visual-foundations.md 2>/dev/null || echo "=== Visual Foundations not loaded ===" !cat skills/shared/protocols/ux-protocol.md 2>/dev/null || true !cat skills/shared/protocols/input-validation.md 2>/dev/null || true !cat skills/shared/protocols/tool-efficiency.md 2>/dev/null || true !cat…
phaser-coder
This skill should be used when the user asks to implement Phaser 4 game code, create or edit scenes, add players, enemies, scoring, collectibles, movement, shooting, animations, input, physics behavior, game objects, or complete gameplay features in TypeScript.