
Retro Marimo Pair
- 1.5k installs
- 383 repo stars
- Updated July 29, 2026
- marimo-team/marimo-pair
retro-marimo-pair is a marimo agent skill that runs a structured session retrospective after marimo-pair usage so developers and marimo maintainers can diagnose friction in skill docs or marimo._code_mode and file improv
About
retro-marimo-pair is a post-session retrospective skill in marimo-team/marimo-pair for reviewing friction after pairing with marimo reactive notebooks. The workflow scans the conversation for user corrections, repeated attempts, compile-check failures, API misuse, workarounds, and context loss, then presents numbered friction points before discussing root causes across skill structure, skill gaps, misleading docs, API ergonomics, missing APIs, API bugs, and context-window limits. retro-marimo-pair never edits github://marimo-team/marimo-pair files without explicit user approval and defaults to drafting GitHub issues or discussions rather than shipping fixes during the retro. Developers and marimo team members invoke it after /marimo-pair sessions when they want to improve the marimo-pair SKILL.md, reference docs, or marimo._code_mode based on real pairing pain. Trigger phrases include retro, session review, what went wrong, improve the skill, and /retro-marimo-pair.
- Pair-programming flow for marimo notebooks
- Preserves reactive cell execution model
- Supports retro capture after pairing sessions
- Bridges analysis, docs, and agent experiments
Retro Marimo Pair by the numbers
- 1,518 all-time installs (skills.sh)
- +196 installs in the week ending Aug 5, 2026 (Skillselion tracking)
- Ranked #15 of 290 Python skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/marimo-team/marimo-pair --skill retro-marimo-pairAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 1.5k |
|---|---|
| repo stars | ★ 383 |
| Last updated | July 29, 2026 |
| Repository | marimo-team/marimo-pair ↗ |
How do you retrospective a marimo-pair agent session?
Pair with marimo reactive notebooks during build—draft analyses, refactor cells, and capture retro notes for data or agent workflows without breaking notebook reactivity.
Who is it for?
Developers and marimo contributors who finished a marimo-pair session and want structured feedback on skill docs or _code_mode friction.
Skip if: Teams seeking live notebook pairing or code execution should use marimo-pair instead of retro-marimo-pair.
When should I use this skill?
The user says retro, session review, what went wrong, improve the skill, friction, or runs /retro-marimo-pair after pairing.
What you get
Numbered friction summary, root-cause diagnoses, and draft GitHub issue or discussion text for marimo-pair improvements.
- Friction point summary with conversation quotes
- Root-cause diagnosis per selected issue
- Draft GitHub issue or discussion text
By the numbers
- Four-step retrospective workflow: analysis, root cause, diagnosis, file or follow up
- Skill guard rail keeps marimo-pair SKILL.md under 500 lines when edits are approved
Files
Session Retrospective
You are helping a marimo team member review a pairing session to find friction and turn it into improvements. The target is always one or both of:
1. The marimo-pair skill (github://marimo-team/marimo-pair) 2. `marimo._code_mode` — the underlying notebook metaprogramming API
This is a conversation, not an automated report. You surface findings, the user steers which ones matter, and together you decide what to do about them.
Guard Rails
- NEVER edit files in
github://marimo-team/marimo-pairwithout explicit
user approval.
- ALWAYS start with session analysis (Step 1) — do not jump to solutions.
- Present friction points before root causes — let the user choose which
ones to dig into.
- If the user invoked with a specific complaint, focus your analysis there but
still scan for other friction in the background.
Step 1: Session Analysis
Review the current conversation and identify friction. Look for:
| Signal | What to look for |
|---|---|
| User frustration | Corrections ("no not that"), repeated attempts, backtracking, confusion, tone shifts |
| Inefficiency | Multiple rounds for a one-step task, over-engineering, wrong API usage |
| Errors | Compile-check failures, runtime errors, silent failures, wrong output |
| Workarounds | User or Claude working around a limitation instead of doing it directly |
| Context loss | Claude forgetting instructions from earlier, re-asking things the skill covers |
Present a numbered summary of friction points found. For each, note:
- What happened (brief)
- Where in the conversation it occurred (quote or paraphrase)
- Initial category guess (skill structure / skill gap / API issue / etc.)
Then ask: "Which of these should we dig into? Or is there something I missed?"
Step 2: Root Cause Discussion
For each friction point the user selects, work through these lenses:
| Lens | Question | Example improvement |
|---|---|---|
| Skill structure | Was the right info in the skill but hard to find? Buried in reference/ when it should be in SKILL.md? | Promote to guard rail, restructure progressive disclosure |
| Skill gap | Was information missing entirely from the skill? | Add new section, example, or anti-pattern |
| Misleading docs | Did the skill say something that led Claude astray? | Correct the docs, add clarifying examples |
| API ergonomics | Was _code_mode clunky or unintuitive for this task? | Propose API improvement (better defaults, clearer errors) |
| Missing API | Is there something _code_mode simply can't do that it should? | Design a new API surface |
| API bug | Did _code_mode behave incorrectly? | Characterize the bug, propose fix or workaround |
| Context window | Did Claude forget instructions due to long context? | Shorter, more prominent guard rails |
Discuss each lens briefly, then converge on the most likely root cause with the user. It's okay to have multiple contributing causes.
Step 3: Diagnose & Capture
The goal of a retro is diagnosis, not a contribution. Based on the root cause, write up a clear diagnosis the team can act on — don't jump to proposing or authoring a fix.
For each friction point, produce:
- Diagnosis — What went wrong and why it was frustrating, in plain terms
- Contributing factors — Skill structure, gap, misleading docs, API
ergonomics, missing API, API bug, context window (from Step 2)
- Considerations — Trade-offs, open questions, or things that would need to
be true for a fix to make sense. Note possible directions here, but frame them as considerations rather than committed solutions.
The default next step is to capture the diagnosis as an issue or discussion so the team can weigh it — not to immediately make a contribution. Concrete code changes (skill edits, API designs) come after an issue/discussion exists and the user explicitly chooses to go further.
Present the diagnosis and ask: "Want me to draft this as an issue or discussion?"
Step 4: File or Follow Up
Default: file an issue / discussion
Write it up clearly for the marimo team to triage:
- Problem: What happened and why it's painful
- Current behavior: What the skill or
_code_modedoes today - Considerations: Trade-offs and open questions (not a committed solution)
- Example: A minimal snippet or quote from the session, if helpful
Leave the actual filing to the user — do not auto-file. This is the preferred outcome: surface friction for the team rather than ship a fix from the retro.
Only if the user explicitly wants to go further
A skill edit or API change should follow an issue/discussion, not replace it. If — and only if — the user explicitly asks to draft a change now:
1. Read the target file in github://marimo-team/marimo-pair 2. Show the proposed diff to the user 3. Only apply after explicit sign-off 4. After applying, verify SKILL.md stays under 500 lines (reference/ files have no limit)
Wrapping up
After completing the cycle for the selected friction points, ask if the user wants to revisit any remaining items from Step 1, or if the retro is done.
Key Files Reference
| File | Purpose |
|---|---|
github://marimo-team/marimo-pair/SKILL.md | Main skill instructions |
github://marimo-team/marimo-pair/reference/execute-code.md | Scratchpad & cell operation recipes |
github://marimo-team/marimo-pair/reference/rich-representations.md | Widget & display patterns |
github://marimo-team/marimo-pair/scripts/ | Bundled discovery & execution scripts |
To inspect the live _code_mode API surface during a retro, the user can run in their notebook scratchpad:
import marimo._code_mode as cm
async with cm.get_context() as ctx:
# List all public methods/attributes
print([x for x in dir(ctx) if not x.startswith('_')])
help(ctx)marimo._code_mode API Surface
This is a point-in-time snapshot for retro discussions. The live API may
differ — always verify withdir(ctx)andhelp()in the running session.
Entry Point
import marimo._code_mode as cm
async with cm.get_context() as ctx:
... # all operations go hereThe async with is mandatory — without it, operations silently do nothing. The context manager auto-compile-checks on exit: syntax errors, multiply-defined names, and cycles are caught before any graph mutation occurs.
Context Object (ctx)
Reading State
| Attribute / Method | Returns | Notes |
|---|---|---|
ctx.cells | List of cell objects | Each has .cell_id, .code, .name |
ctx.graph | Kernel graph | Has refs/defs info (cells themselves lack this) |
dir(ctx) | All attributes | Always check this first — API evolves |
Cell Operations (Mutating)
| Operation | Method | Notes |
|---|---|---|
| Create cell | ctx.create_cell(code, ...) | Adds to graph, auto-compile-checks |
| Edit cell | ctx.edit_cell(cell_id, code, ...) | Edits existing cell in-place |
| Delete cell | ctx.delete_cell(cell_id) | Confirm with user first |
| Move cell | ctx.move_cell(cell_id, ...) | Reorder in notebook |
Execution
| Operation | Method | Notes |
|---|---|---|
| Execute code (scratchpad) | Via execute-code.sh or MCP | Results return to Claude, not user |
| Execute cell | ctx.run_cell(cell_id) | Explicitly queue execution; create_cell / edit_cell are structural only and do not auto-execute |
Package Management
| Operation | Method | Notes |
|---|---|---|
| Install package | Explore via dir(ctx) | Prefer API over uv add |
Known Friction Points
Track recurring issues here as they surface in retros:
- Compile-check false positives on delete+create: When deleting a cell and
creating a replacement that defines the same variables, the compile check can see the old definitions still present and reject the new cell. Workaround: use check=False or edit_cell instead of delete+create.
- `ctx.cells` lacks refs/defs: Cell objects don't expose which variables
they reference or define. Must use ctx.graph directly for variable flow analysis.
Related skills
How it compares
Use retro-marimo-pair after pairing to improve tooling; use marimo-pair itself for live notebook kernel execution and cell editing.
FAQ
Can retro-marimo-pair edit the marimo-pair repository automatically?
retro-marimo-pair never edits files in github://marimo-team/marimo-pair without explicit user approval. The default outcome is a diagnosis and draft GitHub issue or discussion; concrete SKILL.md diffs happen only when the user explicitly requests them after reviewing the proposed
What signals does retro-marimo-pair look for in a session?
retro-marimo-pair reviews the conversation for user frustration such as repeated corrections, inefficient multi-round tasks, compile-check or runtime errors, workarounds around _code_mode limits, and context loss where earlier skill instructions were forgotten. Each finding is ca