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

maze

Skill34 starsChanged 6 months agoMITView on GitHub

Use this skill when the user asks to show, draw, generate, solve, or animate a maze on the screen. Run the bundled Lua script with lua_run_script_async for normal display use: The script computes each maze locally in Lua, plays the maze-generation animation, plays a solving animation from the fixed top-left entrance to the fixed bottom-right exit, holds for 5 seconds, then starts a new maze. It repeats until stopped or replaced by another display job. If script execution returns an…

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    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 show, draw, generate, solve, or animate a maze on the screen.

    line 17
  2. Very specific:

    Run the bundled Lua script with lua_run_script_async for normal display use:

    line 19
  3. Distinctive:

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

    line 27
  4. Very specific:

    Use lua_run_script_async with name: "maze", exclusive: "display", and replace: true.

    line 126
  5. Distinctive:

    Use default args unless the user asks for a specific size, speed, colors, seed, or continuous generation.

    line 127
  6. Very specific:

    Keep the default repeat_count: 0 and final_hold_ms: 5000 for continuous display.

    line 129

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Maze

Use this skill when the user asks to show, draw, generate, solve, or animate a maze on the screen.

Run the bundled Lua script with lua_run_script_async for normal display use:

{"path":"{CUR_SKILL_DIR}/scripts/draw_maze.lua","args":{},"name":"maze","exclusive":"display","replace":true,"log_bytes":2048}

The script computes each maze locally in Lua, plays the maze-generation animation, plays a solving animation from the fixed top-left entrance to the fixed bottom-right exit, holds for 5 seconds, then starts a new maze. It repeats until stopped or replaced by another display job.

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

Script Args Schema

{
  "type": "object",
  "properties": {
    "columns": {
      "type": "integer",
      "default": 0,
      "minimum": 0,
      "maximum": 80
    },
    "rows": {
      "type": "integer",
      "default": 0,
      "minimum": 0,
      "maximum": 60
    },
    "step_size": {
      "type": "integer",
      "default": 3,
      "minimum": 1,
      "maximum": 128
    },
    "solve_step_size": {
      "type": "integer",
      "default": 1,
      "minimum": 1,
      "maximum": 128
    },
    "frame_delay_ms": {
      "type": "integer",
      "default": 35,
      "minimum": 0,
      "maximum": 2000
    },
    "solve_delay_ms": {
      "type": "integer",
      "default": 35,
      "minimum": 0,
      "maximum": 2000
    },
    "final_hold_ms": {
      "type": "integer",
      "default": 5000,
      "minimum": 0,
      "description": "How long to hold the completed maze before starting the next one. Use 0 with repeat_count 1 to hold a one-shot maze indefinitely."
    },
    "repeat_count": {
      "type": "integer",
      "default": 0,
      "minimum": 0,
      "description": "Number of mazes to generate. Use 0 for unlimited."
    },
    "seed": {
      "type": "integer",
      "default": 0,
      "description": "Use 0 to seed from local time."
    },
    "wall_color": {
      "type": "string",
      "default": "#ffffff"
    },
    "background": {
      "type": "string",
      "default": "#000000"
    },
    "solve_color": {
      "type": "string",
      "default": "#00ff00"
    }
  }
}

Tool Call Inputs

Continuously generate mazes, solve each one, hold for 5 seconds, then start the next:

{"path":"{CUR_SKILL_DIR}/scripts/draw_maze.lua","args":{},"name":"maze","exclusive":"display","replace":true,"log_bytes":2048}

Generate a larger maze with faster generation and solving:

{"path":"{CUR_SKILL_DIR}/scripts/draw_maze.lua","args":{"columns":40,"rows":20,"step_size":8,"solve_step_size":3,"frame_delay_ms":20,"solve_delay_ms":20},"name":"maze","exclusive":"display","replace":true,"log_bytes":2048}

Generate one maze, animate generation and solving, then hold it on screen:

{"path":"{CUR_SKILL_DIR}/scripts/draw_maze.lua","args":{"repeat_count":1,"final_hold_ms":0},"name":"maze","exclusive":"display","replace":true,"log_bytes":2048}

Recommended Flow

  1. Use lua_run_script_async with name: "maze", exclusive: "display", and replace: true.
  2. Use default args unless the user asks for a specific size, speed, colors, seed, or continuous generation.
  3. Leave columns and rows as 0 to size the maze from the current display. The default auto-size intentionally uses fewer cells so the walls and passages are easier to see. The script fixes the entrance at the left side of the top-left cell and the exit at the right side of the bottom-right cell.
  4. Keep the default repeat_count: 0 and final_hold_ms: 5000 for continuous display. Use repeat_count: 1 and final_hold_ms: 0 only when the user asks for a one-shot maze that should remain visible until stopped or replaced.
  5. Report the async job start result or script error 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.