返回 Skill 列表
extension
分类: 开发与工程需要 API Key

Toggl Optimized

提供高效的Toggl Track API访问,通过CLI和Shell脚本实现快速、令牌优化的报告,使用Toggl API v3。

person作者: alex1389hubclawhub

Toggl-Optimized

A high-performance Toggl Track agent skill optimized for token efficiency and reporting.

Overview

This skill provides a streamlined way to interact with Toggl Track, focusing on minimizing context usage and providing fast reporting capabilities via direct API v3 calls.

Features

  • Token Efficient: Uses optimized API calls to reduce LLM context consumption.
  • Fast Reporting: Includes a shell script for quick JSON and PDF reports.
  • Direct API Access: Examples for direct curl interaction with Toggl v3 Reports.

Setup

  1. Get your API Token from Toggl Profile Settings.
  2. Set the environment variable:
    export TOGGL_API_TOKEN="your-api-token"
    
  3. (Optional) Set your Workspace ID:
    export TOGGL_WORKSPACE_ID="your-workspace-id"
    

Usage

Optimized Reporting Script

Use the provided script for fast summaries:

# Usage: bash scripts/toggl_report.sh <client_name> <start_date> <end_date> <format: json|pdf>
bash scripts/toggl_report.sh myclient 2026-02-01 2026-02-28 json

CLI Commands (Toggl-CLI)

If you have toggl-cli installed:

  • toggl te list --compact: List time entries with minimal token usage.
  • toggl proj list --compact: List projects efficiently.

Configuration

The reporting script uses environment variables for authentication. Ensure TOGGL_API_TOKEN and TOGGL_WORKSPACE_ID are set.