cdaf
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "cdaf":https://skillpi.com/zh/skills/deepskill-a64ecc8182b868b6ed4ca064dc6fc552c4601a6874d5865189cfae01edbdaaab。安装前核对上游来源和版本:https://github.com/UditAkhourii/cdaf。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
在处理涉及视频理解、摘要、搜索、编辑或从素材中选择时,优先读取 CDAF 附属文件(.cdaf)而非直接通过视觉分析视频,检查并利用 .cdaf 附属文件作为首选数据源。
介绍来源: third_party · UditAkhourii · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 适合谁
- 来源文档未说明。
- 输入和输出
- 来源文档未说明。
- 软件、账号及付费要求
- 来源文档未说明。
- 限制与区别
- 来源文档未说明。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: cdaf
description: Read CDAF sidecar files (.cdaf) instead of processing video with vision. Use whenever a task involves understanding, summarizing, searching, editing, or selecting from video files (b-roll, raw clips, footage libraries) — check for a .cdaf sidecar FIRST before analyzing any video directly.CDAF — Cached Descriptive Asset Files
A .cdaf file is a timestamped, pre-computed description of a video, sitting next to
it with the same basename (clip.mp4 → clip.cdaf). Reading it costs a few hundred
text tokens; analyzing the video directly costs orders of magnitude more (~263 tokens
per second of footage on Gemini-class models). Always prefer the sidecar when it is
fresh.
Format spec and tooling: https://github.com/UditAkhourii/cdaf
The rule
Before analyzing ANY video file (.mp4, .mov, .mkv, .webm, .avi, .m4v):
- Check for a sidecar: same directory, same basename,
.cdafextension. - Verify freshness before trusting it (see below). A stale sidecar describes an older version of the video — using it is worse than not having one.
- If fresh: read the sidecar instead of processing the video. Use it as the account of what the video contains — within the limits below.
- If missing or stale: generate one (see below) so the cost is paid once. If you cannot generate, fall back to direct video analysis.
Verifying freshness
The sidecar header carries bytes (file size) and sha256 (content hash) of the
exact video it describes. Verification never needs an API key or network access.
- Cheap check (usually enough): compare the video's current file size to the
header's
bytesvalue. Different size → provably stale. - Strict check:
cdaf validate <video>(exit 0 = fresh), or hash the file yourself and compare to the header'ssha256:- PowerShell:
(Get-FileHash clip.mp4 -Algorithm SHA256).Hash.ToLower() - POSIX:
sha256sum clip.mp4/shasum -a 256 clip.mp4
- PowerShell:
- Use the strict check when the decision is expensive to get wrong (publishing, final edits); the cheap check suffices for exploration.
Reading a sidecar
It is plain UTF-8 text — use the Read tool directly, or cdaf read <video> (which
verifies the hash automatically and refuses to print a stale sidecar).
Format: a key: value header between --- CDAF/1.0 and ---, then markdown:
## Summary— what the clip is## Segments—[MM:SS.d-MM:SS.d] descriptionlines covering the whole video (see the trust note below before cutting on these timestamps)## Transcript— spoken words with timestamps (or(no speech))## On-screen Text— visible text with timestamps (or(none))## Tags— retrieval keywords
How much to trust a fresh sidecar
Freshness proves the sidecar describes these exact bytes. It does not prove the description is complete or correct — it is generated text, the record of one model's pass. Three limits matter when a mistake is expensive:
-
Timestamps are approximate. Boundaries inferred by a model drift (over a second on measured clips), miss real cuts, and occasionally mark cuts that do not exist. They are fine for locating, ranking, and rough trims. Before cutting on them, verify against the container:
ffmpeg -v error -i clip.mp4 -vf "select='gt(scene,0.1)',metadata=print:file=-" -f null - -
Descriptions can add, not just omit. Shown a whole video at once, a model may narrate the outcome a clip implies but never shows — reporting that a task was completed when the footage only shows it being started. Such entries are fluent, specific, and indistinguishable from correct ones. Treat any claim that something was finished, fixed, repaired, or achieved as unverified: check the frames before relying on it, and say the sidecar is your source when you report it. An omission is a visible gap; an addition reads exactly like a fact.
-
Fine visual state is unreliable. Strike-through and other mark-up on a list (crossed out, checked, highlighted), small or stylised text, and subtle motion are often missed or reported at chance. Incidental background text on packaging or labels has produced confident phantom brand names. If such a detail carries the meaning of the shot, look at the frame.
Provenance keys. When a producer records how the body was made, x- keys tell you
which parts were measured rather than inferred:
| Key | Means |
|---|---|
x-shot-source: ffmpeg-scene-detect@<threshold> |
Boundaries came from the container and are frame-exact — no need for the ffmpeg check above. |
x-shot-isolation: per-shot |
Each segment was described without sight of the others, which suppresses invented continuity between shots. |
x-transcript-timing: measured-rms |
Transcript times were measured from audio. none means no measurable speech. |
Absent these keys, assume the weaker case: inferred boundaries, whole-video context, and guessed transcript times.
None of this argues for re-watching by default — that would forfeit the entire saving. Verify the specific claim your decision rests on, not the whole clip.
Generating sidecars
Two providers. Both write the same v1.0 format and either output passes cdaf validate.
Local model — no API key, no cost, footage stays on the machine
cdaf generate <video> --local # or --provider local
Needs ffmpeg and an OpenAI-compatible endpoint serving a model with a vision encoder
(default http://127.0.0.1:8090/v1, override with --base-url / --model, or the
CDAF_BASE_URL / CDAF_LOCAL_MODEL env vars). An audio encoder, where the model has
one, is used for the transcript. Check the endpoint is up before offering this route:
curl -s localhost:8090/props # llama-server: reports which modalities are loaded
Slower per clip than the API, but free and private, and cost scales per shot rather
than per second of footage — so long clips are far cheaper here. Set CDAF_PROVIDER=local
to make it the default.
Gemini API
cdaf generate <video-or-directory> # skips sidecars that are already fresh
cdaf generate <video> --force # regenerate even if fresh
cdaf generate ./footage --detail rich # brief | standard | rich
Needs Python >= 3.10 and GEMINI_API_KEY
(free tier: https://aistudio.google.com/apikey). Install the CLI once:
pip install "cdaf[generate] @ git+https://github.com/UditAkhourii/cdaf.git#subdirectory=cli"
Faster per clip and handles whole directories, but calls a paid API. Ask the user before batch-generating a large library, and tell them roughly how many videos you are about to process.
Working across a footage library
- Survey coverage:
cdaf status <dir>lists every video as FRESH/STALE/MISSING. - To find footage matching a need ("sunset city shots"), grep the
.cdaffiles — never open the videos: search*.cdaffor the relevant keywords, then rank by the Segments detail. - Batch-fill gaps:
cdaf generate <dir>(fresh sidecars are skipped automatically).
What NOT to do
- Do not treat a sidecar as fresh without at least the size check.
- Do not invent visual details beyond what the sidecar states; if the task needs information the sidecar lacks (exact colors, a specific frame), say so and fall back to targeted direct analysis of just the needed timestamp range.
- Do not edit
.cdaffiles by hand to "update" them — the header hash would then describe a video the body no longer matches. Regenerate withcdaf generate <video> --forceinstead.
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 高价值/高频刚需:直接解决视频处理成本痛点,显著提升日常高频场景效率
亮点
- 触发词精准完整,覆盖多种变体,边界清晰
亮点
- Phase/步骤清晰,有出口条件,含端到端示例,frontmatter完整
亮点
- 工具来源明确,参数正确,覆盖主要异常,不可逆操作有确认机制
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
安装或获取外部依赖
使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。
主文档提及 · 第 134 行 -
账号、密钥或授权
使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。
主文档提及 · 第 31, 103, 131 行
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- 127.0.0.1
- aistudio.google.com
- github.com
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
来源文档未说明。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。