unihiker_expansion_WS2812
Skill37 starsChanged 33 days agoMITView on GitHub
Use this skill when the user asks to set WS2812 or RGB LEDs on a DFRobot UNIHIKER Expansion board (SKU: DFR1216). Chinese name is 行空板扩展板. This skill controls the two WS2812 LEDs on the UNIHIKER Expansion board only. Do not use this skill for the UNIHIKER mainboard built-in RGB LED. 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…
In this repository24 other files it gives its agents.
- air_mouseSkill
- bilibili_up_fansSkill
- china_a_share_quoteSkill
- cloudmusicSkill
- current_ip_infoSkill
- current_weatherSkill
- dfrobot_matrix_lidar_8x8_i2cSkill
- dfrobot_stcc4_i2cSkill
- example_skillSkill
- flashbackSkill
- gimbal_color_detectSkill
- gimbal_motion_detectSkill
- github_repo_starSkill
- movement_detectionSkill
- network_radioSkill
- servo_dogSkill
- stock_quotes_displaySkill
- token_usageSkill
- unihiker_buttonSkill
- unihiker_expansion_batterySkill
- unihiker_expansion_irSkill
- unihiker_expansion_motor_controlSkill
- unihiker_expansion_servo_controlSkill
- weather_clockSkill
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
- Distinctive: line 18
Use this skill when the user asks to set WS2812 or RGB LEDs on a DFRobot UNIHIKER Expansion board (SKU: DFR1216).
- Distinctive: line 21
Do not use this skill for the UNIHIKER mainboard built-in RGB LED.
- Very specific: line 23
Run exactly one bundled Lua script with lua_run_script.
- Distinctive: line 25
If script execution returns an error, report that error directly to the user.
- Distinctive: line 26
Do not retry with changed arguments in the same turn unless the user explicitly asks.
- Distinctive: line 112
Use default I2C settings unless the user explicitly provides custom wiring.
- Very specific: line 113
If the user gives one color for RGB灯, use color to set both LEDs.
- Very specific: line 115
Run {CUR_SKILL_DIR}/scripts/set_ws2812.lua and report result or error directly.
≈ “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.
Files
UNIHIKER Expansion WS2812
Use this skill when the user asks to set WS2812 or RGB LEDs on a DFRobot UNIHIKER Expansion board (SKU: DFR1216). Chinese name is 行空板扩展板.
This skill controls the two WS2812 LEDs on the UNIHIKER Expansion board only. Do not use this skill for the UNIHIKER mainboard built-in RGB LED.
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": {
"bright": {
"type": "integer",
"minimum": 0,
"maximum": 255
},
"rgb0": {
"type": "integer",
"minimum": 0,
"maximum": 16777215
},
"rgb1": {
"type": "integer",
"minimum": 0,
"maximum": 16777215
},
"color": {
"type": "integer",
"minimum": 0,
"maximum": 16777215
},
"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
Set both expansion-board WS2812 LEDs to magenta:
{"path":"{CUR_SKILL_DIR}/scripts/set_ws2812.lua","args":{"bright":30,"color":16711935}}Set RGB0 to red and RGB1 to blue:
{"path":"{CUR_SKILL_DIR}/scripts/set_ws2812.lua","args":{"bright":10,"rgb0":16711680,"rgb1":255}}Set RGB0 yellow and RGB1 magenta at higher brightness:
{"path":"{CUR_SKILL_DIR}/scripts/set_ws2812.lua","args":{"bright":100,"rgb0":16776960,"rgb1":16711935}}Turn off both expansion-board WS2812 LEDs:
{"path":"{CUR_SKILL_DIR}/scripts/set_ws2812.lua","args":{"bright":0,"color":0}}Recommended Flow
- Confirm the target is the UNIHIKER Expansion board WS2812 LEDs, not the UNIHIKER mainboard RGB LED.
- Use default I2C settings unless the user explicitly provides custom wiring.
- If the user gives one color for RGB灯, use
colorto set both LEDs. - Otherwise set
rgb0andrgb1independently. - Run
{CUR_SKILL_DIR}/scripts/set_ws2812.luaand report result or error directly.
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.

