Implement /usage command for session tracking (fc-005)

Components:
- commands/usage.md: Slash command with aliases (stats)
- skills/usage/SKILL.md: Query logic and report generation
- state/usage/config.json: Log level and preferences

Features:
- Parse history/index.json for session metadata
- Estimate duration from consecutive session starts
- Group by date, show summary stats
- Configurable log levels (minimal/standard/detailed)
- Extensible for future session content parsing

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
OpenCode Test
2025-12-31 23:21:00 -08:00
parent 89b1a30b18
commit 4ca3365d55
3 changed files with 227 additions and 0 deletions

8
state/usage/config.json Normal file
View File

@@ -0,0 +1,8 @@
{
"version": "1.0",
"log_level": "standard",
"default_range": "week",
"track_tokens": true,
"model": "opus",
"notes": "Session content parsing available when history/*.jsonl files exist"
}