savecraft.gg: Skill for Claude Code

.claude/skills/working-on-factorio/SKILL.md

working-on-factorio is a skill for Claude Code from joshsymonds/savecraft.gg. It costs 96 tokens per session (1,684 once invoked), scanned A, original, Apache-2.0.

A set of rules for developing Savecraft’s Factorio integration, which combines a Lua game mod, a file-reading service, and WebAssembly parsers and calculators.

In plain words
What is it for?
Use it when changing the Factorio Lua mod, save parser, recipe or ratio calculations, game-data generation, item images, or Factorio-specific views.
Why use it?
It explains how data moves from Factorio into Savecraft and helps keep generated game data, images, parsers, and views aligned.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is joshsymonds/savecraft.gg's own configuration. It tells Claude Code how to work on savecraft.gg itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything savecraft.gg configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is → go run ./plugins/factorio/tools/datagen/.

Reuse

Borrowing it

Nothing to install: this file belongs to joshsymonds/savecraft.gg. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/joshsymonds/savecraft.gg/main/.claude/skills/working-on-factorio/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/joshsymonds/savecraft.gg

Made for: Claude Code.

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 working-on-factorio

README.md
[![agentmods](https://agentmods.dev/badge/skills/joshsymonds/savecraft.gg/working-on-factorio/github.svg)](https://agentmods.dev/skills/joshsymonds/savecraft.gg/working-on-factorio)
Your own site
<a href="https://agentmods.dev/skills/joshsymonds/savecraft.gg/working-on-factorio"><img src="https://agentmods.dev/badge/skills/joshsymonds/savecraft.gg/working-on-factorio/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 working-on-factorio

Your own site · 80×15
<a href="https://agentmods.dev/skills/joshsymonds/savecraft.gg/working-on-factorio"><img src="https://agentmods.dev/badge/skills/joshsymonds/savecraft.gg/working-on-factorio.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,684 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.00096 $0.01684
Opus 5 $0.00048 $0.00842
Sonnet 5 $0.00019 $0.00337
Haiku 4.5 $0.00010 $0.00168

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

Security

Grade A, and why

working-on-factorio 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 9d 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.

.claude/skills/working-on-factorio/SKILL.md · 149 lines

How it starts

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

Working on the Factorio Plugin

Factorio uses a hybrid mod + daemon architecture — unique among Savecraft plugins. A Lua mod writes JSON to script-output/savecraft/, the daemon watches via fsnotify, and a thin WASM parser converts to ndjson. Design doc: plugins/factorio/README.md.

Architecture

plugins/factorio/
├── mod/                    # Factorio Lua mod (control.lua, info.json)
├── parser/                 # WASM pass-through parser (JSON → ndjson)
├── reference/              # WASM reference modules (recipe_lookup, ratio_calculator)
│   ├── data/               # Generated Go struct literals (*_gen.go)
│   └── views/              # Svelte reference views (ratio-calculator.svelte)
├── tools/
│   ├── datagen/            # Parses data-raw-dump.json → generated Go files
│   └── spritesheet/        # Packs icon PNGs into sprite sheet + manifest
├── sprites/                # Generated sprite sheets (items.png, fluids.png + JSON manifests)
├── plugin.toml             # Plugin metadata, sources = ["wasm", "mod"]
└── Justfile

Verification

cd plugins/factorio
just test                   # Parser + reference module tests (32 tests)
just build                  # Build parser.wasm + reference.wasm
just datagen                # Regenerate from data-raw-dump.json
just spritesheet            # Regenerate sprite sheets from .reference/ PNGs

Full suite: just test-go (all Go) + just test-worker (all Worker) + just build-views (view compilation).

View changes require just build-views + committing views.gen.ts. See working-on-views skill for details. CI does not rebuild views — forgetting this ships stale HTML.

Key Conventions

Recipe Disambiguation

Never guess which recipe to use. When multiple non-recycling recipes produce the same item (e.g., solid-fuel from 3 oil sources), resolveRecipe() returns an error listing the options. The AI uses recipe_lookup (product query) to find options, picks contextually, and passes the explicit recipe name via the recipe or recipe_overrides parameters.

Read the full file on GitHub · 149 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. 9d ago First seen · 149 lines · 96 tokens per session scan A 9579f706f42e

Subscribe to this mod's changes

working-on-factorio is a skill published in the GitHub repository joshsymonds/savecraft.gg (12 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 96 tokens to every session and 1,684 once invoked, about $0.0005 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-30.