Loading...
Loading...
Conduct in-depth research on topics and automatically generate knowledge relationship graph PDFs. After receiving a research topic, it automatically performs web research, information collection, knowledge organization, and finally generates a professional visualized relationship graph. Suitable for scenarios such as "research...and diagram", "in-depth analysis...and visualization", "generate knowledge graph", etc.
npx skill4agent add wshuyi/research-to-diagram research-to-diagramstructure-to-pdf- Conduct in-depth research on the topic and related knowledge
- Design the graph structure and hierarchy
- Create visual diagrams
- Generate PDF documentsdigraph G {
// 全局样式
graph [rankdir=TB bgcolor="#fdfdf5" fontname="Arial Unicode MS"]
node [shape=box style="rounded,filled" fillcolor="#e8f4f8"]
edge [fontname="Arial Unicode MS"]
// 使用 subgraph cluster 分组
subgraph cluster_group1 {
label="分组名称"
node1 [label="节点1"]
node2 [label="节点2"]
}
// 定义关系
node1 -> node2 [label="关系类型" color=red]
}dot -Tpdf diagram.dot -o output.pdf~/Downloads/<topic>_relations.dot<topic>_relations.pdf<topic>_sources.mdUser: Conduct in-depth research on the relationships between characters in "Romance of the Three Kingdoms" and create a structure diagram PDFUser: Research Kubernetes architecture and generate a visualized graphUser: Analyze the relationships between major countries and alliances in World War II and create a chart| Feature | research-to-diagram | structure-to-pdf |
|---|---|---|
| Input | Only topic/research question | Existing structured data |
| Research | ✅ Automated in-depth research | ❌ No research needed |
| Knowledge Organization | ✅ Automatic extraction and structuring | ❌ Directly use user data |
| Application Scenarios | Knowledge exploration, research visualization | Quick data conversion |
| Time | Longer (requires research) | Fast |
brew install graphvizbrew install plantumlnpm install -g @mermaid-js/mermaid-cli--tool--layout--output--depth--sources- Use cluster for family/organization grouping
- Use box/ellipse for characters, special shapes for important characters
- Use solid lines for blood relationships, red lines for marriage, dashed lines for others
- Add legends to explain symbol meanings- Top-level concepts at the top
- Sub-concepts expanded layer by layer
- Use solid lines for is-a relationships, dashed lines for has-a relationships
- Use colors to distinguish different categories- Use rankdir=TB for layered architecture
- Use rectangles for components, rounded rectangles for services
- Use arrows for dependency relationships
- Use thick lines or special colors for critical pathsgraph [fontname="Arial Unicode MS"]
node [fontname="Arial Unicode MS"]
edge [fontname="Arial Unicode MS"]concentrate=trueranksepnodeseprank=samesplines