IrredenEngine: Skill for Claude Code

.claude/skills/lua-creation-setup/SKILL.md

lua-creation-setup is a skill for Claude Code from jakildev/IrredenEngine. It costs 89 tokens per session (2,940 once invoked), scanned A, original, MIT.

A setup procedure for adding Lua scripting to an Irreden Engine game creation. Lua is a scripting language; the procedure connects Lua code with C++ engine types and supports components and systems defined at build time or runtime.

In plain words
What is it for?
Use it to expose C++ components to Lua, register Lua systems, configure a creation, and choose code generation or runtime LuaJIT registration.
Why use it?
It lays out the files, bindings, configuration, and registration order needed to add scripting without guessing how the engine's Lua integration is arranged.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md.

This is jakildev/IrredenEngine's own configuration. It tells Claude Code how to work on IrredenEngine 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 IrredenEngine configures →

Reuse

Borrowing it

Nothing to install: this file belongs to jakildev/IrredenEngine. 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/jakildev/IrredenEngine/master/.claude/skills/lua-creation-setup/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/jakildev/IrredenEngine

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 lua-creation-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/jakildev/irredenengine/lua-creation-setup/github.svg)](https://agentmods.dev/skills/jakildev/irredenengine/lua-creation-setup)
Your own site
<a href="https://agentmods.dev/skills/jakildev/irredenengine/lua-creation-setup"><img src="https://agentmods.dev/badge/skills/jakildev/irredenengine/lua-creation-setup/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 lua-creation-setup

Your own site · 80×15
<a href="https://agentmods.dev/skills/jakildev/irredenengine/lua-creation-setup"><img src="https://agentmods.dev/badge/skills/jakildev/irredenengine/lua-creation-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,940 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.00089 $0.02940
Opus 5.5 $0.00036 $0.01176
Sonnet 5.5 $0.00018 $0.00588
Haiku 4.5 $0.00009 $0.00294

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

Security

Grade A, and why

lua-creation-setup 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 2d 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/lua-creation-setup/SKILL.md · 308 lines

How it starts

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

Lua Creation Setup

LuaJIT 2.1 + sol2. C++ registers systems and pipelines; Lua drives entity creation, configuration, and game logic. Bindings register before IREngine::init. The API reference for everything below is engine/script/CLAUDE.md; this skill is the procedure.

Two paths, often combined, sharing one ComponentId space and archetype graph:

  1. Expose C++ types to Lua — lua_bindings.cpp + lua_component_pack.hpp (Part A).
  2. Define components and systems in Lua — IRComponent.register / IRSystem.registerSystem, emitted as C++ at build time (CODEGEN) or registered at runtime (EVAL) (Part B).

Files

creations/<category>/<name>/: main_lua.cpp (registerLuaBindings → init → loop), lua_bindings.{hpp,cpp}, lua_component_pack.hpp, config.lua, main.lua (dofiles scripts/). A codegen creation also runs irreden_lua_codegen() on its .lua schema from CMakeLists.txt. Minimum file set and asset staging: creations/CLAUDE.md.

Part A — exposing C++ types

lua_bindings.hpp

#ifndef CREATIONS_MYCREATION_LUA_BINDINGS_H
#define CREATIONS_MYCREATION_LUA_BINDINGS_H

namespace MyCreation {
void registerLuaBindings();
}

#endif

lua_bindings.cpp

#include "lua_bindings.hpp"
#include "lua_component_pack.hpp"

#include <irreden/ir_engine.hpp>
#include <irreden/ir_audio.hpp>

namespace MyCreation {
void registerLuaBindings() {
    static bool isRegistered = false;
    if (isRegistered) return;

    IREngine::registerLuaBindings([](IRScript::LuaScript &luaScript) {
        using namespace IRMath;
        using namespace IRComponents;

        luaScript.registerType<Color, Color(int, int, int, int)>(
            "Color", "r", &Color::red_, "g", &Color::green_,
            "b", &Color::blue_, "a", &Color::alpha_
        );
        luaScript.registerType<ivec3, ivec3(int, int, int)>(
            "ivec3", "x", &ivec3::x, "y", &ivec3::y, "z", &ivec3::z
        );

        luaScript.registerEnum<IREasingFunctions>(
            "IREasingFunction",
            {{"LINEAR_INTERPOLATION", kLinearInterpolation},
             {"QUADRATIC_EASE_IN", kQuadraticEaseIn}}
        );

        registerLuaComponentPack(luaScript);

        luaScript.registerCreateEntityFunction<C_MidiSequence>("createMidiSequence");
        luaScript.registerCreateEntityBatchFunction<
            C_Position3D, C_VoxelSetNew, C_PeriodicIdle>(
            "createEntityBatchVoxelPeriodicIdle"
        );

        luaScript.lua()["IRAudio"] = luaScript.lua().create_table();
        luaScript.lua()["IRAudio"]["openMidiOut"] = [](const std::string &name) {
            return IRAudio::openPortMidiOut(name);
        };
    });

    isRegistered = true;
}
} // namespace MyCreation

Read the full file on GitHub · 308 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. 2d ago First seen · 308 lines · 89 tokens per session scan A b758caa651a7

Subscribe to this mod's changes

lua-creation-setup is a skill published in the GitHub repository jakildev/IrredenEngine (10 stars, last pushed today), licensed MIT. It adds 89 tokens to every session and 2,940 once invoked, about $0.0004 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-11-07.

Related

lua-creation-setup compared with skills from other repositories

lua-creation-setup next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
lua-creation-setupjakildev/IrredenEngineSkill10todayMITA89Claude Code
playtest-reportDonchitos/Claude-Code-Game-StudiosSkill37k21d agoMITA20Claude Code
godot-signals-groupsgamedev-skills/awesome-gamedev-agent-skillsSkill7.8k12d agoApache-2.0A95Claude Code
texture-workflowarjun988/blender-skillsSkill2.2k3d agoMITA41Claude Code
scenario-unreal-gameplayscenario-labs/skillsSkill3.5kyesterdayMITA121Claude Code
motionOpenDCAI/GameFactory-3ASkill1.0k11d agoApache-2.0A0Claude Code, Codex
unity-addressablesBesty0728/Unity-SkillsSkill1.9kyesterdayMITA25Claude Code, Codex