/claude-worktrace:worklog-loggingfrom claude-worktrace
Logs what was accomplished in each Claude session to dated markdown files, triggered at session end, context checkpoints, or on request. Captures summaries, decisions, and artifacts for later review.
Ships in claude-worktrace. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Capture what was accomplished in this session. This skill is intentionally lightweight — it logs and gets out of the way.
Files go to ~/Documents/AI/worklog/ for cross-device sync:
~/Documents/AI/worklog/
├── 2026-03-08-macbook-pro.md
├── 2026-03-08-mac-mini.md
├── 2026-03-07-macbook-pro.md
└── ...
Naming: YYYY-MM-DD-{hostname}.md — date-first for chronological sorting.
Fallback: ~/.claude/worklog/
### HH:MM — [Project/Context] `sess-XXXX`
**Summary:**
- [What problem was solved and WHY — enough detail for a resume or performance review]
- [What was researched, what was learned, what conclusions were reached]
- [Key decisions made and their reasoning]
**Decisions:** [Optional — architectural or design decisions]
**Artifacts:** [Optional — PRs, deployments, docs created]
**Open:** [Optional — what's still pending]
---
Session ID (sess-XXXX): Derived from Claude's session_id (first 4 chars of the UUID), ensuring consistency across all entries in a session — PreCompact and SessionEnd hooks produce matching IDs. This distinguishes parallel sessions on the same machine.
Write as if explaining to a colleague or updating a resume months from now.
GOOD bullets — tell the story:
BAD bullets — mechanical noise:
Focus on the WHAT and WHY, never the HOW (tools used, files touched, tech stack). Those details are in git history if anyone needs them.
Checkpoint triggers (~25/50/75% context):
All other triggers (session ending, explicit "log this", self-improve piggybacking) use the interactive flow below.
hostname -s for machine, date for time, infer project from cwd/git/conversationWorklog entry:
[the entry]
Save to worklog?
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/write_worklog.py" \
--date "2026-03-08" --time "14:30" --machine "macbook-pro" \
--session "sess-f3a1" --project "acme-api" \
--summary '["Fixed auth token refresh race condition — stale tokens survived logout", "Researched PKCE vs implicit flow, chose PKCE for public client security"]' \
--decisions "Chose PKCE over implicit flow" \
--artifacts "PR #142" --open "Update API docs"
Hooks in hooks/hooks.json fire on PreCompact, /clear, and SessionEnd. Each reads the transcript, uses claude -p --model sonnet to generate a narrative summary, and persists it via write_worklog.py. Falls back to smart transcript parsing if the claude CLI is unavailable.
The same hook also detects user steering patterns and logs them via write_preferences.py --target log-only to ~/Documents/AI/self-improve/preferences-log.md. Steers are NOT auto-applied to CLAUDE.md — use the self-improve skill to review and promote them.
When self-improve fires in interactive mode, also trigger this skill. Present both outputs (preferences learned + worklog entry) in a single confirmation. One interruption, two outputs saved.
When self-improve fires in checkpoint mode, worklog auto-saves silently while self-improve handles its own user interaction (options prompt) if patterns were found.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub thumperl/claude-worktrace --plugin claude-worktrace3 skills in this plugin
/self-improveSelf-improving interaction skill that learns from user corrections and steering patterns. TRIGGER THIS SKILL when any of the following occur during a session: (1) The user corrects Claude's approach 3 or more times (e.g., "no, do X instead", "that's not what I meant", "actually...", rephrasing the same request, asking to redo work, expressing dissatisfaction). (2) At periodic context checkpoints (~25%, ~50%, ~75%) — this is routine logging, not a signal to stop. Capture learnings silently and continue working on the current task without interruption. (3) The user explicitly says "learn this", "remember this preference", "improve how you work with me", or similar self-improvement triggers. Also trigger when Claude notices repeated patterns of correction across a conversation, even before hitting the 3-correction threshold, if the pattern is clear. This skill is about making Claude better at working with this specific user over time. Use it liberally — it's better to learn too often than to miss patterns. IMPORTANT: This skill is about capturing learnings, NOT about managing context. Never suggest ending the session, starting fresh, or doing a handoff. After logging, resume the task seamlessly.
/worklog-analysisAnalyze past work logged by the worklog-logging skill. Generates daily standups, weekly summaries, monthly reviews, and performance review material. TRIGGER THIS SKILL when the user says "standup", "what did I do", "weekly summary", "monthly review", "performance review", "resume update", "what have I been working on", or asks to analyze, summarize, or review past work over any timeframe. This skill reads worklog files — it does NOT log new entries. For logging, use worklog-logging.
Other plugins' skills for the same job