Light API 0.4.0 is a public beta: a minor release such as 0.5.0 may still break. What that means for your module
Light
Developer guide

Build with an AI assistant

The Markdown of every page, prompts that work, and an AGENTS.md for your repository.

An assistant writes a good Light module when it has read the right pages and knows the rules. This site gives it both: every page as Markdown, the whole guide in one file, and a rules file for your repository.

Give your assistant the guide

WhatWhereUse it for
Copy MarkdownThe button under each page titlePaste one page into a chat
View as MarkdownThe link next to itRead the page as a model gets it
OpenThe menu next to them: Open in ChatGPT, Claude, Cursor or Scira AI. A copy of the site on localhost doesn't show it, because those services can't read itStart a chat that reads this page
One pagehttps://light.magerex.nl/md/developer/<page>.md, for example https://light.magerex.nl/md/developer/recipes/nav-counter.mdPoint an agent at the page it needs
Every page, listedhttps://light.magerex.nl/llms.txtLet an agent pick the pages itself
Every page, in fullhttps://light.magerex.nl/llms-full.txtGive a long-context model the whole guide

The Markdown is the page as written: a code block keeps the path of the file it quotes in its title, and a diagram stays a mermaid block that a model can read. Its links point at the full address of the Markdown they mean, so an assistant can follow them.

Put the rules in your repository

Save these two files in the root of your module's repository. Coding agents such as Claude Code, Cursor and Codex read them before they change anything.

docs/site/public/agents/AGENTS.md
# Working on a Light module

This module extends Light, the simple admin for Mage-OS and Magento Open Source. The Light developer guide is the
authority: https://light.magerex.nl/llms-full.txt holds all of it as Markdown, and
https://light.magerex.nl/md/developer/<page>.md holds one page.

The whole file is on this site at /agents/AGENTS.md.

Prompts that work

Each prompt names the pages to read first, the job, and the check to run at the end. Swap in your own module and names.

Check what it wrote

An assistant can be sure of itself and still be wrong. Before you merge its work:

  • bin/magento mrx:light:doctor --module=<your module> reports no errors, private_api included.
  • The module's browser test passes, and tests/playwright/users-and-permissions.spec.ts still does.
  • A person reads every label and every Dutch translation: warm copy is Built for Light, rule 6.

Last updated on

On this page