mermaid-configlisted
Install: claude install-skill aksh-3141/claude-toolshed
# /mermaid-config
User request: "$ARGUMENTS"
## Task
Interactive config wizard: view and update plugin settings, or run a dependency health check.
## Config file
All settings are stored in `.claude/mermaid.json` in the current project directory.
Default values (used when file does not exist):
```json
{
"theme": "zinc-light",
"output_directory": "./diagrams",
"auto_validate": true,
"auto_render": false,
"output_format": "svg"
}
```
## Process
### Step 1: Resolve Plugin Path
```bash
PLUGIN_DIR=$(find "$HOME/.claude/plugins/cache" -type d -name "mermaid" -path "*/skills/mermaid" 2>/dev/null | head -1)
```
If empty:
```bash
PLUGIN_DIR=$(find "$HOME" -maxdepth 8 -type d -name "mermaid" -path "*/skills/mermaid" 2>/dev/null | head -1)
```
Use `$PLUGIN_DIR` in all subsequent commands.
### Step 2: Read current config
If `.claude/mermaid.json` exists, read it. Otherwise use defaults above.
### Step 3: If argument provided
If the user passed arguments (e.g. `theme dracula` or `auto_render true`), apply directly:
- Parse as `{setting} {value}`
- For `theme`: accept any of the 15 beautiful-mermaid theme names or `custom`
- Validate value is allowed (see options below)
- Update `.claude/mermaid.json`
- Confirm: "✅ {setting} set to {value}"
- Done.
### Step 4: If no argument — show interactive menu
Display:
```
Current config (.claude/mermaid.json):
1. theme → {current} (zinc-light, github-dark, dracula, … 15 themes + custom)
2. output_direc