Skip to content

docs: consolidate AI guides and route readers to marimo pair#10293

Merged
akshayka merged 3 commits into
mainfrom
aka/docs-ai-simplification
Jul 23, 2026
Merged

docs: consolidate AI guides and route readers to marimo pair#10293
akshayka merged 3 commits into
mainfrom
aka/docs-ai-simplification

Conversation

@akshayka

Copy link
Copy Markdown
Contributor

The AI docs had grown page-by-page as features shipped: four different ways to use an agent documented across four pages that didn't reference each other, skills explained in three places, an anywidget prompt duplicated verbatim on two pages, and marimo pair — the recommended path — not prominently documented.

This PR merges prompts.md, skills.md, and using_claude_code.md into a single "Customize your agent" guide (skills, slash commands, hooks). It also rewrites the Generate with AI index as an orientation page that lays out the three paths: pair an agent CLI (recommended), use the editor's built-in assistant, or generate from scratch with marimo new. The nav now names marimo pair, and ai_completion.md has a single nav home instead of appearing under two sections. Old URLs redirect via vercel.json.

The merged guide drops the AGENTS.md/CLAUDE.md section: the marimo-notebook skill covers the same ground and is loaded on demand and centrally updated, while the curl'd snippet injected 370 stale lines into every conversation. (docs.marimo.io/CLAUDE.md itself still exists for current consumers.) The guide also recommends the cross-agent .agents/skills/ convention over .claude/skills/, and scopes the slash-command and hook examples to Claude Code explicitly.

Pages that overlap with pair (agents.md, mcp.md, ai_completion.md, text_to_notebook.md) each get one pointer with a distinct job — disambiguation, steering away from heavier integrations, or iterating on a generated notebook — rather than scattered mentions.

Other drive-by fixes: Fixes the broken thumbnail links on the examples index, swaps the tip admonition icon from Material's default flame to a lightbulb outline, and fixes a few typos.

akshayka added 2 commits July 22, 2026 16:45
The AI docs had grown page-by-page as features shipped: four different
ways to use an agent with marimo documented across four pages that
didn't reference each other, skills explained in three places, the
anywidget prompt duplicated verbatim on two pages, and marimo pair —
the recommended path — not prominently documented.

This PR merges `prompts.md`, `skills.md`, and `using_claude_code.md` into
a single "Customize your agent" guide (skills, slash commands, hooks).
It also rewrites the Generate with AI index as an orientation page that
lays out the three paths: pair an agent CLI (recommended), use the
editor's built-in assistant, or generate from scratch with `marimo new`.
The nav now names marimo pair, and `ai_completion.md` has a single nav
home instead of appearing under two sections. Old URLs redirect via
vercel.json.

The merged guide drops the AGENTS.md/CLAUDE.md section: the
marimo-notebook skill covers the same ground and is loaded on demand
and centrally updated, while the curl'd snippet injected 370 stale
lines into every conversation. (docs.marimo.io/CLAUDE.md itself still
exists for current consumers.) The guide also recommends the
cross-agent `.agents/skills/` convention over `.claude/skills/`, and
scopes the slash-command and hook examples to Claude Code explicitly.

Pages that overlap with pair (`agents.md`, `mcp.md`, `ai_completion.md`,
`text_to_notebook.md`) each get one pointer with a distinct job —
disambiguation, steering away from heavier integrations, or iterating
on a generated notebook — rather than scattered mentions.

