شعار Lazy Frames

Lazy Frames

مؤسسة
cosmicstack-labs
lazy-frames

Turn any input (a website URL, a text brief, existing footage, a music track) into a finished, pixel-perfect MP4 — fully local, byte-stable across renders. The agent researches the input and dumps a typed SPEC; the Lazy Frames CLI turns that spec into video. Use for website promos, cinematic clips, motion graphics, explainer videos, social ads, and any programmatic video generation that must be deterministic and work offline. Install: npm install lazy-frames | Raw skill URL: https://lazy-frames.cosmicstack.ai/skill.md

نظرة عامة

الناشرcosmicstack-labs
المستودعlazy-frames
اسم المهارةlazy-frames
النجوم
169
التفريعات
19
الملفات المرفقة
5
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 5

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها cosmicstack-labs على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Lazy Frames في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/cosmicstack-labs/lazy-frames/tree/main/skill
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cosmicstack-labs/lazy-frames.git /tmp/lazy-frames
mkdir -p .claude/skills
cp -r /tmp/lazy-frames/skill .claude/skills/lazy-frames
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Lazy Frames في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Lazy Frames تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Lazy Frames بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Lazy Frames

Lazy Frames renders video from a typed JSON spec — a composition is a spec.json file whose scenes declare timing, content, and style; the CLI turns it into a deterministic, pixel-perfect MP4. The core renderer needs no cloud or keys. Reviewed plugins may use explicitly declared external services; generated media is cached locally before deterministic rendering.

Current CLI release: lazy-frames@0.6.3.

  • Captured website media is center-cropped by default in browser-frame, ui-callout, and both flat and depth parallax scenes. Override params.position only when the subject requires a different anchor.
  • capture, check, gen, preview, and render report live phases on stderr. Render reports frame percentages. With --json, stdout remains clean machine-readable JSON.

1. Start from project state

StateAction
Existing project with spec.jsonRead the spec, make the edit or run the requested operation. Skip routing.
Fresh request with a website URLRoute to website-promo workflow (§ 3).
Fresh request with a text briefRoute to cinematic workflow (§ 3).
Fresh request with existing footageRoute to edit workflow (§ 3).
UnclearAsk one question: "Is this about a specific website, a topic/brief, or existing video footage?"

2. Prerequisites

bash
node --version   # >= 20
ffmpeg -version  # required
python3 --version   # Python 3; on Windows `python` is fine
ls "/Applications/Google Chrome.app"  # macOS; Windows uses Chrome in Program Files, or set CHROME_PATH

Install from npm:

bash
npm install lazy-frames
npx lazy doctor

Or build from source:

bash
npm install && npm run build

Verify the environment:

bash
node packages/cli/dist/index.js doctor

Doctor reports: Node platform/memory, Python version + tier, and provider availability (procedural imagery, depth, music, TTS). Local narration uses tts.say (macOS say or Windows SAPI); external providers are installed as scoped plugins. If image.mlx-photoreal is unavailable (expected on <16 GB machines), the procedural image generator is used instead — still produces cinematic stills, just not photoreal.

Plugins and external providers

ElevenLabs is included by default but still requires project-scoped approval before network use. When the user requests any provider or storytelling capability, search the registry, inspect its status and permissions, and ask before approving or installing it:

bash
node packages/cli/dist/index.js plugin search tts
node packages/cli/dist/index.js plugin info elevenlabs
node packages/cli/dist/index.js plugin install elevenlabs -p projects/cine

Marketplace scaffolds may be installed but cannot execute until a reviewed adapter ships. Never install arbitrary package URLs or store API keys in project files. ElevenLabs reads ELEVENLABS_API_KEY from the environment. Registry: https://lazy-frames.cosmicstack.ai/plugins/index.json

3. Workflows

website-promo

Input: a URL. Output: a promo/showcase MP4 built from the site's own captured visuals.

bash
# 1. Capture the site (screenshots @2x, palette, copy, fonts, logo)
node packages/cli/dist/index.js capture https://example.com projects/acme

# 2. Review the generated starter spec + captured assets
cat projects/acme/spec.json
ls projects/acme/assets/sites/example.com/

# 3. Edit the spec if needed (adjust scenes, copy, timing, transitions)

# 4. Validate + run gates
node packages/cli/dist/index.js snapshot projects/acme --update
node packages/cli/dist/index.js check projects/acme

# 5. Render
node packages/cli/dist/index.js render projects/acme

The capture command writes:

  • assets/sites/<domain>/hero.png + full.png (screenshots at 2x DPR)
  • assets/sites/<domain>/ledger.json (palette, fonts, copy blocks, metadata)
  • A starter spec.json with 5 scenes built from the captured content
  • Screenshot scenes explicitly use { "x": "center", "y": "center" } unless the spec overrides the crop anchor

cinematic

Input: a text brief or topic. Output: a 30–60 s cinematic clip with generated stills, depth-parallax, narration, music, SFX.

bash
# 1. Generate procedural stills + matching depth maps
node packages/cli/dist/index.js gen image -p projects/cine --seed 21 --style ridge --palette "#070B14,#F59E4C,#F4F7FB" --name ridge-01
node packages/cli/dist/index.js gen image -p projects/cine --seed 42 --style dune --palette "#070B14,#7FB7D9,#F4F7FB" --name dune-01

# 2. Write spec.json referencing the generated assets (see references/spec-format.md)

