agentleFS
espressifespressif/esp-claw-skills-lab/skills/dfrobot_matrix_lidar_8x8_i2c/SKILL.md

dfrobot_matrix_lidar_8x8_i2c

Skill37 starsChanged 33 days agoMITView on GitHub

Use this skill when the user asks to read data from a DFRobot MatrixLidar, DFRobot matrix radar, 8x8 matrix lidar, 8x8 TOF sensor, or 8x8 matrix laser radar connected over I2C. Typical user requests include: Chinese aliases that should map to this skill include: 矩阵雷达、8x8 雷达、8x8 矩阵激光雷达、TOF 矩阵测距、激光测距矩阵。 Default device assumptions: Run exactly one bundled Lua script with lua_run_script. If script execution returns an error, report that error directly to the user. Do not retry with changed arguments in the…

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when the user asks to read data from a DFRobot MatrixLidar, DFRobot matrix radar, 8x8 matrix lidar, 8x8 TOF sensor, or 8x8 …

    line 18
  2. Very specific:

    Run exactly one bundled Lua script with lua_run_script.

    line 36
  3. Distinctive:

    If script execution returns an error, report that error directly to the user.

    line 38
  4. Distinctive:

    Do not retry with changed arguments in the same turn unless the user explicitly asks.

    line 39
  5. Distinctive:

    Read one 8x8 frame with default I2C settings:

    line 98
  6. Distinctive:

    Read one 8x8 frame with custom I2C settings:

    line 104
  7. Very specific:

    If the user says only "读一下矩阵雷达数据" and does not provide wiring, assume default I2C settings and default address 0x33.

    line 113

≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill 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
SKILL.md

DFRobot MatrixLidar 8x8 I2C

Use this skill when the user asks to read data from a DFRobot MatrixLidar, DFRobot matrix radar, 8x8 matrix lidar, 8x8 TOF sensor, or 8x8 matrix laser radar connected over I2C.

Typical user requests include:

  • 读一下 DFRobot 矩阵雷达的数据
  • 读取 8x8 雷达数据
  • 读取 8x8 矩阵激光雷达数据
  • 读取 TOF 激光测距矩阵数据
  • I2C 地址是 0x33,帮我读一下矩阵雷达

Chinese aliases that should map to this skill include: 矩阵雷达、8x8 雷达、8x8 矩阵激光雷达、TOF 矩阵测距、激光测距矩阵。

Default device assumptions:

  • I2C address defaults to 0x33
  • Reads one 8x8 frame of distance values in mm
  • Intended for an externally connected DFRobot MatrixLidar sensor on UNIHIKER

Run exactly one bundled Lua script with lua_run_script.

If script execution returns an error, report that error directly to the user. Do not retry with changed arguments in the same turn unless the user explicitly asks.

Script Args Schema

{
  "type": "object",
  "properties": {
    "i2c_port": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1
    },
    "sda": {
      "type": "integer",
      "minimum": 0,
      "maximum": 63
    },
    "scl": {
      "type": "integer",
      "minimum": 0,
      "maximum": 63
    },
    "i2c_freq_hz": {
      "type": "integer",
      "minimum": 10000,
      "maximum": 1000000
    },
    "addr": {
      "type": "integer",
      "minimum": 8,
      "maximum": 119
    },
    "retry_count": {
      "type": "integer",
      "minimum": 1,
      "maximum": 20
    },
    "retry_delay_ms": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000
    },
    "packet_timeout_ms": {
      "type": "integer",
      "minimum": 100,
      "maximum": 20000
    },
    "poll_interval_ms": {
      "type": "integer",
      "minimum": 1,
      "maximum": 200
    }
  }
}

Tool Call Inputs

Read one 8x8 frame with default I2C settings:

{"path":"{CUR_SKILL_DIR}/scripts/get_8x8_data.lua","args":{}}

Read one 8x8 frame with custom I2C settings:

{"path":"{CUR_SKILL_DIR}/scripts/get_8x8_data.lua","args":{"i2c_port":0,"sda":47,"scl":48,"i2c_freq_hz":400000,"addr":51}}

Recommended Flow

  1. Confirm the MatrixLidar sensor is connected to the expected I2C bus and address.
  2. If the user says only "读一下矩阵雷达数据" and does not provide wiring, assume default I2C settings and default address 0x33.
  3. Run {CUR_SKILL_DIR}/scripts/get_8x8_data.lua.
  4. Report the returned matrix data directly to the user.

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.