Writing Skills
writing-skills
效率与协作技能,来自 obra/superpowers,查看原文获取完整用途和操作说明。
viseron【部署与运维】Guides Viseron self-hosted NVR deployment, camera recording, computer-vision detection, integrations, and backend extension workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a task involves Viseron, the self-hosted local NVR and AI computer-vision application, especially when the user needs to configure cameras, recording, storage, object/motion/face/license-plate detection, notifications, automations, or backend components.
config.yaml and optional secrets.yaml mounted into the runtime config directory.viseron and the primary import package is viseron; source checkouts also rely on a top-level manager.py helper for some subprocess modules.config.yaml, secrets.yaml, webserver/auth/API, logging, safe mode, and startup validation.configuration-and-deployment and validate YAML/secrets syntax first.camera-recording-pipeline to check camera connectivity, stream metadata, recorder/NVR settings, storage tiers, and live-frame availability.detection-and-ai-components to check whether motion/object labels, zones, masks, scan_on_motion_only, trigger_event_recording, store, and post-processor labels can produce the expected event.automation-and-integrations only if the event exists in Viseron but an MQTT/webhook/notification/Telegram side effect is missing.developer-extension before editing code.setup_domains() hot-reload safe: register domain instances only, and avoid expensive shared initialization there.setup(), declare CONFIG_SCHEMA, and model domain dependencies with RequireDomain or OptionalDomain.| User request signal | Owning route | Why |
|---|---|---|
config.yaml, secrets.yaml, startup error, safe mode, web UI, API token, auth, or logging | configuration-and-deployment | These are global deployment concerns and should be checked before any camera or detector tuning. |
| RTSP/MJPEG URL, FFmpeg command, FFprobe timeout, recorder, NVR, live view, snapshots, timelapse, storage tier | camera-recording-pipeline | These concerns are tied to frame acquisition, recordings, and retained media. |
| Motion detected but no recording, label mismatch, zone/mask issue, model/device choice, EdgeTPU/Hailo/YOLO/Darknet, face or plate recognition | detection-and-ai-components | These are AI pipeline and post-processing choices. |
| MQTT entity/topic, webhook, Telegram, Discord, Gotify, PTZ, event topic, Jinja template | automation-and-integrations | These are side effects or control surfaces layered on top of Viseron events. |
| Setup hook, config schema, reload diff, domain dependency, entity class, docs generation, tests, or import caveat in source code | developer-extension | These are repo-maintenance and backend-extension tasks. |
scripts/check_viseron_imports.py prints a compact import/probe report for core modules and selected optional groups. Use it when you need to know whether a Viseron environment is ready for source inspection or which optional backend is missing.scripts/extract_config_schema_summary.py summarizes which components expose CONFIG_SCHEMA, setup(), and setup_domains(). Use it when choosing which component-owned sub-skill should own a new configuration branch.This skill was constructed from source, docs, tests, generated component explorer config, and CPU-safe installed-package inspection. It does not claim that this construction host verified live cameras, Docker images, PostgreSQL services, MQTT brokers, notification endpoints, YOLO/Darknet inference, EdgeTPU, Hailo, GStreamer/PyGObject, or CUDA/VA-API/Jetson/Raspberry Pi acceleration. Those remain explicit target-host checks.