Session observatory live

From Tibsfox/gsd-skill-creator · View interactive version

Session observatory live is an AI agent skill from the GitHub repository Tibsfox/gsd-skill-creator. Conversational guide for using tools/session-retro/observe.mjs to capture friction, wins, corrections, decisions, gaps, tool-use, and checkpoints as they happen during a session. Use at session start (to kick off the log), at inflection points (to record events), and at session end (to archive and f

How to use this skill

Skill file

Session Observatory — Live Event Logging

Most session retrospectives are written from memory at the end. Memory is

lossy. This skill captures the habit of logging events as they happen, so the

retrospective has real data to work with.

When to Activate

Bash tool calls, so the started_commit is recorded.

longer than expected, user corrected you.

to future sessions.

SESSION-RETRO.md.

Commands

# Start
node tools/session-retro/observe.mjs start "<mission-name>"

# Log an event
node tools/session-retro/observe.mjs event <kind> "<label>" '<json-payload>'

# Check in on the log
node tools/session-retro/observe.mjs status

# End (archives current.jsonl to a dated file)
node tools/session-retro/observe.mjs end

Event Kinds (standard)

| Kind | When | Example label |

|------|------|---------------|

| friction | Something took more effort than it should have | "read-before-edit hook fired N times" |

| win | Something worked notably well | "idempotent pipeline saved 3 re-runs" |

| correction | User or hook corrected direction | "user reminded: no Co-Authored-By" |

| tool-use | Notable tool invocation | "installed better-sqlite3 as optional dep" |

| decision | Judgment call deserving review | "committed 1,881 generated files" |

| gap | Missing skill/agent/chipset | "no batch-rewriter for N-script cascade" |

| checkpoint | Progress marker for long-running work | "Pass 2 chapters: 300/602" |

| tokens | Token consumption (dual-writes to token-budget) | "pass-2-chapter-gen" |

Free-form kinds are allowed but less useful for aggregation. Prefer the

standard list.

Tokens event — special positional form

tokens is the one kind where positional args are reinterpreted to keep the

call site short and to dual-write to current.tokens.jsonl:

# observe.mjs event tokens <in_tokens> <out_tokens> [label]
node tools/session-retro/observe.mjs event tokens 45000 3200 "pass-2-chapter-gen"

The entry lands in both current.jsonl (as a tokens event) and

current.tokens.jsonl (as a budget entry), so token-budget.mjs status and

the retrospective observations stay in sync without a second call.

Payload Conventions

Payloads are free-form JSON. Common fields:

Retroactive Logging

If you didn't log live, you can backfill at session close by reviewing what

happened and calling observe event for each remembered moment. Better than

nothing. The timestamp will be session-end rather than event-time, but the

kinds and labels are still useful.

Integration with Retrospective Generator

Events from current.jsonl are consumed by

tools/session-retro/generate.mjs and rendered in the SESSION-RETRO.md under

Observations, grouped by kind. The human-authored sections

(What Worked, What Could Be Better) then reference specific events as

evidence.

Example — This Skill's First Use

The release-history feature session logged 33 events retroactively:

LLM run, ghost-seeding cascade, over-eager regex, hidden drift)

fresh-repo demo)

Those 33 events became the concrete evidence for the retro's

"What Worked" / "What Could Be Better" / "Recommendations" sections.

Anti-patterns

H3 headings — 57 files hid as a result" is useful.

and the JSONL never archives. Generate the retro before context dies.

Related

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.