token-log

Appends timestamped token totals for story phases to TOKEN-LOG.md.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/michael-menard/monorepo --skill token-log
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: token-log
Source: https://github.com/michael-menard/monorepo/tree/main/.claude/skills/token-log
Command: npx skills add https://github.com/michael-menard/monorepo --skill token-log

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the recording of token usage for a story workflow by appending per-phase totals to TOKEN-LOG.md.

Core Features & Use Cases

  • Per-phase logging: Tracks input tokens, output tokens, and phase totals.
  • Cumulative tracking: Maintains a running total across phases for auditing and cost awareness.
  • Automation-ready: Intended to be invoked by workflow commands after completing a phase, ensuring consistent records.

Quick Start

Run a command such as /token-log STORY-001 pm-generate 15000 5000 to log the tokens for a generation phase.

Frequently Asked Questions about token-log

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I log token usage for a markdown workflow phase?▼

You can log token usage by running a command that appends input tokens, output tokens, and phase totals with a timestamp to a TOKEN-LOG.md file. This provides an auditable history of token consumption across designated story phases.

What is the best way to track cumulative token costs across generation phases?▼

The best way to track cumulative token costs is by appending timestamped rows to a markdown log file after each phase. This maintains a running total across phases, ensuring consistent records for cost awareness and auditing.

Can I automate token usage logging to run after completing a workflow phase?▼

Yes, token usage logging is designed to be invoked by workflow commands automatically after completing a phase. You pass the story identifier, phase label, and token counts to append a standardized record.

Do I need any external dependencies to maintain a token log?▼

No external dependencies are required to maintain a token log. The process relies on simple file I/O to locate or create an implementation directory markdown file and append formatted text rows.

What limitations exist when tracking token usage in a markdown file?▼

A limitation of tracking token usage in a markdown file is that records are append-only text rows without database querying capabilities. It is intended for simple auditing and cost awareness rather than complex data analysis.