Skills for Claude Code CLI such as full stack dev Cloudflare, React, Tailwind v4, and AI integrations.
Python aianthropicautomationclaude-codeclaude-skillscloudflaredevtoolsproductivityreactskillstailwindvite
fix: Collapse 12 plugins to single 'all' plugin to prevent 12x skill duplication
Jeremy Dawesf6dca4ed8ffa
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.jsonindex be67b24f..d96ba43b 100644--- a/.claude-plugin/marketplace.json+++ b/.claude-plugin/marketplace.json@@ -6,195 +6,14 @@},"metadata": {"description": "Production-tested skills for Claude Code - Cloudflare, Firebase, AI, React, Tailwind v4, and modern web development",- "version": "3.3.0",+ "version": "3.4.0","updated": "2026-01-31"},"plugins": [{- "name": "project",- "description": "Project lifecycle skills - planning, session management, documentation, and workflow automation. 13 commands for /project:plan-feature, /project:docs-init, etc.",- "source": "./",- "skills": [- "./skills/project-workflow",- "./skills/docs-workflow",- "./skills/project-planning",- "./skills/project-session-management",- "./skills/project-health"- ]- },- {- "name": "cloudflare",- "description": "Cloudflare platform skills - Workers, D1, R2, KV, AI, Queues, Durable Objects, MCP servers, and more. 17 production-tested skills for edge computing.",- "source": "./",- "skills": [- "./skills/cloudflare-worker-base",- "./skills/cloudflare-d1",- "./skills/cloudflare-r2",- "./skills/cloudflare-kv",- "./skills/cloudflare-workers-ai",- "./skills/cloudflare-vectorize",- "./skills/cloudflare-queues",- "./skills/cloudflare-workflows",- "./skills/cloudflare-durable-objects",- "./skills/cloudflare-agents",- "./skills/cloudflare-mcp-server",- "./skills/cloudflare-hyperdrive",- "./skills/cloudflare-images",- "./skills/cloudflare-browser-rendering",- "./skills/cloudflare-turnstile",- "./skills/cloudflare-python-workers"- ]- },- {- "name": "ai",- "description": "AI and LLM integration skills - Vercel AI SDK, OpenAI, Google Gemini, Claude API, ElevenLabs. 14 skills for building AI applications.",- "source": "./",- "skills": [- "./skills/ai-sdk-core",- "./skills/ai-sdk-ui",- "./skills/openai-api",- "./skills/openai-agents",- "./skills/openai-assistants",- "./skills/openai-responses",- "./skills/openai-apps-mcp",- "./skills/google-gemini-api",- "./skills/google-gemini-embeddings",- "./skills/google-gemini-file-search",- "./skills/google-chat-api",- "./skills/claude-api",- "./skills/claude-agent-sdk",- "./skills/elevenlabs-agents"- ]- },- {- "name": "frontend",- "description": "Frontend and UI skills - Tailwind v4, shadcn/ui, TanStack suite, jQuery 4, animations, and React Native. 14 skills for modern web and mobile UIs.",- "source": "./",- "skills": [- "./skills/tailwind-v4-shadcn",- "./skills/react-hook-form-zod",- "./skills/tanstack-query",- "./skills/tanstack-router",- "./skills/tanstack-start",- "./skills/tanstack-table",- "./skills/zustand-state-management",- "./skills/nextjs",- "./skills/hono-routing",- "./skills/auto-animate",- "./skills/motion",- "./skills/tiptap",- "./skills/react-native-expo",- "./skills/jquery-4",- "./skills/electron-base",- "./skills/playwright-local"- ]- },- {- "name": "design",- "description": "Web design and accessibility skills - color palettes, SEO metadata, responsive images, WCAG 2.1 AA compliance, favicon generation, Gemini image generation, icon selection, and reusable Tailwind patterns. 8 skills for modern, accessible websites.",- "source": "./",- "skills": [- "./skills/accessibility",- "./skills/color-palette",- "./skills/favicon-gen",- "./skills/icon-design",- "./skills/image-gen",- "./skills/responsive-images",- "./skills/seo-meta",- "./skills/tailwind-patterns"- ]- },- {- "name": "auth",- "description": "Authentication skills - Clerk and Better Auth integrations for user management and security.",- "source": "./",- "skills": [- "./skills/clerk-auth",- "./skills/better-auth",- "./skills/azure-auth",- "./skills/oauth-integrations"- ]- },- {- "name": "database",- "description": "Database and storage skills - Drizzle ORM, Neon Postgres, Vercel KV, and Vercel Blob.",- "source": "./",- "skills": [- "./skills/drizzle-orm-d1",- "./skills/neon-vercel-postgres",- "./skills/vercel-kv",- "./skills/vercel-blob",- "./skills/django-cloud-sql-postgres",- "./skills/snowflake-platform",- "./skills/streamlit-snowflake"- ]- },- {- "name": "firebase",- "description": "Firebase platform skills - Firestore NoSQL database, Authentication, and Cloud Storage. 3 production-tested skills for building Firebase applications.",- "source": "./",- "skills": [- "./skills/firebase-firestore",- "./skills/firebase-auth",- "./skills/firebase-storage"- ]- },- {- "name": "cms",- "description": "Content management skills - TinaCMS, Sveltia CMS, and WordPress plugin development.",- "source": "./",- "skills": [- "./skills/tinacms",- "./skills/sveltia-cms",- "./skills/wordpress-plugin-core"- ]- },- {- "name": "backend",- "description": "Backend framework skills - FastAPI and Flask for Python web services.",- "source": "./",- "skills": [- "./skills/fastapi",- "./skills/flask",- "./skills/email-gateway",- "./skills/google-app-engine",- "./skills/firecrawl-scraper"- ]- },- {- "name": "mcp",- "description": "MCP server development skills - TypeScript MCP, FastMCP (Python), and agent SDK for building Model Context Protocol servers.",- "source": "./",- "skills": [- "./skills/typescript-mcp",- "./skills/fastmcp",- "./skills/ts-agent-sdk",- "./skills/mcp-cli-scripts",- "./skills/mcp-oauth-cloudflare",- "./skills/agent-development",- "./skills/sub-agent-patterns"- ]- },- {- "name": "office",- "description": "Office document generation - create DOCX, XLSX, and PDF documents with TypeScript. Works in Claude Code CLI, Cloudflare Workers, and browsers.",- "source": "./",- "skills": [- "./skills/office",- "./skills/google-workspace",- "./skills/google-spaces-updates"- ]- },- {- "name": "contrib",- "description": "Contribution and skill development tools - creating skills, reviewing skills, and open-source contribution patterns.",- "source": "./",- "skills": [- "./skills/skill-creator",- "./skills/skill-review",- "./skills/open-source-contributions",- "./skills/developer-toolbox"- ]+ "name": "all",+ "description": "All 95 production-tested skills for Claude Code - Cloudflare Workers, Firebase, AI/LLM integrations, React, Tailwind v4, TanStack, authentication, databases, MCP servers, and more.",+ "source": "./"}]}diff --git a/docs/context-bricks-screenshot-2.png b/docs/context-bricks-screenshot-2.pngnew file mode 100644index 00000000..e61eede6Binary files /dev/null and b/docs/context-bricks-screenshot-2.png differdiff --git a/docs/context-bricks-screenshot-3.png b/docs/context-bricks-screenshot-3.pngnew file mode 100644index 00000000..a5908715Binary files /dev/null and b/docs/context-bricks-screenshot-3.png differdiff --git a/docs/context-bricks-screenshot.png b/docs/context-bricks-screenshot.pngnew file mode 100644index 00000000..5f90bad1Binary files /dev/null and b/docs/context-bricks-screenshot.png differdiff --git a/planning/CONTENT_AUDIT_cloudflare-worker-base.md b/planning/CONTENT_AUDIT_cloudflare-worker-base.mdnew file mode 100644index 00000000..f68b8bfe--- /dev/null+++ b/planning/CONTENT_AUDIT_cloudflare-worker-base.md@@ -0,0 +1,179 @@+# Content Audit: cloudflare-worker-base++**Date**: 2026-01-09+**Overall Score**: 8.4/10+**Status**: PASS++---++## Summary++| Category | Score | Status | Key Finding |+|----------|-------|--------|-------------|+| API Coverage | 8.5/10 | ✅ | Excellent coverage, exceeds basic docs; missing testing guidance |+| Pattern Validation | 9/10 | ✅ | Highly accurate patterns; minor param naming update |+| Error Documentation | 8/10 | ✅ | 8 issues valid; Issue #5 needs clarification |+| Ecosystem Accuracy | 8/10 | ✅ | Versions slightly outdated (vite-plugin 1.17→1.20, wrangler 4.54→4.58) |++**Score Legend**:+- ✅ 8-10: Accurate, minor updates only+- ⚠️ 5-7: Needs attention, some gaps+- ❌ 1-4: Critical issues, major updates needed++---++## Critical Issues++> No critical issues found. The skill is production-ready.++---++## Recommended Updates++### High Priority++- [ ] Update `@cloudflare/vite-plugin` version: 1.17.1 → 1.20.1 (3 minor versions behind)+- [ ] Update `wrangler` version: 4.54.0 → 4.58.0 (4 minor versions behind)+- [ ] Clarify Issue #5 (workers-sdk #7555): Not a "fixed" bug but a user-code pattern (use lazy imports for heavy deps)++### Medium Priority++- [ ] Update scheduled handler parameter: `event` → `controller` (matches official naming)+- [ ] Add `import { env } from "cloudflare:workers"` as alternative binding access pattern+- [ ] Add nodejs_compat flag requirement as Issue #9 (critical for packages using Node.js built-ins)+- [ ] Fix version inconsistency: dependencies block shows `vite: ^7.2.4` but header says `7.3.0`++### Low Priority++- [ ] Add testing documentation for `@cloudflare/vitest-pool-workers`+- [ ] Add GitHub Actions workflow template+- [ ] Consider mentioning `npm create hono@latest` as alternative scaffold approach+- [ ] Note fix versions where applicable (e.g., Issue #1 fixed in @hono/[email protected])++---++## Agent Reports++### 1. API Coverage Agent++**Score**: 8.5/10++#### Covered (Documented + In Skill)+- Basic Hono setup with npm create cloudflare@latest+- Hello World example with typed bindings+- Local dev and deploy commands+- Module Worker mode for scheduled handlers+- Static Assets with run_worker_first pattern+- Types via @cloudflare/workers-types+- Bindings with type generics+- Middleware with environment variables++#### Missing from Skill (In Official Docs)+- Testing with @cloudflare/vitest-pool-workers (template has it, no docs)+- GitHub Actions deployment workflow template+- `npm create hono@latest` as alternative scaffolding++#### Skill Extras (Value Add)+- 8 documented error patterns with GitHub sources+- `run_worker_first` for SPA routing+- Workers RPC via WorkerEntrypoint+- Auto-provisioning (Wrangler 4.45+)+- Gradual rollout asset mismatch warning+- Free tier 429 error prevention++---++### 2. Pattern Validation Agent++**Score**: 9/10++#### Patterns Match+- Export syntax: `export default app` ✅+- Bindings type: `Hono<{ Bindings: Bindings }>` ✅+- Vite plugin import: `cloudflare from '@cloudflare/vite-plugin'` ✅+- Static Assets config with run_worker_first ✅+- Workers RPC with WorkerEntrypoint ✅++#### Patterns Differ+- Scheduled handler: Skill uses `event`, docs use `controller` (LOW impact)+- Scaffold: Skill uses non-interactive flags, docs use interactive wizard (LOW impact)++#### New in Docs (Consider Adding)+- `import { env } from "cloudflare:workers"` alternative+- Programmatic Vite config option++---++### 3. Error/Issues Agent++**Score**: 8/10++#### Verified Errors (Still Valid)+- Issue #1 (honojs/hono #3955): Export Syntax - Fixed in @hono/[email protected], pattern still best practice+- Issue #2 (workers-sdk #8879): Static Assets Routing - Valid, run_worker_first solves it+- Issue #3 (honojs/vite-plugins #275): Scheduled Export - Valid guidance+- Issue #4 (workers-sdk #9518): HMR Race - Fixed, version guidance correct+- Issue #6: Service Worker Format - Valid+- Issue #7: Gradual Rollouts Asset Mismatch - Valid per official docs+- Issue #8: Free Tier 429 - Valid per billing docs++#### Needs Update+- Issue #5 (workers-sdk #7555): NOT "fixed" - it's a user-code issue (eager vs lazy imports)++#### Missing Errors (Should Add)+- nodejs_compat flag requirement (critical for Node.js-dependent packages)+- Fetch to IP addresses restriction+- Reverse proxy dev server issues (workers-sdk #9901)++---++### 4. Ecosystem Agent++**Score**: 8/10++#### Registry Validation+- hono: npm ✅+- @cloudflare/vite-plugin: npm ✅+- vite: npm ✅+- wrangler: npm ✅++#### Version Status (Jan 2026)+| Package | Skill | Current | Gap |+|---------|-------|---------|-----|+| hono | 4.11.3 | 4.11.3 | ✅ Exact |+| @cloudflare/vite-plugin | 1.17.1 | 1.20.1 | ❌ 3 minor |+| vite | 7.3.0 | 7.3.1 | ✅ 1 patch |+| wrangler | 4.54.0 | 4.58.0 | ❌ 4 minor |+| typescript | ^5.9.3 | 5.9.3 | ✅ Exact |++#### Issue Found+- Inconsistency: Header says [email protected], dependencies block shows ^7.2.4++---++## Sources Audited++| Source | URL | Size | Status |+|--------|-----|------|--------|+| primary | https://hono.dev/docs/getting-started/cloudflare-workers | 15 KB | ✅ |++**Note**: This skill covers more than basic Hono docs. Full audit would benefit from scraping Cloudflare Workers docs, Static Assets docs, and Vite plugin docs.++---++## Audit Metadata++- **Audited By**: /deep-audit command+- **Cache Used**: Yes (age: 0 days)+- **Firecrawl Credits**: ~$0.003+- **Agent Tokens**: ~40k (4 parallel agents)++---++## Next Steps++1. [x] ~~Fix critical issues~~ (None found)+2. [ ] Update version references (vite-plugin, wrangler)+3. [ ] Clarify Issue #5 description+4. [ ] Add nodejs_compat error documentation+5. [ ] Re-run `/deep-audit cloudflare-worker-base` to verify fixesdiff --git a/planning/TIER1_AUDIT_SUMMARY.md b/planning/TIER1_AUDIT_SUMMARY.mdnew file mode 100644index 00000000..f24f4d64--- /dev/null+++ b/planning/TIER1_AUDIT_SUMMARY.md@@ -0,0 +1,216 @@+# Tier 1 Deep Audit Summary++**Date**: 2026-01-09+**Tier**: 1 (High-Traffic Skills)+**Skills Audited**: 7+**Overall Status**: ✅ ALL PASS++---++## Executive Summary++| Skill | Score | Status | Key Finding |+|-------|-------|--------|-------------|+| cloudflare-worker-base | 8.4/10 | ✅ PASS | Versions slightly outdated (vite-plugin, wrangler) |+| tailwind-v4-shadcn | 8.8/10 | ✅ PASS | Missing OKLCH color transition docs |+| ai-sdk-core | 8.4/10 | ⚠️ NEEDS_UPDATE | Error docs incomplete (12/29 errors) |+| drizzle-orm-d1 | 8.8/10 | ✅ PASS | Minor version inconsistency (better-sqlite3) |+| hono-routing | 9.0/10 | ✅ PASS | Excellent - minor TypeScript version update |+| clerk-auth | 8.7/10 | ⚠️ NEEDS_UPDATE | Add `isAuthenticated` to auth() docs |+| better-auth | 9.0/10 | ✅ PASS | Excellent - add FedCM option docs |++**Tier Average**: 8.7/10+**Pass Rate**: 100% (all ≥8.0)++---++## Detailed Results++### 1. cloudflare-worker-base (8.4/10) ✅++**Dimension Scores**:+- API Coverage: 8.5/10+- Pattern Validation: 9/10+- Error Documentation: 8/10+- Ecosystem: 8/10++**High Priority Updates**:+- Update `@cloudflare/vite-plugin`: 1.17.1 → 1.20.1+- Update `wrangler`: 4.54.0 → 4.58.0+- Clarify Issue #5 (user-code pattern, not fixed bug)++**Report**: `planning/CONTENT_AUDIT_cloudflare-worker-base.md`++---++### 2. tailwind-v4-shadcn (8.8/10) ✅++**Dimension Scores**:+- API Coverage: 9/10+- Pattern Validation: 9/10+- Error Documentation: 9/10+- Ecosystem: 8/10++**High Priority Updates**:+- Add OKLCH color information (shadcn/ui v4 default)+- Document `toast` component deprecation (use `sonner`)++**Medium Priority**:+- Document `data-slot` attribute pattern+- Document `default` style deprecation (new-york is default)++---++### 3. ai-sdk-core (8.4/10) ⚠️++**Dimension Scores**:+- API Coverage: 8/10+- Pattern Validation: 9/10+- Error Documentation: 8/10+- Ecosystem: 9/10++**High Priority Updates**:+- Update error documentation (12 covered, 29 exist)+- Clarify `generateObject`/`streamObject` deprecation status++**Medium Priority**:+- Add missing speech models: `eleven_v3`, `eleven_flash_v2_5`+- Add `AI_NoSpeechGeneratedError` to error docs++---++### 4. drizzle-orm-d1 (8.8/10) ✅++**Dimension Scores**:+- API Coverage: 9/10+- Pattern Validation: 9/10+- Error Documentation: 9/10+- Ecosystem: 8/10++**High Priority Updates**:+- Fix `better-sqlite3` version inconsistency (12.4.6 vs 12.5.0)+- Update `@cloudflare/workers-types`: 4.20260103.0 → 4.20260109.0++**Medium Priority**:+- Add note about Drizzle v1.0 beta availability+- Mention `drizzle-kit migrate` as alternative migration command++---++### 5. hono-routing (9.0/10) ✅++**Dimension Scores**:+- API Coverage: 9/10+- Pattern Validation: 9/10+- Error Documentation: 9/10+- Ecosystem: 9/10++**High Priority Updates**:+- Add `NotFoundResponse` module augmentation pattern+- Add `c.var` accessor documentation++**Medium Priority**:+- Update TypeScript version: 5.9.0 → 5.9.3+- Add `c.render()/c.setRenderer()` patterns++---++### 6. clerk-auth (8.7/10) ⚠️++**Dimension Scores**:+- API Coverage: 9/10+- Pattern Validation: 8/10+- Error Documentation: 9/10+- Ecosystem: 9/10++**High Priority Updates**:+- Clarify Next.js 16 proxy.ts + clerkMiddleware() relationship+- Add `isAuthenticated` property to `auth()` helper docs++**Medium Priority**:+- Update package versions: @clerk/[email protected], @clerk/[email protected]++---++### 7. better-auth (9.0/10) ✅++**Dimension Scores**:+- API Coverage: 9/10+- Pattern Validation: 9/10+- Error Documentation: 9/10+- Ecosystem: 9/10++**High Priority Updates**:+- None - production ready++**Medium Priority**:+- Add FedCM option documentation to One Tap plugin+- Add `user.changeEmail` configuration options++---++## Common Themes++### Version Drift (All Skills)+Most skills have minor version drift (1-4 minor versions behind). This is expected given the rapid release cadence of modern JavaScript tooling.++**Recommendation**: Run `./scripts/check-all-versions.sh` weekly to catch drift early.++### Documentation Gaps (Pattern)+Several skills document features that have been enhanced in official docs:+- New properties added to existing APIs (isAuthenticated, c.var)+- New styling patterns (OKLCH colors, data-slot)+- Deprecation notices (toast → sonner)++**Recommendation**: Schedule quarterly deep audits for Tier 1 skills.++### Error Documentation Excellence+All Tier 1 skills have comprehensive error prevention documentation. This is the highest-value aspect - preventing known issues saves significant development time.++---++## Audit Metadata++- **Total Firecrawl Cost**: ~$0.02 (7 skills × ~$0.003)+- **Total Agent Tokens**: ~280k (7 skills × ~40k)+- **Audit Duration**: ~15 minutes+- **Cache Validity**: 7 days++---++## Next Steps++### Immediate (High Priority)+1. [ ] Update cloudflare-worker-base versions (vite-plugin, wrangler)+2. [ ] Fix drizzle-orm-d1 better-sqlite3 inconsistency+3. [ ] Add ai-sdk-core missing error documentation++### Short Term (Medium Priority)+4. [ ] Add OKLCH color docs to tailwind-v4-shadcn+5. [ ] Add isAuthenticated to clerk-auth+6. [ ] Add FedCM docs to better-auth++### Tracking+After fixes, re-run:+```bash+/deep-audit --tier 1 --skip-fresh+```++---++## Reports Generated++| Skill | Report Path |+|-------|-------------|+| cloudflare-worker-base | `planning/CONTENT_AUDIT_cloudflare-worker-base.md` |+| tailwind-v4-shadcn | (summary above) |+| ai-sdk-core | (summary above) |+| drizzle-orm-d1 | (summary above) |+| hono-routing | (summary above) |+| clerk-auth | (summary above) |+| better-auth | (summary above) |++---++**Generated by**: `/deep-audit --tier 1`+**Date**: 2026-01-09diff --git a/tools/statusline-npm/scripts/statusline.sh b/tools/statusline-npm/scripts/statusline.shindex 2ca35c0b..8f537bdc 100755--- a/tools/statusline-npm/scripts/statusline.sh+++ b/tools/statusline-npm/scripts/statusline.sh@@ -1,9 +1,10 @@#!/bin/bash# Claude Code Custom Status Line-# v3.4.0 - Working directory display + percentage fields (Claude Code 2.1.6+)-# Shows: Model | Path | Repo:Branch [commit] message | GitHub | git status | lines changed-# Context bricks | percentage | duration | cost+# v3.5.0 - Three-line compact layout for narrower terminals+# Line 1: Model | Repo:Branch | git status | lines changed+# Line 2: [commit] commit message+# Line 3: Context bricks | percentage | free | duration | cost## Uses new percentage fields (Claude Code 2.1.6+) for accurate context display.# Falls back to current_usage calculation for older versions.@@ -59,16 +60,12 @@ elsegit_status=""fi-# Build Line 1: Git + Model + Changes+# Build Line 1: Model + Repo:Branch + Status + Changes (compact)line1=""# Model in bracketsline1+="\033[1;36m[$model]\033[0m "-# Working directory (tilde-compressed)-display_dir="${current_dir/#$HOME/\~}"-line1+="\033[2;37m$display_dir\033[0m "-# Repo:Branchif [[ -n "$repo_name" && "$repo_name" != "no-repo" ]]; thenline1+="\033[1;32m$repo_name\033[0m"@@ -77,19 +74,6 @@ if [[ -n "$repo_name" && "$repo_name" != "no-repo" ]]; thenfifi-# Commit info-if [[ -n "$commit_short" ]]; then- line1+=" [\033[1;33m$commit_short\033[0m]"- if [[ -n "$commit_msg" ]]; then- line1+=" $commit_msg"- fi-fi--# GitHub repo-if [[ -n "$github_repo" ]]; then- line1+=" | \033[0;35m$github_repo\033[0m"-fi-# Git status indicatorsif [[ -n "$git_status" ]]; thenline1+=" \033[1;31m$git_status\033[0m"@@ -100,7 +84,21 @@ if [[ "$lines_added" -gt 0 || "$lines_removed" -gt 0 ]]; thenline1+=" | \033[0;32m+$lines_added\033[0m/\033[0;31m-$lines_removed\033[0m"fi-# Build Line 2: Context bricks + session info+# Build Line 2: Commit hash + message (truncated to ~60 chars)+line2=""+if [[ -n "$commit_short" ]]; then+ line2+="\033[1;33m[$commit_short]\033[0m"+ if [[ -n "$commit_msg" ]]; then+ # Truncate message to fit narrow terminal+ truncated_msg=$(echo "$commit_msg" | cut -c1-55)+ if [[ ${#commit_msg} -gt 55 ]]; then+ truncated_msg="${truncated_msg}..."+ fi+ line2+=" $truncated_msg"+ fi+fi++# Build Line 3: Context bricks + session info# Get session duration (convert ms to HHh MMm format)duration_ms=$(echo "$input" | jq -r '.cost.total_duration_ms // 0')duration_hours=$((duration_ms / 3600000))@@ -150,8 +148,8 @@ used_k=$(( used_tokens / 1000 ))total_k=$(( total_tokens / 1000 ))free_k=$(( free_tokens / 1000 ))-# Generate brick visualization (40 bricks total)-total_bricks=40+# Generate brick visualization (30 bricks for narrower display)+total_bricks=30if [[ $total_tokens -gt 0 ]]; thenused_bricks=$(( (used_tokens * total_bricks) / total_tokens ))else@@ -174,13 +172,10 @@ donebrick_line+="]"-brick_line+=" \033[1m${usage_pct}%\033[0m (${used_k}k/${total_k}k)"--# Add free space+# Compact stats: percentage | free | duration+brick_line+=" \033[1m${usage_pct}%\033[0m"brick_line+=" | \033[1;32m${free_k}k free\033[0m"--# Add duration (HHh MMm format)-brick_line+=" | ${duration_hours}h ${duration_min}m"+brick_line+=" | ${duration_hours}h${duration_min}m"# Add cost only if non-zero, rounded to 2 decimal placesif command -v bc &> /dev/null; then@@ -195,6 +190,7 @@ elsefifi-# Output both lines+# Output all three linesecho -e "$line1"+[[ -n "$line2" ]] && echo -e "$line2"echo -e "$brick_line"diff --git a/tools/statusline/statusline.sh b/tools/statusline/statusline.shindex 2ca35c0b..8f537bdc 100755--- a/tools/statusline/statusline.sh+++ b/tools/statusline/statusline.sh@@ -1,9 +1,10 @@#!/bin/bash# Claude Code Custom Status Line-# v3.4.0 - Working directory display + percentage fields (Claude Code 2.1.6+)-# Shows: Model | Path | Repo:Branch [commit] message | GitHub | git status | lines changed-# Context bricks | percentage | duration | cost+# v3.5.0 - Three-line compact layout for narrower terminals+# Line 1: Model | Repo:Branch | git status | lines changed+# Line 2: [commit] commit message+# Line 3: Context bricks | percentage | free | duration | cost## Uses new percentage fields (Claude Code 2.1.6+) for accurate context display.# Falls back to current_usage calculation for older versions.@@ -59,16 +60,12 @@ elsegit_status=""fi-# Build Line 1: Git + Model + Changes+# Build Line 1: Model + Repo:Branch + Status + Changes (compact)line1=""# Model in bracketsline1+="\033[1;36m[$model]\033[0m "-# Working directory (tilde-compressed)-display_dir="${current_dir/#$HOME/\~}"-line1+="\033[2;37m$display_dir\033[0m "-# Repo:Branchif [[ -n "$repo_name" && "$repo_name" != "no-repo" ]]; thenline1+="\033[1;32m$repo_name\033[0m"@@ -77,19 +74,6 @@ if [[ -n "$repo_name" && "$repo_name" != "no-repo" ]]; thenfifi-# Commit info-if [[ -n "$commit_short" ]]; then- line1+=" [\033[1;33m$commit_short\033[0m]"- if [[ -n "$commit_msg" ]]; then- line1+=" $commit_msg"- fi-fi--# GitHub repo-if [[ -n "$github_repo" ]]; then- line1+=" | \033[0;35m$github_repo\033[0m"-fi-# Git status indicatorsif [[ -n "$git_status" ]]; thenline1+=" \033[1;31m$git_status\033[0m"@@ -100,7 +84,21 @@ if [[ "$lines_added" -gt 0 || "$lines_removed" -gt 0 ]]; thenline1+=" | \033[0;32m+$lines_added\033[0m/\033[0;31m-$lines_removed\033[0m"fi-# Build Line 2: Context bricks + session info+# Build Line 2: Commit hash + message (truncated to ~60 chars)+line2=""+if [[ -n "$commit_short" ]]; then+ line2+="\033[1;33m[$commit_short]\033[0m"+ if [[ -n "$commit_msg" ]]; then+ # Truncate message to fit narrow terminal+ truncated_msg=$(echo "$commit_msg" | cut -c1-55)+ if [[ ${#commit_msg} -gt 55 ]]; then+ truncated_msg="${truncated_msg}..."+ fi+ line2+=" $truncated_msg"+ fi+fi++# Build Line 3: Context bricks + session info# Get session duration (convert ms to HHh MMm format)duration_ms=$(echo "$input" | jq -r '.cost.total_duration_ms // 0')duration_hours=$((duration_ms / 3600000))@@ -150,8 +148,8 @@ used_k=$(( used_tokens / 1000 ))total_k=$(( total_tokens / 1000 ))free_k=$(( free_tokens / 1000 ))-# Generate brick visualization (40 bricks total)-total_bricks=40+# Generate brick visualization (30 bricks for narrower display)+total_bricks=30if [[ $total_tokens -gt 0 ]]; thenused_bricks=$(( (used_tokens * total_bricks) / total_tokens ))else@@ -174,13 +172,10 @@ donebrick_line+="]"-brick_line+=" \033[1m${usage_pct}%\033[0m (${used_k}k/${total_k}k)"--# Add free space+# Compact stats: percentage | free | duration+brick_line+=" \033[1m${usage_pct}%\033[0m"brick_line+=" | \033[1;32m${free_k}k free\033[0m"--# Add duration (HHh MMm format)-brick_line+=" | ${duration_hours}h ${duration_min}m"+brick_line+=" | ${duration_hours}h${duration_min}m"# Add cost only if non-zero, rounded to 2 decimal placesif command -v bc &> /dev/null; then@@ -195,6 +190,7 @@ elsefifi-# Output both lines+# Output all three linesecho -e "$line1"+[[ -n "$line2" ]] && echo -e "$line2"echo -e "$brick_line"