minimal-vibe-coding-kit 0.5.0 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (378) hide show
  1. package/.agents/skills/agentshield-security-review/SKILL.md +16 -8
  2. package/.agents/skills/agentshield-security-review/references/native-install.md +2 -2
  3. package/.agents/skills/agentshield-security-review/scripts/agentshield_repo_probe.py +19 -1
  4. package/.agents/skills/mermaid/SKILL.md +141 -0
  5. package/.agents/skills/mermaid/UPSTREAM-NOTICE.md +52 -0
  6. package/.agents/skills/mermaid/references/architecture.md +433 -0
  7. package/.agents/skills/mermaid/references/block.md +752 -0
  8. package/.agents/skills/mermaid/references/c4.md +618 -0
  9. package/.agents/skills/mermaid/references/classDiagram.md +1191 -0
  10. package/.agents/skills/mermaid/references/coding-level-charts.md +27 -0
  11. package/.agents/skills/mermaid/references/config-configuration.md +71 -0
  12. package/.agents/skills/mermaid/references/config-directives.md +341 -0
  13. package/.agents/skills/mermaid/references/config-layouts.md +39 -0
  14. package/.agents/skills/mermaid/references/config-math.md +95 -0
  15. package/.agents/skills/mermaid/references/config-theming.md +245 -0
  16. package/.agents/skills/mermaid/references/config-tidy-tree.md +88 -0
  17. package/.agents/skills/mermaid/references/cynefin.md +278 -0
  18. package/.agents/skills/mermaid/references/debug-heatmap.md +68 -0
  19. package/.agents/skills/mermaid/references/entityRelationshipDiagram.md +902 -0
  20. package/.agents/skills/mermaid/references/eventmodeling.md +474 -0
  21. package/.agents/skills/mermaid/references/examples.md +300 -0
  22. package/.agents/skills/mermaid/references/flowchart.md +2166 -0
  23. package/.agents/skills/mermaid/references/gantt.md +736 -0
  24. package/.agents/skills/mermaid/references/gitgraph.md +2137 -0
  25. package/.agents/skills/mermaid/references/ishikawa.md +65 -0
  26. package/.agents/skills/mermaid/references/kanban.md +160 -0
  27. package/.agents/skills/mermaid/references/kit-examples.md +210 -0
  28. package/.agents/skills/mermaid/references/mindmap.md +334 -0
  29. package/.agents/skills/mermaid/references/packet.md +152 -0
  30. package/.agents/skills/mermaid/references/pie.md +111 -0
  31. package/.agents/skills/mermaid/references/preview.html +1143 -0
  32. package/.agents/skills/mermaid/references/quadrantChart.md +266 -0
  33. package/.agents/skills/mermaid/references/radar.md +268 -0
  34. package/.agents/skills/mermaid/references/railroad.md +455 -0
  35. package/.agents/skills/mermaid/references/requirementDiagram.md +494 -0
  36. package/.agents/skills/mermaid/references/sankey.md +414 -0
  37. package/.agents/skills/mermaid/references/sequenceDiagram.md +1206 -0
  38. package/.agents/skills/mermaid/references/stateDiagram.md +669 -0
  39. package/.agents/skills/mermaid/references/styling-preset.md +620 -0
  40. package/.agents/skills/mermaid/references/swimlanes.md +523 -0
  41. package/.agents/skills/mermaid/references/timeline.md +570 -0
  42. package/.agents/skills/mermaid/references/treeView.md +432 -0
  43. package/.agents/skills/mermaid/references/treemap.md +352 -0
  44. package/.agents/skills/mermaid/references/userJourney.md +41 -0
  45. package/.agents/skills/mermaid/references/venn.md +156 -0
  46. package/.agents/skills/mermaid/references/wardley.md +731 -0
  47. package/.agents/skills/mermaid/references/xyChart.md +392 -0
  48. package/.agents/skills/mermaid/references/zenuml.md +473 -0
  49. package/.agents/skills/sequential-thinking/SKILL.md +97 -69
  50. package/.agents/skills/sequential-thinking/examples/adaptive-depth.md +15 -536
  51. package/.agents/skills/sequential-thinking/examples/branching-exploration.md +18 -468
  52. package/.agents/skills/sequential-thinking/examples/linear-reasoning.md +22 -203
  53. package/.agents/skills/sequential-thinking/examples/revision-pattern.md +17 -298
  54. package/.agents/skills/sequential-thinking/references/advanced-techniques.md +98 -0
  55. package/.agents/skills/sequential-thinking/references/output-schema.md +99 -458
  56. package/.agents/skills/sequential-thinking/references/parameters.md +73 -435
  57. package/.agents/skills/sequential-thinking/references/patterns.md +72 -639
  58. package/.agents/skills/tutien/SKILL.md +36 -13
  59. package/.agents/skills/tutien/references/adaptive-response.md +68 -0
  60. package/.agents/skills/tutien/references/lore-sources.md +28 -0
  61. package/.agents/skills/tutien/references/privacy.md +13 -1
  62. package/.agents/skills/tutien/references/schema.md +32 -1
  63. package/.agents/skills/tutien/references/story-system.md +176 -0
  64. package/.agents/skills/tutien/references/vi-style-guide.md +89 -0
  65. package/.agents/skills/tutien/references/voice-and-mode.md +23 -8
  66. package/.agents/skills/tutien/scripts/catalog.mjs +17 -17
  67. package/.agents/skills/tutien/scripts/classify.mjs +64 -37
  68. package/.agents/skills/tutien/scripts/command.mjs +40 -21
  69. package/.agents/skills/tutien/scripts/project-profile.mjs +202 -0
  70. package/.agents/skills/tutien/scripts/render-report.mjs +128 -72
  71. package/.agents/skills/tutien/scripts/response-brief.mjs +103 -0
  72. package/.agents/skills/tutien/scripts/run-tutien.mjs +141 -63
  73. package/.agents/skills/tutien/scripts/story-ledger.mjs +241 -0
  74. package/.agents/skills/tutien/scripts/villains.mjs +14 -14
  75. package/.claude/skills/agentshield-security-review/SKILL.md +16 -8
  76. package/.claude/skills/agentshield-security-review/references/native-install.md +2 -2
  77. package/.claude/skills/agentshield-security-review/scripts/agentshield_repo_probe.py +19 -1
  78. package/.claude/skills/mermaid/SKILL.md +141 -0
  79. package/.claude/skills/mermaid/UPSTREAM-NOTICE.md +52 -0
  80. package/.claude/skills/mermaid/references/architecture.md +433 -0
  81. package/.claude/skills/mermaid/references/block.md +752 -0
  82. package/.claude/skills/mermaid/references/c4.md +618 -0
  83. package/.claude/skills/mermaid/references/classDiagram.md +1191 -0
  84. package/.claude/skills/mermaid/references/coding-level-charts.md +27 -0
  85. package/.claude/skills/mermaid/references/config-configuration.md +71 -0
  86. package/.claude/skills/mermaid/references/config-directives.md +341 -0
  87. package/.claude/skills/mermaid/references/config-layouts.md +39 -0
  88. package/.claude/skills/mermaid/references/config-math.md +95 -0
  89. package/.claude/skills/mermaid/references/config-theming.md +245 -0
  90. package/.claude/skills/mermaid/references/config-tidy-tree.md +88 -0
  91. package/.claude/skills/mermaid/references/cynefin.md +278 -0
  92. package/.claude/skills/mermaid/references/debug-heatmap.md +68 -0
  93. package/.claude/skills/mermaid/references/entityRelationshipDiagram.md +902 -0
  94. package/.claude/skills/mermaid/references/eventmodeling.md +474 -0
  95. package/.claude/skills/mermaid/references/examples.md +300 -0
  96. package/.claude/skills/mermaid/references/flowchart.md +2166 -0
  97. package/.claude/skills/mermaid/references/gantt.md +736 -0
  98. package/.claude/skills/mermaid/references/gitgraph.md +2137 -0
  99. package/.claude/skills/mermaid/references/ishikawa.md +65 -0
  100. package/.claude/skills/mermaid/references/kanban.md +160 -0
  101. package/.claude/skills/mermaid/references/kit-examples.md +210 -0
  102. package/.claude/skills/mermaid/references/mindmap.md +334 -0
  103. package/.claude/skills/mermaid/references/packet.md +152 -0
  104. package/.claude/skills/mermaid/references/pie.md +111 -0
  105. package/.claude/skills/mermaid/references/preview.html +1143 -0
  106. package/.claude/skills/mermaid/references/quadrantChart.md +266 -0
  107. package/.claude/skills/mermaid/references/radar.md +268 -0
  108. package/.claude/skills/mermaid/references/railroad.md +455 -0
  109. package/.claude/skills/mermaid/references/requirementDiagram.md +494 -0
  110. package/.claude/skills/mermaid/references/sankey.md +414 -0
  111. package/.claude/skills/mermaid/references/sequenceDiagram.md +1206 -0
  112. package/.claude/skills/mermaid/references/stateDiagram.md +669 -0
  113. package/.claude/skills/mermaid/references/styling-preset.md +620 -0
  114. package/.claude/skills/mermaid/references/swimlanes.md +523 -0
  115. package/.claude/skills/mermaid/references/timeline.md +570 -0
  116. package/.claude/skills/mermaid/references/treeView.md +432 -0
  117. package/.claude/skills/mermaid/references/treemap.md +352 -0
  118. package/.claude/skills/mermaid/references/userJourney.md +41 -0
  119. package/.claude/skills/mermaid/references/venn.md +156 -0
  120. package/.claude/skills/mermaid/references/wardley.md +731 -0
  121. package/.claude/skills/mermaid/references/xyChart.md +392 -0
  122. package/.claude/skills/mermaid/references/zenuml.md +473 -0
  123. package/.claude/skills/sequential-thinking/SKILL.md +97 -69
  124. package/.claude/skills/sequential-thinking/examples/adaptive-depth.md +15 -536
  125. package/.claude/skills/sequential-thinking/examples/branching-exploration.md +18 -468
  126. package/.claude/skills/sequential-thinking/examples/linear-reasoning.md +22 -203
  127. package/.claude/skills/sequential-thinking/examples/revision-pattern.md +17 -298
  128. package/.claude/skills/sequential-thinking/references/advanced-techniques.md +98 -0
  129. package/.claude/skills/sequential-thinking/references/output-schema.md +99 -458
  130. package/.claude/skills/sequential-thinking/references/parameters.md +73 -435
  131. package/.claude/skills/sequential-thinking/references/patterns.md +72 -639
  132. package/.claude/skills/tutien/SKILL.md +36 -13
  133. package/.claude/skills/tutien/references/adaptive-response.md +68 -0
  134. package/.claude/skills/tutien/references/lore-sources.md +28 -0
  135. package/.claude/skills/tutien/references/privacy.md +13 -1
  136. package/.claude/skills/tutien/references/schema.md +32 -1
  137. package/.claude/skills/tutien/references/story-system.md +176 -0
  138. package/.claude/skills/tutien/references/vi-style-guide.md +89 -0
  139. package/.claude/skills/tutien/references/voice-and-mode.md +23 -8
  140. package/.claude/skills/tutien/scripts/catalog.mjs +17 -17
  141. package/.claude/skills/tutien/scripts/classify.mjs +64 -37
  142. package/.claude/skills/tutien/scripts/command.mjs +40 -21
  143. package/.claude/skills/tutien/scripts/project-profile.mjs +202 -0
  144. package/.claude/skills/tutien/scripts/render-report.mjs +128 -72
  145. package/.claude/skills/tutien/scripts/response-brief.mjs +103 -0
  146. package/.claude/skills/tutien/scripts/run-tutien.mjs +141 -63
  147. package/.claude/skills/tutien/scripts/story-ledger.mjs +241 -0
  148. package/.claude/skills/tutien/scripts/villains.mjs +14 -14
  149. package/.codex-plugin/plugin.json +1 -1
  150. package/.cursor/skills/mermaid/SKILL.md +141 -0
  151. package/.cursor/skills/mermaid/UPSTREAM-NOTICE.md +52 -0
  152. package/.cursor/skills/mermaid/references/architecture.md +433 -0
  153. package/.cursor/skills/mermaid/references/block.md +752 -0
  154. package/.cursor/skills/mermaid/references/c4.md +618 -0
  155. package/.cursor/skills/mermaid/references/classDiagram.md +1191 -0
  156. package/.cursor/skills/mermaid/references/coding-level-charts.md +27 -0
  157. package/.cursor/skills/mermaid/references/config-configuration.md +71 -0
  158. package/.cursor/skills/mermaid/references/config-directives.md +341 -0
  159. package/.cursor/skills/mermaid/references/config-layouts.md +39 -0
  160. package/.cursor/skills/mermaid/references/config-math.md +95 -0
  161. package/.cursor/skills/mermaid/references/config-theming.md +245 -0
  162. package/.cursor/skills/mermaid/references/config-tidy-tree.md +88 -0
  163. package/.cursor/skills/mermaid/references/cynefin.md +278 -0
  164. package/.cursor/skills/mermaid/references/debug-heatmap.md +68 -0
  165. package/.cursor/skills/mermaid/references/entityRelationshipDiagram.md +902 -0
  166. package/.cursor/skills/mermaid/references/eventmodeling.md +474 -0
  167. package/.cursor/skills/mermaid/references/examples.md +300 -0
  168. package/.cursor/skills/mermaid/references/flowchart.md +2166 -0
  169. package/.cursor/skills/mermaid/references/gantt.md +736 -0
  170. package/.cursor/skills/mermaid/references/gitgraph.md +2137 -0
  171. package/.cursor/skills/mermaid/references/ishikawa.md +65 -0
  172. package/.cursor/skills/mermaid/references/kanban.md +160 -0
  173. package/.cursor/skills/mermaid/references/kit-examples.md +210 -0
  174. package/.cursor/skills/mermaid/references/mindmap.md +334 -0
  175. package/.cursor/skills/mermaid/references/packet.md +152 -0
  176. package/.cursor/skills/mermaid/references/pie.md +111 -0
  177. package/.cursor/skills/mermaid/references/preview.html +1143 -0
  178. package/.cursor/skills/mermaid/references/quadrantChart.md +266 -0
  179. package/.cursor/skills/mermaid/references/radar.md +268 -0
  180. package/.cursor/skills/mermaid/references/railroad.md +455 -0
  181. package/.cursor/skills/mermaid/references/requirementDiagram.md +494 -0
  182. package/.cursor/skills/mermaid/references/sankey.md +414 -0
  183. package/.cursor/skills/mermaid/references/sequenceDiagram.md +1206 -0
  184. package/.cursor/skills/mermaid/references/stateDiagram.md +669 -0
  185. package/.cursor/skills/mermaid/references/styling-preset.md +620 -0
  186. package/.cursor/skills/mermaid/references/swimlanes.md +523 -0
  187. package/.cursor/skills/mermaid/references/timeline.md +570 -0
  188. package/.cursor/skills/mermaid/references/treeView.md +432 -0
  189. package/.cursor/skills/mermaid/references/treemap.md +352 -0
  190. package/.cursor/skills/mermaid/references/userJourney.md +41 -0
  191. package/.cursor/skills/mermaid/references/venn.md +156 -0
  192. package/.cursor/skills/mermaid/references/wardley.md +731 -0
  193. package/.cursor/skills/mermaid/references/xyChart.md +392 -0
  194. package/.cursor/skills/mermaid/references/zenuml.md +473 -0
  195. package/.cursor/skills/sequential-thinking/SKILL.md +97 -69
  196. package/.cursor/skills/sequential-thinking/examples/adaptive-depth.md +15 -536
  197. package/.cursor/skills/sequential-thinking/examples/branching-exploration.md +18 -468
  198. package/.cursor/skills/sequential-thinking/examples/linear-reasoning.md +22 -203
  199. package/.cursor/skills/sequential-thinking/examples/revision-pattern.md +17 -298
  200. package/.cursor/skills/sequential-thinking/references/advanced-techniques.md +98 -0
  201. package/.cursor/skills/sequential-thinking/references/output-schema.md +99 -458
  202. package/.cursor/skills/sequential-thinking/references/parameters.md +73 -435
  203. package/.cursor/skills/sequential-thinking/references/patterns.md +72 -639
  204. package/.cursor/skills/tutien/SKILL.md +36 -13
  205. package/.cursor/skills/tutien/references/adaptive-response.md +68 -0
  206. package/.cursor/skills/tutien/references/lore-sources.md +28 -0
  207. package/.cursor/skills/tutien/references/privacy.md +13 -1
  208. package/.cursor/skills/tutien/references/schema.md +32 -1
  209. package/.cursor/skills/tutien/references/story-system.md +176 -0
  210. package/.cursor/skills/tutien/references/vi-style-guide.md +89 -0
  211. package/.cursor/skills/tutien/references/voice-and-mode.md +23 -8
  212. package/.cursor/skills/tutien/scripts/catalog.mjs +17 -17
  213. package/.cursor/skills/tutien/scripts/classify.mjs +64 -37
  214. package/.cursor/skills/tutien/scripts/command.mjs +40 -21
  215. package/.cursor/skills/tutien/scripts/project-profile.mjs +202 -0
  216. package/.cursor/skills/tutien/scripts/render-report.mjs +128 -72
  217. package/.cursor/skills/tutien/scripts/response-brief.mjs +103 -0
  218. package/.cursor/skills/tutien/scripts/run-tutien.mjs +141 -63
  219. package/.cursor/skills/tutien/scripts/story-ledger.mjs +241 -0
  220. package/.cursor/skills/tutien/scripts/villains.mjs +14 -14
  221. package/.grok/skills/agentshield-security-review/SKILL.md +16 -8
  222. package/.grok/skills/agentshield-security-review/references/native-install.md +2 -2
  223. package/.grok/skills/agentshield-security-review/scripts/agentshield_repo_probe.py +19 -1
  224. package/.grok/skills/mermaid/SKILL.md +141 -0
  225. package/.grok/skills/mermaid/UPSTREAM-NOTICE.md +52 -0
  226. package/.grok/skills/mermaid/references/architecture.md +433 -0
  227. package/.grok/skills/mermaid/references/block.md +752 -0
  228. package/.grok/skills/mermaid/references/c4.md +618 -0
  229. package/.grok/skills/mermaid/references/classDiagram.md +1191 -0
  230. package/.grok/skills/mermaid/references/coding-level-charts.md +27 -0
  231. package/.grok/skills/mermaid/references/config-configuration.md +71 -0
  232. package/.grok/skills/mermaid/references/config-directives.md +341 -0
  233. package/.grok/skills/mermaid/references/config-layouts.md +39 -0
  234. package/.grok/skills/mermaid/references/config-math.md +95 -0
  235. package/.grok/skills/mermaid/references/config-theming.md +245 -0
  236. package/.grok/skills/mermaid/references/config-tidy-tree.md +88 -0
  237. package/.grok/skills/mermaid/references/cynefin.md +278 -0
  238. package/.grok/skills/mermaid/references/debug-heatmap.md +68 -0
  239. package/.grok/skills/mermaid/references/entityRelationshipDiagram.md +902 -0
  240. package/.grok/skills/mermaid/references/eventmodeling.md +474 -0
  241. package/.grok/skills/mermaid/references/examples.md +300 -0
  242. package/.grok/skills/mermaid/references/flowchart.md +2166 -0
  243. package/.grok/skills/mermaid/references/gantt.md +736 -0
  244. package/.grok/skills/mermaid/references/gitgraph.md +2137 -0
  245. package/.grok/skills/mermaid/references/ishikawa.md +65 -0
  246. package/.grok/skills/mermaid/references/kanban.md +160 -0
  247. package/.grok/skills/mermaid/references/kit-examples.md +210 -0
  248. package/.grok/skills/mermaid/references/mindmap.md +334 -0
  249. package/.grok/skills/mermaid/references/packet.md +152 -0
  250. package/.grok/skills/mermaid/references/pie.md +111 -0
  251. package/.grok/skills/mermaid/references/preview.html +1143 -0
  252. package/.grok/skills/mermaid/references/quadrantChart.md +266 -0
  253. package/.grok/skills/mermaid/references/radar.md +268 -0
  254. package/.grok/skills/mermaid/references/railroad.md +455 -0
  255. package/.grok/skills/mermaid/references/requirementDiagram.md +494 -0
  256. package/.grok/skills/mermaid/references/sankey.md +414 -0
  257. package/.grok/skills/mermaid/references/sequenceDiagram.md +1206 -0
  258. package/.grok/skills/mermaid/references/stateDiagram.md +669 -0
  259. package/.grok/skills/mermaid/references/styling-preset.md +620 -0
  260. package/.grok/skills/mermaid/references/swimlanes.md +523 -0
  261. package/.grok/skills/mermaid/references/timeline.md +570 -0
  262. package/.grok/skills/mermaid/references/treeView.md +432 -0
  263. package/.grok/skills/mermaid/references/treemap.md +352 -0
  264. package/.grok/skills/mermaid/references/userJourney.md +41 -0
  265. package/.grok/skills/mermaid/references/venn.md +156 -0
  266. package/.grok/skills/mermaid/references/wardley.md +731 -0
  267. package/.grok/skills/mermaid/references/xyChart.md +392 -0
  268. package/.grok/skills/mermaid/references/zenuml.md +473 -0
  269. package/.grok/skills/sequential-thinking/SKILL.md +97 -69
  270. package/.grok/skills/sequential-thinking/examples/adaptive-depth.md +15 -536
  271. package/.grok/skills/sequential-thinking/examples/branching-exploration.md +18 -468
  272. package/.grok/skills/sequential-thinking/examples/linear-reasoning.md +22 -203
  273. package/.grok/skills/sequential-thinking/examples/revision-pattern.md +17 -298
  274. package/.grok/skills/sequential-thinking/references/advanced-techniques.md +98 -0
  275. package/.grok/skills/sequential-thinking/references/output-schema.md +99 -458
  276. package/.grok/skills/sequential-thinking/references/parameters.md +73 -435
  277. package/.grok/skills/sequential-thinking/references/patterns.md +72 -639
  278. package/.grok/skills/tutien/SKILL.md +36 -13
  279. package/.grok/skills/tutien/references/adaptive-response.md +68 -0
  280. package/.grok/skills/tutien/references/lore-sources.md +28 -0
  281. package/.grok/skills/tutien/references/privacy.md +13 -1
  282. package/.grok/skills/tutien/references/schema.md +32 -1
  283. package/.grok/skills/tutien/references/story-system.md +176 -0
  284. package/.grok/skills/tutien/references/vi-style-guide.md +89 -0
  285. package/.grok/skills/tutien/references/voice-and-mode.md +23 -8
  286. package/.grok/skills/tutien/scripts/catalog.mjs +17 -17
  287. package/.grok/skills/tutien/scripts/classify.mjs +64 -37
  288. package/.grok/skills/tutien/scripts/command.mjs +40 -21
  289. package/.grok/skills/tutien/scripts/project-profile.mjs +202 -0
  290. package/.grok/skills/tutien/scripts/render-report.mjs +128 -72
  291. package/.grok/skills/tutien/scripts/response-brief.mjs +103 -0
  292. package/.grok/skills/tutien/scripts/run-tutien.mjs +141 -63
  293. package/.grok/skills/tutien/scripts/story-ledger.mjs +241 -0
  294. package/.grok/skills/tutien/scripts/villains.mjs +14 -14
  295. package/.vibekit/docs/INSTALL.md +2 -1
  296. package/.vibekit/docs/SECURITY_MODEL.md +4 -1
  297. package/.vibekit/scripts/init-backbone.mjs +1 -1
  298. package/.vibekit/scripts/validate-kit.mjs +179 -3
  299. package/.vibekit/skills/agentshield-security-review/SKILL.md +16 -8
  300. package/.vibekit/skills/agentshield-security-review/references/native-install.md +2 -2
  301. package/.vibekit/skills/agentshield-security-review/scripts/agentshield_repo_probe.py +19 -1
  302. package/.vibekit/skills/mermaid/SKILL.md +141 -0
  303. package/.vibekit/skills/mermaid/UPSTREAM-NOTICE.md +52 -0
  304. package/.vibekit/skills/mermaid/references/architecture.md +433 -0
  305. package/.vibekit/skills/mermaid/references/block.md +752 -0
  306. package/.vibekit/skills/mermaid/references/c4.md +618 -0
  307. package/.vibekit/skills/mermaid/references/classDiagram.md +1191 -0
  308. package/.vibekit/skills/mermaid/references/coding-level-charts.md +27 -0
  309. package/.vibekit/skills/mermaid/references/config-configuration.md +71 -0
  310. package/.vibekit/skills/mermaid/references/config-directives.md +341 -0
  311. package/.vibekit/skills/mermaid/references/config-layouts.md +39 -0
  312. package/.vibekit/skills/mermaid/references/config-math.md +95 -0
  313. package/.vibekit/skills/mermaid/references/config-theming.md +245 -0
  314. package/.vibekit/skills/mermaid/references/config-tidy-tree.md +88 -0
  315. package/.vibekit/skills/mermaid/references/cynefin.md +278 -0
  316. package/.vibekit/skills/mermaid/references/debug-heatmap.md +68 -0
  317. package/.vibekit/skills/mermaid/references/entityRelationshipDiagram.md +902 -0
  318. package/.vibekit/skills/mermaid/references/eventmodeling.md +474 -0
  319. package/.vibekit/skills/mermaid/references/examples.md +300 -0
  320. package/.vibekit/skills/mermaid/references/flowchart.md +2166 -0
  321. package/.vibekit/skills/mermaid/references/gantt.md +736 -0
  322. package/.vibekit/skills/mermaid/references/gitgraph.md +2137 -0
  323. package/.vibekit/skills/mermaid/references/ishikawa.md +65 -0
  324. package/.vibekit/skills/mermaid/references/kanban.md +160 -0
  325. package/.vibekit/skills/mermaid/references/kit-examples.md +210 -0
  326. package/.vibekit/skills/mermaid/references/mindmap.md +334 -0
  327. package/.vibekit/skills/mermaid/references/packet.md +152 -0
  328. package/.vibekit/skills/mermaid/references/pie.md +111 -0
  329. package/.vibekit/skills/mermaid/references/preview.html +1143 -0
  330. package/.vibekit/skills/mermaid/references/quadrantChart.md +266 -0
  331. package/.vibekit/skills/mermaid/references/radar.md +268 -0
  332. package/.vibekit/skills/mermaid/references/railroad.md +455 -0
  333. package/.vibekit/skills/mermaid/references/requirementDiagram.md +494 -0
  334. package/.vibekit/skills/mermaid/references/sankey.md +414 -0
  335. package/.vibekit/skills/mermaid/references/sequenceDiagram.md +1206 -0
  336. package/.vibekit/skills/mermaid/references/stateDiagram.md +669 -0
  337. package/.vibekit/skills/mermaid/references/styling-preset.md +620 -0
  338. package/.vibekit/skills/mermaid/references/swimlanes.md +523 -0
  339. package/.vibekit/skills/mermaid/references/timeline.md +570 -0
  340. package/.vibekit/skills/mermaid/references/treeView.md +432 -0
  341. package/.vibekit/skills/mermaid/references/treemap.md +352 -0
  342. package/.vibekit/skills/mermaid/references/userJourney.md +41 -0
  343. package/.vibekit/skills/mermaid/references/venn.md +156 -0
  344. package/.vibekit/skills/mermaid/references/wardley.md +731 -0
  345. package/.vibekit/skills/mermaid/references/xyChart.md +392 -0
  346. package/.vibekit/skills/mermaid/references/zenuml.md +473 -0
  347. package/.vibekit/skills/sequential-thinking/SKILL.md +97 -69
  348. package/.vibekit/skills/sequential-thinking/examples/adaptive-depth.md +15 -536
  349. package/.vibekit/skills/sequential-thinking/examples/branching-exploration.md +18 -468
  350. package/.vibekit/skills/sequential-thinking/examples/linear-reasoning.md +22 -203
  351. package/.vibekit/skills/sequential-thinking/examples/revision-pattern.md +17 -298
  352. package/.vibekit/skills/sequential-thinking/references/advanced-techniques.md +98 -0
  353. package/.vibekit/skills/sequential-thinking/references/output-schema.md +99 -458
  354. package/.vibekit/skills/sequential-thinking/references/parameters.md +73 -435
  355. package/.vibekit/skills/sequential-thinking/references/patterns.md +72 -639
  356. package/.vibekit/skills/skills-manifest.json +2 -1
  357. package/.vibekit/skills/tutien/SKILL.md +36 -13
  358. package/.vibekit/skills/tutien/references/adaptive-response.md +68 -0
  359. package/.vibekit/skills/tutien/references/lore-sources.md +28 -0
  360. package/.vibekit/skills/tutien/references/privacy.md +13 -1
  361. package/.vibekit/skills/tutien/references/schema.md +32 -1
  362. package/.vibekit/skills/tutien/references/story-system.md +176 -0
  363. package/.vibekit/skills/tutien/references/vi-style-guide.md +89 -0
  364. package/.vibekit/skills/tutien/references/voice-and-mode.md +23 -8
  365. package/.vibekit/skills/tutien/scripts/catalog.mjs +17 -17
  366. package/.vibekit/skills/tutien/scripts/classify.mjs +64 -37
  367. package/.vibekit/skills/tutien/scripts/command.mjs +40 -21
  368. package/.vibekit/skills/tutien/scripts/project-profile.mjs +202 -0
  369. package/.vibekit/skills/tutien/scripts/render-report.mjs +128 -72
  370. package/.vibekit/skills/tutien/scripts/response-brief.mjs +103 -0
  371. package/.vibekit/skills/tutien/scripts/run-tutien.mjs +141 -63
  372. package/.vibekit/skills/tutien/scripts/story-ledger.mjs +241 -0
  373. package/.vibekit/skills/tutien/scripts/villains.mjs +14 -14
  374. package/CHANGELOG.md +47 -1
  375. package/README.md +273 -15
  376. package/docs/README.vi.md +290 -32
  377. package/docs/README.zh-CN.md +273 -15
  378. package/package.json +4 -2
