Otio docs

From damionrashford/media-os · View interactive version

Otio docs is an AI agent skill from the GitHub repository damionrashford/media-os. Search and fetch official OpenTimelineIO (OTIO) docs from opentimelineio.readthedocs.io and github.com/AcademySoftwareFoundation/OpenTimelineIO: timeline primitives (RationalTime, TimeRange, TimeTransform), containers (Timeline/Stack/Track), content (Clip/Gap/Transition), MediaReferences, tutorials

How to use this skill

Skill file

OTIO Docs

Context: $ARGUMENTS

Quick start

When to use


Step 1 — Know the page catalog

uv run ${CLAUDE_SKILL_DIR}/scripts/otiodocs.py list-pages

Common picks:

| Question | Page |

|---|---|

| "How do I read/write OTIO from Python?" | tut-quickstart |

| "What's Stack vs Track vs Timeline?" | tut-timeline-structure |

| "How do RationalTime and TimeRange work?" | tut-time-ranges |

| "Which adapters ship natively vs via OpenTimelineIO-Plugins?" | tut-adapters |

| "How do I author a custom schema?" | tut-schemadef |

| "Python API reference root" | api-py-root |

| "opentime module (RationalTime/TimeRange)" | api-opentime |

| "core module (SerializableObject, SerializableCollection)" | api-core |

| "schema module (Timeline/Clip/Gap/Track/Stack)" | api-schema |

| "algorithms module (stack_algo, track_algo, timeline_postprocess)" | api-algorithms |

| "media_linker module" | api-media-linker |

| "hooks module" | api-hooks |

| "README / repo root" | github-readme |

| "OpenTimelineIO-Plugins meta-package (community adapters)" | plugins-readme |

Read CODE0 for the full adapter matrix + CODE1 for the URL catalog.


Step 2 — Search first

uv run ${CLAUDE_SKILL_DIR}/scripts/otiodocs.py search --query "RationalTime" --limit 5

Scoped to one page:

uv run ${CLAUDE_SKILL_DIR}/scripts/otiodocs.py search --query "fcpx_xml" --page tut-adapters

Use --format json for machine-parseable output.

First run downloads; subsequent hit ~/.cache/otio-docs/.


Step 3 — Read one section in full

uv run ${CLAUDE_SKILL_DIR}/scripts/otiodocs.py section --page api-schema --id opentimelineio.schema.Clip

--id accepts a Sphinx anchor id OR a heading keyword fallback.


Step 4 — Fetch a whole page

uv run ${CLAUDE_SKILL_DIR}/scripts/otiodocs.py fetch --page tut-adapters

Pair with --format json for structured output.


Step 5 — Prime the cache

uv run ${CLAUDE_SKILL_DIR}/scripts/otiodocs.py index

Fetches every known page into ~/.cache/otio-docs/. Override with OTIO_DOCS_CACHE=/path.

Clear: uv run ${CLAUDE_SKILL_DIR}/scripts/otiodocs.py clear-cache.


Gotchas


Examples

Example 1 — "What does `opentimelineio.schema.Clip` take?"

uv run ${CLAUDE_SKILL_DIR}/scripts/otiodocs.py search --query "class Clip" --page api-schema --limit 3
uv run ${CLAUDE_SKILL_DIR}/scripts/otiodocs.py section --page api-schema --id opentimelineio.schema.Clip

Example 2 — "Is there an AAF adapter?"

uv run ${CLAUDE_SKILL_DIR}/scripts/otiodocs.py search --query "AAF" --page tut-adapters --limit 5

Example 3 — "How do RationalTime arithmetic and rate conversion work?"

uv run ${CLAUDE_SKILL_DIR}/scripts/otiodocs.py fetch --page tut-time-ranges

Example 4 — "How do I write a custom schema plugin?"

uv run ${CLAUDE_SKILL_DIR}/scripts/otiodocs.py fetch --page tut-schemadef

Example 5 — "Where do OTIO algorithms like `track_trimmed_to_range` live?"

uv run ${CLAUDE_SKILL_DIR}/scripts/otiodocs.py search --query "track_trimmed" --page api-algorithms

Troubleshooting

Error: `unknown page: foo`

Cause: Not in the catalog.

Solution: Run list-pages — common mistakes: schema instead of api-schema; adapters instead of tut-adapters.

Error: `urlopen error [SSL: CERTIFICATE_VERIFY_FAILED]`

Cause: macOS Python without certs.

Solution: /Applications/Python\ 3.x/Install\ Certificates.command or set SSL_CERT_FILE.

Search returns zero hits for a class name

Cause: Class is in a different module than expected — e.g. Clip is in schema, RationalTime is in opentime, track_trimmed_to_range is in algorithms.

Solution: Drop --page to search all pages.

Cache stale after OTIO release

Solution: clear-cache then index.


Reference docs

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.