Legends-Of-Heroes: Instructions file for Codex

AGENTS.md

Legends-Of-Heroes AGENTS.md is an instructions file for Codex, OpenCode from FlameskyDexive/Legends-Of-Heroes. It costs 1,139 tokens per session, scanned A, original, MIT.

A Chinese-language set of project instructions for a Unity game repository. It defines where the main development rules live, how skills are selected, and which tools and commands to use.

In plain words
What is it for?
It directs agents to read the main package instructions, use PowerShell 7 for commands, choose skills through the project index, and select the right Unity interaction channel.
Why use it?
It gives an agent a consistent way to follow the repository's coding, testing, build, Git, and Unity interaction rules.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md; mentions Codex.

This is FlameskyDexive/Legends-Of-Heroes's own configuration. It tells Codex and OpenCode how to work on Legends-Of-Heroes 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 Legends-Of-Heroes configures →

Reuse

Borrowing it

Nothing to install: this file belongs to FlameskyDexive/Legends-Of-Heroes. 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/FlameskyDexive/Legends-Of-Heroes/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/FlameskyDexive/Legends-Of-Heroes

Made for: Codex, OpenCode.

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 Legends-Of-Heroes AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/flameskydexive/legends-of-heroes/agents-md"><img src="https://agentmods.dev/badge/instructions/flameskydexive/legends-of-heroes/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,139 This file is loaded in full into every session.
When invoked 1,139 The same file — it is already loaded in full.
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.01139 $0.01139
Opus 5 $0.00570 $0.00570
Sonnet 5 $0.00228 $0.00228
Haiku 4.5 $0.00114 $0.00114

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

Security

Grade A, and why

Legends-Of-Heroes AGENTS.md 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 11d 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.

AGENTS.md · 60 lines

How it starts

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

AGENTS.md

根目录只保留最小入口,主要规范以 ./Packages/cn.etetet.harness/AGENTS.md 为准。

读完本文件,请先确认:

  1. 是否已读取 ./Packages/cn.etetet.harness/AGENTS.md(本项目主要 AI 开发规范以它为准)。
  2. 如果没有 ./Packages/cn.etetet.harness/,请提示:可以购买开发许可获取 AI 开发扩展。

最小入口规则

  • 请使用全中文跟我沟通(代码除外)。
  • 每次执行任何操作前,请先说明要做什么,以及为什么要这么做。
  • 本项目中执行的所有命令都必须使用 pwsh(PowerShell 7),不要使用 Windows 自带的 powershell.exe
  • 详细项目规范、技能路由、包依赖、开发、构建、测试、Luban、Git、UnityBridge、EUI 规则,以 ./Packages/cn.etetet.harness/AGENTS.md 为准。
  • ET 技能索引在 Packages/cn.etetet.harness/skills/index.md:处理具体任务前先读索引、匹配 1 个主 skill,仅跨域任务才叠加其它 skill;禁止先完整读取所有 skill 正文。

两套技能体系分工

  • ET 开发规范(主)Packages/cn.etetet.harness/。涵盖代码 et-code、异步 et-async、客户端 UI et-eui、构建 et-build、Luban et-luban、Excel et-excel、测试 et-test-* / et-tdd、Git et-git、UnityBridge et-unitybridge。一律先读 skills/index.md 路由。
  • AIBridge CLI 工具链(补充).codex/skills/,见下方 AIBridge Bootstrap。用于 Unity 编译/日志、Code Index、Prefab Patch、Batch Script 等工具化操作。
  • 两者并存:ET 业务/规范类任务以 harness 技能为准;需要 AIBridge CLI 能力时再按 AIBridge 路由加载 .codex/skills/ 下对应 skill。

Unity 交互入口优先级

涉及 Unity 编辑器交互(编译 Compile、刷新 Refresh、重新生成项目 RegenProject、读日志、PlayMode、Editor/资源/Prefab/场景操作等)一律按下面优先级选择通道,命中可用即用,不可用再降到下一级:

  1. AIBridge(首选)$CLI = ./.aibridge/cli/AIBridgeCLI.exe,用法见下方 AIBridge Bootstrap。
  2. UnityMcp(次选,仅当 AIBridge 不可用):加载 unity-mcp-skill(MCP for Unity)。AIBridge「不可用」判据:AIBridgeCLI.exe 不存在,或命令返回连接超时 /「Unity Editor not running or AIBridge not active」/ 状态无法确认。
  3. UnityBridge(兜底,前两者都不可用时才用):走 et-unitybridge,详见 Packages/cn.etetet.unitybridge/AGENTS.md

AIBridge Bootstrap

CLI Alias: $CLI = ./.aibridge/cli/AIBridgeCLI.exe

常用命令:

$CLI compile unity
$CLI get_logs --logType Error
$CLI editor log --message "Hello" --logType Warning

项目版本:

  • 当前项目 Unity 版本:2022.3.62f3
  • 当前项目 C# 语言版本要求:兼容 C# 9.0,禁止使用更高版本语法。

当前能力状态:

  • Code Index:已启用。只有需要语义符号、定义、引用、调用者或诊断查询时才加载 aibridge-code-index

Read the full file on GitHub · 60 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. 11d ago First seen · 60 lines · 1,139 tokens per session scan A 80eb68f4a195

Subscribe to this mod's changes

Legends-Of-Heroes AGENTS.md is an instructions file published in the GitHub repository FlameskyDexive/Legends-Of-Heroes (925 stars, last pushed 1mo ago), licensed MIT. It adds 1,139 tokens to every session, about $0.0057 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 instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens