traffic-safety

traffic-safety is a skill for Claude Code, Codex from sumo1/AI-GAME-COOL. It costs 39 tokens per session (519 once invoked), scanned A, original, Apache-2.0.

A skill for creating traffic-safety games for children aged 5–9. Players learn rules about traffic lights and zebra crossings, which are marked pedestrian crossings.

In plain words
What is it for?
Use it to create road, crossroads, or roundabout games with keyboard or touch controls. Games can teach traffic lights, crossings, road signs, and safe movement through different difficulty levels.
Why use it?
It turns road-safety rules into interactive practice and checks that movement, collisions, signals, scoring, and level changes behave correctly.

Skill for Claude CodeCodex

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

Good fit Use it to create road, crossroads, or roundabout games with keyboard or touch controls. Games can teach traffic lights, crossings, road signs, and safe movement through different difficulty levels.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sumo1/ai-game-cool/traffic-safety
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 sumo1/AI-GAME-COOL --skill traffic-safety
Clone the repo
git clone --depth 1 https://github.com/sumo1/AI-GAME-COOL

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 traffic-safety

README.md
[![agentmods](https://agentmods.dev/badge/skills/sumo1/ai-game-cool/traffic-safety/github.svg)](https://agentmods.dev/skills/sumo1/ai-game-cool/traffic-safety)
Your own site
<a href="https://agentmods.dev/skills/sumo1/ai-game-cool/traffic-safety"><img src="https://agentmods.dev/badge/skills/sumo1/ai-game-cool/traffic-safety/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 traffic-safety

Your own site · 80×15
<a href="https://agentmods.dev/skills/sumo1/ai-game-cool/traffic-safety"><img src="https://agentmods.dev/badge/skills/sumo1/ai-game-cool/traffic-safety.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 519 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.00039 $0.00519
Opus 5 $0.00019 $0.00260
Sonnet 5 $0.00008 $0.00104
Haiku 4.5 $0.00004 $0.00052

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

Security

Grade A, and why

traffic-safety 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 10d 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.

game-agent-backend/src/main/resources/skills/traffic-safety/SKILL.md · 46 lines

What it actually says

交通安全小卫士

交通安全教育游戏,Canvas 实现,学习红绿灯规则、斑马线过马路,适合 5-9 岁儿童。

何时使用

用户提到交通安全、红绿灯、过马路、斑马线、交通规则等关键词时激活此 Skill。

生成步骤

  1. 确定交通场景类型(马路/十字路口/环形路口)
  2. 参考 assets/template.html 的 Canvas 渲染和碰撞检测逻辑
  3. 根据用户需求调整:
    • 交通规则重点(红绿灯/斑马线/交通标识)
    • 关卡数量和难度(车辆速度/数量/路口复杂度)
    • 控制方式(方向键/触摸按钮/手势滑动)
    • 视觉风格(俯视/侧视)
  4. 调用 generateGame 生成完整 HTML
  5. 调用 evaluateGame 检查质量

评估重点

  • Canvas 游戏能正常渲染和运行
  • 玩家控制响应灵敏(键盘和触摸)
  • 红绿灯按周期正确切换
  • 碰撞检测准确(使用 AABB 矩形相交)
  • 斑马线和信号灯遵守有加分奖励
  • 关卡升级逻辑正确
  • 游戏规则说明清晰
  • 教育内容(交通规则)融入游戏过程

常见问题

  • 碰撞检测不准确 → 使用 getBoundingClientRect() 做 AABB 矩形相交检测,不要用固定距离阈值
  • 角色移动超出道路区域 → 在移动函数中添加边界约束,使用 Math.max/Math.min 限制坐标范围
  • 交通信号灯状态不切换 → 检查 setInterval 定时器是否正确设置,确保红绿灯状态循环切换
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 10d ago First seen · 46 lines · 39 tokens per session scan A f0d5107cbbfb

Subscribe to this mod's changes

traffic-safety is a skill published in the GitHub repository sumo1/AI-GAME-COOL (5 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 39 tokens to every session and 519 once invoked, about $0.0002 per session on Opus 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-08-31.

Related

Other skills, from other repositories

gentleman-trainer

Vim Trainer RPG system patterns for Gentleman.Dots. Trigger: When editing files in installer/internal/tui/trainer/, adding exercises, modules, or game mechanics.

Gentleman-Programming/Gentleman.Dots · 39 tokens

game-builder

Convert any topic into playable browser games. Types: trivia, matching, word puzzles, adventure games. Uses Phaser.js or Kaboom.js.

OneWave-AI/claude-skills · 31 tokens

teach-me

Teach the user end-to-end browser game development over multiple sessions — design, engine, art, audio, juice, multiplayer, shipping — by building real games together. Use when the user wants to LEARN to make games themselves: 'teach me game development', 'I want to learn to make games', 'teach me Phaser', 'how do…

kyh/vibedgames · 98 tokens

hr-game-development

Help HR and recruiting teams hire and assess game development candidates across engineering, design, and art disciplines. Use when asked to write a game developer job description, create a gameplay engineer interview, assess a game designers portfolio, build a game studio leveling framework, or similar…

tuanductran/hr-skills · 61 tokens

godot-genre-educational

Expert blueprint for educational games including gamification loops (learn/apply/feedback/adapt), progress tracking (student profiles, mastery %), adaptive difficulty (target 70% success rate), spaced repetition, curriculum trees (prerequisite system), and visual feedback (confetti, XP bars). Use for learning apps…

thedivergentai/GD-Agentic-Skills · 105 tokens

tutorial-workflow

A workflow for designing, reviewing, and testing tutorials and new-player onboarding for a game. It checks whether the tutorial teaches the game’s goals, turns, and cause-and-effect actions rather than merely listing buttons or reading like a rulebook.

zhuanggenhua/BoardGame · 39 tokens