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…
In this repository42 other files it gives its agents.
- air_mouseSkill
- balance_ballSkill
- bilibili_up_fansSkill
- camera_previewSkill
- china_a_share_quoteSkill
- clock_dial_demoSkill
- cloudmusicSkill
- codex_usage_dashboardSkill
- current_ip_infoSkill
- current_weatherSkill
- dfrobot_matrix_lidar_8x8_i2cSkill
- dfrobot_stcc4_i2cSkill
- dinoSkill
- example_skillSkill
- flappybirdSkill
- flashbackSkill
- game_2048Skill
- game_of_lifeSkill
- gimbal_color_detectSkill
- gimbal_motion_detectSkill
- github_repo_starSkill
- jump_prince_gameSkill
- lcd_touch_paintSkill
- mosaico-musicalSkill
- movement_detectionSkill
- network_radioSkill
- number_puzzleSkill
- reaction_gameSkill
- servo_dogSkill
- snake_gameSkill
- snakeSkill
- stock_quotes_displaySkill
- tetris_clockSkill
- token_usageSkill
- unihiker_buttonSkill
- unihiker_expansion_batterySkill
- unihiker_expansion_irSkill
- unihiker_expansion_motor_controlSkill
- unihiker_expansion_servo_controlSkill
- unihiker_expansion_WS2812Skill
- weather_clockSkill
- whack_mole_gameSkill
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
- Distinctive: line 17
Use this skill when the user asks to show, draw, generate, solve, or animate a maze on the screen.
- Very specific: line 19
Run the bundled Lua script with lua_run_script_async for normal display use:
- Distinctive: line 27
If script execution returns an error, report that error directly to the user.
- Very specific: line 126
Use lua_run_script_async with name: "maze", exclusive: "display", and replace: true.
- Distinctive: line 127
Use default args unless the user asks for a specific size, speed, colors, seed, or continuous generation.
- Very specific: line 129
Keep the default repeat_count: 0 and final_hold_ms: 5000 for continuous display.
≈ “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.
Files
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
- Use
lua_run_script_asyncwithname: "maze",exclusive: "display", andreplace: true. - Use default args unless the user asks for a specific size, speed, colors, seed, or continuous generation.
- Leave
columnsandrowsas0to 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. - Keep the default
repeat_count: 0andfinal_hold_ms: 5000for continuous display. Userepeat_count: 1andfinal_hold_ms: 0only when the user asks for a one-shot maze that should remain visible until stopped or replaced. - Report the async job start result or script error directly to the user.
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.

