MicroTech
AGENTS.md1 starsChanged 7 days agoMITView on GitHub
Load only the document that matches the task; do not preload unrelated topic documents. Follow doc/code-style.md for all C/C++ changes; format with `python3 tools/agent/mt
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,196 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository12 other files it gives its agents.
- aesthetic-reviewSkill
- app-developmentSkill
- codesizeSkill
- design-contractSkill
- device-operationsSkill
- esp32Skill
- lvgl-integrationSkill
- lvgl-ui-layoutSkill
- motion-interactionSkill
- ui-reviewSkill
- ux-heuristicsSkill
- visual-designSkill
The file
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 38
Follow doc/code-style.md for all C/C++ changes.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Repository Guide
Map
main/: firmware entry, runtime, storage/network assembly. Resources declared bylayers/apps/resource_manifest.cmake(which aggregates each app'sresource_manifest.cmake) andlayers/app_manager/app_theme/resource_manifest.cmakeare staged from theirassets/directories and packaged into therespartition.layers/:bsp,middleware,app_manager,apps— four independent Git submodules.bspowns board backends,middlewareowns services,app_managerowns app lifecycle/theme/display power, andappsowns the built-in LVGL applications; each layer'sREADME.mddocuments its components. Changes inside a layer are committed and pushed in the submodule; the parent repository updates the pointer in the same commit.products/: board/product/design-target composition manifests, seeproducts/README.md. Product selection usesMT_PRODUCT(empty selects the board's default product); board selection usesMT_BOARD(empty selects the target's only registered board).sim/: standalone host LVGL simulator, seesim/README.md. Agents bind127.0.0.1:5002only.doc/: build/verification, agent workflow, code style, configuration governance, design, colour, and audio-session guides; select by task below.tests/: cross-layer host tests underconnectivity/andintegration/, plus repository guard tests undertests/docs/,tests/configuration/,tests/resources/, andtests/sim-build/.managed_components/is read-only.tools/agent/: agent-facing command wrapper, seedoc/agent-workflow.md.
Start Here
Load only the document that matches the task; do not preload unrelated topic documents.
| Task | Read |
| Set up, flash, or select a board/product | README.md, products/README.md |
| Build, test, verify, or triage a device fault | doc/verification.md |
Run agent commands (mt.py) or inspect logs | doc/agent-workflow.md |
| Write or review C/C++ | doc/code-style.md |
| Change Kconfig, runtime policy, dependency pins, or board/product contracts | doc/configuration-governance.md |
| Work on a layer or component | the owning layers/<layer>/README.md and its component READMEs |
| Work on the simulator, Agent Bridge, or page review | sim/README.md |
| Choose or change design profiles, targets, or visual language | doc/design/README.md, doc/color-language.md |
| Change audio session or recording ownership | doc/audio-session-lease.md |
Default Working Mode
- Change only code directly related to the task; analysis tasks are read-only; do not change code outside the plan, but report the problems you find. Conclusions come from code, tests, or documentation — never from guesses.
- Minimal verification: use the tiers in
doc/verification.mdand run each gate once per task. Do not run the full-repository CTest, sanitizers,idf.py build/size, or hardware checks by default; widen the scope only when the user explicitly asks for a commit, acceptance, or release verification, and state the widened part. - Do not add process gates: never add CMake
FATAL_ERROR, mandatory Kconfig switches, CI gates, or new "do not" rules to solve a problem. Keep the LVGL profile gate in the rootCMakeLists.txtand thesdkconfig.defaultsbaseline as they are — neither weakened nor strengthened. The simulator build gate indoc/verification.mdis the sole exception because it enforces the required host-build contract. - Flash or erase only when the user explicitly asks.
Coding Style
Follow doc/code-style.md for all C/C++ changes; format with python3 tools/agent/mt.py fmt.
Documentation Style
Reference documentation states implementation facts; it does not describe the implementation process or unimplemented content. A document covers only the module it owns and must not explain unrelated modules.
Language: agent-facing documents (AGENTS.md, .agents/skills/, doc/) and tool documents under tests/ are English only. Every module README.md ships with a Simplified Chinese README_ZH.md twin, and both carry a language switcher on line 1: **English** | [简体中文](README_ZH.md) in the English file and [English](README.md) | **简体中文** in the Chinese one. A README.md edit and its README_ZH.md counterpart change in the same commit. Quoted product strings that appear on screen stay in their shipped language.
Commits
Header <type>(<scope>): <subject>, body states motivation and impact, trailer Refs: or BREAKING CHANGE:; a PR lists changes, tests, and resource impact. A submodule pointer update must land in the same commit as the content change; pointer-only bumps are forbidden. Run the full checklist (git diff --check + astyle + affected host suites + python3 tools/agent/mt.py build sim, see code-style.md §8.2) only when the user asks for a commit or acceptance.
Skills
Load .agents/skills/ on demand; do not preload everything:
| Scenario | Skill |
| App/Page lifecycle, routing, navigation, arguments | app-development |
| LVGL layout, text wrapping, clipping, touch/scroll propagation | lvgl-ui-layout |
| Adversarial simulator review before a UI change is done | ui-review |
| Design profiles, target capabilities, style switching | design-contract |
| New page visual direction, composition, typography, colour roles | visual-design |
| Aesthetic critique and profile-relative design QA | aesthetic-review |
| Press feedback, transitions, gestures and embedded motion budgets | motion-interaction |
| Task clarity, labels, errors, navigation and usability heuristics | ux-heuristics |
| Board pins, buses, hardware constraints | esp32 |
| Real-device serial logs, boot identity, coredump, explicit flashing | device-operations |
| Display pipeline ownership, draw submission, flush handshake | lvgl-integration |
| Firmware code size, map/archive analysis, build size comparison | codesize |
The general build, debugging, and verification workflow is defined in doc/verification.md; configuration contracts are in doc/configuration-governance.md. Do not load a skill for either.
Priority: this file and doc/code-style.md > current code, lock files, and topic documents > skill summaries; never override the current implementation with a constant from a skill.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

