junghan0611

Lifetract — AI skill for Claude Code

AI community

Life + Traction — Samsung Health + aTimeLogger → SQLite DB, queryable by AI agents via Denote ID timeline.

How to install Lifetract

This entry records only its repository, not the path inside it, so there is no exact command to give. Open junghan0611/lifetract and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Lifetract does

Life + Traction — Samsung Health + aTimeLogger → SQLite DB, queryable by AI agents via Denote ID timeline.

Alternatives in AI

README

lifetract

**Life + Traction — A CLI that lets AI agents query your health and time-tracking data.**

Go · modernc.org/sqlite · Single static binary · JSON output

**AI Agent Skill**: [agent-config/skills/lifetract](https://github.com/junghan0611/agent-config/tree/main/skills/lifetract)

[![License](https://img.shields.io/badge/license-Apache%202.0-green.svg)](LICENSE)


What This Does

Unifies **Samsung Health** CSV exports (7 active streams) and **aTimeLogger** SQLite (18 categories) into a single SQLite database (`lifetract.db`). AI agents query health and time data via JSON — sleep, heart rate, steps, stress, exercise, weight, and how you spend your hours.

Every record carries a [Denote ID](https://protesilaos.com/emacs/denote) (`YYYYMMDDTHHMMSS`), enabling cross-referencing with [denotecli](https://github.com/junghan0611/denotecli) on the same time axis.

Samsung Health and aTimeLogger are widely-used apps with standard export formats. **lifetract is a general-purpose tool** — anyone using these apps can use it. Data itself is private; public dataset is planned separately.

./run.sh update                     # Place new data + rebuild DB (one step)
lifetract today                     # Today's unified summary
lifetract read 2025-10-04           # Full day: health + time tracking
lifetract timeline --days 30        # 30-day cross-sectional view
lifetract time --days 30            # Time category analysis

Install

git clone https://github.com/junghan0611/lifetract.git
cd lifetract
./run.sh build    # → ~/.local/bin/lifetract

Requires Go 1.21+. Nix users: `nix build` (CGO_ENABLED=0 static binary).

Updating Data

Export Samsung Health + aTimeLogger backup from your phone into a date folder, then one command:

# Put exports in self-tracking-data/YYYYMMDD/, then:
./run.sh update

Automatically: moves Samsung Health folder → replaces aTimeLogger DB → rebuilds `lifetract.db`.


Architecture

.