gt:timely
Create Timely time-log entries from auto-tracked memories. Use when the user says "log my Timely day", "convert memories to events", "fill Timely from yesterday", "create timely entry from memory", "split my day into projects", or "categorize my Timely time". Drives a non-interactive **plan / apply** workflow that lets you (the LLM) split a day's memories across multiple projects. Does NOT cover ADO TimeLog or Clarity sync — for those, defer to /gt:timelog.
What this skill does
# Timely Create-from-Memory
Drives the conversation that turns auto-tracked Timely memories into logged events. The new event preserves the memory linkage (visible as auto-tracked tiles in the calendar UI) by passing `timestamps[].entry_ids` of the form `tool_tic_<memoryId>` to the public OAuth `POST /events` endpoint.
> **For full sync (Timely → ADO → Clarity), invoke `/gt:timelog` instead.** This skill is the *missing first hop*: it creates Timely entries. The follow-up ADO/Clarity sync is `/gt:timelog`'s job.
---
## Primary Workflow (LLM, non-interactive)
The plan/apply pattern is the default. It lets you split a day's memories across multiple projects and gives the user a single artifact to review before any POST.
> **DO NOT use python, jq, awk, or shell loops to inspect or edit the plan.** The tool prints the summary itself and you have the `Edit` / `Read` / `Write` tools. Using shell scripts to extract memory IDs is an anti-pattern — it hides your reasoning from the user and is unnecessary now that the tool ships a summary.
### Step 1 — Generate a plan
```bash
tools timely create --plan --from 2026-04-21 --to 2026-04-25 --out /tmp/timely-plan.json
# or for one day:
tools timely create --plan --day 2026-04-24 --out /tmp/timely-plan.json
```
The command does two things:
1. **Writes** the JSON plan file to `--out`
2. **Prints** a compact per-day summary to stdout — this is what you reason over
The summary looks like:
```
=== 2026-04-19 (2 memories) ===
Suggestions:
proj 4344283 ČEZ score 2.88 27 similar past entries · top word similarity 0.00
proj 5190862 Reservine score 0.05 1 similar past entries · top word similarity 0.00
Memories (id from-to min app note | sub_notes):
2079040832 21:03-22:07 65m cmux col-fe | tools claude usage; col-fe2
2079063024 22:23-22:29 6m cmux col-fe
```
The plan JSON file contains the same data with full ISO timestamps and is the artifact `--apply` consumes.
### Step 2 — Reason from the printed summary (no Read of JSON needed)
Look at the summary the tool printed for:
- App names + notes + sub_notes (often contain repo names, branch names, file paths — strong project signal)
- Time ranges (split a day by morning/afternoon/evening blocks)
- `suggestions[]` (heuristic prior — high score = strong historical pattern, but **don't blindly trust** if the memories clearly say something else)
- Any prior conversation context the user gave you (e.g. "I worked on Reservine in the morning")
State your splits in chat — group memory IDs into time-block buckets per intended project. Be explicit so the user can correct you before you Edit.
### Step 3 — Fill in `events[]` with the Edit tool
Use the `Edit` tool to replace `"events": []` in the plan JSON file with your filled events. **Don't use shell scripts** — the Edit tool is the right primitive.
Multiple events per day are fine — each gets its own project + note + memory_ids subset. Example:
```json
"events": [
{
"project_id": 5190862,
"note": "Reservine — col-fe migration",
"memory_ids": [2084994045, 2085026565]
},
{
"project_id": 4344283,
"note": "ČEZ — Timely tooling",
"memory_ids": [2085118879, 2085658439]
}
]
```
**Rules:**
- Every `memory_id` must appear in `available_memories[].id` (validation errors otherwise — re-Read the JSON if you forget an ID)
- A `memory_id` should appear in **at most one** event (validation warns on duplicates)
- Memories you intentionally skip (lunch, idle, personal, leisure YouTube/Instagram/Messages-with-partner) — just leave them out. Validation **warns**, doesn't error
- Notes should be human-readable, not just app names. Steal phrasing from `sub_notes[]` (repo names, branch names, PR titles)
- Use `project_id` from `suggestions[]` when it matches your reasoning. Run `tools timely projects --format json` to look up other project IDs
- **Memory linkage caveat**: a single memory's wall-clock window is atomic — you can't split *one* memory across two projects. If memory `X` shows mixed work (e.g. cmux session that touched two repos), pick the dominant project for the whole window
### Step 4 — Verify the file
The Edit tool already wrote the changes. No additional save step needed. If you're worried, `Read` the relevant slice of the file to confirm.
### Step 5 — Dry-run
```bash
tools timely create --apply /tmp/timely-plan.json --dry-run
```
This re-validates and prints each event's `CreateEventInput` payload (with `timestamps[]` filtered to that event's `memory_ids`). Show the user a tight summary:
```
2026-04-21#0 [proj 4250000] DRY 03:21 (5 memories) Reservine — col-fe migration
2026-04-21#1 [proj 4344283] DRY 04:15 (8 memories) ČEZ — Timely tooling
```
### Step 6 — Apply
After user confirms:
```bash
tools timely create --apply /tmp/timely-plan.json --yes
```
`--yes` skips the warning confirmation (you've already shown the user the dry-run). On success: `✓ <day>#<N> [proj <id>] event <evId> (HH:MM, N memories)`.
---
## Validation rules (so you can pre-check before --dry-run)
| Severity | Rule |
|---|---|
| error | `memory_id` not in `available_memories` |
| error | duplicate `memory_id` within a single event |
| error | `memory_ids` is empty |
| error | `project_id` ≤ 0 |
| warn | `memory_id` assigned to multiple events on the same day (intentional split) |
| warn | some `available_memories` are not assigned to any event (intentional drop) |
---
## Manual Fallback (Human, no LLM driver)
If the user wants to do it themselves:
```bash
tools timely create --day 2026-04-24 -i # clack interactive flow
tools timely create --day 2026-04-24 -p 4344283 -n "..." # one-shot, all-day, one project
tools timely create --day 2026-04-24 --dry-run # preview the all-day single-project payload
```
The interactive `-i` flow puts every memory on a day into ONE event (no splitting). For per-memory selection, use the plan/apply flow above.
---
## Read-only context commands
```bash
tools timely status # verify OAuth login (run `tools timely login` if not)
tools timely memories --day 2026-04-24 # raw memories for one day
tools timely events --day 2026-04-24 # what's already logged (warn before duplicating!)
tools timely projects --format json # list project IDs + names
```
Always run `tools timely events --day <date>` before posting to avoid double-logging.
---
## Common User Intents
| User says | First action |
|---|---|
| "Log yesterday in Timely" | `tools timely create --plan --day <yesterday> --out /tmp/p.json`, then read + fill |
| "Fill in this week" | `tools timely create --plan --from <Mon> --to <Fri> --out /tmp/p.json` |
| "Split Friday — morning was Reservine, afternoon ČEZ" | Plan for Friday, place morning memory_ids in one event, afternoon in another |
| "Skip the lunch memories" | Leave their IDs out of every event; validation warns and proceeds |
| "Re-run with the same plan" | Re-run `--apply <path> --yes` |
---
## Categorizer details (for reasoning context)
`src/timely/utils/categorizer.ts` ranks projects by:
- Word similarity (Jaccard) between memory text and past notes / project name (60%)
- Time-of-day overlap with past entries (20%)
- Recency (8-week linear decay) (20%)
Score is summed across all matching corpus entries. High match counts produce scores >1. Use `score` and `reasons[]` as priors; override when the memory text clearly indicates a different project.
---
## When NOT to use this skill
- Just *reading* memories or events → use the underlying commands directly, no skill orchestration needed
- Full Timely → ADO → Clarity sync → `/gt:timelog`
- Editing existing events → not supported yet
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.