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 wedabro/bro-skills --skill speckit.game-native-jsgit clone --depth 1 https://github.com/wedabro/bro-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/wedabro/bro-skills/speckit.game-native-js)<a href="https://agentmods.dev/skills/wedabro/bro-skills/speckit.game-native-js"><img src="https://agentmods.dev/badge/skills/wedabro/bro-skills/speckit.game-native-js/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/wedabro/bro-skills/speckit.game-native-js"><img src="https://agentmods.dev/badge/skills/wedabro/bro-skills/speckit.game-native-js.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.00054 | $0.01100 |
| Opus 5.5 | $0.00022 | $0.00440 |
| Sonnet 5.5 | $0.00011 | $0.00220 |
| Haiku 4.5 | $0.00005 | $0.00110 |
Grade A, and why
speckit.game-native-js 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 65 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Mission
Architect and build high-performance native JavaScript/TypeScript web games running at steady 60-144 FPS. Ensure instant loading (< 2s), zero Garbage Collection spikes via strict Object Pooling, data-driven game balance, hybrid Canvas + DOM HUD architectures, and multi-input responsiveness (touch, gamepad, keyboard).
Inputs and Outputs
- Read
.agents/specs/[feature]/spec.md,plan.md,tasks.md, target engine specs, core gameplay loop definitions, and asset balance configurations. - Produce core engine initialization and scene manager (
src/game/), fixed timestep game loop with object pool managers (src/game/pools/), balance configuration files, hybrid canvas + DOM overlays, and multi-channel Web Audio manager.
Protocol
1. 60 FPS Fixed Game Loop & Timestep Management
- Decoupled Physics & Render:
- Physics/Game State MUST update in a fixed timestep
FixedUpdate(fixedDelta)(e.g. 50Hz / 20ms or 60Hz / 16.6ms). - Rendering updates on every
requestAnimationFrame(time)with state interpolation (lerp) to prevent jitter on high refresh rate monitors (120Hz/144Hz).
- Physics/Game State MUST update in a fixed timestep
- Delta-Time Clamping: Clamp maximum frame delta (e.g.,
Math.min(dt, 0.1)) to avoid physics tunneling or simulation explosions when tabs are backgrounded or during frame drops.
2. Zero-Allocation in Hot Loops (Anti-GC Stutter)
- Object Pooling: Pre-allocate and reuse memory pools for all ephemeral entities:
- Bullets / Projectiles
- Particle Emitters / Explosions
- Floating Damage Numbers / Combat Text
- Enemies & Spawners
Rule: NEVER call
new Object(),new Array(), or allocate closures inside the main tick/update loop.
- Texture Atlases & SpriteSheets: Combine individual sprites into unified texture atlases using TexturePacker to minimize WebGL batch draw calls.
- Spatial Partitioning: Use Flat TypedArrays (
Float32Array,Int32Array) with Grid or QuadTree indexing for broadphase collision detection.
3. Data-Driven Game Design & Balancing
- Externalized Config: All gameplay parameters (HP, Speed, Cooldown, Damage, Drop rates, Wave progression) MUST be defined in
src/config/balance/*.jsonor CSV files. - Type-Safe Validation: Validate balance JSON files at build time / game boot using Zod or TypeScript schemas to catch missing stats or type mismatches immediately.
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.
- 1mo ago First seen · 65 lines · 54 tokens per session scan A 31ddf007f437
speckit.game-native-js is a skill published in the GitHub repository wedabro/bro-skills (3 stars, last pushed 12d ago), licensed MIT. It adds 54 tokens to every session and 1,100 once invoked, about $0.0002 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-09-14.
Other skills, from other repositories
math-modeling
A workflow for mathematical modelling, where real-world questions are represented with mathematics and solved with code or analysis.
math-modeling
A workflow for mathematical modelling, where real-world questions are represented with mathematics and solved with code or analysis.
科研可视化工具
A research-visualisation workflow for examining data and producing publication-ready charts for scientific papers.
LaTeX工具
A tool for creating, compiling, and checking mathematical modelling papers written in LaTeX, a document system often used for technical writing.
Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and…
DOCX工具
A tool for creating, editing, checking, and converting Microsoft Word DOCX files. It also handles LaTeX research papers, mathematical formulas, tables, tracked changes, and comments.