# 3. Draft scene-linked narration, then generate optional audio assets
node packages/cli/dist/index.js script projects/cine --apply
node packages/cli/dist/index.js gen music -p projects/cine --mood calm --bpm 90 --bars 12 --seed 21
node packages/cli/dist/index.js gen tts -p projects/cine --text "Every frame computed locally." --name n1

# 4. Validate + render
node packages/cli/dist/index.js snapshot projects/cine --update
node packages/cli/dist/index.js check projects/cine
node packages/cli/dist/index.js render projects/cine

edit

Input: existing footage (MP4) + a brief. Output: the footage composited into a video with overlays, grading, transitions.

Write a spec with video-layer scenes referencing the footage file, plus typography/atmosphere scenes for titles and transitions. The engine owns video seeking (deterministic per-machine frame extraction). See references/scene-types.md for video-layer params.

4. Agent contract

The agent's job across all workflows:

  1. Research the input (read the site, understand the brief, inspect the footage).
  2. Produce or refine spec.json — a valid typed spec (see references/spec-format.md).
  3. Generate the narration script when requested (lazy script <project> --apply), then review its scene-linked beats.
  4. Generate assets if needed (lazy gen image, lazy gen music, lazy gen tts).
  5. Run lazy check and fix every error. Warnings are advisory.
  6. Run lazy snapshot --update to establish the regression baseline.
  7. Run lazy check again — snapshot + seek-determinism gates must pass.
  8. Run lazy preview and hand the URL to the user. Ask whether to revise or render.
  9. Render only after approval. lazy render — never before the user says go.
  10. Verify the output: confirm the file exists, is non-empty, has the expected duration.
  11. Report the output path + sha256.

Non-negotiable rules

  • Never render before the user approves. Always pause at preview.
  • Never skip lazy check. It catches schema errors, missing assets, and nondeterminism.
  • Always run lazy snapshot --update before the first lazy check in a new project.
  • Never edit .lazy/ — it's generated. Edit spec.json and re-render.
  • Never install an unreviewed plugin or persist provider credentials. Use the registry and environment variables.
  • Reference assets by project-relative paths in spec (e.g., assets/gen/ridge-01.png).
  • Scenes are sequential with optional overlap. Overlap + fade/dissolve = crossfade.
  • All timing is in milliseconds. Start times are absolute from the composition start.
  • Palette convention: palette[0] = bg, palette[1] = accent, palette[2] = fg.
  • Width/height must be even (h264 yuv420p requirement).
  • Fonts are bundled: Inter (body) and Space Grotesk (display). No external fonts.
  • Progress belongs on stderr. Commands using --json reserve stdout for their final JSON result.

5. Key concepts

Determinism

Same spec + same machine = byte-identical MP4 (verified by sha256). Three Chrome flags enforce this: --jitless (V8 interpreter only), --use-angle=swiftshader (software rendering), and integer-pixel transform rounding in the runtime. CSS sub-pixel text rendering is cross-session nondeterministic — the runtime snaps all transforms to integer pixels.

Gates

lazy check runs two blocking gates:

  • Snapshot regression: renders keyframes (scene midpoints + transition midpoints), hashes their pixels, and compares against snapshots/baseline.json. Drift = error with scene + timestamp.
  • Seek determinism: renders 5 sampled timestamps twice in one browser session, compares hashes.

Audio

Audio is declarative in the spec (narration, music, sfx). The renderer generates and caches canonical WAV audio, then mixes via ffmpeg:

  • Narration: local say or an installed TTS plugin, placed at startMs or anchored to sceneId + offsetMs
  • Music: procedural synth (chord pads + percussion) seeded by seed, looped to video duration
  • SFX: synthesized whoosh/hit/rise/boom, placed at atMs with gain

LUT / grade

Two layers:

  • Stage grade (style.grade): CSS filter preset on the composition root (fast, subtle)
  • Output LUT (outputs[0].lut): 3D LUT .cube file applied via ffmpeg lut3d during encode (cinematic color grade). Bundled LUTs: teal-orange, noir-film, faded-vintage.

6. References

FileURLRead it to…
spec-format.mdhttps://lazy-frames.cosmicstack.ai/references/spec-format.mdauthor a valid spec.json — full schema, all fields, defaults
scene-types.mdhttps://lazy-frames.cosmicstack.ai/references/scene-types.mdpick a scene type and configure its params
workflows.mdhttps://lazy-frames.cosmicstack.ai/references/workflows.mdstep-by-step for website-promo, cinematic, and edit workflows
cli.mdhttps://lazy-frames.cosmicstack.ai/references/cli.mdevery CLI command with flags and examples
gates.mdhttps://lazy-frames.cosmicstack.ai/references/gates.mdsnapshot regression + seek determinism gate usage

These references are also available in the installed package at skill/references/ and in the repo at skill/references/.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Lazy Frames؟

Turn any input (a website URL, a text brief, existing footage, a music track) into a finished, pixel-perfect MP4 — fully local, byte-stable across renders. The agent researches the input and dumps a typed SPEC; the Lazy Frames CLI turns that spec into video. Use for website promos, cinematic clips, motion graphics, explainer videos, social ads, and any programmatic video generation that must be deterministic and work offline. Install: npm install lazy-frames | Raw skill URL: https://lazy-frames.cosmicstack.ai/skill.md

لماذا تستخدم Lazy Frames على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Lazy Frames عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Lazy Frames في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/cosmicstack-labs/lazy-frames/tree/main/skill. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Lazy Frames؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Lazy Frames؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Lazy Frames معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Lazy Frames مجانية؟

نشرها cosmicstack-labs على GitHub. راجع المستودع للاطلاع على شروط الترخيص. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