---
name: "mermaid-gitgraph-branching-model"
description: "Document Git branching workflows and release strategies with Mermaid gitGraph."
metadata:
  author: "Mermaid"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "draw git branching model mermaid"
  - "document trunk-based development gitgraph"
  - "show git merge and cherry-pick"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# Mermaid.js Git Branching Graph Visualizer

Renders visual Git commit graphs using Mermaid gitGraph: branch creation, commit tags, merge strategies, cherry-picks, and GitFlow / Trunk-Based documentation.

## When to Invoke
Invoke this skill whenever you need to:
- draw git branching model mermaid
- document trunk-based development gitgraph
- show git merge and cherry-pick

## Execution SOP & Rules
1. Start with gitGraph: and configure commit order or main branch names.
2. Create feature branches with branch feature-login and switch back with checkout main.
3. Tag important releases using commit id: "v1.0.0" tag: "v1.0.0".
4. Illustrate merges with merge feature-login id: "Merge PR #42".

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
