Logo vun Hatch3r Report

Hatch3r Report

Organisatioun
hatch3r
hatch3r-report

Generates an in-chat session report from the active or named transcript — every tool call, sub-agent delegation, and file edit, with diagnostics for missed parallelism, redundant work, and over-serialization. Default = current session, executive summary, in-chat.

Iwwersiicht

Editeurhatch3r
Repositoryhatch3r
Skill-Nummhatch3r-report
Stären
26
Forks
7
Matgeliwwert Fichieren
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Vum hatch3r op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Hatch3r Report an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/hatch3r/hatch3r/tree/main/skills/hatch3r-report
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hatch3r/hatch3r.git /tmp/hatch3r
mkdir -p .claude/skills
cp -r /tmp/hatch3r/skills/hatch3r-report .claude/skills/hatch3r-report
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Hatch3r Report an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Hatch3r Report automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Hatch3r Report net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Session Report — Agentic Action Replay

Render an in-chat report of what happened in a Claude Code session: every tool call, every sub-agent Agent delegation, every file edit, every hook event. Default = current session, executive summary, in-chat. Flags extend scope and depth. Two audiences: (a) users who want to understand the session end-to-end; (b) maintainers investigating runtime shape for framework-level optimizations.

Quick Start

Task Progress:
- [ ] Step 0: Detect ambiguity (P8 B1) — only if invocation arguments are ambiguous
- [ ] Step 1: Discover the session
- [ ] Step 2: Aggregate via jq
- [ ] Step 3: Compute diagnostics
- [ ] Step 4: Render executive summary
- [ ] Step 5: Render verbose timeline (--verbose only)
- [ ] Step 6: Save to disk (--save only)

Step 0 — Detect Ambiguity (P8 B1)

This skill has no up-front scope ASK — it is read-only over local transcripts and mutates nothing outside .hatch3r/reports/ (and only with --save). Its two error-path ASKs use the platform-native question tool per agents/shared/user-question-protocol.md, each rendered as numbered options with a mandatory Default if no response: line:

  • --session <value> fails to resolve to a readable file → (1) re-run with --list and pick a session, (2) report the newest session in this project, (3) supply an absolute .jsonl path. Default if no response: 1 (--list).
  • --save would overwrite an existing report → (1) write a timestamp-suffixed filename, (2) overwrite in place. Default if no response: 1 (timestamp-suffixed).

See Error Handling for the terminal resolution/permission failures.

Argument Parsing

FlagEffect
--session <id|path>Target a UUID under the project slug dir, or an absolute .jsonl path. Default = newest-mtime jsonl in current project slug.
--listExclusive. Print the 5 most-recent sessions in this project (sessionId, mtime, first-user-message preview 60 chars). Skips all other rendering.
--verboseAppend a chronological per-turn timeline after the executive summary.
--saveAfter rendering in-chat, also write to .hatch3r/reports/{sessionId-short8}-{YYYYMMDD-HHMMSS}.md.

--list takes precedence over --session, --verbose, --save. All other flags compose.

Step 1 — Discover the Session

Compute the project slug from the working directory: SLUG="$(pwd | sed 's|/|-|g')". The transcript directory is ~/.claude/projects/${SLUG}. List *.jsonl files; the active session is the newest by mtime (ls -t *.jsonl | head -1). When --session <value> is provided, resolve a 36-char UUID against the slug dir as ${value}.jsonl, otherwise treat as an absolute path. When --list is set, enumerate the top-5 newest jsonl files; for each, parse the first type=user record and emit <short-id> <mtime> <first-60-chars-of-user-text>.

Step 2 — Aggregate via jq

Run jq over the JSONL to produce a single structured JSON of counts. Persist to $(mktemp) so the LLM reads aggregated data only. Sample pipeline:

