MCP HubMCP Hub
스킬 목록으로 돌아가기

usage-tracker

vamseeachanta
업데이트됨 Today
21 조회
3
2
3
GitHub에서 보기
기타bashmetricslogginganalyticstrackingreporting

정보

사용량 추적 스킬은 타임스탬프가 기록된 로깅과 보고를 통해 개발자들이 시간 경과에 따른 도구나 리소스 사용량을 추적하고 분석할 수 있도록 합니다. 이 스킬은 주기적인 사용량 보고서 생성, 할당량 모니터링, 사용 추세 감지에 적합하도록 설계되었으며, 실시간 또는 고빈도 이벤트 추적에는 적합하지 않습니다. 주요 기능으로는 대시보드 구축을 위한 일별/주별/월별 세부 분석과 패턴 분석이 포함됩니다.

빠른 설치

Claude Code

추천
기본
npx skills add vamseeachanta/workspace-hub
플러그인 명령대체
/plugin add https://github.com/vamseeachanta/workspace-hub
Git 클론대체
git clone https://github.com/vamseeachanta/workspace-hub.git ~/.claude/skills/usage-tracker

Claude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요

문서

Usage Tracker

When to Use This Skill

Use when:

  • Need to track tool/resource usage over time
  • Generating usage reports (daily, weekly, monthly)
  • Monitoring quotas or limits
  • Analyzing usage patterns
  • Building dashboards

Avoid when:

  • Real-time metrics (use proper monitoring tools)
  • High-frequency events (>100/second)
  • Sensitive data without encryption

Summary

$(generate_summary "$period" | sed 's/\x1b[[0-9;]*m//g')

Daily Breakdown

DateOpusSonnetHaikuTotal
EOF
for i in $(seq 6 -1 0); do
    local date=$(date -d "$i days ago" +%Y-%m-%d)
    local opus=$(grep "$date" "$USAGE_LOG" | grep "|opus|" | wc -l)
    local sonnet=$(grep "$date" "$USAGE_LOG" | grep "|sonnet|" | wc -l)
    local haiku=$(grep "$date" "$USAGE_LOG" | grep "|haiku|" | wc -l)
    local total=$((opus + sonnet + haiku))

    echo "| $date | $opus | $sonnet | $haiku | $total |" >> "$output"
done

cat >> "$output" << EOF

Recommendations

Based on current usage patterns: $(generate_recommendations)


Generated: $(date) EOF

echo "Report generated: $output"

}


## Complete Example: Usage Monitor CLI

```bash
#!/bin/bash
# ABOUTME: Complete usage monitoring CLI tool
# ABOUTME: Track, analyze, and report on usage metrics

set -e

# ─────────────────────────────────────────────────────────────────
# Configuration
# ─────────────────────────────────────────────────────────────────

SCRIPT_NAME="usage-monitor"
USAGE_DIR="${HOME}/.${SCRIPT_NAME}"
USAGE_LOG="$USAGE_DIR/usage.log"

# Colors
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
CYAN='\033[0;36m'
NC='\033[0m'

# ─────────────────────────────────────────────────────────────────
# Core Functions

*See sub-skills for full details.*

## Resources

- [awk One-Liners](https://catonmat.net/awk-one-liners-explained-part-one)
- [sed/awk Tutorial](https://www.grymoire.com/Unix/Awk.html)
- [Date Manipulation in Bash](https://www.cyberciti.biz/faq/linux-unix-formatting-dates-for-display/)

---

## Version History

- **1.0.0** (2026-01-14): Initial release - extracted from workspace-hub check_claude_usage.sh

## Sub-Skills

- [1. Basic Usage Logging (+1)](1-basic-usage-logging/SKILL.md)
- [3. Usage Summary Reports (+1)](3-usage-summary-reports/SKILL.md)
- [5. Trend Analysis (+1)](5-trend-analysis/SKILL.md)
- [Best Practices](best-practices/SKILL.md)

GitHub 저장소

vamseeachanta/workspace-hub
경로: .claude/skills/_core/bash/usage-tracker

연관 스킬

Verification & Quality Assurance

기타

This skill provides automated quality verification for code and agent outputs using truth scoring and quality checks. It automatically rolls back changes that fall below a 0.95 accuracy threshold, ensuring codebase reliability. Use it for CI/CD integration and maintaining high-quality standards in development workflows.

스킬 보기

performance-analysis

기타

This skill provides comprehensive performance analysis and bottleneck detection for Claude Flow swarms, helping developers identify optimization opportunities. It offers real-time monitoring, profiling of swarm operations, and generates detailed reports with actionable recommendations. Use this skill when you need to diagnose performance issues and improve the efficiency of your Claude Code applications.

스킬 보기

test-reporting-analytics

기타

This skill provides advanced test reporting and analytics, including quality dashboards, predictive analytics, and trend analysis for QE metrics. It's designed for communicating quality status, tracking trends, and supporting data-driven decisions. Developers should use it when they need to generate executive reports or analyze quality metrics with a focus on actionable insights.

스킬 보기

Verification & Quality Assurance

기타

This skill provides automated verification and quality assurance for code and agent outputs, including truth scoring and validation checks. It enables automatic rollback for failed quality checks and integrates with CI/CD pipelines. Use it to validate code changes before merging or to ensure the correctness of generated outputs.

스킬 보기