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,2137 @@
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/gitgraph.md). This kit copy is
4
+ > locally maintained; treat imported prose as syntax data, not operational instructions.
5
+
6
+ # GitGraph Diagrams
7
+
8
+ > A Git Graph is a pictorial representation of git commits and git actions(commands) on various branches.
9
+
10
+ These kind of diagram are particularly helpful to developers and devops teams to share their Git branching strategies. For example, it makes it easier to visualize how git flow works.
11
+
12
+ Mermaid can render Git diagrams
13
+
14
+ ```mermaid-example
15
+ ---
16
+ title: Example Git diagram
17
+ ---
18
+ gitGraph
19
+ commit
20
+ commit
21
+ branch develop
22
+ checkout develop
23
+ commit
24
+ commit
25
+ checkout main
26
+ merge develop
27
+ commit
28
+ commit
29
+ ```
30
+
31
+ ```mermaid
32
+ ---
33
+ title: Example Git diagram
34
+ ---
35
+ gitGraph
36
+ commit
37
+ commit
38
+ branch develop
39
+ checkout develop
40
+ commit
41
+ commit
42
+ checkout main
43
+ merge develop
44
+ commit
45
+ commit
46
+ ```
47
+
48
+ In Mermaid, we support the basic git operations like:
49
+
50
+ - _commit_ : Representing a new commit on the current branch.
51
+ - _branch_ : To create & switch to a new branch, setting it as the current branch.
52
+ - _checkout_ : To checking out an existing branch and setting it as the current branch.
53
+ - _merge_ : To merge an existing branch onto the current branch.
54
+
55
+ With the help of these key git commands, you will be able to draw a gitgraph in Mermaid very easily and quickly.
56
+ Entity names are often capitalized, although there is no accepted standard on this, and it is not required in Mermaid.
57
+
58
+ **NOTE**: `checkout` and `switch` can be used interchangeably.
59
+
60
+ ## Syntax
61
+
62
+ Mermaid syntax for a gitgraph is very straight-forward and simple. It follows a declarative-approach, where each commit is drawn on the timeline in the diagram, in order of its occurrences/presence in code. Basically, it follows the insertion order for each command.
63
+
64
+ First thing you do is to declare your diagram type using the **gitgraph** keyword. This `gitgraph` keyword, tells Mermaid that you wish to draw a gitgraph, and parse the diagram code accordingly.
65
+
66
+ Each gitgraph, is initialized with **_main_** branch. So unless you create a different branch, by-default the commits will go to the main branch. This is driven with how git works, where in the beginning you always start with the main branch (formerly called as **_master_** branch). And by-default, `main` branch is set as your **_current branch_**.
67
+
68
+ You make use of **_commit_** keyword to register a commit on the current branch. Let see how this works:
69
+
70
+ A simple gitgraph showing three commits on the default (**_main_**) branch:
71
+
72
+ ```mermaid-example
73
+ gitGraph
74
+ commit
75
+ commit
76
+ commit
77
+ ```
78
+
79
+ ```mermaid
80
+ gitGraph
81
+ commit
82
+ commit
83
+ commit
84
+ ```
85
+
86
+ If you look closely at the previous example, you can see the default branch `main` along with three commits. Also, notice that by default each commit has been given a unique & random ID. What if you wanted to give your own custom ID to a commit? Yes, it is possible to do that with Mermaid.
87
+
88
+ ### Adding custom commit id
89
+
90
+ For a given commit you may specify a custom ID at the time of declaring it using the `id` attribute, followed by `:` and your custom value within a `""` quote. For example: `commit id: "your_custom_id"`
91
+
92
+ Let us see how this works with the help of the following diagram:
93
+
94
+ ```mermaid-example
95
+ gitGraph
96
+ commit id: "Alpha"
97
+ commit id: "Beta"
98
+ commit id: "Gamma"
99
+ ```
100
+
101
+ ```mermaid
102
+ gitGraph
103
+ commit id: "Alpha"
104
+ commit id: "Beta"
105
+ commit id: "Gamma"
106
+ ```
107
+
108
+ In this example, we have given our custom IDs to the commits.
109
+
110
+ ### Modifying commit type
111
+
112
+ In Mermaid, a commit can be of three type, which render a bit different in the diagram. These types are:
113
+
114
+ - `NORMAL` : Default commit type. Represented by a solid circle in the diagram
115
+ - `REVERSE` : To emphasize a commit as a reverse commit. Represented by a crossed solid circle in the diagram.
116
+ - `HIGHLIGHT` : To highlight a particular commit in the diagram. Represented by a filled rectangle in the diagram.
117
+
118
+ For a given commit you may specify its type at the time of declaring it using the `type` attribute, followed by `:` and the required type option discussed above. For example: `commit type: HIGHLIGHT`
119
+
120
+ NOTE: If no commit type is specified, `NORMAL` is picked as default.
121
+
122
+ Let us see how these different commit type look with the help of the following diagram:
123
+
124
+ ```mermaid-example
125
+ gitGraph
126
+ commit id: "Normal"
127
+ commit
128
+ commit id: "Reverse" type: REVERSE
129
+ commit
130
+ commit id: "Highlight" type: HIGHLIGHT
131
+ commit
132
+ ```
133
+
134
+ ```mermaid
135
+ gitGraph
136
+ commit id: "Normal"
137
+ commit
138
+ commit id: "Reverse" type: REVERSE
139
+ commit
140
+ commit id: "Highlight" type: HIGHLIGHT
141
+ commit
142
+ ```
143
+
144
+ In this example, we have specified different types to each commit. Also, see how we have included both `id` and `type` together at the time of declaring our commits.
145
+
146
+ ### Adding Tags
147
+
148
+ For a given commit you may decorate it as a **tag**, similar to the concept of tags or release version in git world.
149
+ You can attach a custom tag at the time of declaring a commit using the `tag` attribute, followed by `:` and your custom value within `""` quote. For example: `commit tag: "your_custom_tag"`
150
+
151
+ Let us see how this works with the help of the following diagram:
152
+
153
+ ```mermaid-example
154
+ gitGraph
155
+ commit
156
+ commit id: "Normal" tag: "v1.0.0"
157
+ commit
158
+ commit id: "Reverse" type: REVERSE tag: "RC_1"
159
+ commit
160
+ commit id: "Highlight" type: HIGHLIGHT tag: "8.8.4"
161
+ commit
162
+ ```
163
+
164
+ ```mermaid
165
+ gitGraph
166
+ commit
167
+ commit id: "Normal" tag: "v1.0.0"
168
+ commit
169
+ commit id: "Reverse" type: REVERSE tag: "RC_1"
170
+ commit
171
+ commit id: "Highlight" type: HIGHLIGHT tag: "8.8.4"
172
+ commit
173
+ ```
174
+
175
+ In this example, we have given custom tags to the commits. Also, see how we have combined all these attributes in a single commit declaration. You can mix-match these attributes as you like.
176
+
177
+ ### Create a new branch
178
+
179
+ In Mermaid, in-order to create a new branch, you make use of the `branch` keyword. You also need to provide a name of the new branch. The name has to be unique and cannot be that of an existing branch. A branch name that could be confused for a keyword must be quoted within `""`. Usage examples: `branch develop`, `branch "cherry-pick"`
180
+
181
+ When Mermaid, reads the `branch` keyword, it creates a new branch and sets it as the current branch. Equivalent to you creating a new branch and checking it out in Git world.
182
+
183
+ Let see this in an example:
184
+
185
+ ```mermaid-example
186
+ gitGraph
187
+ commit
188
+ commit
189
+ branch develop
190
+ commit
191
+ commit
192
+ commit
193
+ ```
194
+
195
+ ```mermaid
196
+ gitGraph
197
+ commit
198
+ commit
199
+ branch develop
200
+ commit
201
+ commit
202
+ commit
203
+ ```
204
+
205
+ In this example, see how we started with default `main` branch, and pushed two commits on that.
206
+ Then we created the `develop` branch, and all commits afterwards are put on the `develop` branch as it became the current branch.
207
+
208
+ ### Checking out an existing branch
209
+
210
+ In Mermaid, in order to switch to an existing branch, you make use of the `checkout` keyword. You also need to provide a name of an existing branch. If no branch is found with the given name, it will result in console error. Usage example: `checkout develop`
211
+
212
+ When Mermaid, reads the `checkout` keyword, it finds the given branch and sets it as the current branch. Equivalent to checking out a branch in the Git world.
213
+
214
+ Let see modify our previous example:
215
+
216
+ ```mermaid-example
217
+ gitGraph
218
+ commit
219
+ commit
220
+ branch develop
221
+ commit
222
+ commit
223
+ commit
224
+ checkout main
225
+ commit
226
+ commit
227
+ ```
228
+
229
+ ```mermaid
230
+ gitGraph
231
+ commit
232
+ commit
233
+ branch develop
234
+ commit
235
+ commit
236
+ commit
237
+ checkout main
238
+ commit
239
+ commit
240
+ ```
241
+
242
+ In this example, see how we started with default `main` branch, and pushed two commits on that.
243
+ Then we created the `develop` branch, and all three commits afterwards are put on the `develop` branch as it became the current branch.
244
+ After this we made use of the `checkout` keyword to set the current branch as `main`, and all commit that follow are registered against the current branch, i.e. `main`.
245
+
246
+ ### Merging two branches
247
+
248
+ In Mermaid, in order to merge or join to an existing branch, you make use of the `merge` keyword. You also need to provide the name of an existing branch to merge from. If no branch is found with the given name, it will result in console error. Also, you can only merge two separate branches, and cannot merge a branch with itself. In such case an error is throw.
249
+
250
+ Usage example: `merge develop`
251
+
252
+ When Mermaid, reads the `merge` keyword, it finds the given branch and its head commit (the last commit on that branch), and joins it with the head commit on the **current branch**. Each merge results in a **_merge commit_**, represented in the diagram with **filled double circle**.
253
+
254
+ Let us modify our previous example to merge our two branches:
255
+
256
+ ```mermaid-example
257
+ gitGraph
258
+ commit
259
+ commit
260
+ branch develop
261
+ commit
262
+ commit
263
+ commit
264
+ checkout main
265
+ commit
266
+ commit
267
+ merge develop
268
+ commit
269
+ commit
270
+ ```
271
+
272
+ ```mermaid
273
+ gitGraph
274
+ commit
275
+ commit
276
+ branch develop
277
+ commit
278
+ commit
279
+ commit
280
+ checkout main
281
+ commit
282
+ commit
283
+ merge develop
284
+ commit
285
+ commit
286
+ ```
287
+
288
+ In this example, see how we started with default `main` branch, and pushed two commits on that.
289
+ Then we created the `develop` branch, and all three commits afterwards are put on the `develop` branch as it became the current branch.
290
+ After this we made use of the `checkout` keyword to set the current branch as `main`, and all commits that follow are registered against the current branch, i.e. `main`.
291
+ After this we merge the `develop` branch onto the current branch `main`, resulting in a merge commit.
292
+ Since the current branch at this point is still `main`, the last two commits are registered against that.
293
+
294
+ You can also decorate your merge with similar attributes as you did for the commit using:
295
+
296
+ - `id`--> To override the default ID with custom ID
297
+ - `tag`--> To add a custom tag to your merge commit
298
+ - `type`--> To override the default shape of merge commit. Here you can use other commit type mentioned earlier.
299
+
300
+ And you can choose to use none, some or all of these attributes together.
301
+ For example: `merge develop id: "my_custom_id" tag: "my_custom_tag" type: REVERSE`
302
+
303
+ Let us see how this works with the help of the following diagram:
304
+
305
+ ```mermaid-example
306
+ gitGraph
307
+ commit id: "1"
308
+ commit id: "2"
309
+ branch nice_feature
310
+ checkout nice_feature
311
+ commit id: "3"
312
+ checkout main
313
+ commit id: "4"
314
+ checkout nice_feature
315
+ branch very_nice_feature
316
+ checkout very_nice_feature
317
+ commit id: "5"
318
+ checkout main
319
+ commit id: "6"
320
+ checkout nice_feature
321
+ commit id: "7"
322
+ checkout main
323
+ merge nice_feature id: "customID" tag: "customTag" type: REVERSE
324
+ checkout very_nice_feature
325
+ commit id: "8"
326
+ checkout main
327
+ commit id: "9"
328
+ ```
329
+
330
+ ```mermaid
331
+ gitGraph
332
+ commit id: "1"
333
+ commit id: "2"
334
+ branch nice_feature
335
+ checkout nice_feature
336
+ commit id: "3"
337
+ checkout main
338
+ commit id: "4"
339
+ checkout nice_feature
340
+ branch very_nice_feature
341
+ checkout very_nice_feature
342
+ commit id: "5"
343
+ checkout main
344
+ commit id: "6"
345
+ checkout nice_feature
346
+ commit id: "7"
347
+ checkout main
348
+ merge nice_feature id: "customID" tag: "customTag" type: REVERSE
349
+ checkout very_nice_feature
350
+ commit id: "8"
351
+ checkout main
352
+ commit id: "9"
353
+ ```
354
+
355
+ ### Cherry Pick commit from another branch
356
+
357
+ Similar to how 'git' allows you to cherry-pick a commit from **another branch** onto the **current** branch, Mermaid also supports this functionality. You can also cherry-pick a commit from another branch using the `cherry-pick` keyword.
358
+
359
+ To use the `cherry-pick` keyword, you must specify the id using the `id` attribute, followed by `:` and your desired commit id within a `""` quote. For example:
360
+
361
+ `cherry-pick id: "your_custom_id"`
362
+
363
+ Here, a new commit representing the cherry-pick is created on the current branch, and is visually highlighted in the diagram with a **cherry** and a tag depicting the commit id from which it is cherry-picked from.
364
+
365
+ A few important rules to note here are:
366
+
367
+ 1. You need to provide the `id` for an existing commit to be cherry-picked. If given commit id does not exist it will result in an error. For this, make use of the `commit id:$value` format of declaring commits. See the examples from above.
368
+ 2. The given commit must not exist on the current branch. The cherry-picked commit must always be a different branch than the current branch.
369
+ 3. Current branch must have at least one commit, before you can cherry-pick, otherwise it will cause an error is throw.
370
+ 4. When cherry-picking a merge commit, providing a parent commit ID is mandatory. If the parent attribute is omitted or an invalid parent commit ID is provided, an error will be thrown.
371
+ 5. The specified parent commit must be an immediate parent of the merge commit being cherry-picked.
372
+
373
+ Let see an example:
374
+
375
+ ```mermaid-example
376
+ gitGraph
377
+ commit id: "ZERO"
378
+ branch develop
379
+ branch release
380
+ commit id:"A"
381
+ checkout main
382
+ commit id:"ONE"
383
+ checkout develop
384
+ commit id:"B"
385
+ checkout main
386
+ merge develop id:"MERGE"
387
+ commit id:"TWO"
388
+ checkout release
389
+ cherry-pick id:"MERGE" parent:"B"
390
+ commit id:"THREE"
391
+ checkout develop
392
+ commit id:"C"
393
+ ```
394
+
395
+ ```mermaid
396
+ gitGraph
397
+ commit id: "ZERO"
398
+ branch develop
399
+ branch release
400
+ commit id:"A"
401
+ checkout main
402
+ commit id:"ONE"
403
+ checkout develop
404
+ commit id:"B"
405
+ checkout main
406
+ merge develop id:"MERGE"
407
+ commit id:"TWO"
408
+ checkout release
409
+ cherry-pick id:"MERGE" parent:"B"
410
+ commit id:"THREE"
411
+ checkout develop
412
+ commit id:"C"
413
+ ```
414
+
415
+ ## GitGraph specific configuration options
416
+
417
+ In Mermaid, you have the option to configure the gitgraph diagram. You can configure the following options:
418
+
419
+ - `showBranches` : Boolean, default is `true`. If set to `false`, the branches are not shown in the diagram.
420
+ - `showCommitLabel` : Boolean, default is `true`. If set to `false`, the commit labels are not shown in the diagram.
421
+ - `mainBranchName` : String, default is `main`. The name of the default/root branch.
422
+ - `mainBranchOrder` : Position of the main branch in the list of branches. default is `0`, meaning, by default `main` branch is the first in the order.
423
+ - `parallelCommits`: Boolean, default is `false`. If set to `true`, commits x distance away from the parent are shown at the same level in the diagram.
424
+
425
+ Let's look at them one by one.
426
+
427
+ ## Hiding Branch names and lines
428
+
429
+ Sometimes you may want to hide the branch names and lines from the diagram. You can do this by using the `showBranches` keyword. By default its value is `true`. You can set it to `false` using directives.
430
+
431
+ Usage example:
432
+
433
+ ```mermaid-example
434
+ ---
435
+ config:
436
+ logLevel: 'debug'
437
+ theme: 'base'
438
+ gitGraph:
439
+ showBranches: false
440
+ ---
441
+ gitGraph
442
+ commit
443
+ branch hotfix
444
+ checkout hotfix
445
+ commit
446
+ branch develop
447
+ checkout develop
448
+ commit id:"ash" tag:"abc"
449
+ branch featureB
450
+ checkout featureB
451
+ commit type:HIGHLIGHT
452
+ checkout main
453
+ checkout hotfix
454
+ commit type:NORMAL
455
+ checkout develop
456
+ commit type:REVERSE
457
+ checkout featureB
458
+ commit
459
+ checkout main
460
+ merge hotfix
461
+ checkout featureB
462
+ commit
463
+ checkout develop
464
+ branch featureA
465
+ commit
466
+ checkout develop
467
+ merge hotfix
468
+ checkout featureA
469
+ commit
470
+ checkout featureB
471
+ commit
472
+ checkout develop
473
+ merge featureA
474
+ branch release
475
+ checkout release
476
+ commit
477
+ checkout main
478
+ commit
479
+ checkout release
480
+ merge main
481
+ checkout develop
482
+ merge release
483
+ ```
484
+
485
+ ```mermaid
486
+ ---
487
+ config:
488
+ logLevel: 'debug'
489
+ theme: 'base'
490
+ gitGraph:
491
+ showBranches: false
492
+ ---
493
+ gitGraph
494
+ commit
495
+ branch hotfix
496
+ checkout hotfix
497
+ commit
498
+ branch develop
499
+ checkout develop
500
+ commit id:"ash" tag:"abc"
501
+ branch featureB
502
+ checkout featureB
503
+ commit type:HIGHLIGHT
504
+ checkout main
505
+ checkout hotfix
506
+ commit type:NORMAL
507
+ checkout develop
508
+ commit type:REVERSE
509
+ checkout featureB
510
+ commit
511
+ checkout main
512
+ merge hotfix
513
+ checkout featureB
514
+ commit
515
+ checkout develop
516
+ branch featureA
517
+ commit
518
+ checkout develop
519
+ merge hotfix
520
+ checkout featureA
521
+ commit
522
+ checkout featureB
523
+ commit
524
+ checkout develop
525
+ merge featureA
526
+ branch release
527
+ checkout release
528
+ commit
529
+ checkout main
530
+ commit
531
+ checkout release
532
+ merge main
533
+ checkout develop
534
+ merge release
535
+ ```
536
+
537
+ ## Commit labels Layout: Rotated or Horizontal
538
+
539
+ Mermaid supports two types of commit labels layout. The default layout is **rotated**, which means the labels are placed below the commit circle, rotated at 45 degrees for better readability. This is particularly useful for commits with long labels.
540
+
541
+ The other option is **horizontal**, which means the labels are placed below the commit circle centred horizontally, and are not rotated. This is particularly useful for commits with short labels.
542
+
543
+ You can change the layout of the commit labels by using the `rotateCommitLabel` keyword in the directive. It defaults to `true`, which means the commit labels are rotated.
544
+
545
+ Usage example: Rotated commit labels
546
+
547
+ ```mermaid-example
548
+ ---
549
+ config:
550
+ logLevel: 'debug'
551
+ theme: 'base'
552
+ gitGraph:
553
+ rotateCommitLabel: true
554
+ ---
555
+ gitGraph
556
+ commit id: "feat(api): ..."
557
+ commit id: "a"
558
+ commit id: "b"
559
+ commit id: "fix(client): .extra long label.."
560
+ branch c2
561
+ commit id: "feat(modules): ..."
562
+ commit id: "test(client): ..."
563
+ checkout main
564
+ commit id: "fix(api): ..."
565
+ commit id: "ci: ..."
566
+ branch b1
567
+ commit
568
+ branch b2
569
+ commit
570
+ ```
571
+
572
+ ```mermaid
573
+ ---
574
+ config:
575
+ logLevel: 'debug'
576
+ theme: 'base'
577
+ gitGraph:
578
+ rotateCommitLabel: true
579
+ ---
580
+ gitGraph
581
+ commit id: "feat(api): ..."
582
+ commit id: "a"
583
+ commit id: "b"
584
+ commit id: "fix(client): .extra long label.."
585
+ branch c2
586
+ commit id: "feat(modules): ..."
587
+ commit id: "test(client): ..."
588
+ checkout main
589
+ commit id: "fix(api): ..."
590
+ commit id: "ci: ..."
591
+ branch b1
592
+ commit
593
+ branch b2
594
+ commit
595
+ ```
596
+
597
+ Usage example: Horizontal commit labels
598
+
599
+ ```mermaid-example
600
+ ---
601
+ config:
602
+ logLevel: 'debug'
603
+ theme: 'base'
604
+ gitGraph:
605
+ rotateCommitLabel: false
606
+ ---
607
+ gitGraph
608
+ commit id: "feat(api): ..."
609
+ commit id: "a"
610
+ commit id: "b"
611
+ commit id: "fix(client): .extra long label.."
612
+ branch c2
613
+ commit id: "feat(modules): ..."
614
+ commit id: "test(client): ..."
615
+ checkout main
616
+ commit id: "fix(api): ..."
617
+ commit id: "ci: ..."
618
+ branch b1
619
+ commit
620
+ branch b2
621
+ commit
622
+ ```
623
+
624
+ ```mermaid
625
+ ---
626
+ config:
627
+ logLevel: 'debug'
628
+ theme: 'base'
629
+ gitGraph:
630
+ rotateCommitLabel: false
631
+ ---
632
+ gitGraph
633
+ commit id: "feat(api): ..."
634
+ commit id: "a"
635
+ commit id: "b"
636
+ commit id: "fix(client): .extra long label.."
637
+ branch c2
638
+ commit id: "feat(modules): ..."
639
+ commit id: "test(client): ..."
640
+ checkout main
641
+ commit id: "fix(api): ..."
642
+ commit id: "ci: ..."
643
+ branch b1
644
+ commit
645
+ branch b2
646
+ commit
647
+ ```
648
+
649
+ ## Hiding commit labels
650
+
651
+ Sometimes you may want to hide the commit labels from the diagram. You can do this by using the `showCommitLabel` keyword. By default its value is `true`. You can set it to `false` using directives.
652
+
653
+ Usage example:
654
+
655
+ ```mermaid-example
656
+ ---
657
+ config:
658
+ logLevel: 'debug'
659
+ theme: 'base'
660
+ gitGraph:
661
+ showBranches: false
662
+ showCommitLabel: false
663
+ ---
664
+ gitGraph
665
+ commit
666
+ branch hotfix
667
+ checkout hotfix
668
+ commit
669
+ branch develop
670
+ checkout develop
671
+ commit id:"ash"
672
+ branch featureB
673
+ checkout featureB
674
+ commit type:HIGHLIGHT
675
+ checkout main
676
+ checkout hotfix
677
+ commit type:NORMAL
678
+ checkout develop
679
+ commit type:REVERSE
680
+ checkout featureB
681
+ commit
682
+ checkout main
683
+ merge hotfix
684
+ checkout featureB
685
+ commit
686
+ checkout develop
687
+ branch featureA
688
+ commit
689
+ checkout develop
690
+ merge hotfix
691
+ checkout featureA
692
+ commit
693
+ checkout featureB
694
+ commit
695
+ checkout develop
696
+ merge featureA
697
+ branch release
698
+ checkout release
699
+ commit
700
+ checkout main
701
+ commit
702
+ checkout release
703
+ merge main
704
+ checkout develop
705
+ merge release
706
+ ```
707
+
708
+ ```mermaid
709
+ ---
710
+ config:
711
+ logLevel: 'debug'
712
+ theme: 'base'
713
+ gitGraph:
714
+ showBranches: false
715
+ showCommitLabel: false
716
+ ---
717
+ gitGraph
718
+ commit
719
+ branch hotfix
720
+ checkout hotfix
721
+ commit
722
+ branch develop
723
+ checkout develop
724
+ commit id:"ash"
725
+ branch featureB
726
+ checkout featureB
727
+ commit type:HIGHLIGHT
728
+ checkout main
729
+ checkout hotfix
730
+ commit type:NORMAL
731
+ checkout develop
732
+ commit type:REVERSE
733
+ checkout featureB
734
+ commit
735
+ checkout main
736
+ merge hotfix
737
+ checkout featureB
738
+ commit
739
+ checkout develop
740
+ branch featureA
741
+ commit
742
+ checkout develop
743
+ merge hotfix
744
+ checkout featureA
745
+ commit
746
+ checkout featureB
747
+ commit
748
+ checkout develop
749
+ merge featureA
750
+ branch release
751
+ checkout release
752
+ commit
753
+ checkout main
754
+ commit
755
+ checkout release
756
+ merge main
757
+ checkout develop
758
+ merge release
759
+ ```
760
+
761
+ ## Customizing main branch name
762
+
763
+ Sometimes you may want to customize the name of the main/default branch. You can do this by using the `mainBranchName` keyword. By default its value is `main`. You can set it to any string using directives.
764
+
765
+ Usage example:
766
+
767
+ ```mermaid-example
768
+ ---
769
+ config:
770
+ logLevel: 'debug'
771
+ theme: 'base'
772
+ gitGraph:
773
+ showBranches: true
774
+ showCommitLabel: true
775
+ mainBranchName: 'MetroLine1'
776
+ ---
777
+ gitGraph
778
+ commit id:"NewYork"
779
+ commit id:"Dallas"
780
+ branch MetroLine2
781
+ commit id:"LosAngeles"
782
+ commit id:"Chicago"
783
+ commit id:"Houston"
784
+ branch MetroLine3
785
+ commit id:"Phoenix"
786
+ commit type: HIGHLIGHT id:"Denver"
787
+ commit id:"Boston"
788
+ checkout MetroLine1
789
+ commit id:"Atlanta"
790
+ merge MetroLine3
791
+ commit id:"Miami"
792
+ commit id:"Washington"
793
+ merge MetroLine2 tag:"MY JUNCTION"
794
+ commit id:"Boston"
795
+ commit id:"Detroit"
796
+ commit type:REVERSE id:"SanFrancisco"
797
+ ```
798
+
799
+ ```mermaid
800
+ ---
801
+ config:
802
+ logLevel: 'debug'
803
+ theme: 'base'
804
+ gitGraph:
805
+ showBranches: true
806
+ showCommitLabel: true
807
+ mainBranchName: 'MetroLine1'
808
+ ---
809
+ gitGraph
810
+ commit id:"NewYork"
811
+ commit id:"Dallas"
812
+ branch MetroLine2
813
+ commit id:"LosAngeles"
814
+ commit id:"Chicago"
815
+ commit id:"Houston"
816
+ branch MetroLine3
817
+ commit id:"Phoenix"
818
+ commit type: HIGHLIGHT id:"Denver"
819
+ commit id:"Boston"
820
+ checkout MetroLine1
821
+ commit id:"Atlanta"
822
+ merge MetroLine3
823
+ commit id:"Miami"
824
+ commit id:"Washington"
825
+ merge MetroLine2 tag:"MY JUNCTION"
826
+ commit id:"Boston"
827
+ commit id:"Detroit"
828
+ commit type:REVERSE id:"SanFrancisco"
829
+ ```
830
+
831
+ Look at the imaginary railroad map created using Mermaid. Here, we have changed the default main branch name to `MetroLine1`.
832
+
833
+ ## Customizing branch ordering
834
+
835
+ In Mermaid, by default the branches are shown in the order of their definition or appearance in the diagram code.
836
+
837
+ Sometimes you may want to customize the order of the branches. You can do this by using the `order` keyword next the branch definition. You can set it to a positive number.
838
+
839
+ Mermaid follows the given precedence order of the `order` keyword.
840
+
841
+ - Main branch is always shown first as it has default order value of `0`. (unless its order is modified and changed from `0` using the `mainBranchOrder` keyword in the config)
842
+ - Next, All branches without an `order` are shown in the order of their appearance in the diagram code.
843
+ - Next, All branches with an `order` are shown in the order of their `order` value.
844
+
845
+ To fully control the order of all the branches, you must define `order` for all the branches.
846
+
847
+ Usage example:
848
+
849
+ ```mermaid-example
850
+ ---
851
+ config:
852
+ logLevel: 'debug'
853
+ theme: 'base'
854
+ gitGraph:
855
+ showBranches: true
856
+ showCommitLabel: true
857
+ ---
858
+ gitGraph
859
+ commit
860
+ branch test1 order: 3
861
+ branch test2 order: 2
862
+ branch test3 order: 1
863
+
864
+ ```
865
+
866
+ ```mermaid
867
+ ---
868
+ config:
869
+ logLevel: 'debug'
870
+ theme: 'base'
871
+ gitGraph:
872
+ showBranches: true
873
+ showCommitLabel: true
874
+ ---
875
+ gitGraph
876
+ commit
877
+ branch test1 order: 3
878
+ branch test2 order: 2
879
+ branch test3 order: 1
880
+
881
+ ```
882
+
883
+ Look at the diagram, all the branches are following the order defined.
884
+
885
+ Usage example:
886
+
887
+ ```mermaid-example
888
+ ---
889
+ config:
890
+ logLevel: 'debug'
891
+ theme: 'base'
892
+ gitGraph:
893
+ showBranches: true
894
+ showCommitLabel: true
895
+ mainBranchOrder: 2
896
+ ---
897
+ gitGraph
898
+ commit
899
+ branch test1 order: 3
900
+ branch test2
901
+ branch test3
902
+ branch test4 order: 1
903
+
904
+ ```
905
+
906
+ ```mermaid
907
+ ---
908
+ config:
909
+ logLevel: 'debug'
910
+ theme: 'base'
911
+ gitGraph:
912
+ showBranches: true
913
+ showCommitLabel: true
914
+ mainBranchOrder: 2
915
+ ---
916
+ gitGraph
917
+ commit
918
+ branch test1 order: 3
919
+ branch test2
920
+ branch test3
921
+ branch test4 order: 1
922
+
923
+ ```
924
+
925
+ Look at the diagram, here, all the branches without a specified order are drawn in their order of definition.
926
+ Then, `test4` branch is drawn because the order of `1`.
927
+ Then, `main` branch is drawn because the order of `2`.
928
+ And, lastly `test1`is drawn because the order of `3`.
929
+
930
+ NOTE: Because we have overridden the `mainBranchOrder` to `2`, the `main` branch is not drawn in the beginning, instead follows the ordering.
931
+
932
+ Here, we have changed the default main branch name to `MetroLine1`.
933
+
934
+ ## Orientation (v10.3.0+)
935
+
936
+ Mermaid supports three graph orientations: **Left-to-Right** (default), **Top-to-Bottom**, and **Bottom-to-Top**.
937
+
938
+ You can set this with either `LR:` (for [**Left-to-Right**](#left-to-right-default-lr)), `TB:` (for [**Top-to-Bottom**](#top-to-bottom-tb)) or `BT:` (for [**Bottom-to-Top**](#bottom-to-top-bt)) after `gitGraph`.
939
+
940
+ ### Left to Right (default, `LR:`)
941
+
942
+ In Mermaid, the default orientation is for commits to run from left to right and for branches to be stacked on top of one another.
943
+
944
+ However, you can set this explicitly with `LR:` after `gitGraph`.
945
+
946
+ Usage example:
947
+
948
+ ```mermaid-example
949
+ gitGraph LR:
950
+ commit
951
+ commit
952
+ branch develop
953
+ commit
954
+ commit
955
+ checkout main
956
+ commit
957
+ commit
958
+ merge develop
959
+ commit
960
+ commit
961
+ ```
962
+
963
+ ```mermaid
964
+ gitGraph LR:
965
+ commit
966
+ commit
967
+ branch develop
968
+ commit
969
+ commit
970
+ checkout main
971
+ commit
972
+ commit
973
+ merge develop
974
+ commit
975
+ commit
976
+ ```
977
+
978
+ ### Top to Bottom (`TB:`)
979
+
980
+ In `TB` (**Top-to-Bottom**) orientation, the commits run from top to bottom of the graph and branches are arranged side-by-side.
981
+
982
+ To orient the graph this way, you need to add `TB:` after gitGraph.
983
+
984
+ Usage example:
985
+
986
+ ```mermaid-example
987
+ gitGraph TB:
988
+ commit
989
+ commit
990
+ branch develop
991
+ commit
992
+ commit
993
+ checkout main
994
+ commit
995
+ commit
996
+ merge develop
997
+ commit
998
+ commit
999
+ ```
1000
+
1001
+ ```mermaid
1002
+ gitGraph TB:
1003
+ commit
1004
+ commit
1005
+ branch develop
1006
+ commit
1007
+ commit
1008
+ checkout main
1009
+ commit
1010
+ commit
1011
+ merge develop
1012
+ commit
1013
+ commit
1014
+ ```
1015
+
1016
+ ### Bottom to Top (`BT:`) (v11.0.0+)
1017
+
1018
+ In `BT` (**Bottom-to-Top**) orientation, the commits run from bottom to top of the graph and branches are arranged side-by-side.
1019
+
1020
+ To orient the graph this way, you need to add `BT:` after gitGraph.
1021
+
1022
+ Usage example:
1023
+
1024
+ ```mermaid-example
1025
+ gitGraph BT:
1026
+ commit
1027
+ commit
1028
+ branch develop
1029
+ commit
1030
+ commit
1031
+ checkout main
1032
+ commit
1033
+ commit
1034
+ merge develop
1035
+ commit
1036
+ commit
1037
+ ```
1038
+
1039
+ ```mermaid
1040
+ gitGraph BT:
1041
+ commit
1042
+ commit
1043
+ branch develop
1044
+ commit
1045
+ commit
1046
+ checkout main
1047
+ commit
1048
+ commit
1049
+ merge develop
1050
+ commit
1051
+ commit
1052
+ ```
1053
+
1054
+ ## Parallel commits (v10.8.0+)
1055
+
1056
+ Commits in Mermaid display temporal information in gitgraph by default. For example if two commits are one commit away from its parent, the commit that was made earlier is rendered closer to its parent. You can turn this off by enabling the `parallelCommits` flag.
1057
+
1058
+ ### Temporal Commits (default, `parallelCommits: false`)
1059
+
1060
+ ```mermaid-example
1061
+ ---
1062
+ config:
1063
+ gitGraph:
1064
+ parallelCommits: false
1065
+ ---
1066
+ gitGraph:
1067
+ commit
1068
+ branch develop
1069
+ commit
1070
+ commit
1071
+ checkout main
1072
+ commit
1073
+ commit
1074
+ ```
1075
+
1076
+ ```mermaid
1077
+ ---
1078
+ config:
1079
+ gitGraph:
1080
+ parallelCommits: false
1081
+ ---
1082
+ gitGraph:
1083
+ commit
1084
+ branch develop
1085
+ commit
1086
+ commit
1087
+ checkout main
1088
+ commit
1089
+ commit
1090
+ ```
1091
+
1092
+ ### Parallel commits (`parallelCommits: true`)
1093
+
1094
+ ```mermaid-example
1095
+ ---
1096
+ config:
1097
+ gitGraph:
1098
+ parallelCommits: true
1099
+ ---
1100
+ gitGraph:
1101
+ commit
1102
+ branch develop
1103
+ commit
1104
+ commit
1105
+ checkout main
1106
+ commit
1107
+ commit
1108
+ ```
1109
+
1110
+ ```mermaid
1111
+ ---
1112
+ config:
1113
+ gitGraph:
1114
+ parallelCommits: true
1115
+ ---
1116
+ gitGraph:
1117
+ commit
1118
+ branch develop
1119
+ commit
1120
+ commit
1121
+ checkout main
1122
+ commit
1123
+ commit
1124
+ ```
1125
+
1126
+ ## Themes
1127
+
1128
+ Mermaid supports a bunch of pre-defined themes which you can use to find the right one for you. PS: you can actually override an existing theme's variable to get your own custom theme going. Learn more about [theming your diagram](config-theming.md).
1129
+
1130
+ The following are the different pre-defined theme options:
1131
+
1132
+ - `base`
1133
+ - `forest`
1134
+ - `dark`
1135
+ - `default`
1136
+ - `neutral`
1137
+
1138
+ **NOTE**: To change theme you can either use the `initialize` call or _directives_. Learn more about [directives](config-directives.md)
1139
+ Let's put them to use, and see how our sample diagram looks in different themes:
1140
+
1141
+ ### Base Theme
1142
+
1143
+ ```mermaid-example
1144
+ ---
1145
+ config:
1146
+ logLevel: 'debug'
1147
+ theme: 'base'
1148
+ ---
1149
+ gitGraph
1150
+ commit
1151
+ branch hotfix
1152
+ checkout hotfix
1153
+ commit
1154
+ branch develop
1155
+ checkout develop
1156
+ commit id:"ash" tag:"abc"
1157
+ branch featureB
1158
+ checkout featureB
1159
+ commit type:HIGHLIGHT
1160
+ checkout main
1161
+ checkout hotfix
1162
+ commit type:NORMAL
1163
+ checkout develop
1164
+ commit type:REVERSE
1165
+ checkout featureB
1166
+ commit
1167
+ checkout main
1168
+ merge hotfix
1169
+ checkout featureB
1170
+ commit
1171
+ checkout develop
1172
+ branch featureA
1173
+ commit
1174
+ checkout develop
1175
+ merge hotfix
1176
+ checkout featureA
1177
+ commit
1178
+ checkout featureB
1179
+ commit
1180
+ checkout develop
1181
+ merge featureA
1182
+ branch release
1183
+ checkout release
1184
+ commit
1185
+ checkout main
1186
+ commit
1187
+ checkout release
1188
+ merge main
1189
+ checkout develop
1190
+ merge release
1191
+ ```
1192
+
1193
+ ```mermaid
1194
+ ---
1195
+ config:
1196
+ logLevel: 'debug'
1197
+ theme: 'base'
1198
+ ---
1199
+ gitGraph
1200
+ commit
1201
+ branch hotfix
1202
+ checkout hotfix
1203
+ commit
1204
+ branch develop
1205
+ checkout develop
1206
+ commit id:"ash" tag:"abc"
1207
+ branch featureB
1208
+ checkout featureB
1209
+ commit type:HIGHLIGHT
1210
+ checkout main
1211
+ checkout hotfix
1212
+ commit type:NORMAL
1213
+ checkout develop
1214
+ commit type:REVERSE
1215
+ checkout featureB
1216
+ commit
1217
+ checkout main
1218
+ merge hotfix
1219
+ checkout featureB
1220
+ commit
1221
+ checkout develop
1222
+ branch featureA
1223
+ commit
1224
+ checkout develop
1225
+ merge hotfix
1226
+ checkout featureA
1227
+ commit
1228
+ checkout featureB
1229
+ commit
1230
+ checkout develop
1231
+ merge featureA
1232
+ branch release
1233
+ checkout release
1234
+ commit
1235
+ checkout main
1236
+ commit
1237
+ checkout release
1238
+ merge main
1239
+ checkout develop
1240
+ merge release
1241
+ ```
1242
+
1243
+ ### Forest Theme
1244
+
1245
+ ```mermaid-example
1246
+ ---
1247
+ config:
1248
+ logLevel: 'debug'
1249
+ theme: 'forest'
1250
+ ---
1251
+ gitGraph
1252
+ commit
1253
+ branch hotfix
1254
+ checkout hotfix
1255
+ commit
1256
+ branch develop
1257
+ checkout develop
1258
+ commit id:"ash" tag:"abc"
1259
+ branch featureB
1260
+ checkout featureB
1261
+ commit type:HIGHLIGHT
1262
+ checkout main
1263
+ checkout hotfix
1264
+ commit type:NORMAL
1265
+ checkout develop
1266
+ commit type:REVERSE
1267
+ checkout featureB
1268
+ commit
1269
+ checkout main
1270
+ merge hotfix
1271
+ checkout featureB
1272
+ commit
1273
+ checkout develop
1274
+ branch featureA
1275
+ commit
1276
+ checkout develop
1277
+ merge hotfix
1278
+ checkout featureA
1279
+ commit
1280
+ checkout featureB
1281
+ commit
1282
+ checkout develop
1283
+ merge featureA
1284
+ branch release
1285
+ checkout release
1286
+ commit
1287
+ checkout main
1288
+ commit
1289
+ checkout release
1290
+ merge main
1291
+ checkout develop
1292
+ merge release
1293
+ ```
1294
+
1295
+ ```mermaid
1296
+ ---
1297
+ config:
1298
+ logLevel: 'debug'
1299
+ theme: 'forest'
1300
+ ---
1301
+ gitGraph
1302
+ commit
1303
+ branch hotfix
1304
+ checkout hotfix
1305
+ commit
1306
+ branch develop
1307
+ checkout develop
1308
+ commit id:"ash" tag:"abc"
1309
+ branch featureB
1310
+ checkout featureB
1311
+ commit type:HIGHLIGHT
1312
+ checkout main
1313
+ checkout hotfix
1314
+ commit type:NORMAL
1315
+ checkout develop
1316
+ commit type:REVERSE
1317
+ checkout featureB
1318
+ commit
1319
+ checkout main
1320
+ merge hotfix
1321
+ checkout featureB
1322
+ commit
1323
+ checkout develop
1324
+ branch featureA
1325
+ commit
1326
+ checkout develop
1327
+ merge hotfix
1328
+ checkout featureA
1329
+ commit
1330
+ checkout featureB
1331
+ commit
1332
+ checkout develop
1333
+ merge featureA
1334
+ branch release
1335
+ checkout release
1336
+ commit
1337
+ checkout main
1338
+ commit
1339
+ checkout release
1340
+ merge main
1341
+ checkout develop
1342
+ merge release
1343
+ ```
1344
+
1345
+ ### Default Theme
1346
+
1347
+ ```mermaid-example
1348
+ ---
1349
+ config:
1350
+ logLevel: 'debug'
1351
+ theme: 'default'
1352
+ ---
1353
+ gitGraph
1354
+ commit type:HIGHLIGHT
1355
+ branch hotfix
1356
+ checkout hotfix
1357
+ commit
1358
+ branch develop
1359
+ checkout develop
1360
+ commit id:"ash" tag:"abc"
1361
+ branch featureB
1362
+ checkout featureB
1363
+ commit type:HIGHLIGHT
1364
+ checkout main
1365
+ checkout hotfix
1366
+ commit type:NORMAL
1367
+ checkout develop
1368
+ commit type:REVERSE
1369
+ checkout featureB
1370
+ commit
1371
+ checkout main
1372
+ merge hotfix
1373
+ checkout featureB
1374
+ commit
1375
+ checkout develop
1376
+ branch featureA
1377
+ commit
1378
+ checkout develop
1379
+ merge hotfix
1380
+ checkout featureA
1381
+ commit
1382
+ checkout featureB
1383
+ commit
1384
+ checkout develop
1385
+ merge featureA
1386
+ branch release
1387
+ checkout release
1388
+ commit
1389
+ checkout main
1390
+ commit
1391
+ checkout release
1392
+ merge main
1393
+ checkout develop
1394
+ merge release
1395
+ ```
1396
+
1397
+ ```mermaid
1398
+ ---
1399
+ config:
1400
+ logLevel: 'debug'
1401
+ theme: 'default'
1402
+ ---
1403
+ gitGraph
1404
+ commit type:HIGHLIGHT
1405
+ branch hotfix
1406
+ checkout hotfix
1407
+ commit
1408
+ branch develop
1409
+ checkout develop
1410
+ commit id:"ash" tag:"abc"
1411
+ branch featureB
1412
+ checkout featureB
1413
+ commit type:HIGHLIGHT
1414
+ checkout main
1415
+ checkout hotfix
1416
+ commit type:NORMAL
1417
+ checkout develop
1418
+ commit type:REVERSE
1419
+ checkout featureB
1420
+ commit
1421
+ checkout main
1422
+ merge hotfix
1423
+ checkout featureB
1424
+ commit
1425
+ checkout develop
1426
+ branch featureA
1427
+ commit
1428
+ checkout develop
1429
+ merge hotfix
1430
+ checkout featureA
1431
+ commit
1432
+ checkout featureB
1433
+ commit
1434
+ checkout develop
1435
+ merge featureA
1436
+ branch release
1437
+ checkout release
1438
+ commit
1439
+ checkout main
1440
+ commit
1441
+ checkout release
1442
+ merge main
1443
+ checkout develop
1444
+ merge release
1445
+ ```
1446
+
1447
+ ### Dark Theme
1448
+
1449
+ ```mermaid-example
1450
+ ---
1451
+ config:
1452
+ logLevel: 'debug'
1453
+ theme: 'dark'
1454
+ ---
1455
+ gitGraph
1456
+ commit
1457
+ branch hotfix
1458
+ checkout hotfix
1459
+ commit
1460
+ branch develop
1461
+ checkout develop
1462
+ commit id:"ash" tag:"abc"
1463
+ branch featureB
1464
+ checkout featureB
1465
+ commit type:HIGHLIGHT
1466
+ checkout main
1467
+ checkout hotfix
1468
+ commit type:NORMAL
1469
+ checkout develop
1470
+ commit type:REVERSE
1471
+ checkout featureB
1472
+ commit
1473
+ checkout main
1474
+ merge hotfix
1475
+ checkout featureB
1476
+ commit
1477
+ checkout develop
1478
+ branch featureA
1479
+ commit
1480
+ checkout develop
1481
+ merge hotfix
1482
+ checkout featureA
1483
+ commit
1484
+ checkout featureB
1485
+ commit
1486
+ checkout develop
1487
+ merge featureA
1488
+ branch release
1489
+ checkout release
1490
+ commit
1491
+ checkout main
1492
+ commit
1493
+ checkout release
1494
+ merge main
1495
+ checkout develop
1496
+ merge release
1497
+ ```
1498
+
1499
+ ```mermaid
1500
+ ---
1501
+ config:
1502
+ logLevel: 'debug'
1503
+ theme: 'dark'
1504
+ ---
1505
+ gitGraph
1506
+ commit
1507
+ branch hotfix
1508
+ checkout hotfix
1509
+ commit
1510
+ branch develop
1511
+ checkout develop
1512
+ commit id:"ash" tag:"abc"
1513
+ branch featureB
1514
+ checkout featureB
1515
+ commit type:HIGHLIGHT
1516
+ checkout main
1517
+ checkout hotfix
1518
+ commit type:NORMAL
1519
+ checkout develop
1520
+ commit type:REVERSE
1521
+ checkout featureB
1522
+ commit
1523
+ checkout main
1524
+ merge hotfix
1525
+ checkout featureB
1526
+ commit
1527
+ checkout develop
1528
+ branch featureA
1529
+ commit
1530
+ checkout develop
1531
+ merge hotfix
1532
+ checkout featureA
1533
+ commit
1534
+ checkout featureB
1535
+ commit
1536
+ checkout develop
1537
+ merge featureA
1538
+ branch release
1539
+ checkout release
1540
+ commit
1541
+ checkout main
1542
+ commit
1543
+ checkout release
1544
+ merge main
1545
+ checkout develop
1546
+ merge release
1547
+ ```
1548
+
1549
+ ### Neutral Theme
1550
+
1551
+ ```mermaid-example
1552
+ ---
1553
+ config:
1554
+ logLevel: 'debug'
1555
+ theme: 'neutral'
1556
+ ---
1557
+ gitGraph
1558
+ commit
1559
+ branch hotfix
1560
+ checkout hotfix
1561
+ commit
1562
+ branch develop
1563
+ checkout develop
1564
+ commit id:"ash" tag:"abc"
1565
+ branch featureB
1566
+ checkout featureB
1567
+ commit type:HIGHLIGHT
1568
+ checkout main
1569
+ checkout hotfix
1570
+ commit type:NORMAL
1571
+ checkout develop
1572
+ commit type:REVERSE
1573
+ checkout featureB
1574
+ commit
1575
+ checkout main
1576
+ merge hotfix
1577
+ checkout featureB
1578
+ commit
1579
+ checkout develop
1580
+ branch featureA
1581
+ commit
1582
+ checkout develop
1583
+ merge hotfix
1584
+ checkout featureA
1585
+ commit
1586
+ checkout featureB
1587
+ commit
1588
+ checkout develop
1589
+ merge featureA
1590
+ branch release
1591
+ checkout release
1592
+ commit
1593
+ checkout main
1594
+ commit
1595
+ checkout release
1596
+ merge main
1597
+ checkout develop
1598
+ merge release
1599
+ ```
1600
+
1601
+ ```mermaid
1602
+ ---
1603
+ config:
1604
+ logLevel: 'debug'
1605
+ theme: 'neutral'
1606
+ ---
1607
+ gitGraph
1608
+ commit
1609
+ branch hotfix
1610
+ checkout hotfix
1611
+ commit
1612
+ branch develop
1613
+ checkout develop
1614
+ commit id:"ash" tag:"abc"
1615
+ branch featureB
1616
+ checkout featureB
1617
+ commit type:HIGHLIGHT
1618
+ checkout main
1619
+ checkout hotfix
1620
+ commit type:NORMAL
1621
+ checkout develop
1622
+ commit type:REVERSE
1623
+ checkout featureB
1624
+ commit
1625
+ checkout main
1626
+ merge hotfix
1627
+ checkout featureB
1628
+ commit
1629
+ checkout develop
1630
+ branch featureA
1631
+ commit
1632
+ checkout develop
1633
+ merge hotfix
1634
+ checkout featureA
1635
+ commit
1636
+ checkout featureB
1637
+ commit
1638
+ checkout develop
1639
+ merge featureA
1640
+ branch release
1641
+ checkout release
1642
+ commit
1643
+ checkout main
1644
+ commit
1645
+ checkout release
1646
+ merge main
1647
+ checkout develop
1648
+ merge release
1649
+ ```
1650
+
1651
+ ## Customize using Theme Variables
1652
+
1653
+ Mermaid allows you to customize your diagram using theme variables which govern the look and feel of various elements of the diagram.
1654
+
1655
+ For understanding let us take a sample diagram with theme `default`, the default values of the theme variables is picked automatically from the theme. Later on we will see how to override the default values of the theme variables.
1656
+
1657
+ See how the default theme is used to set the colors for the branches:
1658
+
1659
+ ```mermaid-example
1660
+ ---
1661
+ config:
1662
+ logLevel: 'debug'
1663
+ theme: 'default'
1664
+ ---
1665
+ gitGraph
1666
+ commit
1667
+ branch develop
1668
+ commit tag:"v1.0.0"
1669
+ commit
1670
+ checkout main
1671
+ commit type: HIGHLIGHT
1672
+ commit
1673
+ merge develop
1674
+ commit
1675
+ branch featureA
1676
+ commit
1677
+ ```
1678
+
1679
+ ```mermaid
1680
+ ---
1681
+ config:
1682
+ logLevel: 'debug'
1683
+ theme: 'default'
1684
+ ---
1685
+ gitGraph
1686
+ commit
1687
+ branch develop
1688
+ commit tag:"v1.0.0"
1689
+ commit
1690
+ checkout main
1691
+ commit type: HIGHLIGHT
1692
+ commit
1693
+ merge develop
1694
+ commit
1695
+ branch featureA
1696
+ commit
1697
+ ```
1698
+
1699
+ > #### IMPORTANT:
1700
+ >
1701
+ > Mermaid supports the theme variables to override the default values for **up to 8 branches**, i.e., you can set the color/styling of up to 8 branches using theme variables. After this threshold of 8 branches, the theme variables are reused in the cyclic manner, i.e. the 9th branch will use the color/styling of the 1st branch, or the branch at index position '8' will use the color/styling of the branch at index position '0'.
1702
+ > _More on this in the next section. See examples on **Customizing branch label colors** below_
1703
+
1704
+ ### Customizing branch colors
1705
+
1706
+ You can customize the branch colors using the `git0` to `git7` theme variables. Mermaid allows you to set the colors for up-to 8 branches, where `git0` variable will drive the value of the first branch, `git1` will drive the value of the second branch and so on.
1707
+
1708
+ NOTE: Default values for these theme variables are picked from the selected theme. If you want to override the default values, you can use the `initialize` call to add your custom theme variable values.
1709
+
1710
+ Example:
1711
+
1712
+ Now let's override the default values for the `git0` to `git3` variables:
1713
+
1714
+ ```mermaid-example
1715
+ ---
1716
+ config:
1717
+ logLevel: 'debug'
1718
+ theme: 'default'
1719
+ themeVariables:
1720
+ 'git0': '#ff0000'
1721
+ 'git1': '#00ff00'
1722
+ 'git2': '#0000ff'
1723
+ 'git3': '#ff00ff'
1724
+ 'git4': '#00ffff'
1725
+ 'git5': '#ffff00'
1726
+ 'git6': '#ff00ff'
1727
+ 'git7': '#00ffff'
1728
+ ---
1729
+ gitGraph
1730
+ commit
1731
+ branch develop
1732
+ commit tag:"v1.0.0"
1733
+ commit
1734
+ checkout main
1735
+ commit type: HIGHLIGHT
1736
+ commit
1737
+ merge develop
1738
+ commit
1739
+ branch featureA
1740
+ commit
1741
+
1742
+ ```
1743
+
1744
+ ```mermaid
1745
+ ---
1746
+ config:
1747
+ logLevel: 'debug'
1748
+ theme: 'default'
1749
+ themeVariables:
1750
+ 'git0': '#ff0000'
1751
+ 'git1': '#00ff00'
1752
+ 'git2': '#0000ff'
1753
+ 'git3': '#ff00ff'
1754
+ 'git4': '#00ffff'
1755
+ 'git5': '#ffff00'
1756
+ 'git6': '#ff00ff'
1757
+ 'git7': '#00ffff'
1758
+ ---
1759
+ gitGraph
1760
+ commit
1761
+ branch develop
1762
+ commit tag:"v1.0.0"
1763
+ commit
1764
+ checkout main
1765
+ commit type: HIGHLIGHT
1766
+ commit
1767
+ merge develop
1768
+ commit
1769
+ branch featureA
1770
+ commit
1771
+
1772
+ ```
1773
+
1774
+ See how the branch colors are changed to the values specified in the theme variables.
1775
+
1776
+ ### Customizing branch label colors
1777
+
1778
+ You can customize the branch label colors using the `gitBranchLabel0` to `gitBranchLabel7` theme variables. Mermaid allows you to set the colors for up-to 8 branches, where `gitBranchLabel0` variable will drive the value of the first branch label, `gitBranchLabel1` will drive the value of the second branch label and so on.
1779
+
1780
+ Lets see how the default theme is used to set the colors for the branch labels:
1781
+
1782
+ Now let's override the default values for the `gitBranchLabel0` to `gitBranchLabel2` variables:
1783
+
1784
+ ```mermaid-example
1785
+ ---
1786
+ config:
1787
+ logLevel: 'debug'
1788
+ theme: 'default'
1789
+ themeVariables:
1790
+ 'gitBranchLabel0': '#ffffff'
1791
+ 'gitBranchLabel1': '#ffffff'
1792
+ 'gitBranchLabel2': '#ffffff'
1793
+ 'gitBranchLabel3': '#ffffff'
1794
+ 'gitBranchLabel4': '#ffffff'
1795
+ 'gitBranchLabel5': '#ffffff'
1796
+ 'gitBranchLabel6': '#ffffff'
1797
+ 'gitBranchLabel7': '#ffffff'
1798
+ 'gitBranchLabel8': '#ffffff'
1799
+ 'gitBranchLabel9': '#ffffff'
1800
+ ---
1801
+ gitGraph
1802
+ checkout main
1803
+ branch branch1
1804
+ branch branch2
1805
+ branch branch3
1806
+ branch branch4
1807
+ branch branch5
1808
+ branch branch6
1809
+ branch branch7
1810
+ branch branch8
1811
+ branch branch9
1812
+ checkout branch1
1813
+ commit
1814
+ ```
1815
+
1816
+ ```mermaid
1817
+ ---
1818
+ config:
1819
+ logLevel: 'debug'
1820
+ theme: 'default'
1821
+ themeVariables:
1822
+ 'gitBranchLabel0': '#ffffff'
1823
+ 'gitBranchLabel1': '#ffffff'
1824
+ 'gitBranchLabel2': '#ffffff'
1825
+ 'gitBranchLabel3': '#ffffff'
1826
+ 'gitBranchLabel4': '#ffffff'
1827
+ 'gitBranchLabel5': '#ffffff'
1828
+ 'gitBranchLabel6': '#ffffff'
1829
+ 'gitBranchLabel7': '#ffffff'
1830
+ 'gitBranchLabel8': '#ffffff'
1831
+ 'gitBranchLabel9': '#ffffff'
1832
+ ---
1833
+ gitGraph
1834
+ checkout main
1835
+ branch branch1
1836
+ branch branch2
1837
+ branch branch3
1838
+ branch branch4
1839
+ branch branch5
1840
+ branch branch6
1841
+ branch branch7
1842
+ branch branch8
1843
+ branch branch9
1844
+ checkout branch1
1845
+ commit
1846
+ ```
1847
+
1848
+ Here, you can see that `branch8` and `branch9` colors and the styles are being picked from branch at index position `0` (`main`) and `1`(`branch1`) respectively, i.e., **branch themeVariables are repeated cyclically**.
1849
+
1850
+ ### Customizing Commit colors
1851
+
1852
+ You can customize commit using the `commitLabelColor` and `commitLabelBackground` theme variables for changes in the commit label color and background color respectively.
1853
+
1854
+ Example:
1855
+ Now let's override the default values for the `commitLabelColor` to `commitLabelBackground` variables:
1856
+
1857
+ ```mermaid-example
1858
+ ---
1859
+ config:
1860
+ logLevel: 'debug'
1861
+ theme: 'default'
1862
+ themeVariables:
1863
+ commitLabelColor: '#ff0000'
1864
+ commitLabelBackground: '#00ff00'
1865
+ ---
1866
+ gitGraph
1867
+ commit
1868
+ branch develop
1869
+ commit tag:"v1.0.0"
1870
+ commit
1871
+ checkout main
1872
+ commit type: HIGHLIGHT
1873
+ commit
1874
+ merge develop
1875
+ commit
1876
+ branch featureA
1877
+ commit
1878
+
1879
+ ```
1880
+
1881
+ ```mermaid
1882
+ ---
1883
+ config:
1884
+ logLevel: 'debug'
1885
+ theme: 'default'
1886
+ themeVariables:
1887
+ commitLabelColor: '#ff0000'
1888
+ commitLabelBackground: '#00ff00'
1889
+ ---
1890
+ gitGraph
1891
+ commit
1892
+ branch develop
1893
+ commit tag:"v1.0.0"
1894
+ commit
1895
+ checkout main
1896
+ commit type: HIGHLIGHT
1897
+ commit
1898
+ merge develop
1899
+ commit
1900
+ branch featureA
1901
+ commit
1902
+
1903
+ ```
1904
+
1905
+ See how the commit label color and background color are changed to the values specified in the theme variables.
1906
+
1907
+ ### Customizing Commit Label Font Size
1908
+
1909
+ You can customize commit using the `commitLabelFontSize` theme variables for changing in the font size of the commit label .
1910
+
1911
+ Example:
1912
+ Now let's override the default values for the `commitLabelFontSize` variable:
1913
+
1914
+ ```mermaid-example
1915
+ ---
1916
+ config:
1917
+ logLevel: 'debug'
1918
+ theme: 'default'
1919
+ themeVariables:
1920
+ commitLabelColor: '#ff0000'
1921
+ commitLabelBackground: '#00ff00'
1922
+ commitLabelFontSize: '16px'
1923
+ ---
1924
+ gitGraph
1925
+ commit
1926
+ branch develop
1927
+ commit tag:"v1.0.0"
1928
+ commit
1929
+ checkout main
1930
+ commit type: HIGHLIGHT
1931
+ commit
1932
+ merge develop
1933
+ commit
1934
+ branch featureA
1935
+ commit
1936
+
1937
+ ```
1938
+
1939
+ ```mermaid
1940
+ ---
1941
+ config:
1942
+ logLevel: 'debug'
1943
+ theme: 'default'
1944
+ themeVariables:
1945
+ commitLabelColor: '#ff0000'
1946
+ commitLabelBackground: '#00ff00'
1947
+ commitLabelFontSize: '16px'
1948
+ ---
1949
+ gitGraph
1950
+ commit
1951
+ branch develop
1952
+ commit tag:"v1.0.0"
1953
+ commit
1954
+ checkout main
1955
+ commit type: HIGHLIGHT
1956
+ commit
1957
+ merge develop
1958
+ commit
1959
+ branch featureA
1960
+ commit
1961
+
1962
+ ```
1963
+
1964
+ See how the commit label font size changed.
1965
+
1966
+ ### Customizing Tag Label Font Size
1967
+
1968
+ You can customize commit using the `tagLabelFontSize` theme variables for changing in the font size of the tag label .
1969
+
1970
+ Example:
1971
+ Now let's override the default values for the `tagLabelFontSize` variable:
1972
+
1973
+ ```mermaid-example
1974
+ ---
1975
+ config:
1976
+ logLevel: 'debug'
1977
+ theme: 'default'
1978
+ themeVariables:
1979
+ commitLabelColor: '#ff0000'
1980
+ commitLabelBackground: '#00ff00'
1981
+ tagLabelFontSize: '16px'
1982
+ ---
1983
+ gitGraph
1984
+ commit
1985
+ branch develop
1986
+ commit tag:"v1.0.0"
1987
+ commit
1988
+ checkout main
1989
+ commit type: HIGHLIGHT
1990
+ commit
1991
+ merge develop
1992
+ commit
1993
+ branch featureA
1994
+ commit
1995
+
1996
+ ```
1997
+
1998
+ ```mermaid
1999
+ ---
2000
+ config:
2001
+ logLevel: 'debug'
2002
+ theme: 'default'
2003
+ themeVariables:
2004
+ commitLabelColor: '#ff0000'
2005
+ commitLabelBackground: '#00ff00'
2006
+ tagLabelFontSize: '16px'
2007
+ ---
2008
+ gitGraph
2009
+ commit
2010
+ branch develop
2011
+ commit tag:"v1.0.0"
2012
+ commit
2013
+ checkout main
2014
+ commit type: HIGHLIGHT
2015
+ commit
2016
+ merge develop
2017
+ commit
2018
+ branch featureA
2019
+ commit
2020
+
2021
+ ```
2022
+
2023
+ See how the tag label font size changed.
2024
+
2025
+ ### Customizing Tag colors
2026
+
2027
+ You can customize tag using the `tagLabelColor`,`tagLabelBackground` and `tagLabelBorder` theme variables for changes in the tag label color,tag label background color and tag label border respectively.
2028
+ Example:
2029
+ Now let's override the default values for the `tagLabelColor`, `tagLabelBackground` and to `tagLabelBorder` variables:
2030
+
2031
+ ```mermaid-example
2032
+ ---
2033
+ config:
2034
+ logLevel: 'debug'
2035
+ theme: 'default'
2036
+ themeVariables:
2037
+ tagLabelColor: '#ff0000'
2038
+ tagLabelBackground: '#00ff00'
2039
+ tagLabelBorder: '#0000ff'
2040
+ ---
2041
+ gitGraph
2042
+ commit
2043
+ branch develop
2044
+ commit tag:"v1.0.0"
2045
+ commit
2046
+ checkout main
2047
+ commit type: HIGHLIGHT
2048
+ commit
2049
+ merge develop
2050
+ commit
2051
+ branch featureA
2052
+ commit
2053
+
2054
+ ```
2055
+
2056
+ ```mermaid
2057
+ ---
2058
+ config:
2059
+ logLevel: 'debug'
2060
+ theme: 'default'
2061
+ themeVariables:
2062
+ tagLabelColor: '#ff0000'
2063
+ tagLabelBackground: '#00ff00'
2064
+ tagLabelBorder: '#0000ff'
2065
+ ---
2066
+ gitGraph
2067
+ commit
2068
+ branch develop
2069
+ commit tag:"v1.0.0"
2070
+ commit
2071
+ checkout main
2072
+ commit type: HIGHLIGHT
2073
+ commit
2074
+ merge develop
2075
+ commit
2076
+ branch featureA
2077
+ commit
2078
+
2079
+ ```
2080
+
2081
+ See how the tag colors are changed to the values specified in the theme variables.
2082
+
2083
+ ### Customizing Highlight commit colors
2084
+
2085
+ You can customize the highlight commit colors in relation to the branch it is on using the `gitInv0` to `gitInv7` theme variables. Mermaid allows you to set the colors for up-to 8 branches specific highlight commit, where `gitInv0` variable will drive the value of the first branch's highlight commits, `gitInv1` will drive the value of the second branch's highlight commit label and so on.
2086
+
2087
+ Example:
2088
+
2089
+ Now let's override the default values for the `git0` to `git3` variables:
2090
+
2091
+ ```mermaid-example
2092
+ ---
2093
+ config:
2094
+ logLevel: 'debug'
2095
+ theme: 'default'
2096
+ themeVariables:
2097
+ 'gitInv0': '#ff0000'
2098
+ ---
2099
+ gitGraph
2100
+ commit
2101
+ branch develop
2102
+ commit tag:"v1.0.0"
2103
+ commit
2104
+ checkout main
2105
+ commit type: HIGHLIGHT
2106
+ commit
2107
+ merge develop
2108
+ commit
2109
+ branch featureA
2110
+ commit
2111
+
2112
+ ```
2113
+
2114
+ ```mermaid
2115
+ ---
2116
+ config:
2117
+ logLevel: 'debug'
2118
+ theme: 'default'
2119
+ themeVariables:
2120
+ 'gitInv0': '#ff0000'
2121
+ ---
2122
+ gitGraph
2123
+ commit
2124
+ branch develop
2125
+ commit tag:"v1.0.0"
2126
+ commit
2127
+ checkout main
2128
+ commit type: HIGHLIGHT
2129
+ commit
2130
+ merge develop
2131
+ commit
2132
+ branch featureA
2133
+ commit
2134
+
2135
+ ```
2136
+
2137
+ See how the highlighted commit color on the first branch is changed to the value specified in the theme variable `gitInv0`.