terminal-time-tracker

Track time spent on projects from the terminal. Use when starting/stopping timers, logging time, viewing daily or weekly reports, or exporting time data. Triggers include "track time", "time tracker", "ttm", "log hours", "time report", "how much time", "start timer".

7 stars

Best use case

terminal-time-tracker is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Track time spent on projects from the terminal. Use when starting/stopping timers, logging time, viewing daily or weekly reports, or exporting time data. Triggers include "track time", "time tracker", "ttm", "log hours", "time report", "how much time", "start timer".

Teams using terminal-time-tracker should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/terminal-time-tracker/SKILL.md --create-dirs "https://raw.githubusercontent.com/heldernoid/agentic-build-templates/main/projects/cli-tools/terminal-time-tracker/skills/terminal-time-tracker/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/terminal-time-tracker/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How terminal-time-tracker Compares

Feature / Agentterminal-time-trackerStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Track time spent on projects from the terminal. Use when starting/stopping timers, logging time, viewing daily or weekly reports, or exporting time data. Triggers include "track time", "time tracker", "ttm", "log hours", "time report", "how much time", "start timer".

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# terminal-time-tracker

CLI tool for tracking time on projects with start/stop timers, manual logging, and reports.

## Quick Start

```bash
# Start a timer
ttm start myproject

# Start with a note
ttm start myproject --note "fix login bug"

# Check what is running
ttm status

# Stop the timer
ttm stop

# View today's report
ttm report
```

## Timer Commands

```bash
ttm start <project>              # start timer for project
ttm start <project> --note "..."  # start with a note
ttm stop                         # stop running timer
ttm stop --note "resolved"       # add note when stopping
ttm status                       # show running timer and elapsed time
```

## Log Entries Manually

```bash
# Duration formats: 30m, 1h, 1h30m, 90m
ttm log myproject 1h30m
ttm log myproject 45m --note "code review"
ttm log myproject 2h --at 09:00   # logged at specific start time
```

## List Entries

```bash
ttm list                         # recent entries (latest 20)
ttm list --today                 # today only
ttm list --week                  # this week
ttm list --project myproject     # filter by project
ttm list --limit 50              # show more entries
```

## Reports

```bash
ttm report                       # today
ttm report --week                # current week
ttm report --month               # current month
ttm report --from 2026-03-01 --to 2026-03-20
ttm report --project myproject   # daily breakdown for one project
```

## Edit and Delete

```bash
ttm edit 42 --note "updated"          # update note
ttm edit 42 --project otherproject    # move to different project
ttm edit 42 --start 09:00             # change start time
ttm edit 42 --end 11:30               # change end time
ttm delete 42                         # delete with confirmation
ttm delete 42 --yes                   # delete without prompt
```

## Projects

```bash
ttm projects                          # list all projects with totals
ttm projects add myproject            # create project
ttm projects rename old new           # rename project
ttm projects delete myproject         # delete (prompts if has entries)
```

## Export

```bash
ttm export                            # CSV to stdout
ttm export --output entries.csv       # CSV to file
ttm export --format json              # JSON output
ttm export --week --output week.csv   # this week only
ttm export --from 2026-03-01 --to 2026-03-31 --output march.json
```

## Statistics

```bash
ttm stats                             # all-time totals, streaks, top projects
ttm stats --week                      # weekly bar chart
```

## CLI Reference

| Command | Description |
|---|---|
| `start <project>` | Start timer for project |
| `stop` | Stop running timer |
| `status` | Show running timer |
| `log <project> <duration>` | Manually log completed entry |
| `list` | List entries |
| `report` | Aggregated report by project |
| `edit <id>` | Edit entry fields |
| `delete <id>` | Delete entry |
| `projects` | List and manage projects |
| `export` | Export entries to CSV or JSON |
| `stats` | Statistics and streaks |

## Duration Format

| Input | Parsed as |
|---|---|
| `30m` | 30 minutes |
| `1h` | 1 hour |
| `1h30m` | 1 hour 30 minutes |
| `90m` | 90 minutes (1h 30m) |
| `2h15m` | 2 hours 15 minutes |

## Environment Variables

| Variable | Default | Description |
|---|---|---|
| `TTM_DB_PATH` | `~/.local/share/terminal-time-tracker/db.sqlite` | SQLite database path |
| `TTM_NO_COLOR` | `0` | Disable ANSI color (1 to disable) |
| `TTM_DEBUG` | `0` | Enable debug logging (1 to enable) |

## Exit Codes

| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | No data found |
| 2 | Timer state error (already running or not running) |
| 3 | Runtime error |

Related Skills

Skill: Uptime Monitoring

7
from heldernoid/agentic-build-templates

## Overview

websocket-realtime

7
from heldernoid/agentic-build-templates

Use the WebSocket connection in poll-builder to receive live vote updates. Use when you need to stream real-time poll results, monitor a poll for new votes, or build a live dashboard. Triggers include "live results", "real-time updates", "stream votes", "watch poll", or "WebSocket".

habit-tracker

7
from heldernoid/agentic-build-templates

Self-hosted daily habit check-in app with streaks, calendar heatmap, and weekly email reports. Use when you need to record a habit check-in, query streak data, create or update habits, review weekly progress, or manage categories. Triggers include "log habit", "check in", "mark done", "streak", "habit progress", "weekly report", or any task involving personal habit tracking.

sleep-tracker

7
from heldernoid/agentic-build-templates

No description provided.

nutrition-tracker

7
from heldernoid/agentic-build-templates

No description provided.

medication-tracker

7
from heldernoid/agentic-build-templates

Track medications with dosage schedules, log doses taken or skipped, monitor adherence rates, manage refill reminders, and check basic drug interactions. Use when a user needs to manage their medication schedule, log dose history, or review adherence.

deployment-tracker

7
from heldernoid/agentic-build-templates

Track every deployment event via CLI or REST API. Searchable web dashboard with service timelines, rollback tracking, and per-service deploy tokens.

time-series-dashboard

7
from heldernoid/agentic-build-templates

Manage dashboards, metrics, alert rules, and query time-series data in the time-series-dashboard application. Use this skill for all operations against the running server.

time-reports

7
from heldernoid/agentic-build-templates

Generate time tracking reports from terminal-time-tracker data. Use when summarizing hours by project, comparing weeks, analyzing daily patterns, or exporting time data for invoicing. Triggers include "time report", "hours by project", "weekly summary", "time breakdown", "how long did I spend", "invoice export".

terminal-bookmarks

7
from heldernoid/agentic-build-templates

Save, tag, and fuzzy-search shell commands from the terminal. Use when you need to store a complex command for later recall, search through saved commands, execute a bookmark, manage tags, or sync bookmarks across machines. Triggers include "save this command", "bookmark command", "find my docker command", "recall command", "shell history bookmark", "tbm", or any task involving managing reusable shell commands.

soil-test-tracker

7
from heldernoid/agentic-build-templates

Record soil test results, track nutrient levels over time, and log soil amendments. Use when asked to add a soil test, check which nutrients are deficient, view field nutrient history, record a lime or fertilizer application, or compare field health across tests. Triggers include "soil test", "soil pH", "nutrient deficiency", "add lime", "compost application", "phosphorus low", "organic matter", "amendment record", or any task involving soil chemistry tracking.

Skill: germination-tracker

7
from heldernoid/agentic-build-templates

## Purpose