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/frabcd/codex-ai-game-studio/img2threejsnpx skills add frabcd/codex-ai-game-studio --skill img2threejsgit clone --depth 1 https://github.com/frabcd/codex-ai-game-studioWrote 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/frabcd/codex-ai-game-studio/img2threejs)<a href="https://agentmods.dev/skills/frabcd/codex-ai-game-studio/img2threejs"><img src="https://agentmods.dev/badge/skills/frabcd/codex-ai-game-studio/img2threejs.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.00066 | $0.06477 |
| Opus 5 | $0.00033 | $0.03238 |
| Sonnet 5 | $0.00013 | $0.01295 |
| Haiku 4.5 | $0.00007 | $0.00648 |
Grade A, and why
img2threejs 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 6d 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 — 350 lines — stays where its author put it; the contents beside it link to each section on GitHub.
img2threejs — Image to procedural Three.js
Rebuild the object visible in a reference image as a code-only procedural Three.js model, gated by a staged sculpting pipeline and an AI-vision self-correction loop. This is reconstruction-by-code, not photogrammetry, mesh extraction, or downloaded art packs.
Use Codex-native image reading, an already-enabled browser tool, the project preview, or a user-supplied screenshot wherever this workflow calls for agent vision or a browser.
Runtime and paths
Resolve SKILL_ROOT to the directory containing this SKILL.md. When Codex exposes
PLUGIN_ROOT, this skill is at ${PLUGIN_ROOT}/skills/img2threejs; otherwise use the skill's
discovered absolute path. Run every bundled script by absolute path from SKILL_ROOT and keep
generated specifications, renders, and models in the user's project or an approved output
directory, never in the installed plugin.
Use the active Python 3.10+ executable: py -3 or python on Windows, and python3 or the
configured environment's interpreter on macOS. Pass arguments as an array and do not build a shell
command. In command examples, <python> means that selected executable and <skill-root> means
the resolved absolute SKILL_ROOT. The harness itself uses only the standard library.
The local specification index never writes into the installed plugin. Use
--cache-root <approved-path> or AI_GAME_STUDIO_CACHE_DIR; otherwise a
bounded OS user-cache directory is used. Generated specifications, code,
renders, and evidence still belong in the approved project/output directory.
The built-in pixel tools decode compatible PNG directly. Common JPEG/TIFF/BMP
inputs may be converted through the fixed native Windows System.Drawing or
macOS /usr/bin/sips route. A non-native ImageMagick fallback is allowed only
when AI_GAME_STUDIO_IMAGEMAGICK_MANIFEST points to a confirmed JSON record
containing its absolute executable, SHA-256, version, reviewed license, HTTPS
source URL, and plan digest. Unsupported formats must stop with a conversion
request; never run an executable selected only from PATH.
What ships with it
60 files 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.
- agents/openai.yaml 310 B
- docs/cs2-anatomy/gloves.md 12 KB
- docs/cs2-anatomy/heavy.md 14 KB
- docs/cs2-anatomy/knives.md 18 KB
- docs/cs2-anatomy/pistols.md 12 KB
- docs/cs2-anatomy/rifles.md 13 KB
- docs/cs2-anatomy/smgs.md 13 KB
- docs/cs2-anatomy/snipers.md 14 KB
- docs/cs2/3D_Technical_Mapping.json 11 KB
- docs/cs2/3D_Technical_Reference.md 22 KB
- docs/cs2/3D_Vocabulary_CS2_Dictionary.md 27 KB
- docs/cs2/3D_Vocabulary_CS2.json 12 KB
- docs/cs2/distill.md 9.9 KB
- docs/cs2/review-gates.md 2.5 KB
- docs/raw/img2threejs-skill-dataset.json 107 KB
- docs/specs/vocabulary/core_3d_reconstruction.jsonl 56 KB
- docs/specs/vocabulary/core_3d.jsonl 13 KB
- docs/specs/vocabulary/cs2_reconstruction.jsonl 86 KB
- docs/specs/vocabulary/cs2.jsonl 7.1 KB
- docs/specs/vocabulary/README.md 4.4 KB
- docs/UPGRADE_PLAN.md 30 KB
- forge/_shared/artifact_cache.py 1.7 KB runs code
- forge/_shared/color_metrics.py 3.6 KB runs code
- forge/_shared/feature_acceptance_policy.py 4.2 KB runs code
- forge/_shared/image_decode.py 9.5 KB runs code
- forge/_shared/image_hash.py 4.0 KB runs code
- forge/_shared/spec_search_profiles.json 1.4 KB
- forge/_shared/spec_search.py 64 KB runs code
- forge/_shared/status_banner.py 1.4 KB runs code
- forge/next.py 1.8 KB runs code
- forge/report.py 1.5 KB runs code
- forge/requirements.txt 335 B
- forge/stage1_intake/analyze_texture.py 12 KB runs code
- forge/stage1_intake/bind_detail_properties.py 4.6 KB runs code
- forge/stage1_intake/build_detail_inventory.py 12 KB runs code
- forge/stage1_intake/check_intake_correctness.py 4.8 KB runs code
- forge/stage1_intake/check_reference_admission.py 7.6 KB runs code
- forge/stage1_intake/cs2_foundation.py 7.9 KB runs code
- forge/stage1_intake/cs2_manifest.py 10 KB runs code
- forge/stage1_intake/cs2_review_contract.py 1.7 KB runs code
- forge/stage1_intake/delight_albedo.py 13 KB runs code
- forge/stage1_intake/detect_cs2.py 9.7 KB runs code
- forge/stage1_intake/detect_reference_effects.py 8.9 KB runs code
- forge/stage1_intake/extract_cs2_textures.py 8.7 KB runs code
- forge/stage1_intake/extract_gradient_stops.py 5.8 KB runs code
- forge/stage1_intake/extract_landmarks.py 15 KB runs code
- forge/stage1_intake/extract_part_color_recipe.py 21 KB runs code
- forge/stage1_intake/extract_pbr_evidence.py 31 KB runs code
- forge/stage1_intake/fetch_cs2_metadata.py 18 KB runs code
- forge/stage1_intake/locate_cs2_vpk.py 2.6 KB runs code
- forge/stage1_intake/probe_image.py 5.4 KB runs code
- forge/stage1_intake/search_specs.py 8.6 KB runs code
- forge/stage1_intake/solve_camera_pose.py 8.4 KB runs code
- forge/stage2_spec/cs2_adapters.py 3.0 KB runs code
- forge/stage2_spec/derive_geometry.py 4.3 KB runs code
- forge/stage2_spec/new_pre_spec_assessment.py 11 KB runs code
- forge/stage2_spec/new_sculpt_spec.py 88 KB runs code
- forge/stage2_spec/validate_sculpt_spec.py 97 KB runs code
- forge/stage3_build/bake_projected_texture.py 8.8 KB runs code
- forge/stage3_build/generate_threejs_factory.py 73 KB runs code
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.
- 6d ago First seen · 350 lines · 66 tokens per session scan A 113de9657c4a
img2threejs is a skill published in the GitHub repository frabcd/codex-ai-game-studio (9 stars, last pushed 5d ago), licensed MIT. It adds 66 tokens to every session and 6,477 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
game-build
Build a risk-matched whitebox or the approved production game for its target runtime. Turn GAMEDESIGN, and ARTDIRECTION when production begins, into a minimal BUILDBRIEF and a runnable candidate that can be iterated with replayable evidence. Use for prototype the riskiest design question, implement the approved game…
game-concept
Design game concepts from a novel. From SOURCEBIBLE and PRODUCTBRIEF, generate three genuinely different directions on the dimensions still unlocked, then pick the most worthwhile playable prototype using hard vetoes and explicit trade-offs. Use for what game should this novel become, compare game concepts, choose a…
game-qa
Verify a game with evidence on its selected target runtime. Launch the actual build and prove real rendering, input, the core loop, at least one designed outcome, restart, and explicit limitations without dressing subjective fun up as a certain verdict. Use for test a generated game, QA a game build, check whether the…
3d_scene
Choose how to build a 3dscene asset. Do not default to one pipeline for every task: what the user specified about the scene's appearance matters more than the scene type, and generative reconstruction is the least stable route here.
cinematic-cutscene
Use when generating a non-interactive cutscene clip — opening scene, story beat, character intro, ending. Locks the look with a reference image, image-to-videos a 5-10s shot, optionally adds TTS dialogue, and wires it as a VideoStreamPlayer that fades in/out. Trigger on "cutscene", "intro cinematic", "opening scene"…
lightning
Use when authoring a lightning bolt visual effect — procedural jagged path drawn via ImmediateMesh, glow shader, sparks at endpoints, screen shake. Trigger on "lightning bolt", "chain lightning", "electric attack", "tesla coil", "shock spell", "thunderbolt", "energy beam".