Development v1.0.0

toggl

Track time with Toggl via the toggl CLI. Use when the user wants to start/stop time tracking, check current timer, view...

Toggl 更新于 2026-11-23 1 浏览
下载 SKILL

技能说明

Track time with Toggl via the toggl CLI. Use when the user wants to start/stop time tracking, check current timer, view today's or weekly reports, list recent entries, or manage time entries. Triggers on "toggl", "time tracking", "timer", "track time", "what am I working on", "log time", "timesheet".

使用场景

Use the toggl CLI (@beauraines/toggl-cli) for Toggl Track integration.

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

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

技能文件内容

3 个文件 · 15 kB
SKILL.md text/markdown
---
name: toggl
description: Track time with Toggl via the toggl CLI. Use when the user wants to start/stop time tracking, check current timer, view today's or weekly reports, list recent entries, or manage time entries. Triggers on "toggl", "time tracking", "timer", "track time", "what am I working on", "log time", "timesheet".
---

# Toggl Time Tracking

Use the `toggl` CLI (@beauraines/toggl-cli) for Toggl Track integration.

## Prerequisites

Install the CLI:
```bash
npm install -g @beauraines/toggl-cli
```

Configure authentication (create `~/.toggl-cli.json`):
```json
{
  "api_token": "YOUR_TOGGL_API_TOKEN",
  "default_workspace_id": "YOUR_WORKSPACE_ID",
  "timezone": "Your/Timezone"
}
```

Get your API token from: https://track.toggl.com/profile
Get your workspace ID from your Toggl URL: `https://track.toggl.com/{workspace_id}/...`

Set permissions: `chmod 600 ~/.toggl-cli.json`

## Commands

### Status
```bash
toggl now                    # Show running timer
toggl me                     # Show user info
```

### Start/Stop
```bash
toggl start                  # Start timer (interactive)
toggl start -d "Task name"   # Start with description
toggl start -d "Task" -p "Project"  # With project
toggl stop                   # Stop current timer
```

### Continue Previous
```bash
toggl continue               # Restart most recent entry
toggl continue "keyword"     # Restart entry matching keyword
```

### Reports
```bash
toggl today                  # Today's time by project
toggl week                   # Weekly summary by day
```

### List Entries
```bash
toggl ls                     # Last 14 days
toggl ls -d 7                # Last 7 days
toggl ls --today             # Today only
toggl ls "search term"       # Search entries
```

### Add Completed Entry
```bash
toggl add "9:00AM" "10:30AM" "Meeting notes"
```

### Edit Current
```bash
toggl edit -s "10:00AM"      # Change start time
toggl edit -d "New desc"     # Change description
toggl edit -p "Project"      # Change project
```

### Delete
```bash
toggl rm <id>                # Remove entry by ID
```

### Projects
```bash
toggl project ls             # List projects
```

### Other
```bash
toggl web                    # Open Toggl in browser
toggl create-config          # Generate config template
```

## Notes

- Times must be parsable by dayjs (e.g., `4:50PM`, `12:00 AM`, `9:00`)
- Config file: `~/.toggl-cli.json`
- Environment variables override config: `TOGGL_API_TOKEN`, `TOGGL_DEFAULT_WORKSPACE_ID`, `TOGGL_TIMEZONE`

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