Agent skill

Display Modes

by live-codes in live-codes/livecodes

Configure how the playground is displayed: full, focus, simple, lite, editor, codeblock, and result modes.

MITAuto-check passedAI & LLM Engineering

Install Display Modes

skills CLI
$ npx skills add live-codes/livecodes --skill display-modes -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install live-codes/livecodes display-modes --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/live-codes/livecodes.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/livecodes/display-modes .claude/skills/display-modes && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
display-modes
GitHub stars
1.5k
Token cost
~1.7k tokens
SKILL.md length
343 words
Files
1
Skills in repo
15
Repo updated
First seen
Licence
MIT

At a glance

Configure how the playground is displayed: full, focus, simple, lite, editor, codeblock, and result modes.

  • Tasks that involve Embeddings
  • SKILL.md covers Setup, Core Patterns, Display Mode vs Default View and Common Mistakes, plus 3 more sections
  • Reaches livecodes.io

What it does

Display Modes is an agent skill from live-codes/livecodes. Configure how the playground is displayed: full, focus, simple, lite, editor, codeblock, and result modes. Load this skill when choosing display mode for embeddings, configuring read-only views, or showing only result or editor.

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in AI & LLM Engineering, covering Embeddings. The repository describes itself as: A Code Playground That Just Works! The licence is MIT.

When your agent uses it

  • Tasks that involve Embeddings

Example prompts

  • “/display-modes”

What it can do on your machine

Read from SKILL.md and the folder at commit f714b4b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are javascript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • livecodes.io

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Display Modes loads about 1.7k tokens when it runs. Until then it costs about 61 tokens; SKILL.md has 343 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~61
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from live-codes/livecodes at commit f714b4b, republished under its MIT licence (© live-codes). 343 words, ~1,711 tokens.

