agentleFS
Prism-ShadowPrism-Shadow/model-message-stream-protocol/.agents/skills/mmsp-dev/SKILL.md

mmsp-dev

Skill124 starsChanged 14 days agoApache-2.0View on GitHub

Fixed workflow for developing MMSP itself — adding or updating model support, and changing its pages. Use when asked to support a new model or protocol version in this repository, sync llmsdk_docs, implement a provider client, change the playground, the tracer or the site, or change the specifications and RFCs in design/. Covers doc syncing, live API capture, paired Python/TypeScript implementation, model-scoped e2e testing, and the UI rules for the three pages.

  • Reads credentials
  • Commits and pushes

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 1

    1. Prism-Shadow/agenthub★ 124100% same

    Edited · 0

    None found.

    Wrote their own version · 0

    None found.

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository3 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 4 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Before changing a client, read the specifications in design/README.md's index, one RFC each under design/rfcs/.

    line 10
  2. Distinctive:

    When the fetched docs differ from an existing snapshot, the new official docs win: update the old files in place.

    line 40
  3. Distinctive:

    Stop and ask: if the official URL is uncertain or a page cannot be fetched.

    line 42
  4. Very specific:

    Never write to a caller's message except created_at, and never read created_at in a transform (MMSP-RFC-0004).

    line 81
  5. Distinctive:

    Run only the new model's e2e tests.

    line 89
  6. Distinctive:

    Leave unrelated tests to CI.

    line 92
  7. Very specific:

    Write changelog/unreleased/YYYY-MM-DD-<slug>.md in the format changelog/README.md specifies: the metadata block (Date, Type, Scope, PR, …

    line 103
  8. Very specific:

    Add one line at the top of that version's changelog/<version>/README.md and the matching line in README.zh.md, whose [详情] link points at …

    line 108
  9. Very specific:

    Commit on a feature branch and open a PR with gh pr create --base dev.

    line 110
  10. Very specific:

    Verify in headless Chrome against both servers (and npm run build plus astro preview for the site): light and dark, desktop and a 390 px …

    line 136

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

MMSP Development Workflow

Adding or updating model support follows the stages below, in order. Where a stage says stop and ask, pause and ask the user; do not continue until the issue is resolved, and never fill the gap yourself.

Before changing a client, read the specifications in design/README.md's index, one RFC each under design/rfcs/; the rules below cite the RFC each one serves as (MMSP-RFC-NNNN).

Directory map

llmsdk_docs/<model_version>/      Official docs snapshot, one folder per model generation (README.md + docs/)
api_captures/<protocol>/          Git-ignored raw API captures: request payloads + stream events
src_py/mmsp/<client_type>/        Python client, one folder per client type: <vendor>_official/ or <protocol>/
src_py/mmsp/auto_client.py        Creates the client a client_type names; a model id's family names its official client
src_py/mmsp/credentials.py        The client types, the model families, and each client's key and endpoint; pure, mirrored in src_ts/src/credentials.ts
src_ts/src/<client_type>/         TypeScript client, mirrors the Python folder
src_ts/src/autoClient.ts          TypeScript routing, mirrors auto_client.py
.github/ci/models.json           Shared model test catalog, grouped by implementation client
src_py/tests/test_client.py       Parameterized e2e tests (env-gated AVAILABLE_MODELS from the catalog)
src_ts/tests/client.test.ts       Same for TypeScript
changelog/unreleased/             Where unshipped changes go; renamed to the version at release
changelog/<version>/              Release summary (README.md) plus one detail file per entry
changelog/README.md               The entry format: metadata block, body rules, bilingual pairing
CHANGELOG.md                      One brief line per release linking into changelog/
src_py/mmsp/integration/          The playground, the tracer pages and the MMSP server, mirrored in src_ts/src/integration/
site/                             The Astro site at mmsp.penguin.ooo
design/                           The specifications MMSP conforms to and the decisions that changed it, one RFC each in rfcs/; design/README.md indexes them and says when a change needs one
.agents/skills/mmsp-dev/kill-ai-slop/   Vendored AI-slop guide and scanner for the UI work below
<name>.zh.md                      Chinese counterpart, required for every file in changelog/

Stage 1 — Sync official docs into llmsdk_docs/

  • Sources must be the model vendor's official documentation site (e.g. docs.anthropic.com, platform.openai.com, ai.google.dev). Never use third-party mirrors, blog posts, or model memory.
  • Save the snapshot under llmsdk_docs/<model_version>/ following the existing folder conventions, and list the folder in llmsdk_docs/README.md. Running this workflow is the explicit request that the repository rule against editing llmsdk_docs/ asks for.
  • When the fetched docs differ from an existing snapshot, the new official docs win: update the old files in place.
  • The snapshot must be complete enough to implement from: request/response schemas, streaming event sequence, thinking output, tool calling, usage fields, and error responses.
  • Stop and ask if the official URL is uncertain or a page cannot be fetched. The user can paste the content manually.

Stage 2 — Capture a live API exchange into api_captures/

  • Gate: the provider's API key environment variable must be set and usable. Use the same environment variables and base URLs as src_py/tests/test_client.py (AVAILABLE_MODELS gating and _create_client). Stop and ask the user to supply the key if it is missing; the workflow must not continue without it.
  • Using the provider's official SDK, or raw HTTP exactly as documented, run one streaming tool-call request with thinking enabled, then send the tool result back so the capture also shows how assistant turns are re-sent.
  • Save the complete exchange unmodified under api_captures/<protocol>/ (git-ignored), e.g. round1.request.json plus round1.stream.jsonl with every raw stream event in order. Never save credentials.
  • When something in the exchange will not serialize to JSON (binary payloads, SDK objects holding non-JSON values), save its str() form and analyze from that. Keep the container parseable: wrap the text in a JSON object so the .jsonl stays one JSON value per line ({"unserializable_str": "<str(event)>"}, keeping the event in stream order), or put the whole exchange in a sibling .txt when nothing about it serializes. A str() capture is still the authoritative record of what the API returned. Never drop the event, hand-edit it into valid JSON, or fall back to the docs because serialization failed.
  • Stop and ask on any API error (invalid key, insufficient quota, rate limit). Do not mock the response or continue from docs alone.
  • The capture is the primary implementation reference and outranks the docs: where they disagree, implement what the API actually returned.
  • Then probe the replay, because the capture only shows what the API sends, not what it needs back. Re-send the assistant turn repeatedly, each time with one candidate field removed — the reasoning item's id, its content, the whole reasoning item, each field you were tempted to keep — and record which removals the API still accepts with the model's behavior intact. That result, not the shape of the response, decides what Stage 3 stores. Save the probe outcomes next to the capture (MMSP-RFC-0002, MMSP-RFC-0004).

Stage 3 — Implement the Python and TypeScript clients

  • One folder per client type, named after it: an official client per vendor (openai_official/, anthropic_official/, google_official/, zai_official/, moonshot_official/, deepseek_official/, minimax_official/, and Jina's jina_webtool/) speaks the vendor's own API, knows every generation of the vendor's models, and reads the vendor's key from the environment; a compatible client per wire protocol (openai_responses/, openai_chat/, openai_chat_vllm_adapter/, openai_embedding/, openai_image/, openai_speech/, openai_transcription/, ant_messages/, google_genai/, deepseek_webtool/, deepseek_speech/, deepseek_transcription/, mmsp/) speaks that protocol for any endpoint. The class is named after the folder (OpenAIOfficialClient, OpenaiChatClient), and the client type is the folder name with hyphens (openai-official, openai-chat).
    • A new generation of a vendor's models goes into the vendor's official client. Diff the new protocol (capture + docs) against what the client sends today; where a generation differs, even by a single key name, tell the generations apart inside the client by explicit version ("4-6" in self._model, "gpt-6" in self._model), never by a bare substring like "claude" in model, and keep the older generations working (MMSP-RFC-0003). Never drop a generation unless the user explicitly instructs it.
    • A new vendor gets a new official client folder, a new <vendor>-official client type in auto_client.py / autoClient.ts and credentials.py / credentials.ts, and a new row in the model family table of credentials: the family is the prefix every id of the vendor's models begins with (glm-, kimi-), matched case-insensitively.
    • A new wire protocol that several vendors serve gets a compatible client folder and client type; a compatible client carries no vendor's quirks.
    • What one endpoint, or one vendor's models served through a compatible client, need beyond its protocol is a plugin, never a branch of the transforms on the base URL or the model id (MMSP-RFC-0009 §9). Write a ClientPlugin subclass in <client>/plugins/<name>.py and <client>/plugins/<name>.ts, add it to that folder's PLUGINS, and declare hosts (a base-URL host matches itself and its subdomains) and/or models (a regex searched in the id, case-insensitive); it runs where every declared condition matches. Its hooks change their argument in place: on_request(config, request) after both transforms and before the SDK call, on_wire_event(wire_event) before the event transform, on_event(event) after it. A plugin turns its endpoint's wire into the shape the transforms read and back, so items and fidelity stay the transforms'; a request it makes goes through the client's SDK object. Callers cannot add or disable plugins.
  • auto_client.py / autoClient.ts create the client a client_type names, from the one table of client types. Without a client_type, the family a model id begins with names its official client; an id of no known family raises and asks for one. The routing has no other rule: no substring or version matching on model ids (MMSP-RFC-0005).
  • A credential goes only where it was given for (MMSP-RFC-0006). Every client resolves its key and endpoint through resolve_credentials / resolveCredentials in utils, which applies environment_credential / environmentCredential from credentials: a key passed in is used; without one, the client reads its <P>_API_KEY only when given no base URL (the endpoint is then <P>_BASE_URL, else the default that serves its model) or one of its own default endpoints (default_base_url, or one of other_base_urls where the vendor serves some models on another host, as Jina does), and refuses any other base URL with ApiKeyRequiredError, except a client of an open server (openServer in the table: mmsp, openai-chat-vllm-adapter), which calls it keyless. A new client declares its row in CLIENT_CREDENTIALS (its variables and default endpoint), calls the resolver instead of reading os.environ / process.env, and adds its case to tests/env-credentials.test.ts / tests/test_env_credentials.py, which build every client type in the table. Hand every credential to the vendor SDK explicitly, including "none" (authToken: null in TypeScript; in Python each Anthropic client subclasses AsyncAnthropic to override auth_headers, so exactly its key goes out, in the headers it names), an OpenAI-SDK client of another vendor its endpoint too (CLIENT_CREDENTIALS[...].default_base_url when none resolved), and every OpenAI-SDK client the options of openaiClientOptions / openai_client_options, which keep the rest of OpenAI's environment (OPENAI_ORG_ID, OPENAI_PROJECT_ID, OPENAI_ADMIN_KEY, OPENAI_WEBHOOK_SECRET, OPENAI_CUSTOM_HEADERS) away from any endpoint OPENAI_API_KEY does not go to, because the SDKs fill whatever they are not handed from their own environment variables. credentials imports only the standard library and reads no environment, because hosts bundle it.
  • Replay must be minimal, not exhaustive (MMSP-RFC-0002). A replayed assistant turn has to be accepted by the API with the model's behavior intact; it does not have to reproduce the wire item field for field. fidelity is an exception channel, not a mirror of the payload: a field earns a place there only when the Stage 2 probe shows the request fails or the model degrades without it. Provider-generated ids the API regenerates or ignores — a reasoning item id, an output-item id — stay out. Fields the API demands go in: GPT-5.5's phase, Claude's thinking signature, the exact reasoning field name a strict upstream requires.
  • Thinking survives the round trip (MMSP-RFC-0004). The thinking a client's own model produced goes back with what that model needs to continue: the text through its channel, the signature / encrypted_content / reasoning field name from fidelity, a gateway's encrypted reasoning block, rebuilt from encrypted_content, format and reasoning_id, and the empty reasoning field a provider demands on a tool-calling turn that thought nothing. Thinking from another model or endpoint goes back in the form the provider takes for thinking it did not produce, or is left out where the provider rejects it, never as the assistant's text.
  • Never copy into fidelity what a universal field already carries — the thinking text, a tool call's name or arguments. Rebuild the wire item from the universal fields instead. fidelity uses one name per kind of data in every client (signature, encrypted_content, format, channel, phase, reasoning_field, reasoning_id); a client never keeps a wire item or a list of them whole under the wire's own name.
  • tool_call_id is not optional: always capture the provider's call id and replay it (MMSP-RFC-0004). Where the wire format carries both an item id and a call id, the call id is the one that correlates a result to its call.
  • Follow the reference client; do not redesign. openai_official/ is the shape for Responses-style protocols, openai_chat/ for Chat Completions: same method order, same control flow, same names. A new client should read as a diff against its reference, because that is how it will be reviewed (MMSP-RFC-0009).
  • Keep it readable top to bottom. A reader should follow one request or response straight through the file without jumping between definitions, so inlining is the default: read the SDK's attributes directly (model_output.delta, model_output.item.call_id) and keep field access, usage arithmetic, and error text where they are used. Extract a helper only for a genuinely large, self-contained block — the kind that would bury the main flow if inlined, such as fetching and decoding an image — never for a few lines. Mirror the reference client's own private methods (_convert_thinking_level_*, _convert_tool_choice) instead of inventing a layer beside them; a shim that accepts both dicts and SDK objects is never one of them, because the events are typed with the SDK's own types (MMSP-RFC-0009).
  • Clients yield deltas only; the base class closes the items (MMSP-RFC-0003). transform_model_output_to_uni_event / transformModelOutputToUniEvent turns one wire event into one UniEvent whose content_items are the .delta items that event carries, in wire order, and never a .done item. _streaming_response_internal / _streamingResponseInternal builds the request, opens the stream, and yields one event per wire event: a plain loop, with no item bookkeeping, no accumulator, no argument parsing, no usage merging, and no synthesized stop. usage_metadata / finish_reason ride on stop events wherever the wire reports them — Anthropic message_start and message_delta, the Chat Completions finish and usage chunks, response.completed — merged field by field by the base; a client's stop event never ends the public stream. A wire event with nothing universal is the empty delta event: no items, null usage and finish reason. The base class hands every delta to StreamItems (stream_items.py / streamItems.ts), which sends it out as it arrives and closes each item with its .done item when the next item begins or the client's stream ends; the base then emits the one stop event, or raises EmptyResponseError for a thinking-only response or IncompleteStreamError for a provider stream that ended without its usage or finish reason (MMSP-RFC-0003 §5). Events that break the protocol raise StreamProtocolError in every mode, and the shared e2e tests check every client's stream with assert_stream_grammar / assertStreamGrammar.
  • The deltas of one item are contiguous and share one fidelity.item_id. Model output is serial, so one item streams at a time and the provider's end-of-item events (content_block_stop, response.output_item.done, step.stop) are listed as no-ops: a gateway that closes its items late or out of order changes nothing. Pass the provider's own id, stringified, as fidelity.item_id: the Anthropic block index, the Responses event item_id or item.id or item.call_id (None / undefined where a gateway sends none), the Interactions step index, the Chat Completions wire field (reasoning_content, reasoning, reasoning_details, content, tool_calls), the generateContent part kind (function_call, thought, inline_thinking, inline_data, text); embedding vectors carry none. StreamItems strips it, so it never reaches consumers, traces or histories.
  • StreamItems decides where an item ends; clients never do (MMSP-RFC-0003). A delta belongs to the next item when it carries another item_id, is of another kind (an Interactions thought step going text, image, text is three items under one index), or begins an item by itself: a tool_call.delta carrying a name (every provider sends it once, on the call's first delta, so Chat Completions calls need no ids of their own), an image (inline_thinking, or inline_data with an image/* MIME type, while audio streams in chunks of one item), an embedding vector. Otherwise it continues the item streaming now: a delta without an id does, and so do a call's arguments whatever id a gateway puts on them. Fidelity sent alone under the item's id is that item's, whatever kind carries it (an Interactions thought_signature after an image thought). The per-kind table in that file — the growing field, the header fields of the first delta, how the chunks join — is the only per-kind code in the stream: the done item is the item's first delta with the growing field replaced by the join of every delta's (tool call arguments checked to hold a JSON object and kept as that text, MMSP-RFC-0002 §3.4) plus the item's fidelity. A message transform sends a call's arguments as it is where the wire takes a string and parses it only where the wire takes an object (Messages' input, Gemini's args).
  • Fidelity goes out once, when it is complete. Attach it to the delta at which the client knows it whole: Anthropic's signature on its signature_delta, as a thinking.delta with empty thinking; the Responses reasoning channel / encrypted_content on an empty thinking.delta yielded at response.output_item.done, the last delta of that item; GPT's phase on an empty text.delta at response.output_item.added. StreamItems copies it onto the .done item. An identical fidelity repeated on later deltas of the same item goes out once (Chat Completions tags every reasoning delta with reasoning_field); a different one is a StreamProtocolError.
  • Stream on deltas; never re-read the completed item. A tool call opens with a tool_call.delta carrying the name and call id on the item-added event and continues with argument fragments; the completion event yields nothing but the fidelity unknown until then. Never read content back from a completed item or cross-check it against what the deltas produced; response.function_call_arguments.done returns the empty delta event. Leave provider error events (response.failed, response.error, error) to the unknown-event guard rather than translating them into MMSP errors, except on Gemini Interactions: neither of its SDKs raises on the SSE error event that arrives inside an open stream, so the guard would drop the provider's failure and the stream would end as one without usage, and google_official raises on an error event carrying an error object instead, with the provider's code and message. minimax_official is the deliberate exception: it ignores the argument deltas and reads each call from response.output_item.done, yielding one tool_call.delta with the name, call id, and whole arguments. A client streams a call on deltas or delivers the completed item, never both, so the fragments and the complete call can never disagree (MMSP-RFC-0003).
  • The message transform switches on .done types. transform_uni_message_to_model_input matches text.done, thinking.done, tool_call.done, tool_result.done, and the rest; a message never carries a .delta item, and legacy item types are converted before a client sees the messages.
  • The message transform keeps the order of the content items (MMSP-RFC-0009). Whatever a turn produced — thinking, then text, then a tool call — has to leave the transform in that order. Where a protocol makes an item its own entry (a Responses reasoning / function_call, say) and the message text is collected separately, flush the collected text before appending the entry; a message appended after the items it preceded is what DeepSeek answers with "No tool output found for tool call". Anthropic Messages and Gemini keep one ordered block list per message, so appending in item order is enough; Chat Completions splits content and tool_calls into fields of one message and carries no interleaving at all.
  • UniConfig keys rarely map one-to-one onto provider config keys. Stop and ask: list every non-obvious mapping and confirm it with the user before coding. Never decide silently (MMSP-RFC-0003).
  • Every ThinkingLevel must stay usable on every client — never raise for a thinking level (MMSP-RFC-0003). Map each level to the closest level the model supports and degrade silently when a level has no exact equivalent (e.g. google_official maps NONE to MINIMAL, or to low on the models that reject minimal; minimax_official maps NONE to low on MiniMax-M3.1-Flash, which cannot turn thinking off).
  • temperature and tool_choice (and other unsupported parameter values, e.g. prompt_caching) may reject with an exception, but must raise the MMSP class for it from errors.py / errors.ts, as every refusal does: UnsupportedParameterError for a config value, UnsupportedContentError for an item the model cannot take, InvalidMessageError for a message that cannot be sent as it is, RoutingError for a model id or client type that names no client, never a bare ValueError / Error (MMSP-RFC-0007). Keep the message wording consistent with existing clients (containing "not support").
  • Implement Python and TypeScript together with identical behavior (MMSP-RFC-0002).
  • A stream must be interruptible. In Python, iterate the SDK stream inside a context that closes it (async with stream:); in TypeScript, pass the signal to the SDK. An abort or a closed generator then closes the provider's request (MMSP-RFC-0008).
  • Never write to a caller's message except created_at, and never read created_at in a transform (MMSP-RFC-0004).

Stage 4 — Verify

  • Register the model in .github/ci/models.json under its implementation client with correct capability flags and API key environment variable. Both test files load this catalog into env-gated AVAILABLE_MODELS. Do not add model-specific test functions or files.
  • That .github/ci/models.json entry is the only test change a new model is entitled to. src_py/tests/test_client.py and src_ts/tests/client.test.ts are shared contracts every client must already satisfy (MMSP-RFC-0002): never rewrite their bodies, assertions, prompts, or helpers to accommodate one model, and never branch inside them on a model name. A failing shared test means the client is wrong until proven otherwise. Stop and ask for explicit approval before any broader test edit, and get it per change — approval for one edit is not approval for the next.
  • The shared model catalog keeps only the newest version of each model family per provider (e.g. gemini-3.6-flash, not gemini-3.5-flash or 3.5-flash-lite as well). When a newer generation lands, replace the older entry — the old client folder stays supported and routed (see Stage 3) but is no longer e2e-tested (MMSP-RFC-0002, MMSP-RFC-0005).
  • Static checks: make lint in src_py/; npm run lint and npm run build in src_ts/.
  • Run only the new model's e2e tests; the full suites are slow and spend real API quota:
    • cd src_py && uv run pytest -vvv tests/test_client.py -k "<model-name>"
    • cd src_ts && npm run test -- -t "<model-name>"
  • Leave unrelated tests to CI.

Supported-model registry

  • src_py/mmsp/registry.py / src_ts/src/registry.ts list the supported models as entries of (model, base_url, client) plus input/output modalities, context window, and USD-stored pricing keyed by MMSP's usage buckets. Keep both languages identical; the registry unit test constructs every entry through AutoLLMClient.
  • For OpenRouter-hosted entries, pull authoritative data from the live models API GET https://openrouter.ai/api/v1/models (docs: https://openrouter.ai/docs/api/api-reference/models/list-all-models-and-their-properties): pricing.prompt/completion are USD per token (multiply by 1e6), plus context_length and architecture.input_modalities/output_modalities. The API lists chat models only — embedding models are absent and must be checked via their model pages.
  • SiliconFlow publishes no pricing API; declare official CNY list prices with the cny() initializer (converted to USD storage at 7 CNY/USD).

Record and ship

  • Unreleased changes all land in changelog/unreleased/, named for its state rather than a number because the version is not decided until release. Never create a numbered folder for unshipped work and never invent the next version number; release preparation renames unreleased/ to the decided version.
  • Write changelog/unreleased/YYYY-MM-DD-<slug>.md in the format changelog/README.md specifies: the metadata block (Date, Type, Scope, PR, Issue, Breaking) directly under the title, then ## What changed recording what the change did, plus the factual detail it introduced (config mappings, registry metadata, protocol differences) and ## Compatibility when it breaks something.
  • The entry records what was done, never the reasoning behind it and never the state of the codebase. ## Why, ## Problem, ## Decision, ## Alternatives considered, ## Verification, ## Risks do not belong on disk, and neither do claims like "X is not exported from Y": they read as fact, go stale as the code moves, and every later reader pays to re-check them.
  • The reasoning is still required — it goes where it stays tied to its moment. Report it in the conversation as the work happens (what the probes returned, which alternatives you weighed and why the others lost, what the verification actually covered, what you are unsure of), and write it into the PR description. Anyone who needs it later pulls the PR description, git log, or git blame.
  • Link the PR and any issue the change closes as full URLs (https://github.com/Prism-Shadow/model-message-stream-protocol/pull/N), in the metadata block and in the release-README line. A bare #N is not a link in a Markdown file. The PR number only exists once the PR is open, so open it first, then add both links in a follow-up commit on the same branch.
  • Write the Chinese counterpart changelog/<version>/YYYY-MM-DD-<slug>.zh.md in the same PR, mirroring the English file section for section. The metadata block stays English verbatim (only the Breaking reason is prose to translate), as do code identifiers, model ids, and links; changelog/README.md lists the standard heading renderings. An entry without its counterpart is unfinished.
  • Add one line at the top of that version's changelog/<version>/README.md and the matching line in README.zh.md, whose [详情] link points at the .zh.md entry; the root CHANGELOG.md and CHANGELOG.zh.md keep one line per release, added at release preparation.
  • A PR that changes design/ adds a process entry with Scope design. The implementation PR of an accepted RFC links the RFC from its entry and adds the Implementation PR line to the RFC file.
  • Commit on a feature branch and open a PR with gh pr create --base dev; direct pushes to dev are rejected.

UI work — the playground, the tracer and the site

The three pages share one look, and every change to them goes through two references before it ships:

  • kill-ai-slop/GUIDE.md, the field guide to the machine-default tics of generated interfaces, with its scanner: node .agents/skills/mmsp-dev/kill-ai-slop/scripts/scan.mjs <dir>. Follow its order — scan, triage each hit as slop or intended, report, then fix — and read references/taxonomy.md and references/fixes.md for what each tell is and what replaces it. The playground and tracer pages live inside Python and TypeScript strings, so scan an extracted copy of the HTML.
  • https://www.beautifului.dev/, the reference for AI-native components: the loading line with a shimmer and the elapsed time, the collapsible "Thought for N s" trace, tool-call chips, the composer with a round send button, segmented controls with a gliding thumb.

The system they share:

  • Neutral tokens (--bg, --surface, --raised, --text, --muted, --subtle, --ring) with one accent; color carries meaning only (a stop reason, an item's kind). Light and dark follow the system through prefers-color-scheme and a data-theme override; the playground and the tracer share the mmsp.playground.theme key, the site uses mmsp-site.theme.
  • Inter for the interface, JetBrains Mono only for ids, JSON, paths of data and token counts. Depth from 1px rings, not large shadows. Motion 150–250 ms on cubic-bezier(0.23, 1, 0.32, 1), only where something changes, and off under prefers-reduced-motion.
  • One mark everywhere: the four-tile MMSP logo of site/src/components/Logo.astro (two #477dfb tiles and two dark ones, white letters), also the favicon of all three pages. The site's brand scale in site/src/styles/global.css is built around #477dfb, a pure blue at the hue of fennel flower #7aa2f7, as brand-500: images and the mark use #477dfb, text on white uses brand-600 or darker, and text in the dark theme uses brand-400, which is #7aa2f7 itself. The language and theme controls of the top bar are buttons that cycle on click (the other language; system, light, dark), not menus. The home page fits one desktop window, footer included: the player zooms to at most 85%, then its two stream panes are capped and follow their newest line. The README and social images are rendered from site/artwork/ with render.sh. Before committing an image, shrink it: PNGs to at most 1760 px wide (twice the README column) and a 256-colour palette (imagequant, then pyoxipng), GIFs with gifsicle -O3 --lossy=15, dropping every other motion frame first. The README images together stay under 1 MB. Each tile of the mark is its own shape (the dark ones reach half a unit under the blue ones at the seams): one dark square under the blue tiles shows as a grey rim on white. The logo files for others to use are .github/images/mmsp-logo.svg and mmsp-logo-dark.svg (outlined letters) with 512 px PNGs of each, built by site/artwork/logo.py <NotoSans-Bold.ttf> .github/images with the PNGs rendered from the SVGs in Chrome. Every image has one copy in the repository: the site serves .github/images/social-preview.png through site/src/pages/social-preview.png.ts rather than a second file in site/public/.

What the owner has asked for, and keeps asking for:

  • As few words as possible; logos and icons over sentences. The site home page is modeled on https://penguin.ooo/: the mark, the fixed slogan with its turning verb, the second line, two buttons, the vendor logos, and the recorded streams beside them, visible without scrolling. The top bar ends with language, theme and GitHub.
  • A list is carried by alignment, spacing and hierarchy: no tinted boxes, no colored left bars, no pills for words that are not a status. Roles read as uppercase words.
  • Side panels float and take no width, so a page's column sits in the same place whatever else is open. Navigation in the tracer reads like a file explorer: back, forward and up, then the address.

How the pages are built and checked:

  • The playground page is one HTML document embedded as CHAT_TEMPLATE in both servers. Python serves it through Jinja, so it may hold no {{, {% or {#, and every backslash is doubled; TypeScript holds it in a template literal, so backticks and ${ are escaped too. Edit it once and regenerate both embeddings; keep the element ids and function names the page tests assert.
  • The tracer shares _TRACER_HEAD, _TRACER_SCRIPT and _ICONS (TRACER_HEAD, TRACER_SCRIPT, ICONS) and a _page shell between tracer.py (Jinja page bodies) and tracer.ts (the same markup built in code). A tracer test asserts a trace page never contains 0.6, its sign of a leaked sixth embedding value, so no CSS number or SVG path there may contain it.
  • ci.yml selects model tests in jest.yml and pytest.yml by affected client using .github/ci/models.json; shared changes, PRs to main, and publication run all configured non-slow cases (RUN_SLOW_TEST=0). A site-only change runs the site build and the CI selection/result checks without model calls. See .github/ci/README.md.
  • Verify in headless Chrome against both servers (and npm run build plus astro preview for the site): light and dark, desktop and a 390 px phone, no console errors, no horizontal scroll. A passing scan is not a better page; look at the screenshots.
  • Scanner hits accepted on purpose: the shimmer on loading text, the round send and remove buttons, Lucide-derived icons, Inter, mono for data, and the owner's slogan as a sentence-long headline.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.