Timeblock
Timeblock v2.0.0 — a utility toolkit for logging, tracking, and managing time-blocking operations from the command line. All data is stored locally in flat log files with timestamps, making it easy to review history, export records, and search across entries.
Commands
Run scripts/script.sh <command> [args] to use.
Core Operations
| Command |
Description |
run <input> |
Log a run entry (e.g. execute a time block, start a session) |
check <input> |
Log a check entry (e.g. verify block completion, review schedule) |
convert <input> |
Log a convert entry (e.g. convert time formats, transform schedules) |
analyze <input> |
Log an analyze entry (e.g. analyze time allocation, productivity patterns) |
generate <input> |
Log a generate entry (e.g. generate daily schedules, weekly plans) |
preview <input> |
Log a preview entry (e.g. preview tomorrow's blocks, upcoming week) |
batch <input> |
Log a batch entry (e.g. batch-create time blocks for a week) |
compare <input> |
Log a compare entry (e.g. compare planned vs actual time usage) |
export <input> |
Log an export entry (e.g. export schedule to calendar, share plan) |
config <input> |
Log a config entry (e.g. set block durations, default categories) |
status <input> |
Log a status entry (e.g. current block status, schedule progress) |
report <input> |
Log a report entry (e.g. daily/weekly time reports, utilization summaries) |
Each command without arguments shows the 20 most recent entries for that category.
Utility Commands
| Command |
Description |
stats |
Summary statistics across all log categories with entry counts and disk usage |
export <fmt> |
Export all data in json, csv, or txt format |
search <term> |
Search across all log files for a keyword (case-insensitive) |
recent |
Show the 20 most recent entries from the global activity history |
status |
Health check — version, data directory, total entries, disk usage, last activity |
help |
Show full usage information |
version |
Show version string (timeblock v2.0.0) |
Data Storage
All data is persisted locally under ~/.local/share/timeblock/:
<command>.log — One log file per command (e.g. run.log, check.log, analyze.log)
history.log — Global activity log with timestamps for every operation
export.<fmt> — Generated export files (json/csv/txt)
Each entry is stored as YYYY-MM-DD HH:MM|<input> (pipe-delimited). No external services, no API keys, no network calls — everything stays on your machine.
Requirements
- Bash 4.0+ with
set -euo pipefail
- Standard Unix utilities:
date, wc, du, grep, tail, cat, sed, basename
- No external dependencies or packages required
- No API keys or accounts needed
When to Use
- Planning your day — Use
generate and run to create and log time blocks for each hour, building a structured daily schedule you can search and review later
- Tracking schedule adherence — Use
check and compare to record whether you completed blocks as planned, then stats to see completion patterns over time
- Analyzing time allocation — Use
analyze to log how you actually spent your time, then search to find patterns across categories like deep work, meetings, or breaks
- Batch-creating weekly plans — Use
batch to log entire week schedules at once, then preview to review upcoming blocks before each day starts
- Generating productivity reports — Use
report to log daily summaries, then export csv to pull structured data for time-tracking spreadsheets or dashboards
Examples
# Log a time block session
timeblock run "09:00-10:30 Deep work on project Alpha"
# Generate a daily schedule
timeblock generate "Monday: 09:00 deep work, 10:30 standup, 11:00 code review, 14:00 planning"
# Check schedule completion
timeblock check "Morning blocks completed: 3/4, missed 10:30 standup"
# Compare planned vs actual
timeblock compare "Planned 4h deep work, actual 2.5h — meetings overran by 1.5h"
# Search for all deep work entries
timeblock search "deep work"
# Export everything to JSON
timeblock export json
# View overall statistics
timeblock stats
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com
1---
2name: timeblock
3description: "Plan your day hour-by-hour with intentional time blocking. Use when blocking sessions, checking plans, analyzing allocation, generating agendas."
4version: "1.0.0"
5author: "BytesAgain"
6homepage: https://bytesagain.com
7source: https://github.com/bytesagain/ai-skills
8tags: ["timeblocking","schedule","planner","calendar","productivity","focus","daily"]
9categories: ["Productivity", "Personal Management"]
10metadata:
11 source: https://skillmd.com/skills/bytesagain/timeblock
12---
13
14# Timeblock
15
16Timeblock v2.0.0 — a utility toolkit for logging, tracking, and managing time-blocking operations from the command line. All data is stored locally in flat log files with timestamps, making it easy to review history, export records, and search across entries.
17
18## Commands
19
20Run `scripts/script.sh <command> [args]` to use.
21
22### Core Operations
23
24| Command | Description |
25|---------|-------------|
26| `run <input>` | Log a run entry (e.g. execute a time block, start a session) |
27| `check <input>` | Log a check entry (e.g. verify block completion, review schedule) |
28| `convert <input>` | Log a convert entry (e.g. convert time formats, transform schedules) |
29| `analyze <input>` | Log an analyze entry (e.g. analyze time allocation, productivity patterns) |
30| `generate <input>` | Log a generate entry (e.g. generate daily schedules, weekly plans) |
31| `preview <input>` | Log a preview entry (e.g. preview tomorrow's blocks, upcoming week) |
32| `batch <input>` | Log a batch entry (e.g. batch-create time blocks for a week) |
33| `compare <input>` | Log a compare entry (e.g. compare planned vs actual time usage) |
34| `export <input>` | Log an export entry (e.g. export schedule to calendar, share plan) |
35| `config <input>` | Log a config entry (e.g. set block durations, default categories) |
36| `status <input>` | Log a status entry (e.g. current block status, schedule progress) |
37| `report <input>` | Log a report entry (e.g. daily/weekly time reports, utilization summaries) |
38
39Each command without arguments shows the 20 most recent entries for that category.
40
41### Utility Commands
42
43| Command | Description |
44|---------|-------------|
45| `stats` | Summary statistics across all log categories with entry counts and disk usage |
46| `export <fmt>` | Export all data in `json`, `csv`, or `txt` format |
47| `search <term>` | Search across all log files for a keyword (case-insensitive) |
48| `recent` | Show the 20 most recent entries from the global activity history |
49| `status` | Health check — version, data directory, total entries, disk usage, last activity |
50| `help` | Show full usage information |
51| `version` | Show version string (`timeblock v2.0.0`) |
52
53## Data Storage
54
55All data is persisted locally under `~/.local/share/timeblock/`:
56
57- **`<command>.log`** — One log file per command (e.g. `run.log`, `check.log`, `analyze.log`)
58- **`history.log`** — Global activity log with timestamps for every operation
59- **`export.<fmt>`** — Generated export files (json/csv/txt)
60
61Each entry is stored as `YYYY-MM-DD HH:MM|<input>` (pipe-delimited). No external services, no API keys, no network calls — everything stays on your machine.
62
63## Requirements
64
65- **Bash** 4.0+ with `set -euo pipefail`
66- Standard Unix utilities: `date`, `wc`, `du`, `grep`, `tail`, `cat`, `sed`, `basename`
67- No external dependencies or packages required
68- No API keys or accounts needed
69
70## When to Use
71
721. **Planning your day** — Use `generate` and `run` to create and log time blocks for each hour, building a structured daily schedule you can search and review later
732. **Tracking schedule adherence** — Use `check` and `compare` to record whether you completed blocks as planned, then `stats` to see completion patterns over time
743. **Analyzing time allocation** — Use `analyze` to log how you actually spent your time, then `search` to find patterns across categories like deep work, meetings, or breaks
754. **Batch-creating weekly plans** — Use `batch` to log entire week schedules at once, then `preview` to review upcoming blocks before each day starts
765. **Generating productivity reports** — Use `report` to log daily summaries, then `export csv` to pull structured data for time-tracking spreadsheets or dashboards
77
78## Examples
79
80```bash
81# Log a time block session
82timeblock run "09:00-10:30 Deep work on project Alpha"
83
84# Generate a daily schedule
85timeblock generate "Monday: 09:00 deep work, 10:30 standup, 11:00 code review, 14:00 planning"
86
87# Check schedule completion
88timeblock check "Morning blocks completed: 3/4, missed 10:30 standup"
89
90# Compare planned vs actual
91timeblock compare "Planned 4h deep work, actual 2.5h — meetings overran by 1.5h"
92
93# Search for all deep work entries
94timeblock search "deep work"
95
96# Export everything to JSON
97timeblock export json
98
99# View overall statistics
100timeblock stats
101```
102
103---
104
105Powered by BytesAgain | bytesagain.com | hello@bytesagain.com