# Metrics

> Use when the user asks about LLM token usage, API call timing, runtime metrics, cost signals, or performance statistics.

- Skill: `zimoliao/metrics` (Agent Skill)
- Install (CLI): `npx skillmds@latest add zimoliao/metrics`
- Raw SKILL.md: https://api.skillmd.com/api/skills/zimoliao/metrics/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: zimoliao (https://skillmd.com/u/zimoliao)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/zimoliao/metrics

---

# 查看指标统计

查看 LLM token 用量、API 调用耗时等运行指标。

## 执行逻辑

**查看最近 LLM 调用详情：**
```bash
scholaraio metrics --last 20
```

**查看汇总统计：**
```bash
scholaraio metrics --summary
```

**查看特定时间段：**
```bash
scholaraio metrics --since 2026-03-01
```

**查看其他类别事件：**
```bash
scholaraio metrics --category api --last 50
```

## 示例

用户说："我用了多少 token"
→ 执行 `metrics --summary`

用户说："看看最近的 LLM 调用"
→ 执行 `metrics --last 10`

