SuperAPI AI Directory

diagram-generator

Design & creation

View repository

Updated 10-16 09:31

About this skill

Business Diagram Generator

A tool that generates business diagrams, charts, and analytical visual materials using AI image generation models.

Key Features

Feature Description Purpose
Strategy Diagram Porter's 5 Forces, SWOT, BCG Matrix Strategy Analysis
Market Chart Growth Trends, Segment Distribution, Regional Analysis Market Analysis
Process Flow Workflow, Customer Journey, Value Chain Process Documentation
Comparison Matrix Positioning Map, Competitive Comparison, Risk Heatmap Comparative Analysis

Workflow

Basic Generation Process

[프롬프트 작성] → [이미지 생성] → [품질 평가] → [반복 개선] → [최종 저장]

Step 1: Writing the Prompt

Prompt structure for effective diagram generation:

[다이어그램 유형]: [구체적 설명]
- 레이아웃: [배치 설명]
- 색상: [컬러 스키마]
- 레이블: [텍스트 요구사항]
- 스타일: [비즈니스/컨설팅/인포그래픽]

Step 2: Generation Command

# 기본 사용법
python scripts/generate_visual.py "프롬프트" -o output.png

# 문서 유형 지정 (품질 임계값 자동 설정)
python scripts/generate_visual.py "프롬프트" -o output.png --doc-type report

# 커스텀 품질 임계값
python scripts/generate_visual.py "프롬프트" -o output.png --threshold 7.5

# 최대 반복 횟수 지정
python scripts/generate_visual.py "프롬프트" -o output.png --max-iterations 5

Step 3: Quality Verification

Generated images are automatically quality-assessed:

Document Type Quality Threshold Description
journal 8.5/10 Academic Journal Level
report 7.5/10 Business Report
presentation 6.5/10 Presentation

Prompt Examples by Diagram Type

1. Porter's Five Forces

python scripts/generate_visual.py "Porter 5 Forces 분석 다이어그램:
- 중앙에 Industry Rivalry (산업 내 경쟁) 박스
- 상단: Threat of New Entrants, 하단: Threat of Substitutes
- 좌측: Supplier Power, 우측: Buyer Power
- 각 박스에 HIGH/MEDIUM/LOW 표시
- 화살표로 관계 표시
- 깔끔한 컨설팅 스타일, 비즈니스 컬러" -o figures/porters_forces.png --doc-type report

2. TAM/SAM/SOM

python scripts/generate_visual.py "TAM SAM SOM 동심원 다이어그램:
- 가장 큰 원: TAM (Total Addressable Market) - 연한 파랑
- 중간 원: SAM (Serviceable Addressable Market) - 중간 파랑
- 작은 원: SOM (Serviceable Obtainable Market) - 진한 파랑
- 각 원에 시장명과 금액 표시
- 우측에 범례
- 깔끔한 비즈니스 스타일" -o figures/tam_sam_som.png --doc-type report

3. Competitive Positioning Matrix

python scripts/generate_visual.py "2x2 경쟁 포지셔닝 매트릭스:
- X축: Market Focus (Niche ↔ Mass)
- Y축: Approach (Traditional ↔ Innovative)
- 4개 사분면 레이블: Leaders, Challengers, Niche Players, Visionaries
- 기업 위치는 원형 마커로 표시
- 마커 크기 = 시장 점유율
- 깔끔한 컨설팅 스타일" -o figures/competitive_positioning.png --doc-type report

4. Risk Heatmap

python scripts/generate_visual.py "리스크 히트맵 매트릭스:
- X축: Impact (Low, Medium, High)
- Y축: Probability (Low, Medium, High)
- 색상: 초록(낮음) → 노랑(중간) → 빨강(높음)
- 각 셀에 리스크 ID 배치
- 우측에 범례
- 비즈니스 스타일" -o figures/risk_heatmap.png --doc-type report

5. Market Growth Chart

python scripts/generate_visual.py "시장 성장 막대 그래프:
- X축: 연도 (2020-2034)
- Y축: 시장 규모 (Billion USD)
- 역사적 데이터: 진한 파랑, 전망: 연한 파랑
- 각 막대에 수치 레이블
- CAGR 주석
- 깔끔한 비즈니스 차트 스타일" -o figures/market_growth.png --doc-type report

6. Gantt Timeline

python scripts/generate_visual.py "24개월 실행 로드맵 Gantt 차트:
- 4단계: Foundation, Growth, Expansion, Optimization
- 각 Phase에 3-4개 마일스톤
- Phase별 색상 구분
- 주요 마일스톤에 다이아몬드 마커
- 프로젝트 관리 스타일" -o figures/timeline.png --doc-type report

Style Guide

Business Color Palette

Primary:    #1a365d (Navy)
Secondary:  #2b6cb0 (Blue)
Accent:     #ed8936 (Orange)
Success:    #38a169 (Green)
Warning:    #d69e2e (Yellow)
Danger:     #e53e3e (Red)

Style Keywords

Purpose Recommended Keywords
Strategy Document consulting style, McKinsey, strategic diagram
Data Visualization clean chart, data visualization, infographic
Business Report professional, corporate, business style
Presentation slide-ready, executive, presentation

Keywords to Avoid

  • Overly decorative expressions (ornate, decorative)
  • Unrealistic styles (fantasy, artistic)
  • Low-resolution implications (sketch, rough)

Quality Checklist

  • Is the text clearly legible?
  • Is there sufficient color contrast?
  • Is every data point labeled?
  • Is a legend included where needed?
  • Is the resolution print quality?
  • Is the style appropriate for a business document?

File Storage

{project}/
├── figures/                    # 생성된 시각자료
│   ├── 01_market_growth.png
│   ├── 02_tam_sam_som.png
│   ├── 03_porters_forces.png
│   └── ...
└── tmp/
    └── diagram-drafts/         # 초안 및 반복 버전

File Naming Convention

figures/{순번}_{다이어그램유형}.png

예시:
figures/01_market_growth.png
figures/02_tam_sam_som.png
figures/03_porters_forces.png
figures/04_competitive_positioning.png
figures/05_risk_heatmap.png
figures/06_implementation_timeline.png

Scripts

Script Path Description
generate_visual.py scripts/ Diagram generation (AI model integration)

Tech Stack

  • Image Generation: OpenRouter API (Nano Banana Pro)
  • Quality Assessment: Gemini model
  • Output Format: PNG (300 DPI)

Integrated Skills

This skill is called by the following skills:

  • analysis-reports: Generating visual materials for marketing analysis reports
  • brand-analytics: Brand analysis diagrams
  • competitive-analyst: Competitive analysis charts

Usage

# 분석 리포트에서 사용 예시
# 1. 시장 성장 차트 생성
python scripts/generate_visual.py "시장 성장 막대 그래프 2020-2034..." -o figures/01_market_growth.png --doc-type report

# 2. 결과 확인 및 리포트에 삽입
# 리포트 마크다운에서:
# ![시장 성장 추이](figures/01_market_growth.png)