Other drive-by fixes: Also fixes the broken thumbnail links on the
examples index (raw HTML hrefs aren't rewritten by mkdocs, so `.md`
paths and a wrong-case anchor 404'd), swaps the tip admonition icon from
Material's default flame to a lightbulb outline, and fixes a few typos.
Copilot AI review requested due to automatic review settings July 22, 2026 23:56
@vercel

vercel Bot commented Jul 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
marimo-docs Ready Ready Preview, Comment Jul 23, 2026 12:39am

Request Review

@akshayka akshayka added the documentation Improvements or additions to documentation label Jul 22, 2026
@akshayka
akshayka requested review from mscolnick and removed request for Copilot July 22, 2026 23:56

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 15 files

Architecture diagram
sequenceDiagram
    participant User
    participant Browser
    participant Vercel as Vercel CDN
    participant Docs as Docs Site (Static)
    participant Index as Generate with AI Index
    participant Customize as Customize Your Agent Guide
    participant OldURL as Old URLs (/prompts, /skills, /using_claude_code)
    participant Pair as marimo pair Guide
    participant EditorAI as Editor AI Assistant Guide

    Note over User,EditorAI: New documentation flow after consolidation

    User->>Browser: Clicks "Generate with AI" nav link
    Browser->>Docs: GET /guides/generate_with_ai/
    Docs-->>Browser: Returns index page
    Note over Browser,Index: Index now presents three paths

    alt User chooses "Customize your agent"
        User->>Browser: Clicks "Customize your agent"
        Browser->>Docs: GET /guides/generate_with_ai/customize_your_agent/
        Docs-->>Browser: Returns merged guide (skills, slash commands, hooks)
        Browser-->>User: Shows merged content

        Note over User,Customize: Guide recommends `marimo pair` and `--watch` flag

    else User chooses "Pair with agents"
        User->>Browser: Clicks "Pair with agents via marimo pair"
        Browser->>Docs: GET /guides/generate_with_ai/marimo_pair/
        Docs-->>Browser: Returns pair guide
        Browser-->>User: Shows how to install and use marimo pair

    else User chooses "Editor AI assistant"
        User->>Browser: Clicks "The editor's AI assistant"
        Browser->>Docs: GET /guides/editor_features/ai_completion/
        Docs-->>Browser: Returns AI completion guide
        Note over Browser,EditorAI: Guide now points to pair at top
        Browser-->>User: Shows editor AI features

    else User chooses "Generate with marimo new"
        User->>Browser: Clicks "Generate notebooks with marimo new"
        Browser->>Docs: GET /guides/generate_with_ai/text_to_notebook/
        Docs-->>Browser: Returns one-shot notebook generation
        Note over Browser: Guide suggests iterating with marimo pair
    end

    Note over User,OldURL: Old bookmarks and external links redirect permanently

    User->>Browser: Opens old URL (e.g. /guides/generate_with_ai/prompts/)
    Browser->>Vercel: GET /guides/generate_with_ai/prompts/
    Vercel->>Vercel: Match redirect in vercel.json
    Vercel-->>Browser: 301 → /guides/generate_with_ai/customize_your_agent/
    Browser->>Docs: GET /guides/generate_with_ai/customize_your_agent/
    Docs-->>Browser: Returns same merged guide

    Note over User,Customize: Cross-references from other pages now point to pair

    User->>Browser: Reads anywidget.md (old tip)
    Browser->>Docs: GET /api/inputs/anywidget/
    Docs-->>Browser: Updated tip → "install official skills" with link to customize page

    User->>Browser: Reads agents.md
    Browser->>Docs: GET /guides/editor_features/agents/
    Docs-->>Browser: Added tip recommending marimo pair instead

    User->>Browser: Reads mcp.md
    Browser->>Docs: GET /guides/editor_features/mcp/
    Docs-->>Browser: Added pointer to marimo pair for agent-driven notebooks

    User->>Browser: Reads ai_completion.md
    Browser->>Docs: GET /guides/editor_features/ai_completion/
    Docs-->>Browser: Added tip steering to marimo pair, updated agents link

    User->>Browser: Reads text_to_notebook.md
    Browser->>Docs: GET /guides/generate_with_ai/text_to_notebook/
    Docs-->>Browser: Added tip to iterate generated notebook via marimo pair
Loading

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread docs/guides/generate_with_ai/customize_your_agent.md
Comment thread docs/guides/generate_with_ai/customize_your_agent.md
Comment thread docs/guides/generate_with_ai/customize_your_agent.md Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR consolidates and reorients marimo’s AI documentation to reduce duplication, clarify the recommended “marimo pair” workflow, and keep legacy URLs working via redirects.

Changes:

  • Consolidates multiple agent-customization docs into a single “Customize your agent” guide and updates the “Generate with AI” landing page to describe the three supported paths.
  • Updates MkDocs navigation + theme tip icon, and adds Vercel redirects for removed AI doc URLs.
  • Fixes/updates cross-page pointers and broken example thumbnail links.

Reviewed changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
mkdocs.yml Updates nav labels/structure for AI docs and sets a custom “tip” admonition icon.
docs/vercel.json Adds permanent redirects from removed AI doc URLs to the consolidated guide.
docs/guides/wasm.md Updates skills link to point into the consolidated “Customize your agent” guide.
docs/guides/generate_with_ai/using_claude_code.md Removes now-duplicated Claude Code customization content (redirected).
docs/guides/generate_with_ai/text_to_notebook.md Adds guidance to iterate on generated notebooks via marimo pair; minor link/title tweak.
docs/guides/generate_with_ai/skills.md Removes now-duplicated skills page content (redirected).
docs/guides/generate_with_ai/prompts.md Removes now-duplicated prompts page content (redirected).
docs/guides/generate_with_ai/marimo_pair.md Minor wording/heading cleanup and formatting fixes.
docs/guides/generate_with_ai/index.md Rewrites as an orientation page describing the three AI workflows and linking into the new structure.
docs/guides/generate_with_ai/customize_your_agent.md New consolidated guide covering skills, slash commands, and hooks.
docs/guides/editor_features/mcp.md Adds a pointer steering users to marimo pair; needs a small wording consistency fix re: tool exposure.
docs/guides/editor_features/ai_completion.md Adds a top-level pointer to marimo pair, fixes typos, and clarifies the “Agents panel” section.
docs/guides/editor_features/agents.md Adds a pointer to marimo pair to disambiguate embedded-editor agents vs agent CLIs.
docs/examples/index.md Fixes broken thumbnail links and normalizes some anchors/paths.
docs/api/inputs/anywidget.md Updates the anywidget “prompts” reference to instead point to official skills in the new guide.
Comments suppressed due to low confidence (1)

docs/guides/editor_features/mcp.md:43

  • The MCP Server section currently describes the server as exposing “read-only tools”, but the “Available tools” paragraph right below says external applications can access “all AI tools” (which includes editing tools in the AI tools guide). This is internally inconsistent and can mislead readers about what MCP can do; please clarify that MCP exposes only the read-only/Ask tool subset (and not notebook-editing tools).
marimo can expose its [AI tools](tools.md) through an MCP server endpoint, allowing external AI applications to interact with your notebooks. If your goal is to have a coding agent drive a live notebook, see [marimo pair](../generate_with_ai/marimo_pair.md) instead; the MCP server exposes lower-level, read-only tools.

<video autoplay loop muted playsinline width="100%" height="100%" align="center">
  <source src="/_static/docs-mcp-server.mp4" type="video/mp4">
</video>

Comment on lines +183 to +185
This script checks if the Python file contains a `import marimo` and a `@app.cell` string. If that's the case
we assume we're dealing with a marimo notebook and we run `uvx marimo check` on the file. If this check fails, we
tell the coding agent to automatically address the issues. This can save *a lot* of time.
@akshayka
akshayka merged commit c21a67f into main Jul 23, 2026
31 checks passed
@akshayka
akshayka deleted the aka/docs-ai-simplification branch July 23, 2026 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants