원클릭으로
excalidraw-new-library
Scaffold a new Excalidraw library workspace with meta.json and starter items
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Scaffold a new Excalidraw library workspace with meta.json and starter items
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Generate .excalidraw scene files from natural language descriptions of diagrams, flowcharts, layouts, or visual concepts
Create or modify Excalidraw library files (.excalidrawlib) — add items, edit existing libraries, bundle from source files
| name | excalidraw-new-library |
| description | Scaffold a new Excalidraw library workspace with meta.json and starter items |
| allowed-tools | Read, Write, Bash, Glob |
| argument-hint | <library-name> <description> |
Create a new library workspace under libraries/.
Scaffold a new library: $ARGUMENTS
Parse the arguments:
$0 = library name (kebab-case directory name)Create the directory structure:
libraries/<library-name>/
├── meta.json
Write meta.json:
{
"name": "<Human Readable Name>",
"description": "<description from args>",
"authors": [{ "name": "Kaaro" }]
}
Create 2-3 starter .excalidraw files based on the description using a generator script with @kaaro/core builders. Each file should contain a single meaningful shape/component relevant to the library theme.
Bundle: npx tsx packages/cli/src/index.ts bundle libraries/<name> -o libraries/<name>/<name>.excalidrawlib
Validate: npx tsx packages/cli/src/index.ts validate libraries/<name>/<name>.excalidrawlib
Report what was created.
import { createElement, createSceneFile, writeExcalidrawFile } from "./packages/core/src/index.js";
// Create elements for a single library item
const elements = [
createElement({ type: "rectangle", x: 0, y: 0, width: 160, height: 80, backgroundColor: "#a5d8ff", roughness: 0 }),
createElement({ type: "text", x: 20, y: 25, width: 120, height: 30, text: "Label", fontSize: 20, fontFamily: 1 }),
];
const scene = createSceneFile(elements);
await writeExcalidrawFile("libraries/<name>/item-name.excalidraw", scene);
Run with npx tsx tmp-scaffold.ts, then clean up the script.