Development v1.0.0

rescuetime

Fetch productivity data from RescueTime. Use when the user asks about their screen time, productivity score, app usage,...

RescueTime 更新于 2026-11-23 2 浏览
下载 SKILL

技能说明

Fetch productivity data from RescueTime. Use when the user asks about their screen time, productivity score, app usage, time tracking, how they spent their day/week, or wants reports on their computer activity. Requires API key in TOOLS.md or passed directly.

使用场景

Fetch productivity analytics from the RescueTime API.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/rescuetime
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

3 个文件 · 13 kB
SKILL.md text/markdown
---
name: rescuetime
description: Fetch productivity data from RescueTime. Use when the user asks about their screen time, productivity score, app usage, time tracking, how they spent their day/week, or wants reports on their computer activity. Requires API key in TOOLS.md or passed directly.
---

# RescueTime

Fetch productivity analytics from the RescueTime API.

## Setup

Store API key in TOOLS.md:

```markdown
### RescueTime
- API Key: YOUR_KEY_HERE
```

Get a key at: https://www.rescuetime.com/anapi/manage

## API Endpoints

### Analytic Data (main endpoint)

```bash
curl "https://www.rescuetime.com/anapi/data?key=API_KEY&format=json&perspective=rank&restrict_kind=activity"
```

Parameters:
- `perspective`: rank, interval, member
- `restrict_kind`: category, activity, productivity, efficiency, document
- `interval`: month, week, day, hour (only for interval perspective)
- `restrict_begin` / `restrict_end`: YYYY-MM-DD
- `restrict_thing`: filter to specific app/site/category

### Daily Summary Feed

```bash
curl "https://www.rescuetime.com/anapi/daily_summary_feed?key=API_KEY"
```

Returns last 14 days with productivity_pulse (0-100), total_hours, categories.

## Productivity Levels

- 2: Very Productive (coding, writing, Terminal, IDEs)
- 1: Productive (communication, reference, learning)
- 0: Neutral (uncategorized)
- -1: Distracting (news, shopping)
- -2: Very Distracting (social media, games)

## Common Queries

**Today's activity by app:**
```bash
curl "https://www.rescuetime.com/anapi/data?key=API_KEY&format=json&perspective=rank&restrict_kind=activity&restrict_begin=$(date +%Y-%m-%d)&restrict_end=$(date +%Y-%m-%d)"
```

**Productivity breakdown:**
```bash
curl "https://www.rescuetime.com/anapi/data?key=API_KEY&format=json&perspective=rank&restrict_kind=productivity"
```

**By category:**
```bash
curl "https://www.rescuetime.com/anapi/data?key=API_KEY&format=json&perspective=rank&restrict_kind=category"
```

**Hourly breakdown today:**
```bash
curl "https://www.rescuetime.com/anapi/data?key=API_KEY&format=json&perspective=interval&restrict_kind=productivity&interval=hour&restrict_begin=$(date +%Y-%m-%d)&restrict_end=$(date +%Y-%m-%d)"
```

## Response Format

```json
{
  "row_headers": ["Rank", "Time Spent (seconds)", "Number of People", "Activity", "Category", "Productivity"],
  "rows": [[1, 3600, 1, "VS Code", "Editing & IDEs", 2], ...]
}
```

Convert seconds to hours: `seconds / 3600`

## Tips

- Productivity pulse 75+ is good, 85+ is excellent
- Category view helps see broad patterns
- Use interval perspective with hour for time-of-day analysis
- Data syncs every 3 min (premium) or 30 min (free)

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。