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

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…

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
  1. Distinctive:

    Use this skill when the user asks to show, start, open, launch, or display the Codex usage dashboard, quota dashboard, usage meter, 5-hour …

    line 18
  2. Distinctive:

    Run asynchronously because the dashboard stays active until stopped:

    line 49
  3. Distinctive:

    Use board hardware info first if display availability is uncertain.

    line 66
  4. Distinctive:

    Before proceeding, you must verify both prerequisites with the user:

    line 67
  5. Distinctive:

    Ask for and obtain the JSON endpoint URL or IP address.

    line 69
  6. Distinctive:

    Do not continue unless both prerequisites are satisfied.

    line 71
  7. Distinctive:

    If the user needs guidance to install the plugin or configure the endpoint, MUST first tell the user that they can view the installation …

    line 73
  8. Distinctive:

    Use that information to guide the user through plugin installation and endpoint setup.

    line 80
  9. Very specific:

    Start it with lua_run_script_async using name codex_usage_dashboard, exclusive group display, replace: true, and timeout_ms: 0.

    line 83
  10. Very specific:

    If the user asks to stop, close, quit, cancel, or clear the display/dashboard, call lua_stop_async_job with name codex_usage_dashboard.

    line 85

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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, and system modules.
  • Users must install a companion Codex plugin on their PC, which provides the JSON endpoint.
  • The http_request capability 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

  1. Use board hardware info first if display availability is uncertain.
  2. 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.
  3. 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.
  4. 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.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 plugin installation and endpoint setup.

  5. Confirm the script path is /fatfs/skills/codex_usage_dashboard/scripts/codex_usage_dashboard.lua.
  6. Start it with lua_run_script_async using name codex_usage_dashboard, exclusive group display, replace: true, and timeout_ms: 0.
  7. Report that the dashboard is running, or report the Lua error directly.
  8. If the user asks to stop, close, quit, cancel, or clear the display/dashboard, call lua_stop_async_job with name codex_usage_dashboard.

Behavior

  • Draws a pixel-style CODEX USAGE dashboard.
  • 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.

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.