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 agentmods add skills/andvolodko/html5-game-editor/add-editor-commandnpx skills add andvolodko/html5-game-editor --skill add-editor-commandgit clone --depth 1 https://github.com/andvolodko/html5-game-editorWrote 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/andvolodko/html5-game-editor/add-editor-command)<a href="https://agentmods.dev/skills/andvolodko/html5-game-editor/add-editor-command"><img src="https://agentmods.dev/badge/skills/andvolodko/html5-game-editor/add-editor-command.svg" alt="Measured on agentmods" 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.00055 | $0.01534 |
| Opus 5 | $0.00028 | $0.00767 |
| Sonnet 5 | $0.00011 | $0.00307 |
| Haiku 4.5 | $0.00006 | $0.00153 |
Grade A, and why
add-editor-command 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 5d 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 — 135 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Add Editor Command
Strict workflow for mutations that participate in undo/redo.
Follow .cursor/rules/editor-commands.mdc and .cursor/rules/editor-ui.mdc. Do not copy those files here.
When to use this skill
- User-visible project/scene/asset edits that must undo.
- A React panel currently calls
documentmutators directly. - A pointer/paint gesture needs one history entry on completion.
- Adding a façade method on
Editorthat changes persisted state.
Do not use this for:
- Script gameplay (
create-game-component/implement-runtime-feature). - Transient UI (Inspector draft strings, Asset Browser search, dock layout).
- Runtime-only motion that must not write scene files (
GameRuntime/setTransform2Don scripts).
Before changing code
- Ask: does this change user-editable project state? If yes, it needs a
Command. - Find the closest command under
packages/editor-core/src/commands/and copy its shape. - Decide sync vs async:
Sync (execute / undo) |
Async (async: true, executeAsync) |
|
|---|---|---|
| Typical | scene graph, transforms, components | catalogue/disk (DeleteAssetCommand, rename folder, scene file) |
| Manager | CommandManager.execute |
CommandManager.executeAsync |
CommandManagerhas no merge/coalesce API. Do not invent command squashing. Continuous tools preview on the renderer and commit one command on pointer-up (or one stroke). Group several already-built commands withCompositeCommand.
Implementation workflow
1. One class per file
Create packages/editor-core/src/commands/<kebab-name>-command.ts.
export class SetExampleCommand implements Command {
readonly name = "SetExample";
private readonly before: Example;
private readonly after: Example;
constructor(
private readonly document: DocumentManager,
/* selection if the command changes it */
) {
// Capture before/after in the constructor from current document state.
}
execute(): void { /* apply after */ }
undo(): void { /* restore before */ }
}
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.
- 5d ago First seen · 135 lines · 55 tokens per session scan A c0871a3c58d7
add-editor-command is a skill published in the GitHub repository andvolodko/html5-game-editor (6 stars, last pushed 11d ago), licensed MIT. It adds 55 tokens to every session and 1,534 once invoked, about $0.0003 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.
Other skills, from other repositories
self-evolve
Capture reusable patterns from a finished project and lift them into framework-level priors (contracts, modules, skeletons) that future projects inherit. Run only when the user explicitly requests self-evolution; the orchestrator executes the workflow.
artist-self-evolve
Distill stable art-generation patterns from a completed project, so future projects produce comparable assets without re-discovering the prompts. Lead-dispatched only — orchestrator invokes this skill from its self-evolve flow with a game-slug message; do not self-trigger.
vibegame-build
Run VibeGame's standard end-to-end game development workflow with reviewer gates. Use when the user wants to create a game from zero or evolve an existing game across multiple stages.
vibegame-start
Resume a VibeGame orchestrator session after vibegame start. Use at the beginning of a Claude or Codex session to inspect team runtime state, repair missing persistent members, load goal and GDD context, inspect tasks, and ask the user what to do next.
design-npc
Use when the user wants to design an enemy, NPC, boss, companion, civilian, or wave-spawned mob's behavior. Walks perception, personality knobs, intent layer, action state machine, telegraphs, defeat handling, and group emergence — outputs a state-machine GDScript stub plus the recommended node tree. Trigger on…
fps-controller
Use when building an FPS, first-person movement, or a 3D character that walks, jumps, and reacts to external forces — production-quality first-person controller with WASD, mouse look, jump, coyote time, jump buffering, air control, and external-velocity handling. Trigger on "FPS", "first-person", "WASD", "character…