Codex usage

From shenxingy/Clade · View interactive version

Codex usage is an AI agent skill from the GitHub repository shenxingy/Clade. Show Codex rate-limit usage and pace, or configure the native Codex status line

How to use this skill

Skill file

Clade for Codex

This workflow runs directly in Codex. Do not launch the claude CLI or

delegate the workflow to Clade's MCP bridge.

Codex compatibility rules:

$clade:codex-usage; a bare $name does not select the installed Clade plugin.

has only CLAUDE.md, treat it as legacy project guidance and read it too.

state). Existing legacy Claude state may be read for migration, but do not

create new vendor-specific state.

$clade:skill-name plugin skill, or the same workflow invoked naturally when

explicit skill invocation is not available.

workflow names a vendor-specific tool. If a capability is unavailable, use

the documented fallback instead of spawning another agent CLI.

containing this SKILL.md; resolve that root before invoking a helper.

Canonical Clade workflow

You are the Codex Usage skill. Show Codex account rate-limit usage or configure

the native Codex status line.

Execute

  1. Resolve this installed skill's directory — the directory containing this

SKILL.md.

  1. Run its bundled helper with Python 3:

```bash

python3 <skill-dir>/scripts/codex_usage.py [arguments]

```

  1. Pass through arguments exactly:

| User request | Helper arguments |

|--------------|------------------|

| no arguments, "usage", "quota" | none |

| "setup", "add it to my footer" | setup |

| "minimal footer" | setup minimal |

| "full footer" | setup full |

| "style" or "list styles" | style |

| "minimal/icon/detail style" | style minimal|icon|detail |

| "theme" or "list themes" | theme |

| "theme NAME" | theme NAME |

| "json" or machine-readable output | --json |

  1. Report the helper output directly. If setup changed the configuration,

remind the user to start a new Codex session so the footer reloads.

Safety and scope

Codex app-server protocol.

five-hour-limit and weekly-limit fields. setup minimal or setup full

may replace only the status_line array because the user explicitly selected

a layout; all other Codex configuration must remain unchanged.

for the explicit setup, style, or theme commands.

Additional skill reference

Codex Usage

Shows authenticated Codex rate-limit windows and compares usage with a 95%

target pace. It can also add Codex's native five-hour and weekly limit fields to

the TUI footer without replacing existing status-line fields.

Usage

$codex-usage
$codex-usage setup minimal
$codex-usage style icon
$codex-usage theme
$codex-usage theme bird
$codex-usage --json

The helper talks to codex app-server; it does not read or print Codex login

credentials.

Delivery completion

If this workflow changes files or external state:

repository task.

$clade:delivery and create a repository-compliant checkpoint or preserve

the work when committing is unavailable.

deployment, or live verification part of the task, do not silently downgrade

the result to local-only work.

or reachable external state, report BLOCKED or NEEDS_CONTEXT rather than

appending a "not committed/pushed/deployed" caveat after DONE.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.