跳转到主要内容

Usage Tracker

技能 已验证 活跃

跟踪每次本地 Claude Code 使用情况并进行报告:消耗的 token 数、预估成本(欧元)、会话数、项目数以及工具细分。当用户询问有关消耗、积分、使用情况、每次请求的成本、想要查看报告、询问特定请求为何昂贵、怀疑某个进程正在消耗 token、想要优化 Claude Code 使用情况或想要审核每次请求的工具使用情况时使用。还会触发对西班牙语短语的响应:'cuánto me está costando', 'cuántos tokens', 'consumo de hoy', 'qué petición fue cara', 'está consumiendo mucho', 'optimizar consumo', 'reporte de uso', 'ver uso', 'instalar tracker', 'hook no registra'。命令:/usage-tracker report [hoy|semana|mes|all] [proyecto], /usage-tracker top-requests [hoy|semana], /usage-tracker install, /usage-tracker status

目的

为用户提供对本地 Claude Code token 消耗和每次请求、项目和会话的预估成本的详细了解,从而能够更好地优化和审计使用情况。

功能

  • 记录每次工具调用的相关数据。
  • 根据模型和 token 计算预估成本。
  • 按请求、项目、会话和工具聚合使用数据。
  • 提供安装、报告和状态命令。

使用场景

  • 当用户询问有关消耗、积分或使用成本时。
  • 查看详细的 token 使用情况报告。
  • 了解特定请求为何昂贵。
  • 按每次请求或项目审核工具使用情况。

非目标

  • Claude Max 订阅的实时成本跟踪(仅提供相对索引)。
  • 跟踪 Claude 制作的外部 API 调用。
  • 替换官方 Claude 账单报告(侧重于本地、每次请求的分析)。

安装

npx skills add j4rk0r/claude-skills

通过 npx 运行 Vercel skills CLI(skills.sh)— 需要本地安装 Node.js,以及至少一个兼容 skills 的智能体(Claude Code、Cursor、Codex 等)。前提是仓库遵循 agentskills.io 格式。

质量评分

已验证
100 /100
1 day ago 分析

信任信号

最近提交about 1 month ago
星标2
许可证MIT
状态
查看源代码

类似扩展

Investigate Capa Root Cause

100

Investigate root causes and manage CAPAs (Corrective and Preventive Actions) for compliance deviations. Covers investigation method selection (5-Why, fishbone, fault tree), structured root cause analysis, corrective vs preventive action design, effectiveness verification, and trend analysis. Use when an audit finding requires a CAPA, when a deviation or incident occurs in a validated system, when a regulatory observation needs a formal response, when a data integrity anomaly requires investigation, or when recurring issues suggest a systemic root cause.

技能
pjt222

Soul Guardian

100

Drift detection + baseline integrity guard for agent workspace files with automatic alerting support

技能
prompt-security

Audit Dependency Versions

100

Audit project dependencies for version staleness, security vulnerabilities, and compatibility issues. Covers lock file analysis, upgrade path planning, and breaking change assessment. Use before a release to ensure dependencies are current and secure, during periodic maintenance reviews, after receiving a security advisory, when upgrading to a new language version, before submitting to CRAN or npm, or when inheriting a project to assess its dependency health.

技能
pjt222

Toprank Weekly Review

100

Run a weekly SEO review for one registered website, write audit artifacts, and choose the next best safe action.

技能
nowork-studio

Janitor Tokens

100

显示每个技能消耗的上下文窗口令牌数量。当用户询问有关令牌成本、上下文预算、技能大小,或希望了解哪些技能浪费了最多的上下文空间时使用。

技能
khendzel

Janitor Report

100

一个完整的报告,用于检查所有技能的健康状况。当用户想要检查错误、查找重复项、检测损坏的技能或获取技能健康状况的完整概览时使用。

技能
khendzel