et-code

et-code is a skill for Claude Code, Codex from FlameskyDexive/Legends-Of-Heroes. It costs 61 tokens per session (657 once invoked), scanned A, original, MIT.

A code-authoring and review guide for the ET framework, a C# game-development framework built around entities, components, and systems. It covers code placement, package boundaries, dependencies, and framework-specific rules.

In plain words
What is it for?
Use it when creating or changing ET entities, components, systems, helpers, message handlers, packages, modules, or related C# contracts.
Why use it?
It helps keep ET code in the correct package and layer while avoiding analyzer errors, broken file metadata, unsafe asynchronous code, and invalid component handling.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit Use it when creating or changing ET entities, components, systems, helpers, message handlers, packages, modules, or related C# contracts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/flameskydexive/legends-of-heroes/et-code
Install

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.

Any agent
npx skills add FlameskyDexive/Legends-Of-Heroes --skill et-code
Clone the repo
git clone --depth 1 https://github.com/FlameskyDexive/Legends-Of-Heroes

Made for: Claude Code, Codex.

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 et-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/flameskydexive/legends-of-heroes/et-code/github.svg)](https://agentmods.dev/skills/flameskydexive/legends-of-heroes/et-code)
Your own site
<a href="https://agentmods.dev/skills/flameskydexive/legends-of-heroes/et-code"><img src="https://agentmods.dev/badge/skills/flameskydexive/legends-of-heroes/et-code/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 et-code

Your own site · 80×15
<a href="https://agentmods.dev/skills/flameskydexive/legends-of-heroes/et-code"><img src="https://agentmods.dev/badge/skills/flameskydexive/legends-of-heroes/et-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 657 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00061 $0.00657
Opus 5 $0.00030 $0.00329
Sonnet 5 $0.00012 $0.00131
Haiku 4.5 $0.00006 $0.00066

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

Security

Grade A, and why

et-code 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 10d 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.

Packages/cn.etetet.harness/skills/et-code/SKILL.md · 45 lines

What it actually says

et-code - ET Code 入口

何时使用

  • 新建或修改 EntityComponentSystemHelper
  • 新建或修改 MessageLocationHandlerMessageHandler<T>MessageSessionHandler
  • 新建或移动 C# 文件,检查 .meta、程序集与包内落点
  • 新增消息、模块、程序集或包依赖
  • 处理 ECS 分层、组件存在性契约、Module analyzer、分析器报错

不要加载

  • 只是执行测试、导出配置或操作 Excel
  • 只做 Unity 编辑器操作(用 et-unitybridge

默认动作

  1. 先确认改动所在 package、程序集层级和包内 AGENTS.md 规则。
  2. 检查代码是否位于 Packages/cn.etetet.*,并确认是否需要关注 packagegit.jsonPackageType.cs
  3. 先判断 Entity / System 分离、Handler Run 规范、包依赖单向、Module analyzer、禁止 hard code 是否受影响。
  4. 新增组件或判空前先确认组件存在性契约;按设计必然存在的组件不要偷偷兜底创建。
  5. 涉及 async / await / ETTask / EntityRef 时,叠加 ../et-async/SKILL.md
  6. 新建类前优先复用现有结构;默认一类一文件。
  7. 严禁 AI 手工生成 .meta 或手工修改 .csproj;移动 C# 文件时必须同步移动对应 .meta 以保留 GUID。
  8. 严禁为了注册表、缓存、映射关系随手新增静态可变字段;先确认生命周期与 owner。

快速分流

  • 文件、.meta、包落点、包层级:补读 references/et-code-rules.md
  • ECS 数据/逻辑边界、组件契约、Module analyzer:补读 references/et-code-rules.md
  • await 后 Entity 访问、EntityRef<T>NewContext(...):叠加 et-async
  • 编译或分析器验证:转 et-build

输出要求

  • 说明代码落点、包依赖、程序集层次是否正确
  • 说明是否影响 .meta.csproj、Unity 刷新或工程文件生成
  • 说明是否影响 EntityRef / await 安全、Handler Run 规范
  • 说明是否引入新的 analyzer 风险、静态状态风险或模块边界问题
Files

What ships with it

4 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. 10d ago First seen · 45 lines · 61 tokens per session scan A ca5c0fe7d220

Subscribe to this mod's changes

et-code is a skill published in the GitHub repository FlameskyDexive/Legends-Of-Heroes (924 stars, last pushed 1mo ago), licensed MIT. It adds 61 tokens to every session and 657 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-30.

Related

Other skills, from other repositories

fantasy-net

This guide applies to development and code review for Fantasy / Fantasy.Net / Fantasy.Unity written in C#. Use it when a task involves Fantasy server code or Unity client code using Fantasy, ECS entities/components/systems, scenes and subscenes, FTask, network handlers/messages/protocols, Address or Roaming routing…

qq362946/Fantasy · 157 tokens

reflection-method-call

Call a C# method by reflection — including private methods. Requires a method schema obtained via 'reflection-method-find'. Supports static methods, instance methods (with optional target deserialization), and main-thread / off-thread execution.

IvanMurzak/Unity-MCP · 48 tokens

script-execute

Compiles and executes C# code dynamically using Roslyn. Supports a full-code mode (default) and a body-only mode — see the skill body for the difference and for how to pass Unity object references as parameters.

IvanMurzak/Unity-MCP · 48 tokens

reflection-method-find

Find C# methods across every loaded assembly by name / type / parameters — including private methods. Returns serialized MethodData entries usable as schemas for 'reflection-method-call'.

IvanMurzak/Unity-MCP · 39 tokens

unity-version-split

Split a C# file into Unity 6.5+ and pre-Unity 6.5 variants. Use when a file needs different implementations for different Unity versions due to API changes (e.g., EntityId vs int, GetEntityId vs GetInstanceID).

IvanMurzak/Unity-MCP · 59 tokens

script-delete

Delete one or more .cs script files from disk, refresh the AssetDatabase, and wait for Unity compilation to settle before delivering the final result via the request's requestId. Pair with 'script-read' to inspect files before deletion.

IvanMurzak/Unity-MCP · 52 tokens