技能圖譜SKILLSGROVE
技能圖譜/影片製作/AIEraDev/Clypra/clypra-composite-media-automation

clypra-composite-media-automation

安裝

$npx skills add https://github.com/AIEraDev/Clypra --skill clypra-composite-media-automation
$git clone --depth 1 https://github.com/AIEraDev/Clypra.git /tmp/Clypra && mkdir -p ~/.claude/skills && cp -r /tmp/Clypra/.kiro/skills/clypra-composite-media-automation ~/.claude/skills/clypra-composite-media-automation
請幫我安裝這個 Agent Skill:https://github.com/AIEraDev/Clypra/tree/4c204bb27fc3717e4a88801c4d3743a75498ba0b/.kiro/skills/clypra-composite-media-automation ,先閱讀它的 SKILL.md 和指令碼,確認安全後再安裝到我的技能目錄。

簡介

原文描述 · MITContinuous automation, performance scenario benchmarking, and behavioral contract verification for Clypra's multi-layer composite media pipelines: text effects, text templates, audio keyframing/sync, image overlays, and concurrent multi-track video. Activate when adding or modifying text effects, text templates, audio preview/sync, image handling, multi-track video compositing, or performance acceptance scenarios.
以下 SKILL.md 內容轉載自 AIEraDev/Clypra(提交 4c204bb),依據 MIT 許可證轉載正文(文字未改動;僅省略檔案頭後設資料、將圖片顯示為連結,超長內容會截斷);版權歸 2026 Clypra Contributors 所有。許可證:LICENSE。僅展示說明檔案,附帶指令碼請在原倉庫檢視。

Clypra Composite Media & Continuous Automation Guide

1. Overview

Clypra renders complex timelines featuring concurrent video layers (A-roll, B-roll, PIP), static and animated image overlays, styled text effects, dynamic text templates, and multi-track audio with volume keyframes.

This skill governs how continuous automated testing, acceptance benchmarking, and regression prevention are maintained as new features are added across:

  • Text: Text effects (fills, strokes, shadows, entrance/exit animations) and text templates (kind: "text-template").
  • Audio: Multi-track audio synchronization, ducking, volume keyframes, and fade curves.
  • Media & Multi-Medias: Primary video streams and multi-track composite video layers.
  • Images: Still image overlays (PNG/JPEG) with alpha transparency and canvas transforms.

2. Invariants & Architecture Rules

  1. EvaluatedScene Currency (Invariant 2): All preview and export pipelines consume EvaluatedScene emitted by evaluateTimelineSceneCached(). Never read raw timelineStore directly in render loops.
  2. Deterministic Time Authority (Invariant 1): PlaybackClock.ts is the single source of truth for playhead position. Audio keyframe gain and text animations must evaluate deterministically against the current clock time.
  3. Multi-Track Composite Layer Ordering: Visual layers are evaluated with higher track indices appearing above lower tracks. clipKind identifies layer provenance (video, image, text, text-template).
  4. Append-Only Behavioral Contracts: Behavioral contract suites guard against silent regressions. When modifying any composite subsystem, all contract suites must pass before declaring work complete.

3. Automation Assets & Fixtures

Canonical Fixtures

  • Primary 25 fps Video: /Users/AIEraDev/Documents/clypra-fixtures/clip_1440p25_gop1s.mp4
  • Secondary Video (PIP/B-roll): /Users/AIEraDev/Documents/clypra-fixtures/sync_test.mp4
  • Brand Image Overlay: /Users/AIEraDev/Documents/clypra-family/clypra/public/clypra.png
  • Composite Project Fixture: scripts/perf/fixtures/project-composite-25fps.json (also mirrored in OS application support directory).

Scenario Runner Presets (scripts/perf/run-preview-scenario.mjs)

  • playback-steady-30s: Standard 30-second single-stream playback.
  • playback-composite-30s: 30-second multi-layer composite playback exercising text effects, templates, images, PIP video, and audio keyframe envelopes.
  • composite-scrub-sweep: 40-step scrub sweep across composite timeline layers.

4. Verification & Quality Gates

When adding or touching text, audio, image, or multi-media features, execute the following suites:

# 1. Behavioral Contract Suites
npx vitest run src/core/playback/__tests__/replayBehavioralContract.test.ts
npx vitest run src/core/audio/__tests__/audioPreviewSyncContract.test.ts
npx vitest run src/components/editor/preview/__tests__/previewStateResetContract.test.ts
npx vitest run src/features/text-effects/__tests__/textEditPreviewCycle.test.ts
npx vitest run src/core/evaluation/__tests__/compositeMediaBehavioralContract.test.ts

# 2. Scenario Runner & Evaluator Tests
node --test scripts/perf/run-preview-scenario.test.mjs
node --test scripts/perf/evaluate-acceptance.test.mjs

# 3. TypeScript & Localization Integrity
npx tsc --noEmit
npm run i18n:check

5. Adding New Features: Step-by-Step Automation Protocol

When introducing a new capability to text, audio, images, or composite media:

  1. Extend Contract Test: Add a test case in compositeMediaBehavioralContract.test.ts verifying that evaluateTimelineSceneCached() produces the expected layer metadata and transform.
  2. Update Project Fixture: If the feature introduces new clip schema properties, update scripts/perf/fixtures/project-composite-25fps.json so the automated scenario runner exercises the new feature during desktop benchmark runs.
  3. Verify Acceptance Criteria: Run evaluate-acceptance.mjs against the generated session log to ensure presentation ratio $\ge 95%$, 0 zero-copy violations, and c9_compositionRollup reflects the active layers.
檢視許可證全文(MIT)
MIT License

Copyright (c) 2026 Clypra Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.