bash
jq -s '
  def tu: [.[] | select(.message.content?) | .message.content[] | select(.type=="tool_use")];
  def tr: [.[] | select(.message.content?) | .message.content[] | select(.type=="tool_result")];
  def asst_turns: [.[] | select(.type=="assistant" and (.message.content?))];
  def thinks: [.[] | select(.message.content?) | .message.content[] | select(.type=="thinking") | .text];
  {
    sessionId: .[0].sessionId, firstTs: .[0].timestamp, lastTs: .[-1].timestamp,
    cwd: .[0].cwd, gitBranch: .[0].gitBranch, records: length,
    toolCounts: (tu | group_by(.name) | map({tool: .[0].name, count: length}) | sort_by(-.count)),
    distinctReads: (tu | map(select(.name=="Read") | .input.file_path) | unique | length),
    distinctEdits: (tu | map(select(.name=="Edit" or .name=="Write") | .input.file_path) | unique | length),
    topReads: (tu | map(select(.name=="Read") | .input.file_path) | group_by(.) | map({path: .[0], count: length}) | sort_by(-.count) | .[0:3]),
    agentCalls: (tu | map(select(.name=="Agent") | {sub: (.input.subagent_type // "general-purpose"), prompt: (.input.prompt[:80] // "")})),
    bashCmds: (tu | map(select(.name=="Bash") | .input.command)),
    turnLens: [asst_turns[] | (.message.content | map(select(.type=="tool_use")) | length)],
    thinkingChars: ([thinks[] | length] | add // 0),
    errorResults: (tr | map(select((.content | tostring) | test("error|failed"; "i"))) | length),
    totalResults: (tr | length)
  }' "$JSONL"

thinkingChars is the summed length of every thinking block's text — required input for D-LOOP-01 (thinking chars ÷ (tool_use count + 1) > 1200).

The LLM reads the resulting JSON, computes derived metrics (parallel-batch count = turns with ≥2 tool_use; sequential count = turns with exactly 1), and builds the rendered tables.

Step 3 — Compute Diagnostics

Apply each rule in §Diagnostic Heuristics over the aggregated structure. Each fired diagnostic produces a record {id, severity, turns:[...], evidence, suggestion}. Emit at most one fire per rule per session (consolidate same-rule fires across turns into one record). If zero rules fire, render None — execution shape is clean.

Step 4 — Render Executive Summary

Always emit. Headings, order, and content per §Output Format. Mask obvious secret patterns (sk-..., ghp_..., xoxb-..., AIza..., Bearer ...) in any rendered tool_use input field. Truncate Bash commands and Agent prompts to ≤80 chars in tables.

Step 5 — Render Verbose Timeline (--verbose only)

Append ## Timeline. For each assistant turn containing ≥1 tool_use, emit a numbered block: turn index, ISO timestamp, elapsed-since-start, optional thinking: N chars summary, one line per tool_use (tool name + first 60 chars of primary input field), and a parallel/sequential marker — → {n} tool_use blocks ✓ parallel when n≥2, → 1 tool_use ⚠ sequential when n=1.

Step 6 — Save to Disk (--save only)

Create .hatch3r/reports/ if missing. Write the rendered markdown (executive summary + timeline if --verbose set) to .hatch3r/reports/{sessionId-short8}-{YYYYMMDD-HHMMSS}.md. Append a ## Raw Counts (machine-readable) section containing the jq-aggregated JSON in a fenced json block — this lets future tooling grep across sessions without re-parsing the source JSONL. Print the file path back to chat. The .hatch3r/ directory is gitignored.

Output Format

markdown
## Session Report — a5d750f7

**Window:** 2026-05-12 09:14:03 → 09:47:21 (33m 18s, 272 records)
**Project:** hatch3r (release/1.7.1)

### Tool Activity (91 tool calls)

| Tool | Calls | Notable |
|------|------:|---------|
| Read | 47 | 12 distinct files; validate.ts read 4x |
| Bash | 21 | 6 parallel batches, 15 sequential |
| Edit | 18 | 9 distinct files |
| Task |  4 | 3 general-purpose, 1 explore — all sequential |
| Grep |  1 | — |

### Sub-Agent Delegation (4 Agent calls)

| # | Subagent | Prompt (first 60) | Files touched |
|---|----------|-------------------|---------------|
| 1 | general-purpose | "Find references to validateCommandOrch..." | 0 |
| 2 | Explore | "Map existing commands that overlap..." | 0 |
| 3 | Explore | "Find conversation transcript access..." | 0 |
| 4 | Plan | "Design hatch3r-report command..." | 0 |

### File Footprint

- 12 distinct files read; 9 distinct files edited
- Top 3 most-read: src/cli/commands/validate.ts (4x), skills/hatch3r-context-health/SKILL.md (2x), CHANGELOG.md (2x)

### Diagnostics

- WARN D-PAR-01 Missed parallelism: turns 7, 9, 11 each issued one Read on disjoint paths → batch into one assistant turn.
- WARN D-RED-01 Redundant Read: src/cli/commands/validate.ts read at turns 4, 8, 22, 31 with no Edit between turns 4 and 31.
- INFO D-PAR-02 Sub-agent fan-out: 4 Agent calls at turns 44, 53, 67, 78 — disjoint subsystems → eligible for parallel fan-out.

### Suggested Next Action

Re-run `/hatch3r-report --verbose` for the chronological timeline.

Diagnostic Heuristics

IDHeuristicTriggerSeverity
D-PAR-01Missed parallelism (same-tool sequential)≥3 consecutive assistant turns each with exactly 1 tool_use of the same tool type targeting disjoint inputsWARN
D-PAR-02Sub-agent fan-out missed≥2 Agent tool_use blocks within 10 turns where prompt subjects target disjoint path prefixesWARN
D-RED-01Redundant ReadSame Read.file_path in ≥3 tool_use blocks with no intervening Edit/Write on that pathWARN
D-RED-02Re-Bash identical commandSame Bash.command (trimmed exact match) ≥2 times within 20 turnsINFO
D-LOOP-01High thinking-to-action ratioTotal thinking chars ÷ (tool_use count + 1) > 1200 AND tool_use count < 8WARN
D-LOOP-02Tool burst → stallOne turn with ≥5 tool_use blocks AND next turn with 0 AND ≥3 subsequent turns with 0 tool_useINFO
D-ERR-01Tool-result error ratetool_result.content matches /error|failed/i in >20% of resultsWARN
D-PATH-01File stalenessPath read at turn N, edited at turn M, re-read at turn P>M+15 with no intervening edit on that pathINFO
D-SUB-01Sub-agent returning emptyAgent tool_result body <200 chars AND no subsequent Edit on any path the prompt referencedWARN

Each fired record: {id, severity, turns:[n,...], evidence, suggestion}. Consolidate same-rule fires into one record per session.

Error Handling

ConditionAction
~/.claude/projects/{slug} does not existPrint: "No Claude Code transcripts found for this project. Slug: {slug}". Exit.
Slug dir exists but contains no *.jsonlPrint: "Project directory empty — no sessions to report on." Exit.
--session <id> does not resolve to a readable filePrint: "Session {id} not found under {slug}. Use --list to see available sessions." Exit.
jq not installedPrint: "jq is required. Install via brew install jq (macOS) or your distro's package manager, then retry." Exit.
Malformed JSONL record encounteredSkip the record; increment a skipped counter; surface the count in the executive summary footer when non-zero.
Read access denied to a transcript filePrint: "Cannot read {path}: permission denied." Exit.

Guardrails

  • Never modify the JSONL. Read-only access. All scratch files go to $(mktemp) and are deleted at end-of-run.
  • Mask obvious secret patterns (sk-, ghp_, xoxb-, AIza, Bearer ) in any rendered tool_use input — substitute {REDACTED-{prefix}}. The transcript may contain ephemeral tokens from user pastes.
  • Never write outside .hatch3r/reports/. The --save target is fixed; do not honor flags or env vars that redirect output to other paths.
  • Never abort on a malformed record. Skip-and-count is the contract; aborting would hide the rest of the session from the operator (Silent Failure Contract — surface the skip count rather than swallowing it).
  • Honor the iteration summary contract (rules/hatch3r-iteration-summary.md) at the end of the parent assistant turn that invoked this skill. The report content is not a substitute for the canonical recap (status + outcome + telemetry facets).

Heefeg gestallte Froen

Wat mécht de KI-Skill Hatch3r Report?

Generates an in-chat session report from the active or named transcript — every tool call, sub-agent delegation, and file edit, with diagnostics for missed parallelism, redundant work, and over-serialization. Default = current session, executive summary, in-chat.

Firwat Hatch3r Report op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Hatch3r Report besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Hatch3r Report an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/hatch3r/hatch3r/tree/main/skills/hatch3r-report an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Hatch3r Report benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Hatch3r Report benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Hatch3r Report domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Hatch3r Report gratis?

Jo. De Skill gëtt vum hatch3r ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