IrredenEngine: Skill for Claude Code

.claude/skills/optimize/SKILL.md

optimize is a skill for Claude Code from jakildev/IrredenEngine. It costs 134 tokens per session (1,316 once invoked), scanned A, original, MIT.

A performance-checking workflow for newly changed hot-path code in Irreden Engine. It measures CPU and graphics-processor work before and after a change using repeatable scripts.

In plain words
What is it for?
Use it to profile system ticks, rendering, shaders, audio, video, or mathematical loops, apply engine-specific fixes, and measure the result again.
Why use it?
It replaces guesswork about slow per-frame, per-entity, per-pixel, or per-sample code with comparable measurements.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

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/optimize/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 optimize

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jakildev/irredenengine/optimize"><img src="https://agentmods.dev/badge/skills/jakildev/irredenengine/optimize.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 134 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,316 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.00134 $0.01316
Opus 5.5 $0.00054 $0.00526
Sonnet 5.5 $0.00027 $0.00263
Haiku 4.5 $0.00013 $0.00132

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

Security

Grade A, and why

optimize 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/optimize/SKILL.md · 110 lines

How it starts

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

optimize

Every repeatable measurement is a script in scripts/perf/; the skill picks the script, runs it, reads the data, applies engine-specific fixes, and re-runs the same script to confirm the win. Engine knowledge that is not a script lives in reference/. A multi-step shell sequence written in prose is a bug in this skill — extract it (reference/script_first.md).

When

The diff touches system ticks (engine/system/, engine/prefabs/irreden/.../systems/, per-entity loops in creations), render stages (engine/render/, engine/prefabs/irreden/render/, shaders), audio / video (engine/audio/, engine/video/, ffmpeg, MIDI), math called from per-entity loops or per-pixel shader code, or anything the author suspects is slow. Skip for tests, docs, build/CI, and refactors that preserve hot-path structure.

Flow

  1. Triage — git diff --stat, git diff. Nothing per-frame, per-entity, per-pixel, or per-sample → stop; simplify runs instead.

  2. Baseline before any code change:

    scripts/perf/perf_grid_matrix.sh --label baseline
    

    Writes one cell per (zoom, sub_mode, sub_base) into save_files/perf/<sha>-baseline/. --quick (2 cells) for a single helper or tick body; default (12) or --full (30) for broad changes. The script's --help is the flag reference — never paraphrase its flags in PR bodies.

  3. Smell scan the diff against reference/common_bottlenecks.md; flag every match.

  4. Profile when the scan is inconclusive — CPU: reference/cpu_profiling.md; GPU: reference/gpu_profiling.md.

  5. Fix and re-measure:

    scripts/perf/perf_grid_matrix.sh --label head
    scripts/perf/compare_perf_runs.py \
        save_files/perf/<baseline-sha>-baseline \
        save_files/perf/<head-sha>-head
    

    The comparator prints per-cell frame avg/p99, per-pass GPU breakdown, cull effectiveness, and top CPU systems, flagging regressions ≥ 10% and improvements ≥ 5% (--regress-pct, --improve-pct). A fix that does not move the needle is reverted.

  6. Report — paste the comparator output into the PR body; the skill's own report is:

Read the full file on GitHub · 110 lines

Files

What ships with it

7 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.

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 · 110 lines · 134 tokens per session scan A a5f3c01ff138

Subscribe to this mod's changes

optimize is a skill published in the GitHub repository jakildev/IrredenEngine (10 stars, last pushed today), licensed MIT. It adds 134 tokens to every session and 1,316 once invoked, about $0.0005 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

optimize compared with skills from other repositories

optimize next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
optimizejakildev/IrredenEngineSkill10todayMITA134Claude Code
systematic-debuggingopen-metadata/OpenMetadataSkill16kyesterdayApache-2.0A37Claude Code
log-error-digestzebbern/claude-code-guideSkill4.7k2d agoMITA71Claude Code, Codex
incident-response-incident-responsermyndharis/antigravity-skillsSkill2.0k2d agoMITA36Claude Code, Codex
cwv-optimizeradobe/skillsSkill321yesterdayApache-2.0A112Claude Code
ci-fixersipyourdrink-ltd/bernsteinSkill1.2kyesterdayApache-2.0A15Claude Code, Codex
diagnosing-missing-recordingsPostHog/posthogSkill41kyesterdaynoneA76Claude Code, Codex