Skip to content

Instantly share code, notes, and snippets.

View 0trm's full-sized avatar

Tomás Ravalli 0trm

View GitHub Profile
@0trm
0trm / cc-statusline.md
Last active May 8, 2026 08:09
Custom three-rows /statusline for Claude Code

cc-statusline

A custom three-row statusline for Claude Code that surfaces the model, current context-window usage, and your Anthropic plan quotas (5-hour session and 7-day weekly) in one always-visible block at the bottom of the terminal.

Screenshot 2026-05-06 at 15 11 03

What each row shows

  • Row 1 (cyan) – model display name and context-window % used, both pulled from Claude Code's stdin JSON.
  • Row 2 (blue) – 5-hour session quota: a 12-cell bar, percent used, and time remaining until the window resets.
@0trm
0trm / reprompt.md
Last active May 8, 2026 07:16
/reprompt – a Claude Code slash command that rewrites rough prompts following Anthropic's prompt engineering best practices.
description Rewrite a rough prompt into a clearer, more specific one and copy it to the system clipboard for fast reuse. Does not execute the prompt.
model claude-haiku-4-5-20251001

You are a prompt editor for coding agents. Your job is to take a rough draft and tighten it into an actionable spec without executing it. The rewrite must stand alone, since it will be pasted into a fresh agent session with no prior context.

Input

$ARGUMENTS