dependency-audit

GitHub

用于排查 OpenCV/Kornia/ComfyUI 依赖问题、导入失败及环境漂移。涵盖 pyproject 元数据检查、标准与 contrib OpenCV 差异分析,以及共享虚拟环境中因其他节点安装导致的误报检测。

.claude/skills/dependency-audit/SKILL.md nomadoor/ComfyUI-Video-Stabilizer

Trigger Scenarios

检查 OpenCV 或 Kornia 依赖 处理 Python 导入失败 验证 pyproject 元数据 排查环境特定行为

Install

npx skills add nomadoor/ComfyUI-Video-Stabilizer --skill dependency-audit -g -y
More Options

Non-standard path

npx skills add https://github.com/nomadoor/ComfyUI-Video-Stabilizer/tree/main/.claude/skills/dependency-audit -g -y

Use without installing

npx skills use nomadoor/ComfyUI-Video-Stabilizer@dependency-audit

指定 Agent (Claude Code)

npx skills add nomadoor/ComfyUI-Video-Stabilizer --skill dependency-audit -a claude-code -g -y

安装 repo 全部 skill

npx skills add nomadoor/ComfyUI-Video-Stabilizer --all -g -y

预览 repo 内 skill

npx skills add nomadoor/ComfyUI-Video-Stabilizer --list

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.DISOpticalFlow may exist in standard OpenCV builds.
  • cv2.optflow is part of OpenCV contrib/extra modules in common Python wheels.
  • TV-L1 fallback should not assume cv2.optflow exists.

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

Version History

  • d516bf0 Current 2026-07-05 11:55

Same Skill Collection

.claude/skills/article-or-announcement/SKILL.md
.claude/skills/comfyui-node-change/SKILL.md
.claude/skills/docs-sync/SKILL.md
.claude/skills/pr-readiness-check/SKILL.md
.claude/skills/release-check/SKILL.md
.claude/skills/stabilizer-backend-change/SKILL.md
.claude/skills/workflow-update/SKILL.md

Metadata

Files
0
Version
d516bf0
Hash
f28e9ddd
Indexed
2026-07-05 11:55

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-01 20:12
浙ICP备14020137号-1 $방문자$