# Token Usage

> When user says "@token-usage", "token usage", "context window", or "token cost".

- Skill: `majiayu000/token-usage` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add majiayu000/token-usage`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/token-usage/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/token-usage

---


---
name: token-usage
description: Sprawdzenie zużycia tokenów/kontekstu w sesji. Triggers: token usage, ile tokenów, ile zostało
---

# token-usage

## Trigger
When user says **"@token-usage"**, **"token usage"**, **"context window"**, or **"token cost"**.

---

## Actions

1. When user asks about current AI token/context usage (e.g., "token usage", "context window", "how many tokens"), respond with ONLY this format:

**Tokens: [used]/[total] ([remaining] remaining, [percentage]% used)**

No explanations. No additional text. Just the numbers.

2. When asked about token cost of specific files/code/systems (e.g., "How expensive is CHANGELOG?", "Token cost of Log File Genius?"), analyze the component(s) and runtime dependencies. For each component, report in two paragraphs: (1) token breakdown, (2) dependencies that load when used.

**Note:**
- For systems (e.g., "Log File Genius"), analyze all related files and rules
- For multiple targets, analyze each separately
- Ignore non-AI token references (OAuth, JWT, API tokens)