Download SKILL.mdSave it as .claude/skills/display-modes/SKILL.md (or your agent's skills folder).
name
display-modes
description
Configure how the playground is displayed: full, focus, simple, lite, editor, codeblock, and result modes. Load this skill when choosing display mode for embeddings, configuring read-only views, or showing only result or editor.
metadata.type
core
metadata.library
livecodes
metadata.library_version
0.13.0
requires
configuration
sources
live-codes/livecodes:docs/docs/features/display-modes.mdx, live-codes/livecodes:docs/docs/features/lite.mdx

This skill builds on configuration. Read it first for foundational concepts.

LiveCodes — Display Modes

Display modes control what UI elements are shown in the playground. Choose mode based on your embedding use case.

Setup

javascript
import { createPlayground } from 'livecodes';

// Via config object
createPlayground('#container', {
  config: { mode: 'simple' },
});

// Via query params
createPlayground('#container', {
  params: { mode: 'result' },
});

// Via URL
// https://livecodes.io/?mode=lite&template=react

Core Patterns

Full mode (default)

Complete playground with toolbars, all editors, result pane.

javascript
// Default mode - no need to specify
createPlayground('#container', {
  template: 'react',
});
// Mode is 'full' by default
Simple mode (embeds)

One editor + result. Ideal for embedded playgrounds with limited space.

javascript
createPlayground('#container', {
  config: {
    mode: 'simple',
    layout: 'vertical', // 'vertical' or 'horizontal'
    activeEditor: 'script',
    editor: 'monaco', // 'monaco' or 'codemirror' (default)
  },
  params: {
    js: 'console.log("Hello")',
    console: 'open',
  },
});

// With style editor
createPlayground('#container', {
  config: {
    mode: 'simple',
    layout: 'vertical',
    activeEditor: 'script',
    editor: 'monaco',
  },
});
Lite mode

Lightweight editor for faster loading. Minimal features.

javascript
createPlayground('#container', {
  config: { mode: 'lite' },
  template: 'react',
});

// Via URL
// https://livecodes.io/?mode=lite&template=react

Lite mode features:

  • Uses CodeJar editor (light-weight)
  • No minimap, no advanced autocomplete
  • Still supports all languages
  • Faster initial load
Editor mode (code only)

No result pane. Shows only the editors.

javascript
createPlayground('#container', {
  config: { mode: 'editor' },
  template: 'react',
});

Use for:

  • Code review interfaces
  • Teaching code patterns
  • Read-only snippet viewers
Codeblock mode (read-only)

Static code display with copy button on hover. No editing.

javascript
createPlayground('#container', {
  config: {
    mode: 'codeblock',
    editor: 'monaco', // Optional: use Monaco instead of CodeJar
  },
  params: { html: '<h1>Hello World</h1>' },
});

Use for:

  • Blog posts with code snippets
  • Documentation
  • One-way code display
Result mode (output only)

Shows only the result page with a drawer to open in full playground.

javascript
createPlayground('#container', {
  params: {
    mode: 'result',
    template: 'react',
  },
});

// Show console in result mode
createPlayground('#container', {
  params: {
    mode: 'result',
    tools: 'console|full',
    js: 'console.log("Hello World")',
  },
});

Use for:

  • Demo showcase
  • Embedded output
  • Presentations
Focus mode

Minimal UI: editors, result, console only. No menus or secondary controls.

javascript
createPlayground('#container', {
  config: { mode: 'focus' },
});

Toggle between focus and full in the app UI. Access via button in bottom-left corner.

Display Mode vs Default View

ConceptWhat it controls
ModeWhat UI elements are loaded
ViewWhich pane is shown by default
javascript
// Mode: 'editor' - Only editors exist, no result pane
createPlayground('#container', {
  config: { mode: 'editor' },
});

// Mode: 'full', View: 'editor' - All UI, editors shown by default
createPlayground('#container', {
  config: {
    mode: 'full', // Full UI
    view: 'editor', // Show editors first
  },
});

Common Mistakes

MEDIUM Confusing mode with view

Wrong:

javascript
// Want to show result by default but use full UI
createPlayground('#container', {
  config: { mode: 'result' }, // Result mode - no editors!
});

Correct:

javascript
// Use view for default visible pane
createPlayground('#container', {
  config: {
    mode: 'full', // Full UI with all elements
    view: 'result', // Show result by default
  },
});

mode determines what elements exist. view determines which element is visible first.

Source: docs/docs/features/display-modes.mdx — Display Mode vs Default View section

MEDIUM Tools not visible in result mode
javascript
// Console won't show in result mode by default
createPlayground('#container', {
  params: {
    mode: 'result',
    js: 'console.log("Hello")',
  },
});

Correct:

javascript
// Set tools to 'open' or 'full' in result mode
createPlayground('#container', {
  params: {
    mode: 'result',
    tools: 'console|full', // Show console in full height
    js: 'console.log("Hello")',
  },
});

In result mode, tools pane is hidden by default. Set tools: 'console|open' or tools: 'console|full' to show it.

Source: docs/docs/features/display-modes.mdx — Result mode section

Mode Reference

ModeShowsUse Case
fullAll UI (default)Full playground experience
focusEditors + result + consoleMinimal distractions
simpleOne editor + resultCompact embeds
liteLightweight editorFast loading, basic editing
editorOnly editorsCode review, teaching
codeblockStatic code with copyRead-only snippets
resultOnly result pageDemo showcase

View Reference

ViewDescription
splitEditors and result side by side (default)
editorEditors visible, result hidden
resultResult visible, editors hidden

Tools Configuration

javascript
const config = {
  tools: {
    enabled: ['console', 'compiled'],  // or 'all'
    active: 'console',    // Which tool is open
    status: 'open',       // 'open', 'full', 'closed', 'none'
  },
};

// Via params
params: {
  tools: 'console|open',     // Console open
  tools: 'compiled|full',     // Compiled code, full height
  console: 'open',            // Shorthand for console
}

© live-codes, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/livecodes/display-modes of live-codes/livecodes.

Open the folder on GitHubat commit f714b4b

Compare with similar skills

Display Modes next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Display Modes compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Display Modes this skilllive-codes/livecodes1.5k—~1.7kAutomated safety check: PassMIT
Chroma Vector DatabaseOrchestra-Research/AI-Research-SKILLs13k8 repos~2.3kAutomated safety check: PassMIT
CLIP Image-Text MatchingOrchestra-Research/AI-Research-SKILLs13k8 repos~1.7kAutomated safety check: PassMIT
SageMaker Serving Image Selectionhuggingface/skills11k1 repos~4.6kAutomated safety check: PassApache-2.0
Codebase Managementgiancarloerra/SocratiCode3.3k1 repos~1.8kAutomated safety check: PassAGPL-3.0
Sentence-Transformers Training Routerhuggingface/skills11k1 repos~2.6kAutomated safety check: PassApache-2.0

Similar skills

  • Chroma Vector Database

    Orchestra-Research/AI-Research-SKILLs

    Shows how to store documents and embeddings in Chroma, query them by similarity with metadata filters, and persist them to disk for RAG and semantic search projects.

    13k GitHub starsUsed in 8 repos~2.3k tokens
    AI & LLM EngineeringAuto-check passed
  • CLIP Image-Text Matching

    Orchestra-Research/AI-Research-SKILLs

    Explains OpenAI's CLIP model for zero-shot image classification, image-text similarity, semantic image search and content moderation, with install steps and code patterns.

    13k GitHub starsUsed in 8 repos~1.7k tokens
    AI & LLM EngineeringAuto-check passed
  • Official

    Chooses the right serving container and current image URI for deploying a Hugging Face model to a SageMaker endpoint, preferring Hugging Face images over generic ones.

    11k GitHub starsUsed in 1 repo~4.6k tokens
    AI & LLM EngineeringAuto-check passed
  • Codebase Management

    giancarloerra/SocratiCode

    Set up, index, and manage SocratiCode codebase indexing. An agent skill from giancarloerra/SocratiCode.

    3.3k GitHub starsUsed in 1 repo~1.8k tokens
    AI & LLM EngineeringAuto-check passed
  • Official

    Routes a sentence-transformers training task to the right model type and required reference docs and example scripts, covering bi-encoders, rerankers, sparse and multi-vector models.

    11k GitHub starsUsed in 1 repo~2.6k tokens
    AI & LLM EngineeringAuto-check passed
  • Mashup Mods

    rehan-remade/universal-modder

    Build cross-game mashups and total conversions, the "Minecraft inside Elden Ring" or "skateboarding in MW2" kind.

    5.3k GitHub stars~3.3k tokensUpdated today
    AI & LLM EngineeringAuto-check passed

More from live-codes/livecodes

All 15 skills in this repo
  • Language Support

    live-codes/livecodes

    Work with 90+ supported languages, compilers, CSS processors, and WASM-compiled languages for markup, style, and script editors.

    1.5k GitHub stars~1.6k tokensUpdated today
    Auto-check passed
  • Configuration

    live-codes/livecodes

    Configure playground behavior through Config object, query parameters, EmbedOptions, editor settings, processors, external resources, and custom settings.

    1.5k GitHub stars~4.5k tokensUpdated today
    Auto-check passed
  • Framework Wrappers

    live-codes/livecodes

    Use SDK with React, Vue, Svelte, Solid, Preact, and Web Components.

    1.5k GitHub stars~2.8k tokensUpdated today
    Auto-check passed
  • Getting Started

    live-codes/livecodes

    Quick start for standalone app at livecodes.io, embedding playgrounds with CDN or npm, and self-hosting basics.

    1.5k GitHub stars~1.6k tokensUpdated today
    Auto-check passed
  • Gh Action

    live-codes/livecodes

    Use the "Preview in LiveCodes" GitHub Action to generate preview playground links for pull request code changes.

    1.5k GitHub stars~1.8k tokensUpdated today
    Auto-check passed
  • Headless Mode

    live-codes/livecodes

    Run playground without visible UI using SDK methods directly.

    1.5k GitHub stars~1.1k tokensUpdated today
    Auto-check passed

Questions about Display Modes

What does Display Modes do?

Configure how the playground is displayed: full, focus, simple, lite, editor, codeblock, and result modes. Display Modes is an agent skill from live-codes/livecodes. Configure how the playground is displayed: full, focus, simple, lite, editor, codeblock, and result modes.

When should I use Display Modes?

Display Modes fits situations like: tasks that involve Embeddings.

How do I install Display Modes in Claude Code?

Run `npx skills add live-codes/livecodes --skill display-modes -a claude-code`. Or copy the skill folder (.agents/skills/livecodes/display-modes in live-codes/livecodes) into .claude/skills/display-modes in your project. Claude Code loads it when a task matches its description.

How do I install Display Modes in Codex?

Run `npx skills add live-codes/livecodes --skill display-modes -a codex`. Or copy the skill folder (.agents/skills/livecodes/display-modes in live-codes/livecodes) into .agents/skills/display-modes in your project. Codex loads it when a task matches its description.

Can I use Display Modes in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add live-codes/livecodes --skill display-modes -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/display-modes, .gemini/skills/display-modes, .github/skills/display-modes and .opencode/skills/display-modes in your project.

What does Display Modes need to run?

SKILL.md names no scripts, command-line tools or credentials: Display Modes is instructions for the agent only.

Does Display Modes access the network?

SKILL.md names 1 domain. In commands or code: livecodes.io; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Display Modes safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Display Modes use?

Display Modes is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Display Modes use?

About 1.7k tokens (SKILL.md is roughly 6.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Display Modes?

Skills that share tags, products or a category with Display Modes: Chroma Vector Database (Orchestra-Research/AI-Research-SKILLs, 13k stars), CLIP Image-Text Matching (Orchestra-Research/AI-Research-SKILLs, 13k stars), SageMaker Serving Image Selection (huggingface/skills, 11k stars) and Codebase Management (giancarloerra/SocratiCode, 3.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Display Modes?

live-codes (a GitHub organization) maintains it in live-codes/livecodes, which has 1,514 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on October 7, 2026.

Source: live-codes/livecodes on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.