/polytropos:journalfrom polytropos
Generate the daily work journal — collect today's AI usage across Claude Code, Copilot CLI, and Codex CLI plus git activity into a digest, then write the narrative, technical, and next-day-plan summaries. Use when the user asks for their work journal, daily summary, "what did I do today", or to plan tomorrow.
Ships in polytropos. 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.
Read when SKILL.md points to them.
Resolve the plugin root before shelling out: use ${CLAUDE_PLUGIN_ROOT} if it is set; otherwise
resolve ../.. relative to this SKILL.md to an ABSOLUTE path (bash cwd is not the skill dir).
Call that root $ROOT below.
Run the collector to build today's digest from local, read-only sources:
python3 "$ROOT/bin/journal_collect.py"
Useful flags: --date YYYY-MM-DD for a specific day (default: today), --repo PATH to add a
git repo to scan (repeatable), --print to echo the digest to stdout as well as writing it.
The collector is deterministic and read-only over ~/.claude, ~/.copilot, and ~/.codex —
it never calls a model and never touches the network. It writes only under the gitignored
journal/<date>/ directory (digest.json), nowhere else. The digest now also deepens Codex
with the day's rollout files and, when tokens are found, carries a clearly-labeled
API-equivalent relative-burn proxy under sources.codex_cli.extra.codex_proxy — never a bill
(billed_usd stays null), never counted into usd_priced.
Capture the day's analytics into the durable store — the transcript dirs the digest reads from ROTATE, and this snapshot is what survives:
python3 "$ROOT/bin/telemetry_snapshot.py"
It imports the analytics modules and calls their builders directly — read-only over
~/.claude, ~/.codex, and ~/.copilot, spawning no CLI and writing only under the
gitignored telemetry/ (dated envelopes, one per source per day; same-day re-runs
overwrite, except that a failed re-run never replaces a good envelope). The envelope's
filename date is the LOCAL day — the same day this journal is keyed on, so an evening run
files under today, not tomorrow (captured_at inside each envelope stays UTC).
Best-effort: if it fails, note the failure and continue with the journal —
the snapshot never blocks the summaries.
Get the exact prompts for today's digest:
python3 "$ROOT/bin/journal_summarize.py" --date <date> --dry-run
This prints the three prompts (narrative, technical, next-day-plan) without dispatching any
model — the current session is already paid for, so write the documents yourself instead of
spawning a nested call. Read journal/<date>/digest.json for the facts, follow each printed
prompt's required headings exactly, and use only digest facts — no invented details, no
transcript text. Save your three drafts as journal/<date>/narrative.md,
journal/<date>/technical.md, and journal/<date>/next-day.md. When done, summarize the three
documents for the user and link their paths — do not paste full drafts back into chat. When
signals.harness is present, follow the next-day prompt's ## Harness plan section —
per-task harness + model tier + ready-to-paste command + one-line WHY, advisory only.
For an unattended run (e.g. from the nightly schedule) let the script dispatch a model itself:
python3 "$ROOT/bin/journal_summarize.py" --date <date>
This tries a routed cheap/mid model tier first, with at most one escalation to the next tier,
and exits with code 3 if any of the three documents still failed after that escalation. Use
--start-tier to pick the starting tier and --model to pin one model id explicitly (this
skips escalation).
Drop meeting notes or email to-dos into journal/inbox.md as plain lines; the next collection
folds them into the digest so they resurface as next-day to-dos. Read
references/scheduling.md when the user wants the journal to run unattended: the launchd
install/uninstall/status/run surface and the manual launchctl step it never performs for
them.
Once a digest exists, build tomorrow's runbook — a dated, checkable plan of next-day tasks:
python3 "$ROOT/bin/journal_plan.py" build
It writes journal/plan/<date>.md — one dated, checkable card per planned task (drawn from
open kit tasks, WIP repos, the inbox, and journal/plan/seed.md), each with a What/How, an
ideal-harness line, and ready-to-paste commands for Claude Code, Copilot CLI, and Codex CLI
with cost estimates from the pricing files (Codex figures are API-equivalent proxies, never a
bill). Unchecked cards from earlier days carry forward automatically.
Enrich the What/How steps in this session (the current session is already paid for — the summaries precedent): run
python3 "$ROOT/bin/journal_plan.py" prompt
follow the printed prompt exactly (rewrite ONLY the What/How bodies, keep every other line
byte-identical — the H1, checkboxes, field lines, and Harness blocks), and save the revised
document back over the same journal/plan/<date>.md path.
On the day tasks are due, check and track them:
python3 "$ROOT/bin/journal_plan.py" check
python3 "$ROOT/bin/journal_plan.py" done <id> --date <file-date>
python3 "$ROOT/bin/journal_plan.py" defer <id> --to <date> --date <file-date>
(or just edit the checkboxes in the markdown by hand — the file is yours). On quiet days,
hand-add lines to journal/plan/seed.md (same plain-line format as the inbox) and rebuild.
Advisory only: the runbook prepares and tracks — it never schedules or executes anything. Every command above is text you choose to run, and there is no scheduler here by design (the user tabled it).
The journal has no Graph/OAuth/MCP connectors and never will by default: it never adds network,
OAuth, Graph, or MCP calls to fetch this content — any Teams/Outlook/Copilot Studio context
comes in only as offline text you carry over by hand. Read references/ask-the-tools.md when
the user wants that context folded into the journal: the offline ask-the-tools prompt pack and
the manual paste-back loop.
Writing the summaries sends the digest — project and repo names, commit subjects, kit task
titles, and any inbox text — to a model. The digest itself is metadata-only: it never carries
transcript or message text, only counts, ids, titles, and short strings like the above.
Everything the journal produces stays under the gitignored journal/ directory; nothing here
is committed to git. Pasted ask-the-tools bullets become inbox text, so they also travel to
the model when you write the summaries.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub agentmc15/polytropos --plugin polytropos17 skills in this plugin
/architectPlan a complex task once on the frontier tier (Fable 5.1 today) and write the execution kit — PLAN.md, TASKS.md, GUARDRAILS.md, and model-pinned agents — that a cheaper model then executes at near-Fable quality. Use when the user says "plan this with Fable", "architect this", "review this codebase", or escalates a complex task. Not for running a kit; that is /polytropos:execute./assess-improvementAssess an existing repository for a small, evidence-backed improvement opportunity and produce a scoped findings report and handoff briefs. Use when the user asks where a codebase could be improved, wants an evidence-driven improvement plan, or wants a harness or runtime ecosystem assessed — including multi-harness Polytropos assessments. Not for implementing, activating, enabling providers, or promoting a policy change./bench-routingRank published benchmark entries (Artificial Analysis Intelligence Index), recommend a model+effort per orchestration role given what each harness can actually dispatch, and check that recommendation against this repo's OWN measured routing outcomes. Use when the user asks whether a new/higher model should replace what a role currently runs on, wants a benchmark-informed routing recommendation, or asks "should we upgrade X to Y for this role" — the answer must be checked against the ledger, not just the benchmark./context-travelUse when a kit task needs a bounded, read-only lifecycle briefing, source explanation, or comparison of supplied validated views./context-weightReach for this when your context is huge, you're near 700K, cache reads are high, or you're asking should I compact — it explains what this skill can and cannot do, ranks prevent/prune/measure in priority order, and gives the checkpoint move before you compact./cost-reportAnalyze historical Claude Code usage from local transcripts — spend by model, most expensive sessions, and sessions where a cheaper model would have sufficed. Use when the user asks what they've spent, which model they've been using, or where they could save.