TopRank Skills

Home / Claw Skills / Others / diagrams-generator
Official OpenClaw rules 15%

diagrams-generator

Generate professional diagrams including cloud architecture, data charts, academic figures, and more. Triggers on requests like "画架构图", "画图表", "画论文插图", "生成系统图", "create diagram", "visualize data", "draw neural network", or when users provide a sketch/image they want to recreate professionally.

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 diagrams-generator 技能。 若已安装,则直接安装 diagrams-generator 技能。

Overview

Skill Key
codehourra/diagrams-generator-pro
Author
diagrams-generator
Source Repo
openclaw/skills
Version
1.0.0
Source Path
skills/codehourra/diagrams-generator-pro
Latest Commit SHA
52eb83b560e6d2ec7641be9999fa21c80df1429e

Extracted Content

SKILL.md excerpt

# Diagrams Generator (Pro)

Generate professional diagrams using the most suitable tool for each scenario.

**💰 Pricing: 0.001 USDT per diagram generation**

## ⚠️ CRITICAL: Payment Integration (MUST READ FIRST)

This skill is monetized via [SkillPay](https://skillpay.me). **Before generating ANY diagram, you MUST execute the payment verification step.**

### Payment Configuration

```python
# ═══════════════════════════════════════════════════
# SkillPay Billing Integration
# ═══════════════════════════════════════════════════
import requests

BILLING_API_URL = 'https://skillpay.me'
BILLING_API_KEY = 'sk_d6d26f291dafc43acc8c2b6215b87cbc9b19c7d093aebdb2deeba42a3a0fea4b'
SKILL_ID = 'd270a586-e46c-42ba-8bbb-481ba7c2150c'
HEADERS = {'X-API-Key': BILLING_API_KEY, 'Content-Type': 'application/json'}
```

### Billing API Functions (MANDATORY)

**⚠️ THIS CODE MUST BE EXECUTED BEFORE ANY DIAGRAM GENERATION:**

```python
import requests
import os

BILLING_API_URL = 'https://skillpay.me'
BILLING_API_KEY = 'sk_d6d26f291dafc43acc8c2b6215b87cbc9b19c7d093aebdb2deeba42a3a0fea4b'
SKILL_ID = 'd270a586-e46c-42ba-8bbb-481ba7c2150c'
HEADERS = {'X-API-Key': BILLING_API_KEY, 'Content-Type': 'application/json'}

# ① Check balance / 查余额
def check_balance(user_id: str) -> float:
    resp = requests.get(
        f'{BILLING_API_URL}/api/v1/billing/balance',
        params={'user_id': user_id},
        headers=HEADERS
    )
    return resp.json()['balance']  # USDT amount

# ② Charge per call / 每次调用扣费
def charge_user(user_id: str) -> dict:
    resp = requests.post(
        f'{BILLING_API_URL}/api/v1/billing/charge',
        headers=HEADERS,
        json={
            'user_id': user_id,
            'skill_id': SKILL_ID,
            'amount': 0.001,  # USDT per call
        }
    )
    data = resp.json()
    if data['success']:
        return {'ok': True, 'balance': data['balance']}
    # Insufficient balance → auto returns BNB Chain USDT payment link
    return {'ok': False, 'balance...

README excerpt

# 📊 Diagrams Generator (Pro)

Professional diagram generation skill for AI agents. Generate cloud architecture diagrams, data charts, academic figures, and more.

**💰 Pricing: 0.001 USDT per generation** (via [SkillPay](https://skillpay.me))

## Features

- ☁️ **Cloud Architecture Diagrams** - AWS, GCP, Azure, Kubernetes
- 📈 **Data Visualization** - Bar charts, line charts, pie charts, scatter plots
- 🔬 **Academic Figures** - Neural networks, model architectures (TikZ/LaTeX)
- 🔄 **Flow Diagrams** - State machines, decision trees, process flows
- 🌐 **Network Topology** - Relationship graphs, knowledge graphs

## Installation

### Via ClawHub CLI

```bash
# Install the skill
clawhub install diagrams-generator

# Or search and install
clawhub search diagrams
```

### Manual Installation

Copy the skill folder to your OpenClaw skills directory:
- macOS: `~/Library/Application Support/OpenClaw/skills/`
- Linux: `~/.config/openclaw/skills/`
- Windows: `%APPDATA%\OpenClaw\skills\`

## Prerequisites

```bash
# Required: Graphviz
brew install graphviz  # macOS
apt-get install graphviz  # Linux

# Required: Python libraries
pip install diagrams matplotlib seaborn plotly networkx requests

# Optional: LaTeX (for academic-grade figures)
brew install --cask mactex  # macOS, full version
```

## Usage

Simply ask your AI agent to generate diagrams:

```
"画一个 AWS 微服务架构图"
"Create a GCP data pipeline diagram"
"画一个神经网络架构图"
"Generate a flowchart for user registration"
```

## Payment

This skill uses [SkillPay](https://skillpay.me) for monetization.

- **Price**: 0.001 USDT per diagram
- **Settlement**: Instant (BNB Chain)
- **No KYC required** for users

Payment is automatically verified before each diagram generation.

## Files

- `SKILL.md` - Main skill definition and workflow
- `payment.py` - SkillPay payment module
- `references/diagrams-api.md` - Node import reference
- `references/styling-guide.md` - Styling best practices

## Supported Diagram Types

|...

Related Claw Skills