skill-tracker

通用技能使用统计追踪器,支持 Python 和 Node.js 技能,自动记录调用次数、成功率,生成使用排行榜。数据本地存储,保护隐私。

3,891 stars

Best use case

skill-tracker is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

通用技能使用统计追踪器,支持 Python 和 Node.js 技能,自动记录调用次数、成功率,生成使用排行榜。数据本地存储,保护隐私。

Teams using skill-tracker should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/skill-tracker-aiyst/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/aiyst1982/skill-tracker-aiyst/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/skill-tracker-aiyst/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How skill-tracker Compares

Feature / Agentskill-trackerStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

通用技能使用统计追踪器,支持 Python 和 Node.js 技能,自动记录调用次数、成功率,生成使用排行榜。数据本地存储,保护隐私。

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

## Skill Tracker 📊

**通用技能使用统计追踪器** - 让您的 OpenClaw 技能使用情况一目了然!

---

## 何时使用

**当您需要:**
1. 知道哪个技能最常用
2. 发现哪个技能总失败
3. 识别哪些技能可以吃灰
4. 数据驱动优化技能配置
5. 监控技能使用趋势

**典型场景:**
- "我最近都用哪些技能?"
- "哪个技能调用次数最多?"
- "有没有技能总失败需要检查?"
- "哪些技能可以卸载了?"

---

## 触发场景

### 自动触发
- 每次技能调用时自动记录(需技能已集成)
- 无需手动指令

### 手动查询
```
指令:技能统计
指令:调用统计
指令:skill 排行
指令:使用报告
指令:哪个技能最常用
指令:查看技能使用情况
```

---

## 功能特性

### 核心功能
- ✅ **自动记录** - 调用/成功/失败自动统计
- ✅ **使用排行** - 按调用次数排序
- ✅ **成功率统计** - 跟踪每个技能稳定性
- ✅ **时间分析** - 按日期统计
- ✅ **双语言支持** - Python + Node.js
- ✅ **本地存储** - 数据安全
- ✅ **零外部依赖** - 纯本地运行

### 统计维度
- 总调用次数
- 技能总数
- 每个技能的调用/成功/失败次数
- 成功率百分比
- 首次/最后使用时间

---

## 使用方法

### 查询统计

```
指令:技能统计
```

**返回示例:**
```
📊 技能使用统计报告
==================================================
总调用次数:156
技能总数:11

技能排行榜(按调用次数):

🥇 **1. nano-banana-pro**
   调用:45 | 成功:44 | 失败:1 | 成功率:97.8%

🥈 **2. bailian-usage**
   调用:32 | 成功:32 | 失败:0 | 成功率:100%

🥉 **3. fact-checker**
   调用:28 | 成功:28 | 失败:0 | 成功率:100%
```

### 集成到您的技能

**Python 技能:**
```python
import sys
sys.path.insert(0, '../skill-tracker')
from skill_tracker import track

# 记录调用
track('your-skill', 'call')
track('your-skill', 'success')
track('your-skill', 'fail', {'error': 'xxx'})
```

**Node.js 技能:**
```javascript
const tracker = require('../skill-tracker');

await tracker.track('your-skill', 'call', { context });
await tracker.track('your-skill', 'success', { context });
await tracker.track('your-skill', 'fail', { context, error });
```

---

## 配置

可选配置文件:`skills/skill-tracker/config.yaml`

```yaml
tracker:
  enabled: true          # 是否启用追踪
  logRaw: true          # 是否记录原始日志
  retentionDays: 90     # 日志保留天数
  
report:
  topN: 10             # 默认显示前几名
  includeDetails: true # 包含详细信息
```

---

## 数据文件

| 文件 | 位置 | 说明 |
|------|------|------|
| `skill-stats.json` | `skills/skill-tracker/data/` | 聚合统计 |
| `usage-log.jsonl` | `skills/skill-tracker/data/` | 原始日志 |

**隐私说明:**
- ✅ 所有数据本地存储
- ✅ 不上传到外部服务器
- ✅ 可随时删除日志文件

---

## 已集成的技能(示例)

