PhilRobinluo/ai-coevolution-skills / skills/lls-mermaid-validator
lls-mermaid-validator
Verified生成并实际编译 Mermaid 图,同时检查图的语义、中文标签和无障碍文字备份。 当用户要处理相关材料并需要可验证交付物时使用。
| File | Kind | Size |
|---|---|---|
| README.md | markdown | 1.8 KB |
| SKILL.md | skill md | 4.5 KB |
| references/compile-and-semantic-review.md | markdown | 375 B |
| scripts/validate-mermaid.shexecutable | script | 1.3 KB |
| tests/test_validate.shexecutable | script | 535 B |
tests/test_validate.sh
View on GitHub#!/usr/bin/env bash
set -euo pipefail
root=$(cd "$(dirname "$0")/.." && pwd); tmp=$(mktemp -d); mkdir -p "$tmp/bin"
cat > "$tmp/bin/mmdc" <<'EOF'
#!/usr/bin/env bash
while [[ $# -gt 0 ]]; do case "$1" in -o) out=$2; shift 2;; *) shift;; esac; done
printf '<svg></svg>' > "$out"
EOF
chmod +x "$tmp/bin/mmdc"; echo 'flowchart LR; A-->B' > "$tmp/a.mmd"
PATH="$tmp/bin:$PATH" "$root/scripts/validate-mermaid.sh" "$tmp/a.mmd" --output "$tmp/a.svg" --report "$tmp/r.json"
[[ -s "$tmp/a.svg" ]] && grep -q '"ok":true' "$tmp/r.json"
echo PASS
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |