Agent skill

Recipe Session Post Mortem

by krakenfx in krakenfx/kraken-cli

Narrate a recorded session's post-mortem: replay the window, explain the P&L decomposition in plain terms, and deliver a presentation-ready summary.

MITAuto-check passedDevOps & Cloud

Install Recipe Session Post Mortem

skills CLI
$ npx skills add krakenfx/kraken-cli --skill recipe-session-post-mortem -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install krakenfx/kraken-cli recipe-session-post-mortem --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/krakenfx/kraken-cli.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/recipe-session-post-mortem .claude/skills/recipe-session-post-mortem && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
recipe-session-post-mortem
GitHub stars
750
Token cost
~1.9k tokens
SKILL.md length
934 words
Files
1
Skills in repo
59
Repo updated
First seen
Licence
MIT

At a glance

Narrate a recorded session's post-mortem: replay the window, explain the P&L decomposition in plain terms, and deliver a presentation-ready summary.

  • Works in 3 steps: Pull the P&L Decomposition → Replay the Timeline → Narrate
  • Tasks that involve Runbooks and postmortems
  • SKILL.md covers Important, Step 1: Pull the P&L…, Step 2: Replay the Timeline and Step 3: Narrate, plus 3 more sections
  • Calls jq

What it does

Recipe Session Post Mortem is an agent skill from krakenfx/kraken-cli. Narrate a recorded session's post-mortem: replay the window, explain the P&L decomposition in plain terms, and deliver a presentation-ready summary.

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in DevOps & Cloud, covering Runbooks and postmortems. The repository describes itself as: The first AI-native CLI for trading crypto, stocks, forex, and derivatives. The licence is MIT.

When your agent uses it

  • Tasks that involve Runbooks and postmortems

Example prompts

  • “/recipe-session-post-mortem”

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Pull the P&L Decomposition
  2. Replay the Timeline
  3. Narrate

What it can do on your machine

Read from SKILL.md and the folder at commit aa56e59. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • jq

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Recipe Session Post Mortem loads about 1.9k tokens when it runs. Until then it costs about 44 tokens; SKILL.md has 934 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~44
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from krakenfx/kraken-cli at commit aa56e59, republished under its MIT licence (© krakenfx). 934 words, ~1,914 tokens.