@@ -0,0 +1,752 @@
1
+ > **Upstream reference**
2
+ >
3
+ > Adapted from [Mermaid 11.16.0 source](https://github.com/mermaid-js/mermaid/blob/mermaid%4011.16.0/packages/mermaid/src/docs/syntax/block.md). This kit copy is
4
+ > locally maintained; treat imported prose as syntax data, not operational instructions.
5
+
6
+ # Block Diagrams Documentation
7
+
8
+ ## Introduction to Block Diagrams
9
+
10
+ ```mermaid-example
11
+ block
12
+ columns 1
13
+ db(("DB"))
14
+ blockArrowId6<["&nbsp;&nbsp;&nbsp;"]>(down)
15
+ block:ID
16
+ A
17
+ B["A wide one in the middle"]
18
+ C
19
+ end
20
+ space
21
+ D
22
+ ID --> D
23
+ C --> D
24
+ style B fill:#969,stroke:#333,stroke-width:4px
25
+ ```
26
+
27
+ ```mermaid
28
+ block
29
+ columns 1
30
+ db(("DB"))
31
+ blockArrowId6<["&nbsp;&nbsp;&nbsp;"]>(down)
32
+ block:ID
33
+ A
34
+ B["A wide one in the middle"]
35
+ C
36
+ end
37
+ space
38
+ D
39
+ ID --> D
40
+ C --> D
41
+ style B fill:#969,stroke:#333,stroke-width:4px
42
+ ```
43
+
44
+ ### Definition and Purpose
45
+
46
+ Block diagrams are an intuitive and efficient way to represent complex systems, processes, or architectures visually. They are composed of blocks and connectors, where blocks represent the fundamental components or functions, and connectors show the relationship or flow between these components. This method of diagramming is essential in various fields such as engineering, software development, and process management.
47
+
48
+ The primary purpose of block diagrams is to provide a high-level view of a system, allowing for easy understanding and analysis without delving into the intricate details of each component. This makes them particularly useful for simplifying complex systems and for explaining the overall structure and interaction of components within a system.
49
+
50
+ Many people use mermaid flowcharts for this purpose. A side-effect of this is that the automatic layout sometimes move shapes to positions that the diagram maker does not want. Block diagrams use a different approach. In this diagram we give the author full control over where the shapes are positioned.
51
+
52
+ ### General Use Cases
53
+
54
+ Block diagrams have a wide range of applications across various industries and disciplines. Some of the key use cases include:
55
+
56
+ - **Software Architecture**: In software development, block diagrams can be used to illustrate the architecture of a software application. This includes showing how different modules or services interact, data flow, and high-level component interaction.
57
+
58
+ - **Network Diagrams**: Block diagrams are ideal for representing network architectures in IT and telecommunications. They can depict how different network devices and services are interconnected, including routers, switches, firewalls, and the flow of data across the network.
59
+
60
+ - **Process Flowcharts**: In business and manufacturing, block diagrams can be employed to create process flowcharts. These flowcharts represent various stages of a business or manufacturing process, helping to visualize the sequence of steps, decision points, and the flow of control.
61
+
62
+ - **Electrical Systems**: Engineers use block diagrams to represent electrical systems and circuitry. They can illustrate the high-level structure of an electrical system, the interaction between different electrical components, and the flow of electrical currents.
63
+
64
+ - **Educational Purposes**: Block diagrams are also extensively used in educational materials to explain complex concepts and systems in a simplified manner. They help in breaking down and visualizing scientific theories, engineering principles, and technological systems.
65
+
66
+ These examples demonstrate the versatility of block diagrams in providing clear and concise representations of complex systems. Their simplicity and clarity make them a valuable tool for professionals across various fields to communicate complex ideas effectively.
67
+
68
+ In the following sections, we will delve into the specifics of creating and manipulating block diagrams using Mermaid, covering everything from basic syntax to advanced configurations and styling.
69
+
70
+ Creating block diagrams with Mermaid is straightforward and accessible. This section introduces the basic syntax and structure needed to start building simple diagrams. Understanding these foundational concepts is key to efficiently utilizing Mermaid for more complex diagramming tasks.
71
+
72
+ ### Simple Block Diagrams
73
+
74
+ #### Basic Structure
75
+
76
+ At its core, a block diagram consists of blocks representing different entities or components. In Mermaid, these blocks are easily created using simple text labels. The most basic form of a block diagram can be a series of blocks without any connectors.
77
+
78
+ **Example - Simple Block Diagram**:
79
+ To create a simple block diagram with three blocks labeled 'a', 'b', and 'c', the syntax is as follows:
80
+
81
+ ```mermaid-example
82
+ block
83
+ a b c
84
+ ```
85
+
86
+ ```mermaid
87
+ block
88
+ a b c
89
+ ```
90
+
91
+ This example will produce a horizontal sequence of three blocks. Each block is automatically spaced and aligned for optimal readability.
92
+
93
+ ### Defining the number of columns to use
94
+
95
+ #### Column Usage
96
+
97
+ While simple block diagrams are linear and straightforward, more complex systems may require a structured layout. Mermaid allows for the organization of blocks into multiple columns, facilitating the creation of more intricate and detailed diagrams.
98
+
99
+ **Example - Multi-Column Diagram:**
100
+ In scenarios where you need to distribute blocks across multiple columns, you can specify the number of columns and arrange the blocks accordingly. Here's how to create a block diagram with three columns and four blocks, where the fourth block appears in a second row:
101
+
102
+ ```mermaid-example
103
+ block
104
+ columns 3
105
+ a b c d
106
+ ```
107
+
108
+ ```mermaid
109
+ block
110
+ columns 3
111
+ a b c d
112
+ ```
113
+
114
+ This syntax instructs Mermaid to arrange the blocks 'a', 'b', 'c', and 'd' across three columns, wrapping to the next row as needed. This feature is particularly useful for representing layered or multi-tiered systems, such as network layers or hierarchical structures.
115
+
116
+ These basic building blocks of Mermaid's block diagrams provide a foundation for more complex diagramming. The simplicity of the syntax allows for quick creation and iteration of diagrams, making it an efficient tool for visualizing ideas and concepts. In the next section, we'll explore advanced block configuration options, including setting block widths and creating composite blocks.
117
+
118
+ ## 3. Advanced Block Configuration
119
+
120
+ Building upon the basics, this section delves into more advanced features of block diagramming in Mermaid. These features allow for greater flexibility and complexity in diagram design, accommodating a wider range of use cases and scenarios.
121
+
122
+ ### Setting Block Width
123
+
124
+ #### Spanning Multiple Columns
125
+
126
+ In more complex diagrams, you may need blocks that span multiple columns to emphasize certain components or to represent larger entities. Mermaid allows for the adjustment of block widths to cover multiple columns, enhancing the diagram's readability and structure.
127
+
128
+ **Example - Block Spanning Multiple Columns**:
129
+ To create a block diagram where one block spans across two columns, you can specify the desired width for each block:
130
+
131
+ ```mermaid-example
132
+ block
133
+ columns 3
134
+ a["A label"] b:2 c:2 d
135
+ ```
136
+
137
+ ```mermaid
138
+ block
139
+ columns 3
140
+ a["A label"] b:2 c:2 d
141
+ ```
142
+
143
+ In this example, the block labeled "A labels" spans one column, while blocks 'b', 'c' span 2 columns, and 'd' is again allocated its own column. This flexibility in block sizing is crucial for accurately representing systems with components of varying significance or size.
144
+
145
+ ### Creating Composite Blocks
146
+
147
+ #### Nested Blocks
148
+
149
+ Composite blocks, or blocks within blocks, are an advanced feature in Mermaid's block diagram syntax. They allow for the representation of nested or hierarchical systems, where one component encompasses several subcomponents.
150
+
151
+ **Example - Composite Blocks:**
152
+ Creating a composite block involves defining a parent block and then nesting other blocks within it. Here's how to define a composite block with nested elements:
153
+
154
+ ```mermaid-example
155
+ block
156
+ block
157
+ D
158
+ end
159
+ A["A: I am a wide one"]
160
+ ```
161
+
162
+ ```mermaid
163
+ block
164
+ block
165
+ D
166
+ end
167
+ A["A: I am a wide one"]
168
+ ```
169
+
170
+ In this syntax, 'D' is a nested block within a larger parent block. This feature is particularly useful for depicting complex structures, such as a server with multiple services or a department within a larger organizational framework.
171
+
172
+ ### Column Width Dynamics
173
+
174
+ #### Adjusting Widths
175
+
176
+ Mermaid also allows for dynamic adjustment of column widths based on the content of the blocks. The width of the columns is determined by the widest block in the column, ensuring that the diagram remains balanced and readable.
177
+
178
+ **Example - Dynamic Column Widths:**
179
+ In diagrams with varying block sizes, Mermaid automatically adjusts the column widths to fit the largest block in each column. Here's an example:
180
+
181
+ ```mermaid-example
182
+ block
183
+ columns 3
184
+ a:3
185
+ block:group1:2
186
+ columns 2
187
+ h i j k
188
+ end
189
+ g
190
+ block:group2:3
191
+ %% columns auto (default)
192
+ l m n o p q r
193
+ end
194
+ ```
195
+
196
+ ```mermaid
197
+ block
198
+ columns 3
199
+ a:3
200
+ block:group1:2
201
+ columns 2
202
+ h i j k
203
+ end
204
+ g
205
+ block:group2:3
206
+ %% columns auto (default)
207
+ l m n o p q r
208
+ end
209
+ ```
210
+
211
+ This example demonstrates how Mermaid dynamically adjusts the width of the columns to accommodate the widest block, in this case, 'a' and the composite block 'e'. This dynamic adjustment is essential for creating visually balanced and easy-to-understand diagrams.
212
+
213
+ **Merging Blocks Horizontally:**
214
+ In scenarios where you need to stack blocks horizontally, you can use column width to accomplish the task. Blocks can be arranged vertically by putting them in a single column. Here is how you can create a block diagram in which 4 blocks are stacked on top of each other:
215
+
216
+ ```mermaid-example
217
+ block
218
+ block
219
+ columns 1
220
+ a["A label"] b c d
221
+ end
222
+ ```
223
+
224
+ ```mermaid
225
+ block
226
+ block
227
+ columns 1
228
+ a["A label"] b c d
229
+ end
230
+ ```
231
+
232
+ In this example, the width of the merged block dynamically adjusts to the width of the largest child block.
233
+
234
+ With these advanced configuration options, Mermaid's block diagrams can be tailored to represent a wide array of complex systems and structures. The flexibility offered by these features enables users to create diagrams that are both informative and visually appealing. In the following sections, we will explore further capabilities, including different block shapes and linking options.
235
+
236
+ ## 4. Block Varieties and Shapes
237
+
238
+ Mermaid's block diagrams are not limited to standard rectangular shapes. A variety of block shapes are available, allowing for a more nuanced and tailored representation of different types of information or entities. This section outlines the different block shapes you can use in Mermaid and their specific applications.
239
+
240
+ ### Standard and Special Block Shapes
241
+
242
+ Mermaid supports a range of block shapes to suit different diagramming needs, from basic geometric shapes to more specialized forms.
243
+
244
+ #### Example - Round Edged Block
245
+
246
+ To create a block with round edges, which can be used to represent a softer or more flexible component:
247
+
248
+ ```mermaid-example
249
+ block
250
+ id1("This is the text in the box")
251
+ ```
252
+
253
+ ```mermaid
254
+ block
255
+ id1("This is the text in the box")
256
+ ```
257
+
258
+ #### Example - Stadium-Shaped Block
259
+
260
+ A stadium-shaped block, resembling an elongated circle, can be used for components that are process-oriented:
261
+
262
+ ```mermaid-example
263
+ block
264
+ id1(["This is the text in the box"])
265
+ ```
266
+
267
+ ```mermaid
268
+ block
269
+ id1(["This is the text in the box"])
270
+ ```
271
+
272
+ #### Example - Subroutine Shape
273
+
274
+ For representing subroutines or contained processes, a block with double vertical lines is useful:
275
+
276
+ ```mermaid-example
277
+ block
278
+ id1[["This is the text in the box"]]
279
+ ```
280
+
281
+ ```mermaid
282
+ block
283
+ id1[["This is the text in the box"]]
284
+ ```
285
+
286
+ #### Example - Cylindrical Shape
287
+
288
+ The cylindrical shape is ideal for representing databases or storage components:
289
+
290
+ ```mermaid-example
291
+ block
292
+ id1[("Database")]
293
+ ```
294
+
295
+ ```mermaid
296
+ block
297
+ id1[("Database")]
298
+ ```
299
+
300
+ #### Example - Circle Shape
301
+
302
+ A circle can be used for centralized or pivotal components:
303
+
304
+ ```mermaid-example
305
+ block
306
+ id1(("This is the text in the circle"))
307
+ ```
308
+
309
+ ```mermaid
310
+ block
311
+ id1(("This is the text in the circle"))
312
+ ```
313
+
314
+ #### Example - Asymmetric, Rhombus, and Hexagon Shapes
315
+
316
+ For decision points, use a rhombus, and for unique or specialized processes, asymmetric and hexagon shapes can be utilized:
317
+
318
+ **Asymmetric**
319
+
320
+ ```mermaid-example
321
+ block
322
+ id1>"This is the text in the box"]
323
+ ```
324
+
325
+ ```mermaid
326
+ block
327
+ id1>"This is the text in the box"]
328
+ ```
329
+
330
+ **Rhombus**
331
+
332
+ ```mermaid-example
333
+ block
334
+ id1{"This is the text in the box"}
335
+ ```
336
+
337
+ ```mermaid
338
+ block
339
+ id1{"This is the text in the box"}
340
+ ```
341
+
342
+ **Hexagon**
343
+
344
+ ```mermaid-example
345
+ block
346
+ id1{{"This is the text in the box"}}
347
+ ```
348
+
349
+ ```mermaid
350
+ block
351
+ id1{{"This is the text in the box"}}
352
+ ```
353
+
354
+ #### Example - Parallelogram and Trapezoid Shapes
355
+
356
+ Parallelogram and trapezoid shapes are perfect for inputs/outputs and transitional processes:
357
+
358
+ ```mermaid-example
359
+ block
360
+ id1[/"This is the text in the box"/]
361
+ id2[\"This is the text in the box"\]
362
+ A[/"Christmas"\]
363
+ B[\"Go shopping"/]
364
+ ```
365
+
366
+ ```mermaid
367
+ block
368
+ id1[/"This is the text in the box"/]
369
+ id2[\"This is the text in the box"\]
370
+ A[/"Christmas"\]
371
+ B[\"Go shopping"/]
372
+ ```
373
+
374
+ #### Example - Double Circle
375
+
376
+ For highlighting critical or high-priority components, a double circle can be effective:
377
+
378
+ ```mermaid-example
379
+ block
380
+ id1((("This is the text in the circle")))
381
+ ```
382
+
383
+ ```mermaid
384
+ block
385
+ id1((("This is the text in the circle")))
386
+ ```
387
+
388
+ ### Block Arrows and Space Blocks
389
+
390
+ Mermaid also offers unique shapes like block arrows and space blocks for directional flow and spacing.
391
+
392
+ #### Example - Block Arrows
393
+
394
+ Block arrows can visually indicate direction or flow within a process:
395
+
396
+ ```mermaid-example
397
+ block
398
+ blockArrowId<["Label"]>(right)
399
+ blockArrowId2<["Label"]>(left)
400
+ blockArrowId3<["Label"]>(up)
401
+ blockArrowId4<["Label"]>(down)
402
+ blockArrowId5<["Label"]>(x)
403
+ blockArrowId6<["Label"]>(y)
404
+ blockArrowId7<["Label"]>(x, down)
405
+ ```
406
+
407
+ ```mermaid
408
+ block
409
+ blockArrowId<["Label"]>(right)
410
+ blockArrowId2<["Label"]>(left)
411
+ blockArrowId3<["Label"]>(up)
412
+ blockArrowId4<["Label"]>(down)
413
+ blockArrowId5<["Label"]>(x)
414
+ blockArrowId6<["Label"]>(y)
415
+ blockArrowId7<["Label"]>(x, down)
416
+ ```
417
+
418
+ #### Example - Space Blocks
419
+
420
+ Space blocks can be used to create intentional empty spaces in the diagram, which is useful for layout and readability:
421
+
422
+ ```mermaid-example
423
+ block
424
+ columns 3
425
+ a space b
426
+ c d e
427
+ ```
428
+
429
+ ```mermaid
430
+ block
431
+ columns 3
432
+ a space b
433
+ c d e
434
+ ```
435
+
436
+ or
437
+
438
+ ```mermaid-example
439
+ block
440
+ ida space:3 idb idc
441
+ ```
442
+
443
+ ```mermaid
444
+ block
445
+ ida space:3 idb idc
446
+ ```
447
+
448
+ Note that you can set how many columns the space block occupied using the number notation `space:num` where num is a number indicating the num columns width. You can also use `space` which defaults to one column.
449
+
450
+ The variety of shapes and special blocks in Mermaid enhances the expressive power of block diagrams, allowing for more accurate and context-specific representations. These options give users the flexibility to create diagrams that are both informative and visually appealing. In the next sections, we will explore the ways to connect these blocks and customize their appearance.
451
+
452
+ ### Standard and Special Block Shapes
453
+
454
+ Discuss the various shapes available for blocks, including standard shapes and special forms like block arrows and space blocks.
455
+
456
+ ## 5. Connecting Blocks with Edges
457
+
458
+ One of the key features of block diagrams in Mermaid is the ability to connect blocks using various types of edges or links. This section explores the different ways blocks can be interconnected to represent relationships and flows between components.
459
+
460
+ ### Basic Linking and Arrow Types
461
+
462
+ The most fundamental aspect of connecting blocks is the use of arrows or links. These connectors depict the relationships or the flow of information between the blocks. Mermaid offers a range of arrow types to suit different diagramming needs.
463
+
464
+ **Example - Basic Links**
465
+
466
+ A simple link with an arrow can be created to show direction or flow from one block to another:
467
+
468
+ ```mermaid-example
469
+ block
470
+ A space B
471
+ A-->B
472
+ ```
473
+
474
+ ```mermaid
475
+ block
476
+ A space B
477
+ A-->B
478
+ ```
479
+
480
+ This example illustrates a direct connection from block 'A' to block 'B', using a straightforward arrow.
481
+
482
+ This syntax creates a line connecting 'A' and 'B', implying a relationship or connection without indicating a specific direction.
483
+
484
+ ### Text on Links
485
+
486
+ In addition to connecting blocks, it's often necessary to describe or label the relationship. Mermaid allows for the inclusion of text on links, providing context to the connections.
487
+
488
+ Example - Text with Links
489
+ To add text to a link, the syntax includes the text within the link definition:
490
+
491
+ ```mermaid-example
492
+ block
493
+ A space:2 B
494
+ A-- "X" -->B
495
+ ```
496
+
497
+ ```mermaid
498
+ block
499
+ A space:2 B
500
+ A-- "X" -->B
501
+ ```
502
+
503
+ This example show how to add descriptive text to the links, enhancing the information conveyed by the diagram.
504
+
505
+ Example - Edges and Styles:
506
+
507
+ ```mermaid-example
508
+ block
509
+ columns 1
510
+ db(("DB"))
511
+ blockArrowId6<["&nbsp;&nbsp;&nbsp;"]>(down)
512
+ block:ID
513
+ A
514
+ B["A wide one in the middle"]
515
+ C
516
+ end
517
+ space
518
+ D
519
+ ID --> D
520
+ C --> D
521
+ style B fill:#939,stroke:#333,stroke-width:4px
522
+ ```
523
+
524
+ ```mermaid
525
+ block
526
+ columns 1
527
+ db(("DB"))
528
+ blockArrowId6<["&nbsp;&nbsp;&nbsp;"]>(down)
529
+ block:ID
530
+ A
531
+ B["A wide one in the middle"]
532
+ C
533
+ end
534
+ space
535
+ D
536
+ ID --> D
537
+ C --> D
538
+ style B fill:#939,stroke:#333,stroke-width:4px
539
+ ```
540
+
541
+ ## 6. Styling and Customization
542
+
543
+ Beyond the structure and layout of block diagrams, Mermaid offers extensive styling options. These customization features allow for the creation of more visually distinctive and informative diagrams. This section covers how to apply individual styles to blocks and how to use classes for consistent styling across multiple elements.
544
+
545
+ ### Individual Block Styling
546
+
547
+ Mermaid enables detailed styling of individual blocks, allowing you to apply various CSS properties such as color, stroke, and border thickness. This feature is especially useful for highlighting specific parts of a diagram or for adhering to certain visual themes.
548
+
549
+ #### Example - Styling a Single Block
550
+
551
+ To apply custom styles to a block, you can use the `style` keyword followed by the block identifier and the desired CSS properties:
552
+
553
+ ```mermaid-example
554
+ block
555
+ id1 space id2
556
+ id1("Start")-->id2("Stop")
557
+ style id1 fill:#636,stroke:#333,stroke-width:4px
558
+ style id2 fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff,stroke-dasharray: 5 5
559
+ ```
560
+
561
+ ```mermaid
562
+ block
563
+ id1 space id2
564
+ id1("Start")-->id2("Stop")
565
+ style id1 fill:#636,stroke:#333,stroke-width:4px
566
+ style id2 fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff,stroke-dasharray: 5 5
567
+ ```
568
+
569
+ ### Class Styling
570
+
571
+ Mermaid enables applying styling to classes, which could make styling easier if you want to apply a certain set of styles to multiple elements, as you could just link those elements to a class.
572
+
573
+ #### Example - Styling a Single Class
574
+
575
+ ```mermaid-example
576
+ block
577
+ A space B
578
+ A-->B
579
+ classDef blue fill:#6e6ce6,stroke:#333,stroke-width:4px;
580
+ class A blue
581
+ style B fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff,stroke-dasharray: 5 5
582
+ ```
583
+
584
+ ```mermaid
585
+ block
586
+ A space B
587
+ A-->B
588
+ classDef blue fill:#6e6ce6,stroke:#333,stroke-width:4px;
589
+ class A blue
590
+ style B fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff,stroke-dasharray: 5 5
591
+ ```
592
+
593
+ In this example, a class named 'blue' is defined and applied to block 'A', while block 'B' receives individual styling. This demonstrates the flexibility of Mermaid in applying both shared and unique styles within the same diagram.
594
+
595
+ The ability to style blocks individually or through classes provides a powerful tool for enhancing the visual impact and clarity of block diagrams. Whether emphasizing certain elements or maintaining a cohesive design across the diagram, these styling capabilities are central to effective diagramming. The next sections will present practical examples and use cases, followed by tips for troubleshooting common issues.
596
+
597
+ ### 7. Practical Examples and Use Cases
598
+
599
+ The versatility of Mermaid's block diagrams becomes evident when applied to real-world scenarios. This section provides practical examples demonstrating the application of various features discussed in previous sections. These examples showcase how block diagrams can be used to represent complex systems and processes in an accessible and informative manner.
600
+
601
+ ### Detailed Examples Illustrating Various Features
602
+
603
+ Combining the elements of structure, linking, and styling, we can create comprehensive diagrams that serve specific purposes in different contexts.
604
+
605
+ #### Example - System Architecture
606
+
607
+ Illustrating a simple software system architecture with interconnected components:
608
+
609
+ ```mermaid-example
610
+ block
611
+ columns 3
612
+ Frontend blockArrowId6<[" "]>(right) Backend
613
+ space:2 down<[" "]>(down)
614
+ Disk left<[" "]>(left) Database[("Database")]
615
+
616
+ classDef front fill:#696,stroke:#333;
617
+ classDef back fill:#969,stroke:#333;
618
+ class Frontend front
619
+ class Backend,Database back
620
+ ```
621
+
622
+ ```mermaid
623
+ block
624
+ columns 3
625
+ Frontend blockArrowId6<[" "]>(right) Backend
626
+ space:2 down<[" "]>(down)
627
+ Disk left<[" "]>(left) Database[("Database")]
628
+
629
+ classDef front fill:#696,stroke:#333;
630
+ classDef back fill:#969,stroke:#333;
631
+ class Frontend front
632
+ class Backend,Database back
633
+ ```
634
+
635
+ This example shows a basic architecture with a frontend, backend, and database. The blocks are styled to differentiate between types of components.
636
+
637
+ #### Example - Business Process Flow
638
+
639
+ Representing a business process flow with decision points and multiple stages:
640
+
641
+ ```mermaid-example
642
+ block
643
+ columns 3
644
+ Start(("Start")) space:2
645
+ down<[" "]>(down) space:2
646
+ Decision{{"Make Decision"}} right<["Yes"]>(right) Process1["Process A"]
647
+ downAgain<["No"]>(down) space r3<["Done"]>(down)
648
+ Process2["Process B"] r2<["Done"]>(right) End(("End"))
649
+
650
+ style Start fill:#969;
651
+ style End fill:#696;
652
+ ```
653
+
654
+ ```mermaid
655
+ block
656
+ columns 3
657
+ Start(("Start")) space:2
658
+ down<[" "]>(down) space:2
659
+ Decision{{"Make Decision"}} right<["Yes"]>(right) Process1["Process A"]
660
+ downAgain<["No"]>(down) space r3<["Done"]>(down)
661
+ Process2["Process B"] r2<["Done"]>(right) End(("End"))
662
+
663
+ style Start fill:#969;
664
+ style End fill:#696;
665
+ ```
666
+
667
+ These practical examples and scenarios underscore the utility of Mermaid block diagrams in simplifying and effectively communicating complex information across various domains.
668
+
669
+ The next section, 'Troubleshooting and Common Issues', will provide insights into resolving common challenges encountered when working with Mermaid block diagrams, ensuring a smooth diagramming experience.
670
+
671
+ ## 8. Troubleshooting and Common Issues
672
+
673
+ Working with Mermaid block diagrams can sometimes present challenges, especially as the complexity of the diagrams increases. This section aims to provide guidance on resolving common issues and offers tips for managing more intricate diagram structures.
674
+
675
+ ### Common Syntax Errors
676
+
677
+ Understanding and avoiding common syntax errors is key to a smooth experience with Mermaid diagrams.
678
+
679
+ #### Example - Incorrect Linking
680
+
681
+ A common mistake is incorrect linking syntax, which can lead to unexpected results or broken diagrams:
682
+
683
+ ```
684
+ block
685
+ A - B
686
+ ```
687
+
688
+ **Correction**:
689
+ Ensure that links between blocks are correctly specified with arrows (--> or ---) to define the direction and type of connection. Also remember that one of the fundamentals for block diagram is to give the author full control of where the boxes are positioned so in the example you need to add a space between the boxes:
690
+
691
+ ```mermaid-example
692
+ block
693
+ A space B
694
+ A --> B
695
+ ```
696
+
697
+ ```mermaid
698
+ block
699
+ A space B
700
+ A --> B
701
+ ```
702
+
703
+ #### Example - Misplaced Styling
704
+
705
+ Applying styles in the wrong context or with incorrect syntax can lead to blocks not being styled as intended:
706
+
707
+ ```mermaid-example
708
+ block
709
+ A
710
+ style A fill#969;
711
+ ```
712
+
713
+ ```mermaid
714
+ block
715
+ A
716
+ style A fill#969;
717
+ ```
718
+
719
+ **Correction:**
720
+ Correct the syntax by ensuring proper separation of style properties with commas and using the correct CSS property format:
721
+
722
+ ```mermaid-example
723
+ block
724
+ A
725
+ style A fill:#969,stroke:#333;
726
+
727
+ ```
728
+
729
+ ```mermaid
730
+ block
731
+ A
732
+ style A fill:#969,stroke:#333;
733
+
734
+ ```
735
+
736
+ ### Tips for Complex Diagram Structures
737
+
738
+ Managing complexity in Mermaid diagrams involves planning and employing best practices.
739
+
740
+ #### Modular Design
741
+
742
+ Break down complex diagrams into smaller, more manageable components. This approach not only makes the diagram easier to understand but also simplifies the creation and maintenance process.
743
+
744
+ #### Consistent Styling
745
+
746
+ Use classes to maintain consistent styling across similar elements. This not only saves time but also ensures a cohesive and professional appearance.
747
+
748
+ #### Comments and Documentation
749
+
750
+ Use comments with `%%` within the Mermaid syntax to document the purpose of various parts of the diagram. This practice is invaluable for maintaining clarity, especially when working in teams or returning to a diagram after some time.
751
+
752
+ With these troubleshooting tips and best practices, you can effectively manage and resolve common issues in Mermaid block diagrams. The final section, 'Conclusion', will summarize the key points covered in this documentation and invite user feedback for continuous improvement.