[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M739BGAKV1T8Q7NJ9C95KESK":3,"skill-same:01M739BGAKV1T8Q7NJ9C95KESK":59},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":37,"commitSha":38,"skillDirectory":39,"forksCount":40,"repositoryHtmlUrl":41,"repositoryHomepageUrl":6,"ownerHtmlUrl":42,"ownerBlogUrl":43,"ownerDescription":6,"updatedAt":44,"install":45,"resources":58},"01M739BGAKV1T8Q7NJ9C95KESK","generate-workflow-diagram",null,"Generate themed Mermaid flowchart diagrams from putior workflow data. Covers theme selection (9 themes including 4 colorblind-safe), output modes (console, file, clipboard, raw), interactive features (clickable nodes, source info), and embedding in README, Quarto, and R Markdown. Use after annotating source files and ready to produce a visual diagram, when regenerating a diagram after workflow changes, or when switching themes or output formats for different audiences.","roohe\u002Fagentic-super-skills","roohe","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99054084?v=4","01M734WCDFP6RZVT5CNM00QR26","01M734WCE4BD0T4NZS5PCV9V5F",10,"MIT","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fgenerate-workflow-diagram\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: generate-workflow-diagram\nlocale: caveman-lite\nsource_locale: en\nsource_commit: 82c77053\ntranslator: \"Julius Brussee homage — caveman\"\ntranslation_date: \"2026-04-24\"\ndescription: >\n  Generate themed Mermaid flowchart diagrams from putior workflow data.\n  Covers theme selection (9 themes including 4 colorblind-safe), output\n  modes (console, file, clipboard, raw), interactive features (clickable\n  nodes, source info), and embedding in README, Quarto, and R Markdown.\n  Use after annotating source files and ready to produce a visual diagram,\n  when regenerating a diagram after workflow changes, or when switching\n  themes or output formats for different audiences.\nlicense: MIT\nallowed-tools: Read Write Edit Bash Grep Glob\nmetadata:\n  author: Philipp Thoss\n  version: \"1.0\"\n  domain: workflow-visualization\n  complexity: basic\n  language: R\n  tags: putior, mermaid, diagram, theme, visualization, flowchart\n---\n\n# Generate Workflow Diagram\n\nGenerate a themed Mermaid flowchart diagram from putior workflow data and embed it in documentation.\n\n## When to Use\n\n- After annotating source files and ready to produce the visual diagram\n- Regenerating a diagram after workflow changes\n- Switching themes or output formats for different audiences\n- Embedding workflow diagrams in README, Quarto, or R Markdown documents\n\n## Inputs\n\n- **Required**: Workflow data from `put()`, `put_auto()`, or `put_merge()`\n- **Optional**: Theme name (default: `\"light\"`; options: light, dark, auto, minimal, github, viridis, magma, plasma, cividis)\n- **Optional**: Output target: console, file path, clipboard, or raw string\n- **Optional**: Interactive features: `show_source_info`, `enable_clicks`\n\n## Procedure\n\n### Step 1: Extract Workflow Data\n\nObtain workflow data from one of three sources.\n\n```r\nlibrary(putior)\n\n# From manual annotations\nworkflow \u003C- put(\".\u002Fsrc\u002F\")\n\n# From manual annotations, excluding specific files\nworkflow \u003C- put(\".\u002Fsrc\u002F\", exclude = c(\"build-workflow\\\\.R$\", \"test_\"))\n\n# From auto-detection only\nworkflow \u003C- put_auto(\".\u002Fsrc\u002F\")\n\n# From merged (manual + auto)\nworkflow \u003C- put_merge(\".\u002Fsrc\u002F\", merge_strategy = \"supplement\")\n```\n\nThe workflow data frame may include a `node_type` column from annotations. Node types control Mermaid shapes:\n\n| `node_type` | Mermaid Shape | Use Case |\n|-------------|---------------|----------|\n| `\"input\"` | Stadium `([...])` | Data sources, configuration files |\n| `\"output\"` | Subroutine `[[...]]` | Generated artifacts, reports |\n| `\"process\"` | Rectangle `[...]` | Processing steps (default) |\n| `\"decision\"` | Diamond `{...}` | Conditional logic, branching |\n| `\"start\"` \u002F `\"end\"` | Stadium `([...])` | Entry\u002Fterminal nodes |\n\nEach `node_type` also receives a corresponding CSS class (e.g., `class nodeId input;`) for theme-based styling.\n\n**Got:** A data frame with at least one row, containing `id`, `label`, and optionally `input`, `output`, `source_file`, `node_type` columns.\n\n**If fail:** If the data frame is empty, no annotations or patterns were found. Run `analyze-codebase-workflow` first, or check that annotations are syntactically valid with `put(\".\u002Fsrc\u002F\", validate = TRUE)`.\n\n### Step 2: Select Theme and Options\n\nChoose a theme appropriate for the target audience.\n\n```r\n# List all available themes\nget_diagram_themes()\n\n# Standard themes\n# \"light\"   — Default, bright colors\n# \"dark\"    — For dark mode environments\n# \"auto\"    — GitHub-adaptive with solid colors\n# \"minimal\" — Grayscale, print-friendly\n# \"github\"  — Optimized for GitHub README files\n\n# Colorblind-safe themes (viridis family)\n# \"viridis\" — Purple→Blue→Green→Yellow, general accessibility\n# \"magma\"   — Purple→Red→Yellow, high contrast for print\n# \"plasma\"  — Purple→Pink→Orange→Yellow, presentations\n# \"cividis\" — Blue→Gray→Yellow, maximum accessibility (no red-green)\n```\n\nAdditional parameters:\n- `direction`: Diagram flow direction — `\"TD\"` (top-down, default), `\"LR\"` (left-right), `\"RL\"`, `\"BT\"`\n- `show_artifacts`: `TRUE`\u002F`FALSE` — show artifact nodes (files, data); can be noisy for large workflows (e.g., 16+ extra nodes)\n- `show_workflow_boundaries`: `TRUE`\u002F`FALSE` — wrap each source file's nodes in a Mermaid subgraph\n- `source_info_style`: How source file info is displayed on nodes (e.g., as subtitle)\n- `node_labels`: Format for node label text\n\n**Got:** Theme names printed. Select one based on context.\n\n**If fail:** If a theme name is not recognized, `put_diagram()` falls back to `\"light\"`. Check spelling.\n\n### Step 3: Custom Palette with `put_theme()` (Optional)\n\nIf the 9 built-in themes don't match your project's palette, create a custom theme with `put_theme()`.\n\n```r\n# Create custom palette — unspecified types inherit from base theme\ncyberpunk \u003C- put_theme(\n  base = \"dark\",\n  input    = c(fill = \"#1a1a2e\", stroke = \"#00ff88\", color = \"#00ff88\"),\n  process  = c(fill = \"#16213e\", stroke = \"#44ddff\", color = \"#44ddff\"),\n  output   = c(fill = \"#0f3460\", stroke = \"#ff3366\", color = \"#ff3366\"),\n  decision = c(fill = \"#1a1a2e\", stroke = \"#ffaa33\", color = \"#ffaa33\")\n)\n\n# Use the palette parameter (overrides theme when provided)\nmermaid_content \u003C- put_diagram(workflow, palette = cyberpunk, output = \"raw\")\nwriteLines(mermaid_content, \"workflow.mmd\")\n```\n\n`put_theme()` accepts `input`, `process`, `output`, `decision`, `artifact`, `start`, and `end` node types. Each takes a named vector `c(fill = \"#hex\", stroke = \"#hex\", color = \"#hex\")`. Unset types inherit from the `base` theme.\n\n**Got:** Mermaid output with your custom classDef lines. Node shapes from `node_type` are preserved; only colors change. All node types use `stroke-width:2px` — override not currently supported via `put_theme()`.\n\n**If fail:** If the palette object is not a `putior_theme` class, `put_diagram()` raises a descriptive error. Ensure you pass the return value of `put_theme()`, not a raw list.\n\n**Fallback — manual classDef replacement:** For fine-grained control beyond what `put_theme()` offers (e.g., per-type stroke widths), generate with a base theme and replace classDef lines manually:\n\n```r\nmermaid_content \u003C- put_diagram(workflow, theme = \"dark\", output = \"raw\")\nlines \u003C- strsplit(mermaid_content, \"\\n\")[[1]]\nlines \u003C- lines[!grepl(\"^\\\\s*classDef \", lines)]\ncustom_defs \u003C- c(\"  classDef input fill:#1a1a2e,stroke:#00ff88,stroke-width:3px,color:#00ff88\")\nmermaid_content \u003C- paste(c(lines, custom_defs), collapse = \"\\n\")\n```\n\n### Step 4: Generate Mermaid Output\n\nProduce the diagram in the desired output mode.\n\n```r\n# Print to console (default)\ncat(put_diagram(workflow, theme = \"github\"))\n\n# Save to file\nwriteLines(put_diagram(workflow, theme = \"github\"), \"docs\u002Fworkflow.md\")\n\n# Get raw string for embedding\nmermaid_code \u003C- put_diagram(workflow, output = \"raw\", theme = \"github\")\n\n# With source file info (shows which file each node comes from)\ncat(put_diagram(workflow, theme = \"github\", show_source_info = TRUE))\n\n# With clickable nodes (for VS Code, RStudio, or file:\u002F\u002F protocol)\ncat(put_diagram(workflow,\n  theme = \"github\",\n  enable_clicks = TRUE,\n  click_protocol = \"vscode\"  # or \"rstudio\", \"file\"\n))\n\n# Full-featured\ncat(put_diagram(workflow,\n  theme = \"viridis\",\n  show_source_info = TRUE,\n  enable_clicks = TRUE,\n  click_protocol = \"vscode\"\n))\n```\n\n**Got:** Valid Mermaid code starting with `flowchart TD` (or `LR` depending on direction). Nodes are connected by arrows showing data flow.\n\n**If fail:** If the output is `flowchart TD` with no nodes, the workflow data frame is empty. If connections are missing, check that output filenames match input filenames across nodes.\n\n### Step 5: Embed in Target Document\n\nInsert the diagram into the appropriate documentation format.\n\n**GitHub README (```mermaid code fence):**\n````markdown\n## Workflow\n\n```mermaid\nflowchart TD\n  A[\"Extract Data\"] --> B[\"Transform\"]\n  B --> C[\"Load\"]\n```\n````\n\n**Quarto document (native mermaid chunk via knit_child):**\n```r\n# Chunk 1: Generate code (visible, foldable)\nworkflow \u003C- put(\".\u002Fsrc\u002F\")\nmermaid_code \u003C- put_diagram(workflow, output = \"raw\", theme = \"github\")\n```\n\n```r\n# Chunk 2: Output as native mermaid chunk (hidden)\n#| output: asis\n#| echo: false\nmermaid_chunk \u003C- paste0(\"```{mermaid}\\n\", mermaid_code, \"\\n```\")\ncat(knitr::knit_child(text = mermaid_chunk, quiet = TRUE))\n```\n\n**R Markdown (with mermaid.js CDN or DiagrammeR):**\n```r\nDiagrammeR::mermaid(put_diagram(workflow, output = \"raw\"))\n```\n\n**Got:** Diagram renders correctly in the target format. GitHub renders mermaid code fences natively.\n\n**If fail:** If GitHub doesn't render the diagram, ensure the code fence uses exactly ` ```mermaid ` (no extra attributes). For Quarto, ensure the `knit_child()` approach is used since direct variable interpolation in `{mermaid}` chunks is not supported.\n\n## Validation\n\n- [ ] `put_diagram()` produces valid Mermaid code (starts with `flowchart`)\n- [ ] All expected nodes appear in the diagram\n- [ ] Data flow connections (arrows) are present between connected nodes\n- [ ] Selected theme is applied (check init block in output for theme-specific colors)\n- [ ] Diagram renders correctly in the target format (GitHub, Quarto, etc.)\n\n## Pitfalls\n\n- **Empty diagrams**: Usually means `put()` returned no rows. Check annotations exist and are syntactically valid.\n- **All nodes disconnected**: Output filenames must exactly match input filenames (including extension) for putior to draw connections. `data.csv` and `Data.csv` are different.\n- **Theme not visible on GitHub**: GitHub's mermaid renderer has limited theme support. The `\"github\"` theme is specifically designed for GitHub rendering. The `%%{init:...}%%` theme block may be ignored by some renderers.\n- **Quarto mermaid variable interpolation**: Quarto's `{mermaid}` chunks don't support R variables directly. Use the `knit_child()` technique described in Step 5.\n- **Clickable nodes not working**: Click directives require a renderer that supports Mermaid interaction events. GitHub's static renderer does not support clicks. Use a local Mermaid renderer or the putior Shiny sandbox.\n- **Self-referential meta-pipeline files**: Scanning a directory that includes the build script generating the diagram causes duplicate subgraph IDs and Mermaid errors. Use the `exclude` parameter to skip them at scan time:\n  ```r\n  workflow \u003C- put(\".\u002Fsrc\u002F\", exclude = c(\"build-workflow\\\\.R$\", \"build-workflow\\\\.js$\"))\n  ```\n- **`show_artifacts = TRUE` too noisy**: Large projects may generate many artifact nodes (10–20+), cluttering the diagram. Use `show_artifacts = FALSE` and rely on `node_type` annotations to mark key inputs\u002Foutputs explicitly.\n\n## Related Skills\n\n- `annotate-source-files` — prerequisite: files must be annotated before diagram generation\n- `analyze-codebase-workflow` — auto-detection can supplement manual annotations\n- `setup-putior-ci` — automate diagram regeneration in CI\u002FCD\n- `create-quarto-report` — embed diagrams in Quarto reports\n- `build-pkgdown-site` — embed diagrams in pkgdown documentation sites\n","# Generate Workflow Diagram\n\nGenerate a themed Mermaid flowchart diagram from putior workflow data and embed it in documentation.\n\n## When to Use\n\n- After annotating source files and ready to produce the visual diagram\n- Regenerating a diagram after workflow changes\n- Switching themes or output formats for different audiences\n- Embedding workflow diagrams in README, Quarto, or R Markdown documents\n\n## Inputs\n\n- **Required**: Workflow data from `put()`, `put_auto()`, or `put_merge()`\n- **Optional**: Theme name (default: `\"light\"`; options: light, dark, auto, minimal, github, viridis, magma, plasma, cividis)\n- **Optional**: Output target: console, file path, clipboard, or raw string\n- **Optional**: Interactive features: `show_source_info`, `enable_clicks`\n\n## Procedure\n\n### Step 1: Extract Workflow Data\n\nObtain workflow data from one of three sources.\n\n```r\nlibrary(putior)\n\n# From manual annotations\nworkflow \u003C- put(\".\u002Fsrc\u002F\")\n\n# From manual annotations, excluding specific files\nworkflow \u003C- put(\".\u002Fsrc\u002F\", exclude = c(\"build-workflow\\\\.R$\", \"test_\"))\n\n# From auto-detection only\nworkflow \u003C- put_auto(\".\u002Fsrc\u002F\")\n\n# From merged (manual + auto)\nworkflow \u003C- put_merge(\".\u002Fsrc\u002F\", merge_strategy = \"supplement\")\n```\n\nThe workflow data frame may include a `node_type` column from annotations. Node types control Mermaid shapes:\n\n| `node_type` | Mermaid Shape | Use Case |\n|-------------|---------------|----------|\n| `\"input\"` | Stadium `([...])` | Data sources, configuration files |\n| `\"output\"` | Subroutine `[[...]]` | Generated artifacts, reports |\n| `\"process\"` | Rectangle `[...]` | Processing steps (default) |\n| `\"decision\"` | Diamond `{...}` | Conditional logic, branching |\n| `\"start\"` \u002F `\"end\"` | Stadium `([...])` | Entry\u002Fterminal nodes |\n\nEach `node_type` also receives a corresponding CSS class (e.g., `class nodeId input;`) for theme-based styling.\n\n**Got:** A data frame with at least one row, containing `id`, `label`, and optionally `input`, `output`, `source_file`, `node_type` columns.\n\n**If fail:** If the data frame is empty, no annotations or patterns were found. Run `analyze-codebase-workflow` first, or check that annotations are syntactically valid with `put(\".\u002Fsrc\u002F\", validate = TRUE)`.\n\n### Step 2: Select Theme and Options\n\nChoose a theme appropriate for the target audience.\n\n```r\n# List all available themes\nget_diagram_themes()\n\n# Standard themes\n# \"light\"   — Default, bright colors\n# \"dark\"    — For dark mode environments\n# \"auto\"    — GitHub-adaptive with solid colors\n# \"minimal\" — Grayscale, print-friendly\n# \"github\"  — Optimized for GitHub README files\n\n# Colorblind-safe themes (viridis family)\n# \"viridis\" — Purple→Blue→Green→Yellow, general accessibility\n# \"magma\"   — Purple→Red→Yellow, high contrast for print\n# \"plasma\"  — Purple→Pink→Orange→Yellow, presentations\n# \"cividis\" — Blue→Gray→Yellow, maximum accessibility (no red-green)\n```\n\nAdditional parameters:\n- `direction`: Diagram flow direction — `\"TD\"` (top-down, default), `\"LR\"` (left-right), `\"RL\"`, `\"BT\"`\n- `show_artifacts`: `TRUE`\u002F`FALSE` — show artifact nodes (files, data); can be noisy for large workflows (e.g., 16+ extra nodes)\n- `show_workflow_boundaries`: `TRUE`\u002F`FALSE` — wrap each source file's nodes in a Mermaid subgraph\n- `source_info_style`: How source file info is displayed on nodes (e.g., as subtitle)\n- `node_labels`: Format for node label text\n\n**Got:** Theme names printed. Select one based on context.\n\n**If fail:** If a theme name is not recognized, `put_diagram()` falls back to `\"light\"`. Check spelling.\n\n### Step 3: Custom Palette with `put_theme()` (Optional)\n\nIf the 9 built-in themes don't match your project's palette, create a custom theme with `put_theme()`.\n\n```r\n# Create custom palette — unspecified types inherit from base theme\ncyberpunk \u003C- put_theme(\n  base = \"dark\",\n  input    = c(fill = \"#1a1a2e\", stroke = \"#00ff88\", color = \"#00ff88\"),\n  process  = c(fill = \"#16213e\", stroke = \"#44ddff\", color = \"#44ddff\"),\n  output   = c(fill = \"#0f3460\", stroke = \"#ff3366\", color = \"#ff3366\"),\n  decision = c(fill = \"#1a1a2e\", stroke = \"#ffaa33\", color = \"#ffaa33\")\n)\n\n# Use the palette parameter (overrides theme when provided)\nmermaid_content \u003C- put_diagram(workflow, palette = cyberpunk, output = \"raw\")\nwriteLines(mermaid_content, \"workflow.mmd\")\n```\n\n`put_theme()` accepts `input`, `process`, `output`, `decision`, `artifact`, `start`, and `end` node types. Each takes a named vector `c(fill = \"#hex\", stroke = \"#hex\", color = \"#hex\")`. Unset types inherit from the `base` theme.\n\n**Got:** Mermaid output with your custom classDef lines. Node shapes from `node_type` are preserved; only colors change. All node types use `stroke-width:2px` — override not currently supported via `put_theme()`.\n\n**If fail:** If the palette object is not a `putior_theme` class, `put_diagram()` raises a descriptive error. Ensure you pass the return value of `put_theme()`, not a raw list.\n\n**Fallback — manual classDef replacement:** For fine-grained control beyond what `put_theme()` offers (e.g., per-type stroke widths), generate with a base theme and replace classDef lines manually:\n\n```r\nmermaid_content \u003C- put_diagram(workflow, theme = \"dark\", output = \"raw\")\nlines \u003C- strsplit(mermaid_content, \"\\n\")[[1]]\nlines \u003C- lines[!grepl(\"^\\\\s*classDef \", lines)]\ncustom_defs \u003C- c(\"  classDef input fill:#1a1a2e,stroke:#00ff88,stroke-width:3px,color:#00ff88\")\nmermaid_content \u003C- paste(c(lines, custom_defs), collapse = \"\\n\")\n```\n\n### Step 4: Generate Mermaid Output\n\nProduce the diagram in the desired output mode.\n\n```r\n# Print to console (default)\ncat(put_diagram(workflow, theme = \"github\"))\n\n# Save to file\nwriteLines(put_diagram(workflow, theme = \"github\"), \"docs\u002Fworkflow.md\")\n\n# Get raw string for embedding\nmermaid_code \u003C- put_diagram(workflow, output = \"raw\", theme = \"github\")\n\n# With source file info (shows which file each node comes from)\ncat(put_diagram(workflow, theme = \"github\", show_source_info = TRUE))\n\n# With clickable nodes (for VS Code, RStudio, or file:\u002F\u002F protocol)\ncat(put_diagram(workflow,\n  theme = \"github\",\n  enable_clicks = TRUE,\n  click_protocol = \"vscode\"  # or \"rstudio\", \"file\"\n))\n\n# Full-featured\ncat(put_diagram(workflow,\n  theme = \"viridis\",\n  show_source_info = TRUE,\n  enable_clicks = TRUE,\n  click_protocol = \"vscode\"\n))\n```\n\n**Got:** Valid Mermaid code starting with `flowchart TD` (or `LR` depending on direction). Nodes are connected by arrows showing data flow.\n\n**If fail:** If the output is `flowchart TD` with no nodes, the workflow data frame is empty. If connections are missing, check that output filenames match input filenames across nodes.\n\n### Step 5: Embed in Target Document\n\nInsert the diagram into the appropriate documentation format.\n\n**GitHub README (```mermaid code fence):**\n````markdown\n## Workflow\n\n```mermaid\nflowchart TD\n  A[\"Extract Data\"] --> B[\"Transform\"]\n  B --> C[\"Load\"]\n```\n````\n\n**Quarto document (native mermaid chunk via knit_child):**\n```r\n# Chunk 1: Generate code (visible, foldable)\nworkflow \u003C- put(\".\u002Fsrc\u002F\")\nmermaid_code \u003C- put_diagram(workflow, output = \"raw\", theme = \"github\")\n```\n\n```r\n# Chunk 2: Output as native mermaid chunk (hidden)\n#| output: asis\n#| echo: false\nmermaid_chunk \u003C- paste0(\"```{mermaid}\\n\", mermaid_code, \"\\n```\")\ncat(knitr::knit_child(text = mermaid_chunk, quiet = TRUE))\n```\n\n**R Markdown (with mermaid.js CDN or DiagrammeR):**\n```r\nDiagrammeR::mermaid(put_diagram(workflow, output = \"raw\"))\n```\n\n**Got:** Diagram renders correctly in the target format. GitHub renders mermaid code fences natively.\n\n**If fail:** If GitHub doesn't render the diagram, ensure the code fence uses exactly ` ```mermaid ` (no extra attributes). For Quarto, ensure the `knit_child()` approach is used since direct variable interpolation in `{mermaid}` chunks is not supported.\n\n## Validation\n\n- [ ] `put_diagram()` produces valid Mermaid code (starts with `flowchart`)\n- [ ] All expected nodes appear in the diagram\n- [ ] Data flow connections (arrows) are present between connected nodes\n- [ ] Selected theme is applied (check init block in output for theme-specific colors)\n- [ ] Diagram renders correctly in the target format (GitHub, Quarto, etc.)\n\n## Pitfalls\n\n- **Empty diagrams**: Usually means `put()` returned no rows. Check annotations exist and are syntactically valid.\n- **All nodes disconnected**: Output filenames must exactly match input filenames (including extension) for putior to draw connections. `data.csv` and `Data.csv` are different.\n- **Theme not visible on GitHub**: GitHub's mermaid renderer has limited theme support. The `\"github\"` theme is specifically designed for GitHub rendering. The `%%{init:...}%%` theme block may be ignored by some renderers.\n- **Quarto mermaid variable interpolation**: Quarto's `{mermaid}` chunks don't support R variables directly. Use the `knit_child()` technique described in Step 5.\n- **Clickable nodes not working**: Click directives require a renderer that supports Mermaid interaction events. GitHub's static renderer does not support clicks. Use a local Mermaid renderer or the putior Shiny sandbox.\n- **Self-referential meta-pipeline files**: Scanning a directory that includes the build script generating the diagram causes duplicate subgraph IDs and Mermaid errors. Use the `exclude` parameter to skip them at scan time:\n  ```r\n  workflow \u003C- put(\".\u002Fsrc\u002F\", exclude = c(\"build-workflow\\\\.R$\", \"build-workflow\\\\.js$\"))\n  ```\n- **`show_artifacts = TRUE` too noisy**: Large projects may generate many artifact nodes (10–20+), cluttering the diagram. Use `show_artifacts = FALSE` and rely on `node_type` annotations to mark key inputs\u002Foutputs explicitly.\n\n## Related Skills\n\n- `annotate-source-files` — prerequisite: files must be annotated before diagram generation\n- `analyze-codebase-workflow` — auto-detection can supplement manual annotations\n- `setup-putior-ci` — automate diagram regeneration in CI\u002FCD\n- `create-quarto-report` — embed diagrams in Quarto reports\n- `build-pkgdown-site` — embed diagrams in pkgdown documentation sites\n",{"name":5,"locale":23,"license":14,"metadata":24,"translator":31,"description":32,"allowed-tools":33,"source_commit":34,"source_locale":35,"translation_date":36},"caveman-lite",{"tags":25,"author":26,"domain":27,"version":28,"language":29,"complexity":30},"putior, mermaid, diagram, theme, visualization, flowchart","Philipp Thoss","workflow-visualization","1.0","R","basic","Julius Brussee homage — caveman","Generate themed Mermaid flowchart diagrams from putior workflow data. Covers theme selection (9 themes including 4 colorblind-safe), output modes (console, file, clipboard, raw), interactive features (clickable nodes, source info), and embedding in README, Quarto, and R Markdown. Use after annotating source files and ready to produce a visual diagram, when regenerating a diagram after workflow changes, or when switching themes or output formats for different audiences.\n","Read Write Edit Bash Grep Glob","82c77053","en","2026-04-24","master","f483e54f3ad5f202a77d45f2e57f8d970b71195f","skills_library\u002Fgenerate-workflow-diagram",2,"https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills","https:\u002F\u002Fgithub.com\u002Froohe","yoou.link","2026-05-19 15:56:07",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add roohe\u002Fagentic-super-skills --skill generate-workflow-diagram",{"tool":51,"command":52},"bunx","bunx skills add roohe\u002Fagentic-super-skills --skill generate-workflow-diagram",{"tool":54,"command":55},"pnpm","pnpm dlx skills add roohe\u002Fagentic-super-skills --skill generate-workflow-diagram","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fgenerate-workflow-diagram\u002FSKILL.md",true,[],[60,67,74,81,88,95],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M73D865CZME2FCMKA4PQM348","zarr-python","Chunked N-D arrays for cloud storage. Compressed arrays, parallel I\u002FO, S3\u002FGCS integration, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M73D7Z64J4ABWZJD7P44XBBF","youtube-downloader","Download and process YouTube content for research. Use when: downloading competitor videos for analysis; extracting audio for podcasts; getting transcripts for content repurposing; archiving webinars; research content curation","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fyoutube-downloader\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M73D7K8778TGZV3GJFR3703D","yc-pitch-deck","Create a compelling startup pitch deck that follows the structure proven to raise billions from top investors. Master the YC and Sequoia formats that get founders funded. Use when: **Fundraising** to create investor pitch decks; **YC application** to structure your narrative; **Demo Day prep** to craft your 2-minute pitch; **Angel investors** to communicate your opportunity; **Partnership pitches** to structure compelling asks","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fyc-pitch-deck\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M73D70KJSE0E8Z28YMNNRT04","x-twitter-scraper","Use when the user needs X (Twitter) data or confirmation-gated X actions through Xquik: tweet search, user lookup, follower extraction, media download, monitoring, webhooks, MCP, SDKs, posting, likes, DMs, and profile updates. Requires a Xquik API key. Never ask for X login material.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fx-twitter-scraper\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":18},"01M73D6ED01GV077R7K4NZNFZJ","write-vignette","Create R package vignettes using R Markdown or Quarto. Covers vignette setup, YAML configuration, code chunk options, building and testing, and CRAN requirements for vignettes. Use when adding a Getting Started tutorial, documenting complex workflows spanning multiple functions, creating domain-specific guides, or when CRAN submission requires user-facing documentation beyond function help pages.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fwrite-vignette\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":18},"01M73D69YJR0BK3NFHE0CYG3EF","write-validation-documentation","Write IQ\u002FOQ\u002FPQ validation documentation for computerized systems in regulated environments. Covers protocols, reports, test scripts, deviation handling, and approval workflows. Use when validating R or other software for regulated use, preparing for a regulatory audit, documenting qualification of computing environments, or creating and updating validation protocols and reports for new or re-qualified systems.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fwrite-validation-documentation\u002FSKILL.md",[],[]]