chags

chags is a skill for Claude Code, Codex from znlgis/opengis-skills. It costs 114 tokens per session (7,558 once invoked), scanned A, original, MIT.

A project guide for CHAGS, a collection of small children's games based on Chinese historical stories. It describes the shared Vue and Phaser structure, game contracts, bilingual content, and development checks.

In plain words
What is it for?
Use it to build or extend CHAGS games, connect them to the Vue shell, define story content, and run its browser and build checks.
Why use it?
Adding a game to a multi-game project requires following its shared interfaces and content rules. This guide helps keep each game compatible with the surrounding application.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to build or extend CHAGS games, connect them to the Vue shell, define story content, and run its browser and build checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/znlgis/opengis-skills/chags
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 znlgis/opengis-skills --skill chags
Clone the repo
git clone --depth 1 https://github.com/znlgis/opengis-skills

Made for: Claude Code, 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 chags

README.md
[![agentmods](https://agentmods.dev/badge/skills/znlgis/opengis-skills/chags/github.svg)](https://agentmods.dev/skills/znlgis/opengis-skills/chags)
Your own site
<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.

agentmods 80×15 button for chags

Your own site · 80×15
<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>
Per session 114 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,558 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.
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.00114 $0.07558
Opus 5.5 $0.00046 $0.03023
Sonnet 5.5 $0.00023 $0.01512
Haiku 4.5 $0.00011 $0.00756

Measured 21d ago against content hash bc2fd804d6eb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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 21d ago.

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.

others/chags/SKILL.md · 415 lines

How it starts

The opening of the file, as written. The whole thing — 415 lines — stays where its author put it; the contents beside it link to each section on GitHub.

项目地址: https://github.com/znlgis/CHAGS

在线试玩: https://znlgis.github.io/chags/

官方文档: https://znlgis.github.io/others/CHAGS/

包管理器: pnpm 11.22.0(packageManager 字段锁版本)+ Node.js 24

版本: v0.1.3(2026-10-28,GitHub Releases;仓库根 package.json 的 version 为 0.1.0,截至 2026-11 仍为最新正式 tag)

许可证: MIT

概述

CHAGS(Chinese Historical Anecdotes Game Series,中国历史典故儿童游戏合集)是面向 6–12 岁儿童的开源 H5 游戏合集:「一个典故一个小游戏」,让孩子在「做」故事的过程中记住典故。当前共 53 条内容、分两组:典故组 17 条(神话 / 传说 / 信史 / 寓言)+ 三十六计组 36 条,每条一个专属动词。界面 / 内容 / 语音支持中英双语一键切换。架构是「Phaser 4.2 管游戏 + Vue 3.5 管外壳」的双栈:外壳负责典故馆 / 图鉴 / 路由,每个典故是一个独立游戏包,懒加载、纯代码绘制。无后端、无账号、无广告,进度只存本机 IndexedDB;同一份站点产物还能打成 Windows 便携 exe(约 3.3 MB)与安卓 apk。

核心特性

特性 说明
内容合集 53 条 = 典故 17 部(神话 / 传说 / 信史 / 寓言)+ 三十六计 36 计;每条一个只属于它的「动词」
分组 packages/content/src/groups.ts 的 GROUPS:allusion(按 yearApprox 排)与 stratagem(按计策序号排),新增分组只改这张表
双栈隔离 Phaser 绝不进外壳首屏包,只在进入游戏时按需加载
契约层 packages/game-kit 定义 GameModule / GameContext / 事件协议,游戏与外壳互不认识
玩法模板库 26 个模板 id(packages/content/src/schema.ts 的 TEMPLATE_IDS):典故组 substitution / tap / place / aim / sort / trace / wait / beacon / mark / split / burrow / butcher(12 个);三十六计组 ruse / siege / borrow / stillness / window / show / twoline / read / matchup / probe / lure / chase / swap / chain(14 个)
内容驱动 典故 = 一份 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

Read the full file on GitHub · 415 lines

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. 21d ago Changed · +1 lines bc2fd804d6eb
  2. 1mo ago Changed · +10 lines 34c96c3b0bb3
  3. 1mo ago Changed · +10 lines 9ad776515221
  4. 1mo ago First seen · 394 lines · 114 tokens per session scan A 2b7a01fdc6f4

Subscribe to this mod's changes

chags is a skill published in the GitHub repository znlgis/opengis-skills (87 stars, last pushed 20d ago), licensed MIT. It adds 114 tokens to every session and 7,558 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.

Related

chags compared with skills from other repositories

chags next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
chagsznlgis/opengis-skillsSkill8720d agoMITA114Claude Code, Codex
portable-text-serializationvercel/eveSkill6.1ktodayApache-2.0A80Claude Code, Codex
estella-3d-gameplayesengine/estellaSkill1.3ktodayApache-2.0A85Claude Code, Codex
estella-screen-uiesengine/estellaSkill1.3ktodayApache-2.0A52Claude Code, Codex
estella-animationesengine/estellaSkill1.3ktodayApache-2.0A90Claude Code, Codex
estella-workflowesengine/estellaSkill1.3ktodayApache-2.0A58Claude Code, Codex
cyrene-exam-paperPlaya-0v0/Cyrene-AgentSkill81110d agoMITA64Claude Code, Codex