Codex receipts
Use when the user asks for a receipt-style summary of Codex work, wants the latest or a specific session receipt, needs console/html/printer output, or asks how to share a local Codex session summary without sending session logs to a remote service.From its SKILL.md
npx -y skills add iamxoghks/skills --skill codex-receiptsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
6.5 KB, ~1.5k tokens by cl100k_base, as published. Nobody here has run it
Codex Receipts
Generate receipt-style summaries from local Codex session logs using the published npm CLI.
When to Use
- The user asks for a Codex receipt, session receipt, proof-of-work receipt, or work summary.
- The user wants the latest Codex session summarized.
- The user provides a specific session id, id prefix, or thread-name fragment.
- The user asks for console, HTML, or thermal-printer receipt output.
- The user asks for an English, Korean, Japanese, or Chinese receipt.
- The user asks to set receipt location, language, cashier text, footer text, or printer output.
- The user asks whether receipt generation is local/private.
Required Tool
Use the already-installed published CLI. This skill release expects
codex-receipts version 1.2.11.
Before running a receipt command, verify the executable and version:
command -v codex-receipts >/dev/null 2>&1
codex-receipts --version
If the executable is missing or the version differs, stop and tell the user
that [email protected] must be installed separately. Do not download,
install, or update the CLI automatically. Wait until the user confirms the
required version is installed before continuing.
Do not reimplement receipt parsing in the agent. Prefer the CLI so output behavior stays aligned with the package.
When the MCP server is configured, you can also use its tools:
list_codex_sessionsgenerate_codex_receipt
For MCP printer output, pass printer as usb, usb:VID:PID, tcp://HOST:9100, or a CUPS printer name. MCP saves HTML before attempting printer output and returns printer troubleshooting guidance if printing fails.
For localized receipts, pass --locale ko, --locale ja, or --locale zh in the CLI, or pass locale: "ko", locale: "ja", or locale: "zh" to the MCP tool.
If non-English printer output is requested, tell the user the printer or driver must support UTF-8 or the target language code page; otherwise text may print garbled and HTML output is the safer fallback.
Use --cashier-label, --cashier, and --footer-message when the user asks to customize the receipt copy. If --cashier is omitted, the package uses the model name from the Codex session automatically.
Configurable Fields
Per run, the CLI and MCP support:
location: printed location. Defaults to config orThe Cloud; no public-IP or geolocation lookup is used.locale:en,ko,ja, orzh.cashierLabel: label before the cashier/model value.cashier: value after the cashier label. Defaults to the model name recorded in the Codex session.footerMessage: final receipt message. Defaults to the locale footer.printer: physical printer target; only use when the user asks for printer output.
Persistent CLI config supports:
codex-receipts config --set location="Cheonan, KR"
codex-receipts config --set timezone="Asia/Seoul"
codex-receipts config --set locale=ko
codex-receipts config --set cashierLabel="담당"
codex-receipts config --set cashier="Codex Bot"
codex-receipts config --set footerMessage="오늘도 수고했음"
codex-receipts config --set printer=usb
Common Commands
Latest session, default output:
codex-receipts generate
Console output:
codex-receipts generate --output console
HTML output:
codex-receipts generate --output html
Localized output:
codex-receipts generate --output html --locale ko
codex-receipts generate --output html --locale ja
codex-receipts generate --output html --locale zh
Custom receipt copy:
codex-receipts generate --cashier-label "담당" --cashier "Codex Bot" --footer-message "오늘도 수고했음"
Thermal printer output:
codex-receipts generate --output printer --printer usb
USB printer targeting:
codex-receipts generate --output printer --printer usb:VID:PID
codex-receipts generate --output printer --printer tcp://HOST:9100
codex-receipts generate --output printer --printer CUPS_PRINTER_NAME
Specific session id, id prefix, or thread-name fragment:
codex-receipts generate --session 019de4e1
codex-receipts generate --session "Codex project"
Multiple outputs:
codex-receipts generate --output console,html
Override receipt location:
codex-receipts generate --location "Cheonan, KR"
Privacy And Side Effects
- Codex Receipts reads local Codex logs from
~/.codex/session_index.jsonland~/.codex/sessions/**/*.jsonl. - It writes generated receipts under
~/.codex-receipts. - The CLI reads the local logs to calculate activity counts, but generated receipts do not reproduce prompt or assistant-reply bodies.
- Receipt generation does not upload session contents or public IP information. Installing or updating the CLI is a separate, user-controlled action.
- The MCP
list_codex_sessionstool returns local session paths and thread names to the connected local MCP client. Use it only when the user asks to list or search sessions. - Generated receipts contain a session identifier or slug, activity counts, token totals when available, and user-supplied receipt text.
- TCP printer output opens an outbound connection to the user-supplied printer address. Use printer output only when the user explicitly requests it.
Agent Workflow
- Choose the session target: latest by default, or pass
--sessionwhen the user gives a session id, prefix, or thread-name fragment. - Choose output: use
consolefor chat-friendly terminal output,htmlfor a shareable local file, andprinteronly when the user asks to print. - Choose language: default to English unless the user asks for Korean, Japanese, or Chinese, then pass
--locale ko,--locale ja, or--locale zh. - Verify the installed CLI version, then run
codex-receipts generatewith the selected flags. - Report the generated output path for HTML receipts. For console receipts, summarize or relay the important terminal output.
- If printer output fails, report the exact error. For USB printer-not-found errors, point out the visible
VID:PIDlist and suggest retrying with--printer usb:VID:PID,--printer tcp://HOST:9100, or a CUPS printer name. - If the command fails for another reason, report the exact error and do not manually parse Codex logs unless the user explicitly asks for debugging.
What ships with it: 2 files
1.3 KB alongside SKILL.md
agents/
- openai.yaml283 B
- LICENSE1.1 KB