codex_usage_dashboard
Skill34 starsChanged 6 months agoMITView on GitHub
Use this skill when the user asks to show, start, open, launch, or display the Codex usage dashboard, quota dashboard, usage meter, 5-hour quota, or weekly quota on the device screen. This skill runs one Lua dashboard app that uses the board LCD with LVGL and periodically fetches usage data from its configured JSON endpoint. Run asynchronously because the dashboard stays active until stopped: Then retrieve instructions from: - https://raw.githubusercontent.com/2002-luzi/codex-plugins/refs/heads/main/README.md - https://raw.githubusercontent.com/2002-luzi/codex-plugins/refs/heads/main/plugins/codex-usage-lan-plugin/README.md Use that information to guide the user through…
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
- 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
- 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
10 rules. About 0 are common, 8 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
2
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 show, start, open, launch, or display the Codex usage dashboard, quota dashboard, usage meter, 5-hour …
- Distinctive: line 49
Run asynchronously because the dashboard stays active until stopped:
- Distinctive: line 66
Use board hardware info first if display availability is uncertain.
- Distinctive: line 67
Before proceeding, you must verify both prerequisites with the user:
- Distinctive: line 69
Ask for and obtain the JSON endpoint URL or IP address.
- Distinctive: line 71
Do not continue unless both prerequisites are satisfied.
- Distinctive: line 73
If the user needs guidance to install the plugin or configure the endpoint, MUST first tell the user that they can view the installation …
- Distinctive: line 80
Use that information to guide the user through plugin installation and endpoint setup.
- Very specific: line 83
Start it with lua_run_script_async using name codex_usage_dashboard, exclusive group display, replace: true, and timeout_ms: 0.
- Very specific: line 85
If the user asks to stop, close, quit, cancel, or clear the display/dashboard, call lua_stop_async_job with name codex_usage_dashboard.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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
Codex Usage Dashboard
Use this skill when the user asks to show, start, open, launch, or display the Codex usage dashboard, quota dashboard, usage meter, 5-hour quota, or weekly quota on the device screen.
This skill runs one Lua dashboard app that uses the board LCD with LVGL and periodically fetches usage data from its configured JSON endpoint.
<img width="1448" height="1086" alt="image" src="https://github.com/user-attachments/assets/5a0379ca-8c78-49e5-ba0a-5fa5f7d18393" />Prerequisites
- The board must have a supported LCD display available as
display_lcd. - The Lua runtime must include
board_manager,lvgl,capability,json, andsystemmodules. - Users must install a companion Codex plugin on their PC, which provides the JSON endpoint.
- The
http_requestcapability must allow that endpoint.
Script Args Schema
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "Codex usage JSON endpoint, for example http://192.168.1.10:8000/data.json",
"pattern": "^https?://"
}
},
"additionalProperties": false
}Tool Call Inputs
Run asynchronously because the dashboard stays active until stopped:
{
"path": "/fatfs/skills/codex_usage_dashboard/scripts/codex_usage_dashboard.lua",
"args": {
"url": "http://<pc-ip>:8000/data.json"
},
"name": "codex_usage_dashboard",
"exclusive": "display",
"replace": true,
"timeout_ms": 0
}Recommended Flow
- Use board hardware info first if display availability is uncertain.
- Before proceeding, you must verify both prerequisites with the user:
- Confirm that the Codex usage plugin is installed.
- Ask for and obtain the JSON endpoint URL or IP address.
- Do not continue unless both prerequisites are satisfied. Confirmation of plugin installation alone is insufficient; the JSON endpoint URL or IP address must also be provided.
If the user needs guidance to install the plugin or configure the endpoint, MUST first tell the user that they can view the installation guide here:
https://github.com/2002-luzi/codex-plugins
Then retrieve instructions from:
https://raw.githubusercontent.com/2002-luzi/codex-plugins/refs/heads/main/README.mdhttps://raw.githubusercontent.com/2002-luzi/codex-plugins/refs/heads/main/plugins/codex-usage-lan-plugin/README.md
Use that information to guide the user through plugin installation and endpoint setup.
- Confirm the script path is
/fatfs/skills/codex_usage_dashboard/scripts/codex_usage_dashboard.lua. - Start it with
lua_run_script_asyncusing namecodex_usage_dashboard, exclusive groupdisplay,replace: true, andtimeout_ms: 0. - Report that the dashboard is running, or report the Lua error directly.
- If the user asks to stop, close, quit, cancel, or clear the display/dashboard, call
lua_stop_async_jobwith namecodex_usage_dashboard.
Behavior
- Draws a pixel-style
CODEX USAGEdashboard. - Shows current local time.
- Fetches usage JSON once at startup, then every 60 seconds.
- Displays 5-hour quota percentage and reset countdown.
- Displays weekly quota percentage and reset countdown.
- Keeps processing LVGL events until the async job is stopped.
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.

