diagram

Classify visual requests and route them to architecture, numeric, general, or mixed renderers.

Updated Jul 29, 2026
One-click install
npx skills add https://github.com/2lab-ai/soma-work --skill diagram-2lab-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: diagram
Source: https://github.com/2lab-ai/soma-work/tree/main/src/local/skills/diagram
Command: npx skills add https://github.com/2lab-ai/soma-work --skill diagram-2lab-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires local:architecture-diagram, stv:using-terminal-charts, excalidraw, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of handling visual requests by classifying them and routing them to the appropriate renderer.

Core Features & Use Cases

  • Visual Request Classification: Automatically categorizes visual requests into architecture, numeric, general, or mixed categories.
  • Delegate to Appropriate Renderer: Directs requests to the best-suited renderer for each category.
  • Single-Turn Execution: Performs classification, invocation, and completion in a single turn without follow-up questions.
  • Fallback Mechanism: Handles cases where the request is unclassifiable by providing a structured question for clarification.

Quick Start

Use the diagram skill to visualize a system architecture by providing a description or diagram request.

Frequently Asked Questions about diagram

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I route a visual request to the right diagram renderer?

To route a visual request, the system classifies content into architecture, numeric, general, or mixed categories, delegating each to the appropriate rendering tool in a single turn.

What happens when a system architecture diagram request is unclassifiable?

When a visual request is unclassifiable, the system triggers a fallback mechanism that provides a structured follow-up question to clarify the user's intent before proceeding with rendering.

Can I use Excalidraw for general visual request rendering?

Yes, Excalidraw is integrated as a dependency to handle general and mixed visual requests, routing diagram generation tasks to the appropriate rendering libraries based on content classification.

Do I need specific rendering tools to visualize system architecture?

Yes, the system requires access to specific rendering tools and libraries like architecture-diagram and terminal-charts to execute visual requests and generate the corresponding diagrams automatically.