Agent Skills
› nomadoor/ComfyUI-Video-Stabilizer
› dependency-audit
dependency-audit
GitHub用于排查运行时依赖和环境漂移,检查OpenCV/Kornia等库的导入失败、pyproject元数据及环境差异,提供诊断命令。
触发场景
检查OpenCV或Kornia依赖问题
排查import失败
验证pyproject元数据
分析环境特定行为
安装
npx skills add nomadoor/ComfyUI-Video-Stabilizer --skill dependency-audit -g -y
SKILL.md
Frontmatter
{
"name": "dependency-audit",
"description": "Use when checking OpenCV\/Kornia\/ComfyUI dependencies, import failures, pyproject metadata, or environment-specific behavior."
}
Dependency Audit
Use this skill when investigating runtime dependencies or environment drift.
Focus Areas
- Direct imports in
nodes/and__init__.py. - Declared dependencies in
pyproject.toml. - What ComfyUI itself installs versus what this package must declare.
- Difference between standard OpenCV and contrib OpenCV.
- Shared venv accidents: a package may import locally because another custom node installed it, not because this repo declared it.
OpenCV Notes
cv2.DISOpticalFlowmay exist in standard OpenCV builds.cv2.optflowis part of OpenCV contrib/extra modules in common Python wheels.- TV-L1 fallback should not assume
cv2.optflowexists.
Useful Commands
python3 -m pip show opencv-python opencv-python-headless opencv-contrib-python opencv-contrib-python-headless kornia
python3 -c "import cv2; print(cv2.__version__, cv2.__file__, hasattr(cv2, 'DISOpticalFlow'), hasattr(cv2, 'optflow'))"
python3 scripts/validate_repo.py
版本历史
- d516bf0 当前 2026-07-05 11:55


