Skills

From marimo-team/marimo · View interactive version

Skills is an AI agent skill from the GitHub repository marimo-team/marimo. Curate descriptions and provider-specific reasoning options and token limits in `packages/llm-info/data/models.yml` using models.dev, OpenRouter, and provider documentation. Use when the user asks to populate model descriptions, enrich the model catalog, or curate descriptions after running `pnpm sy

How to use this skill

Skill file

Fill Model Descriptions

Goal

Keep descriptions in packages/llm-info/data/models.yml concise and accurate. Fill empty descriptions and refresh existing descriptions when newly added models or authoritative documentation make them obsolete. Source descriptions from OpenRouter first, then provider documentation as a fallback.

Scope and Contract

For metadata-only requests, use Reasoning Options and Token Limits and skip the description workflow.

Workflow

  1. Read packages/llm-info/data/models.yml. Parse it with the yaml library's parseDocument (NOT parse) so formatting and comments are preserved on write-back.
  1. Collect and review descriptions:
  1. Source descriptions in this priority order:

a. OpenRouter — GET https://openrouter.ai/api/v1/models (no auth required). Build a lookup keyed by lowercased id. For each { provider, model }, try candidates in this order:

b. Provider docs — if no OpenRouter hit, search the canonical provider's docs page (anthropic.com/news, platform.openai.com/docs/models, ai.google.dev/gemini-api/docs/models, mistral.ai/news, x.ai/blog, etc.) for the model's one-line summary. Use the WebSearch or WebFetch tool.

c. Skip — if neither source has a confident answer, leave description: "" and record the { provider, model } for the final summary. Empty is better than wrong.

  1. Truncate each sourced description per the rules in the "Truncation" section.
  1. Write the YAML back using targeted Pair mutations on the parsed Document, not text replacement. Reference implementation: packages/llm-info/src/sync-models.ts shows how to load a Document, mutate sequence/map nodes, and stringify with { lineWidth: 0, flowCollectionPadding: false } to preserve formatting.
  1. Validate by running:

```bash

pnpm --filter @marimo-team/llm-info test

```

The schema.test.ts test will catch any structural drift.

  1. Report to the user:

Reasoning Options and Token Limits

When metadata enrichment is requested, query https://models.dev/api.json and

match the exact provider/model offering using PROVIDER_MAP in

src/sources/merge.ts. Google Vertex models remain separate offerings even

though they share the google catalog section. Do not use the description

vendor map or strip aliases to obtain metadata from another hosting provider.

Run pnpm --dir packages/llm-info sync-models --metadata-only to refresh the

current catalog without adding models. Normal sync also refreshes known metadata

on existing entries: capabilities, input/output types, release dates, pricing,

reasoning options, and token limits. Curated names, descriptions, and roles are

preserved. Neither mode changes runtime thinking configuration.

values), and budget_tokens (with optional min/max) controls. Preserve

null, default, and the -1 automatic-budget sentinel when supplied.

supplied values, including zero; omitted fields remain unknown.

reasoning controls. An omitted flag preserves the corresponding capability.

Partial pricing and limits updates preserve unspecified values.

values or removing existing metadata. Report unmatched entries. Consult the

exact provider's documentation if further enrichment is needed.

only for OpenRouter offerings, not as native Anthropic, OpenAI, Azure, or

Bedrock configuration contracts.

After enrichment, run pnpm --dir packages/llm-info codegen and

pnpm --dir packages/llm-info test --run. Report coverage for each metadata

field and unresolved provider/model matches. Generated JSON must retain the new

fields; updating YAML alone is insufficient.

Vendor Map

OpenRouter id vendor prefixes for each marimo provider:

| Marimo provider | OpenRouter vendor prefix | Notes |

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

| anthropic | anthropic | Direct match in most cases |

| openai | openai | Direct match |

| google | google | Strip @default suffix if present |

| mistral | mistralai | Note the ai suffix |

| xai | x-ai | Hyphenated |

| azure | openai | Azure mostly re-exposes OpenAI models |

| bedrock | varies | Strip region prefix (us./eu./jp./global.) and use the embedded vendor (anthropic.foo → anthropic/foo) |

| github | varies | Ids like openai/gpt-4.1 carry the vendor; strip the github layer |

| openrouter | embedded in id | Ids like anthropic/claude-opus-4.7-fast already carry the vendor |

| wandb | embedded in id | Ids like deepseek-ai/DeepSeek-V3.1; the prefix is the vendor |

| opencode-go | rarely on OR | Source from provider docs |

| ollama | not on OR | Source from the Ollama model card |

Truncation

Examples

Good (matches the tone of existing hand-curated entries):

Bad (do not produce these):

Quick Reference

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.