Skip to content

tim-hub/powerball-harness / .claude/skills/generate-video

generate-video

Verified

Generates product demo videos and release walkthroughs via Remotion. Use when creating video documentation or animated demos.

FileKindSize
SKILL.mdskill md6.6 KB
assets/backgrounds/backgrounds.jsonconfig4.9 KB
assets/sounds/sounds.jsonconfig5.7 KB
package.jsonmanifest710 B
references/MIGRATION-11.2.mdmarkdown7.9 KB
references/analyzer.mdmarkdown4.5 KB
references/asset-customization.mdmarkdown11.2 KB
references/best-practices.mdmarkdown8.6 KB
references/direction-guide.mdmarkdown14.6 KB
references/generator.mdmarkdown25.9 KB
references/image-generator.mdmarkdown9.0 KB
references/image-patterns.mdmarkdown14.5 KB
references/image-quality-check.mdmarkdown6.9 KB
references/naming-conventions.mdmarkdown6.0 KB
references/planner.mdmarkdown7.6 KB
references/visual-effects.mdmarkdown11.0 KB
remotion/components/BackgroundLayer.tsxother7.5 KB
remotion/components/EmphasisBox.tsxother5.9 KB
remotion/components/ProgressIndicator.tsxother6.8 KB
remotion/components/README.mdmarkdown8.5 KB
remotion/components/TransitionWrapper.tsxother5.7 KB
remotion/components/index.tsscript1004 B
remotion/tsconfig.jsonconfig617 B
schemas/README.mdmarkdown8.1 KB
schemas/animation.schema.jsonconfig5.2 KB
schemas/assets.manifest.schema.jsonconfig5.9 KB
schemas/character.schema.jsonconfig16.0 KB
schemas/direction.schema.jsonconfig4.5 KB
schemas/emphasis.schema.jsonconfig8.6 KB
schemas/examples/scenario-example.jsonconfig1.6 KB
schemas/examples/scene-example.jsonconfig1.6 KB
schemas/examples/video-script-example.jsonconfig5.1 KB
schemas/examples/visual-patterns/comparison-example.jsonconfig1.0 KB
schemas/examples/visual-patterns/concept-example.jsonconfig2.1 KB
schemas/examples/visual-patterns/flow-example.jsonconfig1.8 KB
schemas/examples/visual-patterns/highlight-example.jsonconfig745 B
schemas/scenario.schema.jsonconfig3.6 KB
schemas/scene.schema.jsonconfig8.2 KB
schemas/validate-schemas-basic.jsscript2.7 KB
schemas/validate-schemas.jsscript6.6 KB
schemas/video-script.schema.jsonconfig7.6 KB
schemas/visual-patterns.schema.jsonconfig14.2 KB
scripts/README.mdmarkdown7.4 KB
scripts/generate-schemas.jsexecutablescript6.2 KB
scripts/load-assets.jsexecutablescript14.1 KB
scripts/merge-scenes.jsexecutablescript15.0 KB
scripts/render-video.jsexecutablescript14.0 KB
scripts/template-registry.jsexecutablescript10.0 KB
scripts/validate-scenario.jsexecutablescript8.0 KB
scripts/validate-scene.jsexecutablescript4.3 KB
scripts/validate-video.jsexecutablescript13.0 KB
src/schemas/animation.tsscript3.7 KB
src/schemas/assets.manifest.tsscript2.8 KB
src/schemas/character.tsscript6.5 KB
src/schemas/direction.tsscript3.2 KB
src/schemas/emphasis.tsscript5.2 KB
src/schemas/index.tsscript423 B
src/schemas/scenario.tsscript2.7 KB
src/schemas/scene.tsscript5.5 KB
src/schemas/video-script.tsscript9.4 KB
src/schemas/visual-patterns.tsscript8.2 KB
src/types/README.mdmarkdown4.1 KB
src/types/components.tsscript6.0 KB
src/types/index.tsscript108 B
src/utils/README.mdmarkdown6.1 KB
src/utils/converters.jsscript5.9 KB
src/utils/converters.tsscript5.7 KB
src/utils/index.tsscript109 B
templates/image-prompts/comparison.txtmarkdown1.3 KB
templates/image-prompts/concept.txtmarkdown2.3 KB
templates/image-prompts/flow.txtmarkdown2.8 KB
templates/image-prompts/highlight.txtmarkdown3.2 KB
templates/intro-3min.jsonconfig8.9 KB
templates/teaser-90s.jsonconfig7.0 KB
tests/asset-loader.test.jsscript12.1 KB
tests/character-schema.test.jsscript7.9 KB
tests/converters.test.jsscript8.3 KB
tests/determinism.test.jsscript11.4 KB
tests/e2e/merge-e2e.test.jsscript13.3 KB
tests/e2e/render.test.jsscript6.1 KB
tests/fixtures/minimal-video-script.jsonconfig1.2 KB
tests/merge-scenes.test.jsscript17.2 KB
tests/schema-validation.test.jsscript3.7 KB
tests/validation-integration.test.jsscript12.9 KB
tests/visual-patterns.test.jsscript12.1 KB

references/MIGRATION-11.2.md

