Skip to content

PhilRobinluo/ai-coevolution-skills / skills/lls-mermaid-validator

lls-mermaid-validator

Verified

生成并实际编译 Mermaid 图,同时检查图的语义、中文标签和无障碍文字备份。 当用户要处理相关材料并需要可验证交付物时使用。

FileKindSize
README.mdmarkdown1.8 KB
SKILL.mdskill md4.5 KB
references/compile-and-semantic-review.mdmarkdown375 B
scripts/validate-mermaid.shexecutablescript1.3 KB
tests/test_validate.shexecutablescript535 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
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall