一键导入
validate-examples
Run full example validation - renders all YAML/JSON configs and executes all Python example scripts, mirroring the CI verify-examples job
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run full example validation - renders all YAML/JSON configs and executes all Python example scripts, mirroring the CI verify-examples job
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | validate-examples |
| description | Run full example validation - renders all YAML/JSON configs and executes all Python example scripts, mirroring the CI verify-examples job |
Run the full example validation pipeline for pinviz. This mirrors the CI verify-examples job.
Use pinviz validate on every config in examples/:
find examples/ -name "*.yaml" -o -name "*.json" | sort | xargs -I{} sh -c 'echo "Validating {}..." && uv run pinviz validate "{}" --json || echo "FAILED: {}"'
Report any failures immediately with the filename and error.
Render each config to a temp file to catch layout/rendering errors:
mkdir -p /tmp/pinviz-validate
find examples/ -name "*.yaml" -o -name "*.json" | sort | while read f; do
out="/tmp/pinviz-validate/$(basename $f .yaml).svg"
echo "Rendering $f..."
uv run pinviz render "$f" -o "$out" || echo "FAILED: $f"
done
Run each *_python.py script to verify the programmatic API works:
find examples/ -name "*_python.py" | sort | while read f; do
echo "Running $f..."
uv run python "$f" || echo "FAILED: $f"
done
uv run pytest tests/ -k "example" -v --tb=short
After all steps, summarize:
Exit with a clear PASS or FAIL status.