Agent Skillsnomadoor/ComfyUI-Video-Stabilizer › stabilizer-backend-change

stabilizer-backend-change

GitHub

用于处理视频稳定化后端变更的技能,涉及运动估计、光流算法及降级策略。确保在OpenCV环境缺失时安全回退,保持CPU兼容性与结果确定性,并验证依赖可用性。

.claude/skills/stabilizer-backend-change/SKILL.md nomadoor/ComfyUI-Video-Stabilizer

Trigger Scenarios

修改经典或Flow运动估计算法 调整OpenCV后端选择 配置稳定化数学逻辑或降级行为

Install

npx skills add nomadoor/ComfyUI-Video-Stabilizer --skill stabilizer-backend-change -g -y
More Options

Non-standard path

npx skills add https://github.com/nomadoor/ComfyUI-Video-Stabilizer/tree/main/.claude/skills/stabilizer-backend-change -g -y

Use without installing

npx skills use nomadoor/ComfyUI-Video-Stabilizer@stabilizer-backend-change

指定 Agent (Claude Code)

npx skills add nomadoor/ComfyUI-Video-Stabilizer --skill stabilizer-backend-change -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": "stabilizer-backend-change",
    "description": "Use when changing Classic\/Flow motion estimation, OpenCV backend selection, fallback behavior, or stabilization math."
}

Stabilizer Backend Change

Use this skill for work on feature tracking, dense optical flow, DIS/TV-L1, transform fitting, smoothing, crop handling, or fallback behavior.

Context

  • Classic estimates sparse feature motion with OpenCV GFTT/LK.
  • Flow normally uses OpenCV DIS optical flow.
  • cv2.optflow is not available in standard OpenCV wheels; TV-L1 requires contrib OpenCV or an equivalent available API.
  • Existing sample workflows use the Flow node.

Rules

  • Do not assume cv2 or cv2.optflow exists unless declared and checked.
  • If a stronger backend is unavailable, prefer safe fallback: perspective -> similarity -> translation -> identity.
  • Keep fallback metadata auditable (flow_backend, applied transform mode, confidence/residual data where available).
  • Preserve deterministic behavior for identical frames and inputs.
  • Avoid GPU-only dependencies; this node is CPU-oriented.

Useful Checks

python3 scripts/validate_repo.py
python3 -c "import cv2; print(cv2.__version__, hasattr(cv2, 'DISOpticalFlow'), hasattr(cv2, 'optflow'))"

If using a ComfyUI venv, run the cv2 check inside that venv too.

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/dependency-audit/SKILL.md
.claude/skills/docs-sync/SKILL.md
.claude/skills/pr-readiness-check/SKILL.md
.claude/skills/release-check/SKILL.md
.claude/skills/workflow-update/SKILL.md

Metadata

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

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-09 01:01
浙ICP备14020137号-1 $Carte des visiteurs$