Agent skill

time-tracking-common-issues

Sub-skill of time-tracking: Common Issues.

Stars 4
Forks 4

Install this agent skill to your Project

npx add-skill https://github.com/vamseeachanta/workspace-hub/tree/main/.claude/skills/_archive/business/productivity/time-tracking/common-issues

SKILL.md

Common Issues

Common Issues

Issue: 403 Forbidden (Toggl)

python
# Check API token
curl -u "YOUR_TOKEN:api_token" "https://api.track.toggl.com/api/v9/me"

# Ensure token has proper permissions
# Regenerate token at: https://track.toggl.com/profile

Issue: Empty response (RescueTime)

python
# Check if data exists for date range
# RescueTime only has data when the client is running

# Verify API key
curl "https://www.rescuetime.com/anapi/data?key=YOUR_KEY&format=json"

Issue: Time zone issues

python
# Always use UTC for Toggl API
from datetime import datetime, timezone

start = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%S.000Z")

Issue: Duration calculation

python
# Running entries have negative duration
entry = toggl.get_current_entry()
if entry and entry.get("duration", 0) < 0:
    # Calculate actual duration
    start = datetime.fromisoformat(entry["start"].replace("Z", "+00:00"))
    duration = (datetime.now(timezone.utc) - start).total_seconds()

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results