Skip to content

YAML wire format for json-render that streams specs progressively and applies surgical edits via fenced blocks.

CCM score
72 of 100
skills.sh installs
1.1K
GitHub stars
19.9K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers YAML prompt generation, an AI SDK transform, and a low-level streaming parser for @json-render/core specs
  • Recognizes four fence types: yaml-spec, yaml-edit, yaml-patch, and diff, each with its own edit semantics
  • Supports edit modes for patch (RFC 6902), merge (RFC 7396), and unified diff, documented through yamlPrompt options
  • Designed for projects using @json-render/yaml with streamed AI responses that need incremental rendering and multi-turn edits

Install

$ npx -y skills add vercel-labs/json-render --skill yaml -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

@json-render/yaml

YAML wire format for @json-render/core. Progressive rendering and surgical edits via streaming YAML.

Key Concepts

  • YAML wire format: Alternative to JSONL that uses code fences (yaml-spec, yaml-edit, yaml-patch, diff)
  • Streaming parser: Incrementally parses YAML, emits JSON Patch operations via diffing
  • Edit modes: Patch (RFC 6902), merge (RFC 7396), and unified diff
  • AI SDK transform: TransformStream that converts YAML fences into json-render patches

Generating YAML Prompts

import { yamlPrompt } from "@json-render/yaml";
import { catalog } from "./catalog";

// Standalone mode (LLM outputs only YAML)
const systemPrompt = yamlPrompt(catalog, {
  mode: "standalone",
  editModes: ["merge"],
  customRules: ["Always use dark theme"],
});

// Inline mode (LLM responds conversationally, wraps YAML in fences)
const chatPrompt = yamlPrompt(catalog, { mode: "inline" });

Options:

Details

Repository
github.com/vercel-labs/json-render
Categories
Frontend & UI Code, AI Agents & LLM Apps
First seen
Jun 3, 2026

More from vercel-labs/json-render

All 30