View on GitHub
# Migration Guide: Schema Naming & Unit Standardization (11.2)

**Date**: 2026-02-03
**Phase**: 11.2 - Naming & Unit Standardization
**Status**: ✅ Complete

---

## Overview

This migration standardizes naming conventions and time units across all video generation schemas.

### Key Changes

1. **Time units**: All `duration_frames` → `duration_ms` (milliseconds)
2. **Transition enum**: `"slideIn"` → `"slide_in"` (snake_case)
3. **Property naming**: All camelCase → snake_case
4. **Enum values**: Standardized to lowercase with underscores

---

## Files Modified

### 1. direction.schema.json

| Before | After | Reason |
|--------|-------|--------|
| `duration_frames` | `duration_ms` | Time unit standardization |
| `"slideIn"` enum | `"slide_in"` | Enum naming convention |
| `primaryColor` | `primary_color` | Property naming convention |
| `secondaryColor` | `secondary_color` | Property naming convention |
| `delay_before` (frames) | `delay_before_ms` | Time unit standardization |
| `delay_after` (frames) | `delay_after_ms` | Time unit standardization |
| `audio_start_offset` (frames) | `audio_start_offset_ms` | Time unit standardization |

**Default value changes**:
- `duration_ms`: 15 frames @ 30fps → 500ms
- `audio_start_offset_ms`: 30 frames @ 30fps → 1000ms

### 2. animation.schema.json

| Before | After | Reason |
|--------|-------|--------|
| `duration_frames` | `duration_ms` | Time unit standardization |
| `"slideIn"` enum | `"slide_in"` | Enum naming convention |
| `delay` | `delay_ms` | Time unit standardization |
| `overshootClamping` | `overshoot_clamping` | Property naming convention |
| `inputRange` | `input_range` | Property naming convention |
| `outputRange` | `output_range` | Property naming convention |
| `extrapolateLeft` | `extrapolate_left` | Property naming convention |
| `extrapolateRight` | `extrapolate_right` | Property naming convention |

**Maximum duration**: 300 frames → 10000ms (10 seconds)

### 3. emphasis.schema.json

| Before | After | Reason |
|--------|-------|--------|
| `start_frame` | `start_ms` | Time unit standardization |
| `duration_frames` | `duration_ms` | Time unit standardization |
| `trigger_frame` | `trigger_ms` | Time unit standardization |
| `glowIntensity` | `glow_intensity` | Property naming convention |
| `borderRadius` | `border_radius` | Property naming convention |
| `fontSize` | `font_size` | Property naming convention |
| `fontWeight` | `font_weight` | Property naming convention |
| `fontFamily` | `font_family` | Property naming convention |
| `lineHeight` | `line_height` | Property naming convention |
| `letterSpacing` | `letter_spacing` | Property naming convention |
| `textTransform` | `text_transform` | Property naming convention |
| `pulseSpeed` | `pulse_speed` | Property naming convention |
| `"fadeIn"` enum | `"fade_in"` | Enum naming convention |
| `"slideIn"` enum | `"slide_in"` | Enum naming convention |
| `"zoomIn"` enum | `"zoom_in"` | Enum naming convention |
| `"fadeOut"` enum | `"fade_out"` | Enum naming convention |
| `"slideOut"` enum | `"slide_out"` | Enum naming convention |
| `"zoomOut"` enum | `"zoom_out"` | Enum naming convention |

**Default value changes**:
- `duration_ms`: 30 frames @ 30fps → 1000ms
- `animation.duration_ms`: 15 frames @ 30fps → 500ms
- `pulse_speed`: 0.1 (per-frame) → 1.0 (per-second, 1 cycle/sec)

### 4. scene.schema.json

| Before | After | Reason |
|--------|-------|--------|
| `"slideIn"` enum (transition.in) | `"slide_in"` | Enum naming convention |
| `"slideIn"` enum (transition.out) | `"slide_in"` | Enum naming convention |

### 5. video-script.schema.json

| Before | After | Reason |
|--------|-------|--------|
| `"slide"` enum | `"slide_in"` | Enum naming convention |
| `"none"` enum | `"cut"` | Enum standardization |

### 6. visual-patterns.schema.json

| Before | After | Reason |
|--------|-------|--------|
| `colorScheme` | `color_scheme` | Property naming convention |
| `leftSide` | `left_side` | Property naming convention |
| `rightSide` | `right_side` | Property naming convention |
| `arrowStyle` | `arrow_style` | Property naming convention |
| `showNumbers` | `show_numbers` | Property naming convention |
| `mainText` | `main_text` | Property naming convention |
| `subText` | `sub_text` | Property naming convention |
| `fontSize` | `font_size` | Property naming convention |
| `aspectRatio` | `aspect_ratio` | Property naming convention |

---

## Breaking Changes

### For JSON Authors

If you have existing JSON files that use the old naming:

```json
// ❌ Old format (no longer valid)
{
  "transition": {
    "type": "slideIn",
    "duration_frames": 15
  },
  "emphasis": {
    "text": [{
      "start_frame": 0,
      "duration_frames": 30
    }]
  }
}

// ✅ New format (required)
{
  "transition": {
    "type": "slide_in",
    "duration_ms": 500
  },
  "emphasis": {
    "text": [{
      "start_ms": 0,
      "duration_ms": 1000
    }]
  }
}
```

