Логотип Cdaf

Cdaf

Спільнота
UditAkhourii
cdaf

Читайте супровідні файли CDAF (.cdaf), а не аналізуйте відео за допомогою комп’ютерного зору. Використовуйте щоразу, коли потрібно зрозуміти, підсумувати, знайти, відредагувати чи вибрати відеофайли (b-roll, вихідні кліпи, відеоархіви): ПЕРШ НІЖ безпосередньо аналізувати відео, перевірте, чи є супровідний файл .cdaf.

Add to TypingMind

Огляд

ВидавецьUditAkhourii
Репозиторійcdaf
Назва навичкиcdaf
Зірки
224
Форки
11
Файли в пакеті
Лише інструкції
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Усе необхідне — в інструкціях

    Усе потрібне моделі міститься в інструкціях — жодних додаткових файлів для синхронізації.

  • Відкритий вихідний код

    Видавець на GitHub: UditAkhourii. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Cdaf у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/UditAkhourii/cdaf/tree/main/skills/claude-code/cdaf
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/UditAkhourii/cdaf.git /tmp/cdaf
mkdir -p .claude/skills
cp -r /tmp/cdaf/skills/claude-code/cdaf .claude/skills/cdaf
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Cdaf в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Cdaf, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Cdaf не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

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):

  1. Check for a sidecar: same directory, same basename, .cdaf extension.
  2. 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.
  3. If fresh: read the sidecar instead of processing the video. Use it as the account of what the video contains — within the limits below.
  4. 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 bytes value. Different size → provably stale.
  • Strict check: cdaf validate <video> (exit 0 = fresh), or hash the file yourself and compare to the header's sha256:
    • PowerShell: (Get-FileHash clip.mp4 -Algorithm SHA256).Hash.ToLower()
    • POSIX: sha256sum clip.mp4 / shasum -a 256 clip.mp4
  • 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] description lines 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:

    bash
    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:

KeyMeans
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-shotEach segment was described without sight of the others, which suppresses invented continuity between shots.
x-transcript-timing: measured-rmsTranscript 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

bash
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:

bash
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

bash
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:

bash
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 .cdaf files — never open the videos: search *.cdaf for 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 .cdaf files by hand to "update" them — the header hash would then describe a video the body no longer matches. Regenerate with cdaf generate <video> --force instead.

Поширені запитання

Що робить навичка ШІ Cdaf?

Читайте супровідні файли CDAF (.cdaf), а не аналізуйте відео за допомогою комп’ютерного зору. Використовуйте щоразу, коли потрібно зрозуміти, підсумувати, знайти, відредагувати чи вибрати відеофайли (b-roll, вихідні кліпи, відеоархіви): ПЕРШ НІЖ безпосередньо аналізувати відео, перевірте, чи є супровідний файл .cdaf.

Навіщо використовувати Cdaf у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Cdaf — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Cdaf у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/UditAkhourii/cdaf/tree/main/skills/claude-code/cdaf. TypingMind прочитає файл SKILL.md і встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Cdaf?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Cdaf?

Зі скількома забажаєте. У TypingMind ви можете використовувати Cdaf із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Cdaf?

Так. На GitHub цю навичку публікує UditAkhourii за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