oliverv/caro / .agents/skills/oma-video
oma-video
UnverifiedCreate short, explainer, or recorded-demo videos through the OMA video CLI. Use for scripts, narration, assets, composition, and video delivery.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 6.4 KB |
| config/video-config.yaml | config | 1.9 KB |
| resources/checklist.md | markdown | 2.3 KB |
| resources/execution-protocol.md | markdown | 7.8 KB |
| resources/hyperframes-authoring/README.md | markdown | 2.1 KB |
| resources/hyperframes-authoring/demo.md | markdown | 966 B |
| resources/hyperframes-authoring/explainer.md | markdown | 901 B |
| resources/hyperframes-authoring/shorts.md | markdown | 1.2 KB |
| resources/mpt/driver.py | script | 11.8 KB |
| resources/prompt-tips.md | markdown | 4.5 KB |
| resources/script-schema.md | markdown | 3.5 KB |
| resources/strudel/package.json | manifest | 464 B |
| resources/strudel/page.html | other | 3.0 KB |
| resources/strudel/render.mjs | script | 9.8 KB |
| resources/vendor-matrix.md | markdown | 6.2 KB |
resources/strudel/page.html
View on GitHub<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>oma-video strudel offline render</title>
</head>
<body>
<!-- Served by render.mjs from the resolved @strudel/web dist. The IIFE
bundle exposes everything on `window.strudel` + `window.initStrudel`. -->
<script src="/strudel.js"></script>
<script>
window.__omaLog = [];
window.addEventListener('error', (e) =>
window.__omaLog.push('error: ' + e.message),
);
window.addEventListener('unhandledrejection', (e) =>
window.__omaLog.push('rejection: ' + (e.reason?.message ?? e.reason)),
);
/**
* Render `code` to a WAV and stash it on window as base64.
*
* `strudel.renderPatternAudio()` is a real OfflineAudioContext render
* (faster than realtime, no audio device involved) but it delivers the
* finished wav as a browser DOWNLOAD. Rather than plumb a download
* directory through CDP, we intercept URL.createObjectURL to capture the
* Blob in-page and hand the bytes back over the debugger protocol.
*
* Returns the base64 length; the driver pulls window.__omaWav in chunks.
*/
window.__omaRender = async function (code, seconds, cps, sampleRate) {
await window.initStrudel();
// repl.evaluate(code, autostart=false) transpiles + evaluates without
// starting the realtime scheduler, and returns the Pattern itself.
const evaluated = await window.strudel.evaluate(code, false);
const pattern = evaluated?.pattern ?? evaluated;
if (!pattern || typeof pattern.queryArc !== 'function') {
throw new Error(
'strudel: pattern code did not evaluate to a Pattern (got ' +
typeof pattern +
')',
);
}
let captured = null;
const realCreate = URL.createObjectURL.bind(URL);
const realRevoke = URL.revokeObjectURL.bind(URL);
URL.createObjectURL = (blob) => {
captured = blob;
return 'blob:oma-captured';
};
URL.revokeObjectURL = () => {};
try {
await window.strudel.renderPatternAudio(
pattern,
cps,
0,
seconds * cps,
sampleRate,
128,
false,
'oma-bgm',
);
} finally {
URL.createObjectURL = realCreate;
URL.revokeObjectURL = realRevoke;
}
if (!captured) {
throw new Error('strudel: renderPatternAudio produced no audio blob');
}
const bytes = new Uint8Array(await captured.arrayBuffer());
let binary = '';
const CHUNK = 0x8000; // stay under the String.fromCharCode arg limit
for (let i = 0; i < bytes.length; i += CHUNK) {
binary += String.fromCharCode.apply(
null,
bytes.subarray(i, i + CHUNK),
);
}
window.__omaWav = btoa(binary);
return window.__omaWav.length;
};
</script>
</body>
</html>
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |