Files
Panama/user/agents/skills/slidev/references/code-import-snippet.md
T
Gabriel Brown 89761a7da3 Keep the personal half of the desktop in one place, and ask before installing it
Agent instructions, skills, SSH host aliases and expansion triggers are worth
having identical on every machine one person owns, and belong in none of the
shared configuration. They live in user/ now, with a manifest saying where each
piece goes and a link-user stage that puts it there.

That stage does nothing unless the machine said yes. Somebody who clones Panama
to try the desktop keeps their own ~/.claude/CLAUDE.md exactly where it was;
the question names the destinations and defaults to no. Anything displaced goes
to config/old rather than being deleted.

~/.claude/CLAUDE.md and ~/.codex/AGENTS.md were byte-identical copies of one
file, which is the drift this exists to prevent.

Also adds the vitals toggles for the battery and Claude usage readouts, which
had preferences and no way to reach them.
2026-08-22 08:54:43 -04:00

865 B

name, description
name description
import-snippet Import code from external files into slides with optional region selection

Import Code Snippets

Import code from external files into slides.

Basic Syntax

<<< @/snippets/snippet.js

@ = package root directory. Recommended: place snippets in @/snippets/.

Import Region

Use VS Code region syntax:

<<< @/snippets/snippet.js#region-name

Specify Language

<<< @/snippets/snippet.js ts

With Features

Combine with line highlighting, Monaco editor:

<<< @/snippets/snippet.js {2,3|5}{lines:true}
<<< @/snippets/snippet.js ts {monaco}{height:200px}

Placeholder

Use {*} for line highlighting placeholder:

<<< @/snippets/snippet.js {*}{lines:true}

Monaco Write

Link editor to file for live editing:

<<< ./some-file.ts {monaco-write}