diagram-generator
AI Diagram Generator
Usage Instructions
This skill allows you to generate and iteratively edit Mermaid diagrams and Draw.io (mxGraph) files for the user by leveraging a local Node.js server connected to the Gemini API.
Step 1: Verify the Server is Running
Before using this tool, check if the service is available by making a GET request to http://localhost:3000/api/health.
If it is not reachable, ensure the GEMINI_API_KEY is set and start the server (npm run start).
Step 2: Prepare Context Files (SECURITY RESTRICTIONS APPLY)
If the user asks you to map out an existing codebase or read local files, you MUST adhere to the following security protocols before reading any file from the workspace:
✅ ALLOWLIST (Permitted Files):
You may ONLY read and process standard source code files (e.g., .js, .ts, .py, .java, .cpp, .html, .css), documentation (e.g., .md, .txt), or safe images (.png, .jpg).