Skip to content

Instantly share code, notes, and snippets.

@razamit
razamit / document-project.md
Created March 23, 2026 11:19
Slash command for Cursor / Claude Code — auto-documents your repo on every break

Document project (agent-oriented)

Update or create documentation so Cursor, Claude Code, and humans can orient fast. Prefer accurate, short, linked text over long dumps that will go stale.


Canonical entry point (pick one; link the other)

  1. Preferred: Add or update AGENTS.md at the repository root. Many tools and agents treat this as the machine-oriented map. Keep it factual: build, test, layout, conventions.
  2. If the repo already has a strong human README.md: Add a short “For contributors / agents” subsection that links to AGENTS.md instead of duplicating everything.
@razamit
razamit / statusline-command.py
Last active March 31, 2026 18:44
Claude Code custom status line
#!/usr/bin/env python3
import json, sys, subprocess, os, time
# Force UTF-8 output on Windows
sys.stdout.reconfigure(encoding='utf-8', errors='replace')
data = json.load(sys.stdin)
model = data.get('model', {}).get('display_name') or data.get('model', {}).get('id', 'Unknown')
cwd = data.get('workspace', {}).get('current_dir') or data.get('cwd') or os.getcwd()