EasyEcs

Using EasyEcs with AI assistants

Give Claude, ChatGPT, Cursor or Copilot the EasyEcs docs: llms.txt, a Markdown copy of every page, and a rules file for AGENTS.md, CLAUDE.md or Cursor.

EasyEcs is newer than most models' training data, and its rules (stateless systems, state changes as data, in and ref parameters, the owner thread) are what an assistant gets wrong first. This page shows the three ways to put the real docs in front of one: the llms.txt files, the Markdown copy of each page, and a rules file for your project.

The docs as text

FileWhat it holds
/llms.txtA summary of EasyEcs, its key facts and a link to the Markdown copy of every English page (llmstxt.org format)
/llms-full.txtThe full text of every English page in one file
/llms.zh.txt, /llms-full.zh.txtThe same for the Chinese pages (also at /zh/llms.txt and /zh/llms-full.txt)

Give an assistant llms.txt when it can follow links, llms-full.txt when it cannot. The full file includes the code of the battle server example, so a model sees every feature used together.

Markdown copies of every page

Add .md to a page's URL for its Markdown: https://ecs.xgamedev.net/en/docs/guide/queries.md. The docs home is /en/docs.md. A request for the page itself with Accept: text/markdown gets the same Markdown, so tools that ask for Markdown first need no special URL:

curl -H "Accept: text/markdown" https://ecs.xgamedev.net/en/docs/guide/systems

The menu at the top of each page copies its Markdown or opens it in ChatGPT, Claude, T3 Chat or Scira with the page attached.

A rules file for your project

easyecs-rules.md is a short file of the rules that matter when writing EasyEcs code: components and systems, method and group filters, structural changes, entity.Run for a request on one entity, threads and refs, performance, persistence (snapshots, saves, records with LoadEntitiesInto), what EasyEcs does not do (including the actor pattern it leaves to you), project layout and debugging, and an example. It is drawn from the ECS principles, the analyzer rules, the performance guide, project structure and diagnostics. Download it into the docs/ folder of your repository, where the snippets below look for it:

curl -fsSL --create-dirs -o docs/easyecs-rules.md https://ecs.xgamedev.net/easyecs-rules.md

Then point your assistant at it. The analyzer still checks every build, so a rule the assistant misses becomes a compile error, not a bug.

AGENTS.md

Codex, Jules, Cursor, Zed and other agents read AGENTS.md at the repository root. Add a line that names the file:

AGENTS.md
## EasyEcs

Follow docs/easyecs-rules.md when writing code that uses EasyEcs.

Claude Code

CLAUDE.md can import the file, so Claude Code loads it with the project instructions:

CLAUDE.md
@docs/easyecs-rules.md

Or make it a skill that loads only when the task touches EasyEcs. A skill is a folder with a SKILL.md whose frontmatter tells Claude when to use it:

.claude/skills/easyecs/
  SKILL.md            frontmatter (name, description) + the rules
.claude/skills/easyecs/SKILL.md
---
name: easyecs
description: Rules for writing EasyEcs code (components, systems, [ForEach], queries). Use when editing code that uses EasyEcs.
---

(paste the contents of easyecs-rules.md here)

Cursor

A rule in .cursor/rules/ with .mdc frontmatter applies to the files its globs match:

.cursor/rules/easyecs.mdc
---
description: EasyEcs rules
globs: "**/*.cs"
alwaysApply: false
---

(paste the contents of easyecs-rules.md here)

GitHub Copilot

Copilot reads .github/copilot-instructions.md for the whole repository, and .github/instructions/*.instructions.md for the files an applyTo glob matches:

.github/instructions/easyecs.instructions.md
---
applyTo: "**/*.cs"
---

(paste the contents of easyecs-rules.md here)

Other tools

Services that index GitHub repositories and documentation for assistants, such as Context7 and DeepWiki, can be pointed at the EasyEcs repository from their own sites. They are run by others: check what they return against these docs, which are the source.

Edit on GitHub

Last updated on

How is this guide?

On this page