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

unihiker_expansion_ir

Skill37 starsChanged 33 days agoMITView on GitHub

Use this skill when the user asks to send IR code, read IR code, or self-send and self-receive IR data on a DFRobot UNIHIKER Expansion board (SKU: DFR1216). Chinese name is 行空板扩展板. 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. Send one IR code only: Read one IR code only: Self-send and…

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 5 are distinctive, and 3 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.

  • 3

    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 send IR code, read IR code, or self-send and self-receive IR data on a DFRobot UNIHIKER Expansion …

    line 18
  2. Very specific:

    Run exactly one bundled Lua script with lua_run_script.

    line 20
  3. Distinctive:

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

    line 22
  4. Distinctive:

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

    line 23
  5. Distinctive:

    Read one IR code only:

    line 87
  6. Distinctive:

    Use default I2C settings unless the user explicitly provides custom wiring.

    line 102
  7. Very specific:

    Use mode = "send_get" when user asks for self-send/self-receive in one operation.

    line 103
  8. Very specific:

    Run {CUR_SKILL_DIR}/scripts/ir_send_get.lua with resolved args.

    line 104

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

UNIHIKER Expansion IR

Use this skill when the user asks to send IR code, read IR code, or self-send and self-receive IR data on a DFRobot UNIHIKER Expansion board (SKU: DFR1216). Chinese name is 行空板扩展板.

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": {
    "mode": {
      "type": "string",
      "enum": ["send", "get", "send_get"]
    },
    "data": {
      "type": "integer",
      "minimum": 0,
      "maximum": 4294967295
    },
    "timeout_ms": {
      "type": "integer",
      "minimum": 0,
      "maximum": 60000
    },
    "poll_interval_ms": {
      "type": "integer",
      "minimum": 10,
      "maximum": 5000
    },
    "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
    }
  }
}

Tool Call Inputs

Send one IR code only:

{"path":"{CUR_SKILL_DIR}/scripts/ir_send_get.lua","args":{"mode":"send","data":305419896}}

Read one IR code only:

{"path":"{CUR_SKILL_DIR}/scripts/ir_send_get.lua","args":{"mode":"get","timeout_ms":2000,"poll_interval_ms":100}}

Self-send and self-receive in one call:

{"path":"{CUR_SKILL_DIR}/scripts/ir_send_get.lua","args":{"mode":"send_get","data":305419896,"timeout_ms":2000,"poll_interval_ms":100}}

Recommended Flow

  1. Confirm the expansion board is connected to the expected I2C bus.
  2. Use default I2C settings unless the user explicitly provides custom wiring.
  3. Use mode = "send_get" when user asks for self-send/self-receive in one operation.
  4. Run {CUR_SKILL_DIR}/scripts/ir_send_get.lua with resolved args.
  5. Report script output directly to the user, including any error.

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.