tetris_clock
Skill34 starsChanged 6 months agoMITView on GitHub
Use this skill when the user asks to show a Tetris Clock, falling block clock, block clock, or animated time display on the screen. Run the bundled Lua script with lua_run_script_async for normal display use: The script reads the local device time with the system Lua module, generates tetromino piece sequences using the original Tetris Clock timing model, applies the same per-digit drop offsets, 15-second frame count, movement probability, and movement-list randomness, draws the centered colon on the original 32-column…
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
- mazeSkill
- mosaico-musicalSkill
- movement_detectionSkill
- network_radioSkill
- number_puzzleSkill
- reaction_gameSkill
- servo_dogSkill
- snake_gameSkill
- snakeSkill
- stock_quotes_displaySkill
- 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
9 rules. About 0 are common, 6 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
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 a Tetris Clock, falling block clock, block clock, or animated time display 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.
- Distinctive: line 104
Start the Tetris Clock with defaults:
- Distinctive: line 110
Use 12-hour time without a leading zero:
- Distinctive: line 116
Use a brighter seasonal palette:
- Very specific: line 124
Use lua_run_script_async with name: "tetris_clock", exclusive: "display", and replace: true.
- Distinctive: line 125
Use default args unless the user asks for 12-hour time, no leading zero, date display, a theme, brightness, animation speed, build speed, …
- Very specific: line 126
Leave duration_ms: 0 for a clock that should remain visible and rebuild every minute.
≈ “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
Tetris Clock
Use this skill when the user asks to show a Tetris Clock, falling block clock, block clock, or animated time display on the screen.
Run the bundled Lua script with lua_run_script_async for normal display use:
{"path":"{CUR_SKILL_DIR}/scripts/draw_tetris_clock.lua","args":{},"name":"tetris_clock","exclusive":"display","replace":true,"log_bytes":2048}The script reads the local device time with the system Lua module, generates tetromino piece sequences using the original Tetris Clock timing model, applies the same per-digit drop offsets, 15-second frame count, movement probability, and movement-list randomness, draws the centered colon on the original 32-column clock grid, renders the date and AM/PM label with a tiny pixel font, and scales the logical pixel grid to the current screen size.
If script execution returns an error, report that error directly to the user.
Script Args Schema
{
"type": "object",
"properties": {
"twenty_four_hour": {
"type": "boolean",
"default": true
},
"leading_zero": {
"type": "boolean",
"default": true
},
"show_date": {
"type": "boolean",
"default": true
},
"show_bar": {
"type": "boolean",
"default": true
},
"top_bar": {
"type": "boolean",
"default": false
},
"color_scheme": {
"type": "string",
"default": "standard_dark",
"description": "Use standard_dark, standard_light, spring, summer, autumn, winter, monochrome_dark, or monochrome_light."
},
"brightness_percent": {
"type": "integer",
"default": 100,
"minimum": 10,
"maximum": 100
},
"frame_rate": {
"type": "integer",
"default": 10,
"minimum": 4,
"maximum": 30
},
"build_frames": {
"type": "integer",
"default": 60,
"minimum": 16,
"maximum": 220,
"description": "Matches the original app digitlength value. It controls the movement-list length used to build each digit."
},
"movement_rate": {
"type": "integer",
"default": 13,
"minimum": 0,
"maximum": 100,
"description": "Matches the original app movementrate value. Each generated movement step has this percent chance to try a horizontal move or rotation."
},
"duration_ms": {
"type": "integer",
"default": 0,
"minimum": 0,
"description": "How long to keep the clock running. Use 0 to continue until stopped or replaced."
},
"seed": {
"type": "integer",
"default": 0,
"minimum": 0,
"description": "Use 0 to seed from local time and uptime."
}
}
}Tool Call Inputs
Start the Tetris Clock with defaults:
{"path":"{CUR_SKILL_DIR}/scripts/draw_tetris_clock.lua","args":{},"name":"tetris_clock","exclusive":"display","replace":true,"log_bytes":2048}Use 12-hour time without a leading zero:
{"path":"{CUR_SKILL_DIR}/scripts/draw_tetris_clock.lua","args":{"twenty_four_hour":false,"leading_zero":false},"name":"tetris_clock","exclusive":"display","replace":true,"log_bytes":2048}Use a brighter seasonal palette:
{"path":"{CUR_SKILL_DIR}/scripts/draw_tetris_clock.lua","args":{"color_scheme":"winter","brightness_percent":100},"name":"tetris_clock","exclusive":"display","replace":true,"log_bytes":2048}Recommended Flow
- Use
lua_run_script_asyncwithname: "tetris_clock",exclusive: "display", andreplace: true. - Use default args unless the user asks for 12-hour time, no leading zero, date display, a theme, brightness, animation speed, build speed, or movement rate.
- Leave
duration_ms: 0for a clock that should remain visible and rebuild every minute. - 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.

