kaltura-agents-api-guides
CLAUDE.md4 starsChanged 3 months agoMITView on GitHub
This project produces developer documentation for AI agents building applications on Kaltura's Digital Experience Platform. The platform serves 100+ API services powering rich media experiences across customer-facing, employee-facing, learner-facing, and audience-facing journeys. The audience is an AI agent that reads top-to-bottom and executes. Every guide must be accurate (live-tested), self-contained, and actionable. Use approved product names in all user/customer-facing text: Key distinctions: - "VPaaS" = the API infrastructure layer. It is NOT a synonym for multi-account management. - "KAF" is…
- Sends data out
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- llms.txtllms.txt
- kaltura-apiSkill
The file
We split this CLAUDE.md into the rules it gives an agent
9 rules. About 0 are common, 4 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Read before editing: Before editing any KALTURA_*.md file, always Read the file first.
- Very specific: line 17
Run tests after edits: Every guide has a companion tests/test_*.py.
- Very specific: line 19
Update cross-references: When adding or modifying a guide, also update: GUIDE_MAP.md, README.md (table + badges), PLAN.md, SKILL.md, …
- Distinctive: line 27
Use approved product names in all user/customer-facing text:
- Very specific: line 63
Language-agnostic: All server-side API examples use curl with shell variables.
- Distinctive: line 64
Self-contained: No external links. Inline all information an agent needs.
- Distinctive: line 65
Actionable instructions only: Every instruction must be something an AI agent can execute.
- Very specific: line 81
Always format=1 for JSON responses
- Distinctive: line 117
Test patterns: .claude/rules/test-standards.md
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
@AGENTS.md
Kaltura API Guides — Agent Instructions
Project Intent
This project produces developer documentation for AI agents building applications on Kaltura's Digital Experience Platform. The platform serves 100+ API services powering rich media experiences across customer-facing, employee-facing, learner-facing, and audience-facing journeys.
The audience is an AI agent that reads top-to-bottom and executes. Every guide must be accurate (live-tested), self-contained, and actionable.
Critical Workflow Rules
- Read before editing. Before editing any
KALTURA_*.mdfile, alwaysReadthe file first. Your memory of file contents from earlier in this conversation is unreliable after context compaction. - Check the section index. Each guide has an HTML comment near the top listing all sections. Read it to understand what exists before adding or modifying sections.
- Run tests after edits. Every guide has a companion
tests/test_*.py. Run it after any guide change:python3 tests/test_{name}_api.py - Update cross-references. When adding or modifying a guide, also update: GUIDE_MAP.md, README.md (table + badges), PLAN.md, SKILL.md, llms.txt, context7.json.
- Release workflow. Releases are manual. When the user asks to release, trigger the workflow (
gh workflow run release.yml), wait for the release-please PR to appear, then merge it withgh pr merge --merge --admin --delete-branch. Pull and prune locally after. - Verify enums against schema. When documenting enum values, status codes, or type constants for v3 APIs, verify against the generated client libraries at
github.com/kaltura/KalturaGeneratedAPIClientsPHPorgithub.com/kaltura/KalturaGeneratedAPIClientsTypescript. For microservices (Auth Broker, Events Platform, Agents Manager, etc.), verify against the service's own OpenAPI spec. The v3 XML schema atapi_schema.phpcovers only foundation APIs — microservices have independent schemas.
Terminology (Official — from Kaltura Glossary)
Use approved product names in all user/customer-facing text:
| Approved Term | What It Is | Legacy/Internal Names to Avoid |
| Content Hubs | Brandable video portals for sharing media | KMS, MediaSpace, Video Portal |
| LMS Extensions | LTI integration into LMS platforms | KAF (OK in technical/architectural contexts) |
| Rich Media CMS | Admin backend for managing media, users, metadata | KMC |
| Kaltura Room | Virtual classroom / meeting engine | Newrow, NR2, KME |
| Live Studio | Self-produced live broadcasts | Town Halls, Kwebcast, External Broadcast |
| Content Lab | AI repurposing (clips, quizzes, summaries) | — |
| REACH | Marketplace for add-on enrichment services (credits-based) | — |
| VPaaS | Video Platform as a Service — the underlying API infrastructure | (Valid technical term, OK to use in developer docs) |
| KMS Admin | Admin backend controlling Content Hubs & LMS Extensions | — |
| Agentic Avatars | Conversational AI video avatars | — |
| Kaltura Genies | Conversational AI search (text/voice) | AI Class Genie, AI Work Genie |
Key distinctions:
- "VPaaS" = the API infrastructure layer. It is NOT a synonym for multi-account management.
- "KAF" is acceptable in technical/architectural documentation (this repo). Avoid in customer-facing UI text.
- "KMS" only when discussing the specific front-end component in technical contexts. Use "Content Hubs" for the solution.
Documentation Standards
Structure (every guide)
- Header block:
# Title, 1-2 sentence description,**Base URL:**,**Auth:**,**Format:**(trailing double-spaces for line breaks) <!-- Sections: ... -->index comment immediately after header# 1. When to Usethrough numbered sections (# N.with H1)- Final 3 sections must be in this exact order:
# N-2. Error Handling# N-1. Best Practices(may include## Common Integration Patterns,## Multi-Region CDNas subsections)# N. Related Guides— format:- **[Name](FILENAME.md)** — One-line description(bold link, em dash—)
Writing Rules
- Positive framing only. State what to do: "Use Y to accomplish this." Never write "Don't do X", "avoid X", "never X", "X will fail if...", or "X won't work." AI agents follow positive instructions more reliably than prohibitions. If behavior matters, frame it as the correct action: "Use
flavorAsset.getUrlfor flavor URLs — it handles CDN routing and tokenization" (not "Don't construct flavor URLs manually"). - Language-agnostic. All server-side API examples use
curlwith shell variables. JavaScript/HTML only for browser-based components (Player, widgets). - Self-contained. No external links. Inline all information an agent needs. Source repos and "learn more" URLs are research aids — keep them out of published guides. See AGENTS.md for the narrow, named exception covering guides that front a versioned public SDK docs site.
- Actionable instructions only. Every instruction must be something an AI agent can execute. Replace "contact support" with specific prerequisite statements: "Requires X configured on your account (one-time setup by your Kaltura account team)."
- Minimal prose. Tables for structured data. Let examples speak. Commentary only when behavior is non-obvious.
- Trailing double-spaces on lines that must render as separate lines (header block, multi-line list items).
- No emojis unless explicitly requested.
- Active voice, simple language. Address the reader as "you". Avoid jargon and business-speak.
- Platform scale. "100+ API services", "a dozen client libraries."
curl Standards
curl -X POST "$KALTURA_SERVICE_URL/service/{service}/action/{action}" \
-d "ks=$KALTURA_KS" \
-d "format=1" \
-d "param[key]=value"- Always
format=1for JSON responses - One
-dper line with backslash continuation - Shell variables:
$KALTURA_SERVICE_URL,$KALTURA_KS,$KALTURA_PARTNER_ID,$KALTURA_ENTRY_ID - No inline comments inside curl blocks —
#after\continuation breaks the command. Put explanations above the curl block. - No hardcoded IDs in
-dparameters — use$KALTURA_ENTRY_ID,$CATEGORY_ID,$PROFILE_ID, etc. An agent will copy literal values verbatim. - No short variable names — always use the
$KALTURA_prefix ($KALTURA_KSnot$KS,$KALTURA_SERVICE_URLnot$SERVICE_URL). This ensures agents export the correct environment variables.
What NOT to Document
- Actions that return
SERVICE_FORBIDDENwith a customer KS - External links (GitHub repos, knowledge base URLs, "learn more")
- Deprecated features (v2 player, legacy module names in user-facing text)
- Negative framing ("don't do X", "X will fail if...")
media.addFrom*convenience methods (addFromUrl,addFromEntry,addFromFlavorAsset) — guide agents to usemedia.addContentwith the appropriate resource type (KalturaUrlResource,KalturaEntryResource,KalturaAssetResource)
Playbook Workflow Rules
Playbooks live in playbooks/ and follow playbooks/PLAYBOOK_STANDARDS.md. Key rules:
- Read PLAYBOOK_STANDARDS.md before writing any playbook.
- Every playbook must have a companion E2E test in
playbooks/tests/. - Playbooks span 3+ APIs — if it only uses one service, it belongs in that guide.
- Problem-first naming — file names match what developers search for.
- Opinionated with decision points — recommend approaches and explain trade-offs.
Current State
52 guides, 1000+ live tests, 1 playbook. Conventional Commits enforced (header under 72 chars). Version managed by release-please.
Quick References
- Full standards: AGENTS.md
- Guide navigation: GUIDE_MAP.md
- Roadmap: PLAN.md
- Playbook standards: playbooks/PLAYBOOK_STANDARDS.md
- Common mistakes: .claude/rules/common-pitfalls.md
- Test patterns: .claude/rules/test-standards.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

