agentleFS
MingYuan0415MingYuan0415/MicroTech/AGENTS.md

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

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
  1. Very specific:

    Follow doc/code-style.md for all C/C++ changes.

    line 38

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Repository Guide

Map

  • main/: firmware entry, runtime, storage/network assembly. Resources declared by layers/apps/resource_manifest.cmake (which aggregates each app's resource_manifest.cmake) and layers/app_manager/app_theme/resource_manifest.cmake are staged from their assets/ directories and packaged into the res partition.
  • layers/: bsp, middleware, app_manager, apps — four independent Git submodules. bsp owns board backends, middleware owns services, app_manager owns app lifecycle/theme/display power, and apps owns the built-in LVGL applications; each layer's README.md documents 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, see products/README.md. Product selection uses MT_PRODUCT (empty selects the board's default product); board selection uses MT_BOARD (empty selects the target's only registered board).
  • sim/: standalone host LVGL simulator, see sim/README.md. Agents bind 127.0.0.1:5002 only.
  • doc/: build/verification, agent workflow, code style, configuration governance, design, colour, and audio-session guides; select by task below.
  • tests/: cross-layer host tests under connectivity/ and integration/, plus repository guard tests under tests/docs/, tests/configuration/, tests/resources/, and tests/sim-build/. managed_components/ is read-only.
  • tools/agent/: agent-facing command wrapper, see doc/agent-workflow.md.

Start Here

Load only the document that matches the task; do not preload unrelated topic documents.

TaskRead
Set up, flash, or select a board/productREADME.md, products/README.md
Build, test, verify, or triage a device faultdoc/verification.md
Run agent commands (mt.py) or inspect logsdoc/agent-workflow.md
Write or review C/C++doc/code-style.md
Change Kconfig, runtime policy, dependency pins, or board/product contractsdoc/configuration-governance.md
Work on a layer or componentthe owning layers/<layer>/README.md and its component READMEs
Work on the simulator, Agent Bridge, or page reviewsim/README.md
Choose or change design profiles, targets, or visual languagedoc/design/README.md, doc/color-language.md
Change audio session or recording ownershipdoc/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.md and 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 root CMakeLists.txt and the sdkconfig.defaults baseline as they are — neither weakened nor strengthened. The simulator build gate in doc/verification.md is 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:

ScenarioSkill
App/Page lifecycle, routing, navigation, argumentsapp-development
LVGL layout, text wrapping, clipping, touch/scroll propagationlvgl-ui-layout
Adversarial simulator review before a UI change is doneui-review
Design profiles, target capabilities, style switchingdesign-contract
New page visual direction, composition, typography, colour rolesvisual-design
Aesthetic critique and profile-relative design QAaesthetic-review
Press feedback, transitions, gestures and embedded motion budgetsmotion-interaction
Task clarity, labels, errors, navigation and usability heuristicsux-heuristics
Board pins, buses, hardware constraintsesp32
Real-device serial logs, boot identity, coredump, explicit flashingdevice-operations
Display pipeline ownership, draw submission, flush handshakelvgl-integration
Firmware code size, map/archive analysis, build size comparisoncodesize

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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.