add-feishu
Add Feishu (飞书/Lark) as a channel. Uses WebSocket long connection mode — no public URL needed. Bot responds to all messages (no…
Convert Mermaid diagrams and Markdown tables to images (PNG) for platforms that don't support rich formatting. Use when user asks to "convert to image", "export as PNG", "make this an image", or has content for X/Twitter that needs visual exports.
$ npx -y skills add sugarforever/01coder-agent-skills --skill diagram-to-image --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/diagram-to-imageContext preview
The summary Claude sees to decide when to auto-load this skill.
Convert Mermaid diagrams and Markdown tables to images (PNG) for platforms that don't support rich formatting. Use when user asks to "convert to image", "export as PNG", "make this an image", or has content for X/Twitter that needs visual exports.
name: diagram-to-image description: Convert Mermaid diagrams and Markdown tables to images (PNG) for platforms that don't support rich formatting. Use when user asks to "convert to image", "export as PNG", "make this an image", or has content for X/Twitter that needs visual exports.
Convert Mermaid diagrams and Markdown tables to PNG images via the mermaid-red API (diagramless.xyz). Produces high-quality, styled output with custom themes — no heavy local dependencies needed.
Use this skill when:
The bundled script uses Node.js built-in `fetch` (Node 18+). No npm install needed.
# The render script is bundled with this skill: SKILL_DIR=~/.claude/skills/diagram-to-image/scripts ls $SKILL_DIR/diagram-to-image.mjs
**IMPORTANT:** Determine the best output location based on context. Follow this decision tree:
If user explicitly mentions a path or filename, use that.
Check for common image/asset directories in the current project:
# Check for existing image directories (in order of preference) ls -d ./images ./assets ./img ./static ./public/images ./assets/images 2>/dev/null | head -1
Use the first existing directory found. Common patterns:
If user is writing an article or document:
Analyze the conversation to determine:
If no context clues:
Create meaningful filenames based on content analysis:
| Content Pattern | Example Filename | |----------------|------------------| | `flowchart` with auth/login | `auth-flow.png` | | `sequenceDiagram` with API | `api-sequence.png` | | `erDiagram` | `entity-relationship.png` | | `pie` chart about X | `x-distribution.png` | | `gantt` chart | `project-timeline.png` | | Table with comparison | `comparison-table.png` | | Table with data | `data-table.png` |
**Rules:**
Before converting, gather context: 1. Check current working directory 2. Look for existing image directories 3. Analyze diagram/table content for naming 4. Consider any files or topics mentioned in conversation
# Example logic (implement mentally, not as literal script)
if user_specified_path:
output_path = user_specified_path
elif exists("./images"):
output_path = "./images/{generated_name}.png"
elif exists("./assets"):
output_path = "./assets/{generated_name}.png"
elif exists("./public/images"):
output_path = "./public/images/{generated_name}.png"
else:
output_path = "./{generated_name}.png"# For Mermaid diagrams cat > /tmp/diagram.mmd << 'DIAGRAM_EOF' <mermaid content> DIAGRAM_EOF # For Markdown tables cat > /tmp/table.md << 'TABLE_EOF' <table content> TABLE_EOF
The API auto-detects content type (mermaid vs table). Both use the same command.
**Using the bundled script:**
# Mermaid diagram node ~/.claude/skills/diagram-to-image/scripts/diagram-to-image.mjs /tmp/diagram.mmd -o <output_path>.png # Markdown table node ~/.claude/skills/diagram-to-image/scripts/diagram-to-image.mjs /tmp/table.md -o <output_path>.png # With custom theme node ~/.claude/skills/diagram-to-image/scripts/diagram-to-image.mjs /tmp/diagram.mmd -o <output_path>.png --theme ocean # Force content type (if auto-detect gets it wrong) node ~/.claude/skills/diagram-to-image/scripts/diagram-to-image.mjs /tmp/table.md -o <output_path>.png --type table
**Available options:**
**Piping from stdin also works:**
echo "graph TD; A-->B" | node ~/.claude/skills/diagram-to-image/scripts/diagram-to-image.mjs -o out.png cat /tmp/table.md | node ~/.claude/skills/diagram-to-image/scripts/diagram-to-image.mjs --type table -o table.png
After conversion, tell the user: 1. **Full path** where image was saved 2. **Why** that location was chosen (briefly) 3. **File size** in bytes (printed by the script) 4. Suggest they can specify a different location if needed
**Context:** User is in a project that has `./images/` directory, discussing authentication.
**User:** "Convert this to an image"
flowchart TD
A[Login] --> B{Valid?}
B -->|Yes| C[DashA marketplace of agent skills by VerySmallWoods — content creation, publishing, analytics, and security scanning. Works with Claude Code, Codex, Cursor, Windsurf, and any other coding agent that supports the skills.sh format.
Add Feishu (飞书/Lark) as a channel. Uses WebSocket long connection mode — no public URL needed. Bot responds to all messages (no…
Manage Claude Code session transcripts from local JSONL storage, including listing candidate sessions, exporting full or selected…
Use when an agent needs to delegate a task to the OpenAI Codex CLI from another agent environment such as Claude Code, OpenClaw,…
Manage local Codex session transcripts, including listing candidate sessions, exporting full or selected sessions to organized…
Design typography-driven video cover images using HTML/CSS + Chrome DevTools screenshot. Generates covers in all needed aspect…
Generate elegant cover images for articles. Analyzes content and creates eye-catching hand-drawn style cover images with multiple…