Skip to content
btr-stats logo

BTR Stats

btr-stats

Display LOCAL BTR statistics (NOT ByteRover/brv). Use when the user asks "how much time saved", "context statistics", "usage metrics", "BTR statistics", "BTR metrics", "BTR usage", or wants to see the value of their context library.

SKILL.md

Full skill instructions

BTR Stats

⚠️ CRITICAL: BTR ≠ ByteRover

This skill uses btr (local context tree), NOT brv (ByteRover CLI).

CommandToolSyntax
✓ CORRECTbtrbtr query "search term" / btr list / btr stats
✗ WRONGbrvDifferent tool, different syntax, requires auth

PREFER MCP tools when available:

  • mcp__btr__query_context - For searching
  • mcp__btr__list_contexts - For browsing
  • mcp__btr__get_stats - For statistics

Only use Bash btr commands if MCP tools are unavailable.

Show analytics and ROI metrics for your context library.

Quick Start

btr stats [--format json|table]

Metrics Displayed

  • Total Contexts: Number of stored knowledge items
  • Contexts by Domain: Distribution across domains
  • Most Retrieved: Top 10 most frequently accessed contexts
  • Total Retrievals: How many times contexts have been used
  • Estimated Time Saved: Based on usage count x avg retrieval time (15 min)

Example Output

BTR Statistics
====================

Total Contexts:     42
Total Domains:      8
Total Retrievals:   156

Estimated Time Saved: 39 hours

Top Domains:
  auth:       12 contexts (45 retrievals)
  api:        10 contexts (38 retrievals)
  database:    8 contexts (29 retrievals)

Most Retrieved:
  1. auth/​jwt-validation (23 retrievals)
  2. api/​rate-limiting (18 retrievals)
  3. database/​connection-pooling (15 retrievals)

Command Options

Basic Statistics

btr stats

Shows overall statistics in a human-readable table format.

JSON Output

btr stats --format json

Outputs structured JSON for programmatic use or dashboards.

Time Period Filter

btr stats --period 30d   # Last 30 days
btr stats --period 7d    # Last 7 days
btr stats --period 1y    # Last year

Domain-Specific Stats

btr stats --domain auth

Shows detailed statistics for a specific domain.

Understanding ROI Metrics

Time Saved Calculation

The time saved estimate is calculated as:

Time Saved = Total Retrievals x Average Time to Find Info Manually

Where:
- Average Time to Find Info Manually = 15 minutes (default)
- This accounts for searching docs, Stack Overflow, or reimplementing

Value Proposition

RetrievalsTime SavedEquivalent Value*
102.5 hours$250
5012.5 hours$1,250
10025 hours$2,500
500125 hours$12,500

*Based on $100/​hour developer cost

Advanced ROI Calculation

For detailed ROI analysis with customizable parameters, run the Python script:

python .claude/​skills/​btr-stats/​scripts/​calculate-roi.py

Options:

  • --hourly-rate: Developer hourly rate (default: $100)
  • --avg-time: Average manual search time in minutes (default: 15)
  • --format: Output format (json, csv, markdown)

Tracking Tips

  1. Consistent Retrieval: Use btr query to ensure retrievals are tracked

  2. Review Regularly: Check stats monthly to identify valuable patterns

  3. Prune Unused: Remove contexts with zero retrievals after 90 days

  4. Enhance Popular: Add more detail to frequently-accessed contexts

Integration with Dashboards

Export stats for external dashboards:

# Daily export to JSON
btr stats --format json > /​path/​to/​metrics/​btr-$(date +%Y%m%d).json

# Append to CSV log
btr stats --format csv >> /​path/​to/​metrics/​btr-stats.csv

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View