/excalidraw-vault:excalidraw-here [--name <slug>] [--type architecture|flow|mindmap|sequence|relationship]from excalidraw-vault
Generate an Excalidraw diagram of the current document/topic and save it next to the active note in the MoxyWolf Vault
Ships in excalidraw-vault. Installing the plugin adds it to Claude Code.
Same as /excalidraw, but uses the current document context as the source material and saves the diagram next to that note instead of in a shared/project folder.
Determine source context: read the current document the user is working in (active editor, last attached file, or the file most recently discussed in the conversation). If ambiguous, ask the user to confirm the source path.
If the source is a path inside a git repository, this is a repo-backed diagram: follow the skill's Repo-backed mode in full and run check_repo_diagram.py before reporting.
Determine destination: place the diagram in the same folder as the source note, or in a sibling diagrams/ subfolder if many diagrams are expected. Confirm the path with the user before writing.
Parse $ARGUMENTS: optional --name (defaults to a slug derived from the source note's title); optional --type (see /excalidraw for options).
Read the runner protocol at ${CLAUDE_PLUGIN_ROOT}/skills/excalidraw-vault-core/SKILL.md.
Analyze the source document and extract the visual structure worth diagramming — section hierarchy, decision points, data flow, system components, relationships, etc. Confirm the chosen structure with the user before generating JSON.
Generate, wrap, and write the .excalidraw.md file per the skill's Obsidian wrapping format and Element schema sections.
Update the source note (with user confirmation): append a section like ## Diagram with ![[<name>.excalidraw]] so the diagram is embedded directly into the document it illustrates.
Report the diagram path, the wikilink, and the update applied to the source note.
<name>-v2), or skip the embed.What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
2 commands in this plugin
npx claudepluginhub moxywolfllc/moxywolf-plugins --plugin excalidraw-vault