### For Code

If you have TypeScript/JavaScript code that accesses these properties:

```typescript
// ❌ Old code (will break)
const duration = scene.transition.duration_frames;
const color = scene.background.primaryColor;

// ✅ New code
const duration = scene.transition.duration_ms;
const color = scene.background.primary_color;
```

### For Validators

JSON Schema validators will reject old property names. Update all references.

---

## Conversion Formulas

### Frames to Milliseconds

```javascript
// Assuming 30 FPS (standard for video generation)
const fps = 30;
const durationMs = Math.floor((durationFrames / fps) * 1000);

// Examples:
// 15 frames → 500ms
// 30 frames → 1000ms
// 60 frames → 2000ms
```

### Milliseconds to Frames (Runtime)

```javascript
// When rendering with Remotion
const fps = outputSettings.fps; // from video-script.schema.json
const durationFrames = Math.floor((durationMs / 1000) * fps);
```

---

## Validation

All schemas have been validated with the following checks:

- ✅ No `duration_frames` properties remain
- ✅ All transition enums use `slide_in` (not `slideIn`)
- ✅ All properties use `snake_case` (not camelCase)
- ✅ All enum values use lowercase with underscores

### Run Validation Yourself

```bash
node -e "
const fs = require('fs');
const schemas = fs.readdirSync('./skills/generate-video/schemas')
  .filter(f => f.endsWith('.schema.json'))
  .map(f => './skills/generate-video/schemas/' + f);

schemas.forEach(file => {
  const content = fs.readFileSync(file, 'utf8');
  const issues = [];

  if (content.includes('duration_frames')) issues.push('duration_frames found');
  if (content.includes('\"slideIn\"')) issues.push('slideIn found');

  if (issues.length) {
    console.log(file, '❌', issues.join(', '));
  } else {
    console.log(file, '✅');
  }
});
"
```

---

## Rollback Instructions

If you need to rollback these changes:

```bash
# Rollback all schemas to previous commit
git checkout HEAD~1 skills/generate-video/schemas/

# Remove naming conventions document
rm skills/generate-video/references/naming-conventions.md

# Remove this migration guide
rm skills/generate-video/references/MIGRATION-11.2.md
```

---

## Next Steps

1. **Update any existing test data** to use the new naming conventions
2. **Update code generators** (if any) to output the new format
3. **Update documentation** that references old property names
4. **Consider versioning** if backward compatibility is needed

---

## Related Documentation

- [Naming Conventions](./naming-conventions.md) - Comprehensive naming rules
- [Schema Phase Plan](../PLANS.md) - Phase 11.2 task details
- [All Schemas](../schemas/) - Updated schema files

---

## Checklist

Migration is complete when:

- [x] All schemas use `duration_ms` instead of `duration_frames`
- [x] All transition enums standardized to `["fade", "slide_in", "zoom", "cut"]`
- [x] All properties use `snake_case`
- [x] All enum values use lowercase with underscores
- [x] Naming conventions document created
- [x] Migration guide created
- [x] All schemas pass validation

**Status**: ✅ Complete (2026-02-03)
rea-changelog-updatemorluto/reaPrepare or rewrite REA release changelogs and GitHub release notes from pinned Git history, with verified contributor thanks and Release Please synchronization.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
academy-guideanthropics/skillsStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials, and use cases from Claude Academy (academy.claude.com), Anthropic's learning hub. Trigger on: "how do I", "how can I", "getting started with", "what can Claude do", "teach me", "learn to use"; questions about artifacts, projects, skills, plugins, connectors, MCP; requests about rolling Claude out to a team, class, or organization; and any ask for training materials, onboarding content, or learning resources. Use it when the user is learning how to use a feature or product — not when they are mid-task and just want the task done. This skill composes with other skills: after consulting product documentation to answer how a Claude feature works, also check here for a matching course or tutorial — a docs-grounded answer and an Academy recommendation belong together. Only recommend on a strong match; never invent Academy content.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
claude-apianthropics/skillsReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, `anthropic`, `@anthropic-ai`, `claude-*`, `us.anthropic.*`, `[1m]`); the user asks about an LLM (pricing/model choice/limits/caching) — never answer from memory; OR the task is LLM-shaped with provider unstated (agent/MCP/tool-definition/multi-agent/RAG/LLM-judge/computer-use; generate/summarize/extract/classify/rewrite/converse over NL; debugging refusals/cutoffs/streaming/tool-calls/tokens). SKIP only when another provider is being worked on (overrides all triggers): OpenAI/GPT/Gemini/Llama/Mistral/Cohere/Ollama named in the query; OR `grep -rE 'openai|langchain_openai|google.generativeai|genai|mistralai|cohere|ollama'` over the project hits (run this grep FIRST if no provider named — don't Read the file).Stars: 198kUpdated Claude CodeCodexUnverifiedInstall
doc-coauthoringanthropics/skillsGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.Stars: 198kUpdated Claude CodeCodexVerifiedInstall