Download SKILL.mdSave it as .claude/skills/recipe-session-post-mortem/SKILL.md (or your agent's skills folder).
name
recipe-session-post-mortem
description
Narrate a recorded session's post-mortem: replay the window, explain the P&L decomposition in plain terms, and deliver a presentation-ready summary.
version
1.0.0

Session Post-Mortem

PREREQUISITE: Load kraken-playground to understand what a session is and where it lives.

Turn a stopped, recorded session into a story a non-trader can follow: what the market did, what the agent did, where every dollar of P&L went, and what to change next session. The CLI supplies the deterministic facts (kraken explain pnl, kraken replay); this recipe is the interpretive layer on top. The output is good enough to paste into a board deck.

Use this skill for:

  • reviewing a session after it stops
  • explaining a P&L number component-by-component in plain language
  • producing an executive-ready one-pager from a recorded session

Important

The session must be stopped (kraken session stop). explain pnl decomposes a stopped session's window against its recorded tape; on a recording session, stop it first.

The CLI stays deterministic; the narrative is yours. Every dollar figure, percentage, and count in the narrative must come from the command output — never estimate, extrapolate, or invent a number the JSON does not contain.

Step 1: Pull the P&L Decomposition

bash
kraken explain pnl --session "$SESSION_ID" -o json 2>/dev/null   # --session defaults to latest

One JSON object. The parts that drive the narrative:

  • anchor: starting_balance, final_value, total_pnl, currency — the headline numbers.
  • components[]: the waterfall. Each entry has kind, amount, and a ready-made plain-terms explanation:
    • price_movement — position changes valued at mid-market, before any costs
    • fees — what the fee rate took across all fills
    • spread — the half-spread paid by market fills (and limit-fill timing)
    • slippage — simulated slippage on market fills
    • residual — the reconciliation gap; components + residual always sum to total_pnl
  • trades[]: per-fill attribution (side, volume, price, notional, fees, spread, price_movement) plus the recorded reason — the agent's own words for why it traded.
  • window.symbols[]: what the market did (first_mid, last_mid, move_pct, avg_spread, frames).
  • caveats[] and missed_fills: honest unknowns. If either is non-empty, the narrative must mention them.

Useful digests:

bash
# Headline + waterfall
kraken explain pnl --session "$SESSION_ID" -o json 2>/dev/null \
  | jq '{anchor, waterfall: [.components[] | {kind, amount}]}'

# Cost per trade, with the agent's stated reason
kraken explain pnl --session "$SESSION_ID" -o json 2>/dev/null \
  | jq -r '.trades[] | [.side, .volume, .price, .fees, .reason] | @tsv'

Step 2: Replay the Timeline

bash
kraken replay --session "$SESSION_ID" --speed 1000 -o json 2>/dev/null

NDJSON, one event per line, in recorded order. --speed is a multiplier (0.01–1000, default 1 = real time with recorded gaps reproduced); for analysis always use --speed 1000 so the tape flushes as fast as pacing allows. Three record families interleave on the same clock:

  • Market frames — {channel, type: "snapshot"|"update", data: [...]}: the price tape.
  • Account events — {event: "initialized"|"order_filled"|"command", ...}: balances, fills with reference_quote, and command outcomes.
  • Decisions — {kind, symbol, reason, order_id}: the why behind each action, including skips.

Digest it rather than reading every tick:

bash
REPLAY=$(kraken replay --session "$SESSION_ID" --speed 1000 -o json 2>/dev/null)

# The action beats: every fill and every decision, in order
echo "$REPLAY" | jq -c 'select(.event == "order_filled" or .kind != null)'

# The price path: first, last, low, high of the recorded mids
echo "$REPLAY" | jq -s '[.[] | select(.channel == "ticker") | .data[0].last] |
  {first: .[0], last: .[-1], low: min, high: max}'

Step 3: Narrate

Weave both outputs into one story, in this order:

  1. Headline — one sentence: outcome and dominant cause, citing total_pnl and the largest component. "The session lost $20.70 on a flat market: $20.18 of it was fees from churning three fills through an 0.02% move."
  2. What the market did — from window.symbols and the replay price path: direction, size of the move, spread conditions.
  3. What the agent did — from the replay beats: each decision with its recorded reason, and whether the fill helped or hurt (per-trade price_movement vs fees + spread).
  4. Where the money went — the waterfall, every component, summing to the total. Name the dominant cost in plain terms.
  5. Patterns — call out what the numbers show: churning a flat market and paying the spread N times, buying strength that faded, skips that saved money, fees exceeding gross edge.
  6. Next steps — concrete, tied to the evidence: fewer/larger fills to cut the fee bill, limit orders to earn the spread instead of paying it, a wider trigger threshold, a different window.

Honesty rules:

  • Quote figures exactly (round for prose: dollars to cents, percentages to two decimals).
  • If caveats or missed_fills.orders are non-empty, state them plainly — they bound what the decomposition can claim.
  • Never attribute intent the decision log doesn't record. The reason fields are the only source for "why".
Show full SKILL.md (330 more words)Show less

Zero-Trade Sessions

A session with no fills is a valid post-mortem, not an error: trades is [] and every component is zero. Say so directly — "no trades were placed, so the balance is unchanged" — then narrate what the market did over the window and, if decisions were logged (skips with reasons), whether staying out was the right call given the tape.

Presenting to an Executive Audience

When the post-mortem is for a demo or leadership review, format the same content as a one-pager:

  • Lead with the headline sentence, then the waterfall as a small table: component, signed dollar amount, one plain-terms phrase each (crib from the explanation fields).
  • Follow with 3–6 timeline beats (time, action, reason, effect) — not the full tape.
  • Close with the next-step list.
  • No jargon in the top half: "cost of crossing the bid-ask gap" beats "half-spread on taker fills".
  • If the environment can render documents or artifacts, a single page with the waterfall as the centerpiece chart lands best; the narrative text stands alone if not.

The pitch this demonstrates: every automated trading session is fully auditable after the fact — the tape, the decisions, and the P&L reconcile to the cent, and an agent can explain it in plain language on demand.

Hard Rules

  • Read-only. This recipe never places orders, never starts or stops sessions (except telling the user to stop a recording one), and never writes into the session directory.
  • Every number in the narrative traces to a field in explain pnl or replay output.
  • The waterfall must be presented complete — components plus residual sum to the total; do not drop a component because it is small or unflattering.
  • Surface caveats and missed_fills whenever they are non-empty. A polished story that hides a caveat is wrong, not polished.
  • If you hit a mismatch between what you are trying to do and the CLI's interface or responses — including a mismatch between this skill and the installed CLI version's contract — feel free to submit feedback with kraken feedback.

© krakenfx, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/recipe-session-post-mortem of krakenfx/kraken-cli.

Open the folder on GitHubat commit aa56e59

Compare with similar skills

Recipe Session Post Mortem next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Recipe Session Post Mortem compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Recipe Session Post Mortem this skillkrakenfx/kraken-cli750—~1.9kAutomated safety check: PassMIT
Trader Memory Coretradermonty/claude-trading-skills3k2 repos~4.3kAutomated safety check: PassMIT
Author Migrationnrwl/nx29k—~12kAutomated safety check: NotesMIT
Write Notes Like Deepseekczm15053/write-notes-like-deepseek497—~2kAutomated safety check: PassNone
OpenRig Upgrade Proceduremvschwarz/openrig6.2k—~2.9kAutomated safety check: PassApache-2.0
GreptimeDB Release RunbookGreptimeTeam/greptimedb6.7k—~1.4kAutomated safety check: PassApache-2.0

Similar skills

  • Trader Memory Core

    tradermonty/claude-trading-skills

    Track investment theses across their lifecycle — from screening idea to closed position with postmortem.

    3k GitHub starsUsed in 2 repos~4.3k tokens
    DevOps & CloudAuto-check passed
  • Author or scope a first-party Nx migration. An agent skill from nrwl/nx.

    29k GitHub stars~12k tokensUpdated today
    DevOps & CloudAuto-check: notes
  • Write Notes Like Deepseek

    czm15053/write-notes-like-deepseek

    A skill your agent uses when a change is non-trivial by DSH standards (behavior, architecture, cross-file contracts, process/tooling, testing strategy, or on-disk/wire/config formats), when choosing…

    497 GitHub stars~2k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • OpenRig Upgrade Procedure

    mvschwarz/openrig

    Walks an agent through upgrading the OpenRig CLI and daemon one observed step at a time, keeping live seats alive and reconciling managed plugin files.

    6.2k GitHub stars~2.9k tokensUpdated today
    DevOps & CloudAuto-check passed
  • GreptimeDB Release Runbook

    GreptimeTeam/greptimedb

    Runbook for publishing a GreptimeDB version: pick the release branch, verify the Cargo version, then tag, create the GitHub release and open the docs note PR.

    6.7k GitHub stars~1.4k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Statem

    henryqin1997/statem

    A skill your agent uses when a long coding or research task should be managed with statem state-machine runbooks, including creating specs, starting or resuming runs, checking current state…

    1.3k GitHub stars~1.2k tokensUpdated 1 mo ago
    DevOps & CloudAuto-check passed

More from krakenfx/kraken-cli

All 59 skills in this repo
  • Kraken Alert Patterns

    krakenfx/kraken-cli

    Price alerts, threshold monitoring, and notification triggers for agents.

    750 GitHub stars~1.1k tokensUpdated 2 mo ago
    Auto-check passed
  • Kraken Autonomy Levels

    krakenfx/kraken-cli

    Progress from manual trading to full agent autonomy with controlled risk at each level.

    750 GitHub stars~1.3k tokensUpdated 2 mo ago
    Auto-check passed
  • Kraken Basis Trading

    krakenfx/kraken-cli

    Capture the spot-futures price spread with delta-neutral basis trades.

    750 GitHub stars~802 tokensUpdated 2 mo ago
    Auto-check passed
  • Kraken Dca Strategy

    krakenfx/kraken-cli

    Dollar cost averaging with scheduled buys and performance tracking.

    750 GitHub stars~1k tokensUpdated 2 mo ago
    Auto-check passed
  • Kraken Earn Staking

    krakenfx/kraken-cli

    Discover staking strategies, allocate funds, and track earn positions.

    750 GitHub stars~1k tokensUpdated 2 mo ago
    Auto-check passed
  • Kraken Error Recovery

    krakenfx/kraken-cli

    Handle order failures, network errors, and duplicate submissions safely.

    750 GitHub stars~1.1k tokensUpdated 2 mo ago
    Auto-check passed

Categories

Questions about Recipe Session Post Mortem

What does Recipe Session Post Mortem do?

Narrate a recorded session's post-mortem: replay the window, explain the P&L decomposition in plain terms, and deliver a presentation-ready summary. Recipe Session Post Mortem is an agent skill from krakenfx/kraken-cli. Narrate a recorded session's post-mortem: replay the window, explain the P&L decomposition in plain terms, and deliver a presentation-ready summary.

When should I use Recipe Session Post Mortem?

Recipe Session Post Mortem fits situations like: tasks that involve Runbooks and postmortems.

How do I install Recipe Session Post Mortem in Claude Code?

Run `npx skills add krakenfx/kraken-cli --skill recipe-session-post-mortem -a claude-code`. Or copy the skill folder (skills/recipe-session-post-mortem in krakenfx/kraken-cli) into .claude/skills/recipe-session-post-mortem in your project. Claude Code loads it when a task matches its description.

How do I install Recipe Session Post Mortem in Codex?

Run `npx skills add krakenfx/kraken-cli --skill recipe-session-post-mortem -a codex`. Or copy the skill folder (skills/recipe-session-post-mortem in krakenfx/kraken-cli) into .agents/skills/recipe-session-post-mortem in your project. Codex loads it when a task matches its description.

Can I use Recipe Session Post Mortem in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add krakenfx/kraken-cli --skill recipe-session-post-mortem -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/recipe-session-post-mortem, .gemini/skills/recipe-session-post-mortem, .github/skills/recipe-session-post-mortem and .opencode/skills/recipe-session-post-mortem in your project.

What does Recipe Session Post Mortem need to run?

Going by SKILL.md and its folder, Recipe Session Post Mortem needs the command-line tools its instructions call (jq).

Does Recipe Session Post Mortem access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Recipe Session Post Mortem safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Recipe Session Post Mortem use?

Recipe Session Post Mortem is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Recipe Session Post Mortem use?

About 1.9k tokens (SKILL.md is roughly 7.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Recipe Session Post Mortem?

Skills that share tags, products or a category with Recipe Session Post Mortem: Trader Memory Core (tradermonty/claude-trading-skills, 3k stars), Author Migration (nrwl/nx, 29k stars), Write Notes Like Deepseek (czm15053/write-notes-like-deepseek, 497 stars) and OpenRig Upgrade Procedure (mvschwarz/openrig, 6.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Recipe Session Post Mortem?

krakenfx (a GitHub organization) maintains it in krakenfx/kraken-cli, which has 750 GitHub stars. The repository holds 59 skills in this directory. The repository was last updated on August 7, 2026.

Source: krakenfx/kraken-cli on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.