| 技能 | 类型 | 用途 |
|------|------|------|
| nano-banana-pro | Python | AI 图片生成 |
| taobao | Python | 淘宝商品搜索 |
| libtv-skill | Python | AI 视频生成 |
| baidu-search | Python | 百度搜索 |
| feast | Python | 膳食规划 |
| evernote-skill | Node.js | 印象笔记 |
| fact-checker | Node.js | 观点追踪 |
| bailian-usage | Node.js | 阿里云用量查询 |

---

## 命令行使用

```bash
# 查看统计报告
cd skills/skill-tracker
python3 skill_tracker.py report

# 测试追踪器
python3 skill_tracker.py test

# 检查集成状态
node scripts/check-integration.js
```

---

## 常见问题

**Q: 会影响技能性能吗?**  
A: 几乎无影响,每次调用增加 <1ms 延迟。

**Q: 数据会上传吗?**  
A: 不会,所有数据存储在本地。

**Q: 如何清理数据?**  
A: 删除 `skills/skill-tracker/data/` 目录即可。

**Q: 支持自定义技能吗?**  
A: 支持!按文档添加几行代码即可。

---

## 技术规格

- **支持语言:** Python 3.6+, Node.js 14+
- **支持系统:** Linux, macOS, Windows
- **外部依赖:** 无
- **网络访问:** 不需要
- **权限要求:** 文件系统读写

---

## 更新日志

### v1.0.0 (2026-03-18)
- ✨ 初始版本发布
- ✨ Python + Node.js 双版本支持
- ✨ 已集成 11 个技能
- ✨ 本地存储,零外部依赖
- ✨ 命令行 + 对话两种查询方式

---

## 许可证

MIT License

---

## 作者

韩顺利 (@hanshunli)

---

**📊 让数据驱动您的技能优化决策!**

Related Skills

KPI Tracker Skill

3891
from openclaw/skills

Track, analyze, and report on Key Performance Indicators for any business.

Workflow & Productivity

Budget & Expense Tracker — AI Agent Financial Command Center

3891
from openclaw/skills

Track every dollar, enforce budgets, spot spending patterns, and build wealth — all through natural conversation with your AI agent.

General Utilities

game-light-tracker

3891
from openclaw/skills

Track live NFL, NBA, NHL, or MLB games and automatically change Hue light colors based on which team is leading. Use when user wants to sync smart lights with live sports scores for visual game tracking. Supports NFL, NBA, NHL, and MLB games with customizable team colors.

General Utilities

ml-experiment-tracker

3891
from openclaw/skills

Plan reproducible ML experiment runs with explicit parameters, metrics, and artifacts. Use before model training to standardize tracking-ready experiment definitions.

Data & Research

element-nft-tracker

3891
from openclaw/skills

Element Market API integration. This skill strictly requires the 'ELEMENT_API_KEY' environment variable to function.

dependency-tracker

3891
from openclaw/skills

每周依赖检查。检查 Node.js、npm 版本和全局包是否有可用更新。触发时机:cron 定时任务或手动调用。

polymarket-tracker

3891
from openclaw/skills

Track top Polymarket markets by trading volume. Shows market name, Yes/No trading volumes, and current odds. Use when user asks about Polymarket trends, hot markets, or wants to find high-volume trading opportunities. Requires payment via skillpay.me (0.001 USDT per call).

india-price-tracker

3891
from openclaw/skills

Track and compare product prices across popular Indian stores (Amazon India, Flipkart, Reliance Digital, Croma, Vijay Sales, Tata CLiQ, and more), compute effective prices after offers/cashback, detect arbitrage opportunities, and monitor price history with alerts.

calorie-tracker

3891
from openclaw/skills

Smart health management solution with food and exercise recognition, nutrition and calorie analysis, secure data storage, and comprehensive data management. Empowers users with accurate food and exercise logging, personalized nutrition assessment, daily intake tracking, and calorie expenditure monitoring to support a healthy lifestyle.

Goal Tracker Skill

3891
from openclaw/skills

Track long-term goals with milestones, daily logging, and accountability.

Config Tracker Skill

3891
from openclaw/skills

自动追踪并提交 OpenClaw 配置文件和关键 markdown 文件的变更。

tech-debt-tracker

3891
from openclaw/skills

Scan codebases for technical debt, score severity, track trends, and generate prioritized remediation plans. Use when users mention tech debt, code quality, refactoring priority, debt scoring, cleanup sprints, or code health assessment. Also use for legacy code modernization planning and maintenance cost estimation.