Communitygithub.com

remocn-설정

Remotion 프로젝트가 `npx shadcn add @remocn/<name>`을 실행할 준비를 합니다: components.json에 @remocn 레지스트리를 추가하고, tsconfig.json에 @/* 경로를 설정하며, 같은 별칭을 remotion.config.ts에 추가합니다. 프로젝트에 첫 번째 remocn 컴포넌트를 설치하기 전, 또는 shadcn add나 Remotion 번들러가 remocn 임포트를 해결하지 못할 때 사용하세요.

remocn-설정란 무엇인가요?

remocn-설정 스킬은 Remotion 프로젝트에서 @remocn/ 레지스트리의 shadcn/ui 스타일 컴포넌트를 사용할 수 있도록 필요한 설정을 자동으로 적용하는 AI 에이전트 도구입니다. shadcn init은 Remotion 프로젝트를 지원하지 않고, Remotion 번들러는 tsconfig 경로를 읽지 못하기 때문에, 신규 프로젝트는 최초 컴포넌트 설치 전에 세 가지 수동 편집이 필요합니다. 이 스킬은 package.json을 검증하고, components.json에 @remocn 레지스트리를 추가하고(누락 시 기본 파일 생성), tsconfig.json의 compilerOptions.paths에 @/* 별칭을 설정하며(상속된 설정 처리), remotion.config.ts/js에 동일한 웹팩 별칭을 추가합니다. Claude Code, Cursor, Codex 등 파일 편집 기능이 있는 AI 코딩 에이전트에서 사용할 수 있으며, 모든 수정 사항을 사용자에게 보고합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/augustusday/auto-edicao/tree/HEAD/skills/remocn-setup

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

Remotion 프로젝트를 remocn용으로 준비하기

프로젝트 루트: $ARGUMENTS (비어 있으면 현재 폴더)

shadcn init은 Remotion 프로젝트를 거부하고("지원되는 프레임워크를 감지할 수 없습니다"), Remotion 번들러는 tsconfig 경로를 읽지 않습니다. 따라서 새 프로젝트는 첫 번째 컴포넌트가 설치되기 전에 세 가지 작은 수정이 필요합니다. 파일 도구를 사용하여 직접 이 순서대로 수행하세요. 프로젝트에 이미 있는 단계는 건너뜁니다.

0. 프로젝트 확인

프로젝트 루트에서 package.json을 읽습니다.

  • package.json 없음: 중지하고 그렇게 알립니다.
  • dependencies 또는 devDependencies에 remotion 없음: Remotion 프로젝트가 아닙니다. 중지하고 그렇게 알립니다. remocn-video 스킬은 npx create-video@latest --yes --blank <folder>로 프로젝트를 생성합니다.

사용자가 이미 가지고 있는 프로젝트의 경우, 아래 단계에서 수정할 파일을 나열하고 편집하기 전에 물어보세요.

1. components.json

  • 없음: 정확히 이 내용으로 생성합니다:

    {
      "$schema": "https://ui.shadcn.com/schema.json",
      "style": "new-york",
      "rsc": false,
      "tsx": true,
      "tailwind": { "config": "", "css": "", "baseColor": "neutral", "cssVariables": false },
      "aliases": {
        "components": "@/components",
        "utils": "@/lib/utils",
        "ui": "@/components/ui",
        "lib": "@/lib",
        "hooks": "@/hooks"
      },
      "registries": { "@remocn": "https://remocn.dev/r/{name}.json" }
    }
    
  • 있으나 registries["@remocn"] 없음: registries에 "@remocn": "https://remocn.dev/r/{name}.json"을 추가하고, 객체가 필요하면 생성합니다. 다른 모든 필드는 그대로 둡니다.

  • 이미 @remocn 있음: 그대로 둡니다.

2. tsconfig.json의 @/* 경로

remocn 컴포넌트는 @/를 통해 서로를 임포트하므로, TypeScript가 이를 해결해야 합니다. tsconfig.json에는 주석과 trailing comma가 있을 수 있습니다: 제자리에서 편집하고 유지하세요.

별칭 폴더를 찾으세요. @/가 가리키는 폴더로, 프로젝트 루트 기준 상대 경로입니다. 3단계에서 필요합니다.

  • compilerOptions.paths["@/*"] 있음: 파일을 그대로 둡니다. 별칭 폴더는 trailing /*가 없는 첫 번째 항목입니다 (./src/* → src). compilerOptions.baseUrl이 설정된 경우 이를 기준으로, 그렇지 않으면 tsconfig.json의 폴더를 기준으로 해석합니다.
  • 파일에 extends가 있고 자체 paths가 없음: 로컬 paths는 상속된 맵과 병합되지 않고 대체합니다. 확장하는 설정을 엽니다 (한 단계, 상대 경로만). 해당 파일에 @/*가 있으면 두 파일을 모두 그대로 두고 별칭 폴더를 부모 폴더를 기준으로 해석하여 가져옵니다. 없으면 편집하지 말고: 사용자에게 "@/*": ["./src/*"]를 paths가 정의된 곳에 추가하라고 알리고, 별칭 폴더로 src를 사용하세요.
  • 그 외: 기존 항목을 유지하면서 compilerOptions.paths에 "@/*": ["./src/*"]를 추가하고, 필요하면 paths를 생성합니다. baseUrl이 .이 아닌 다른 값이면 대신 baseUrl을 기준으로 src 경로를 작성합니다. 별칭 폴더는 src입니다.
  • tsconfig.json 없음: 생성하지 마세요. 별칭 폴더는 src입니다.

3. remotion.config.ts의 @ 별칭

번들러도 같은 별칭이 필요합니다. 프로젝트 루트에서 remotion.config.ts를 찾고, 없으면 remotion.config.js를 찾습니다. 파일에 이미 withRemocnAlias가 포함되어 있으면 그대로 둡니다.

별칭 대상은 path.join(process.cwd(), "<별칭 폴더>")이며, 별칭 폴더가 프로젝트 루트 자체인 경우 process.cwd()입니다.

  • 설정 파일 없음: 아래 imports와 블록으로 remotion.config.ts를 생성합니다.
  • remotion.config.ts 있음: 아직 import되지 않은 경우 상단에 import path from "node:path";와 import { Config } from "@remotion/cli/config";를 추가하고, 파일 끝에 블록을 추가합니다.
  • remotion.config.js 있음: 타입 어노테이션 없이 같은 블록을 추가합니다 (const withRemocnAlias = (config) => ({ ... }) 및 config.resolve?.alias ?? {}). 아직 없는 경우 같은 두 개의 imports도 추가합니다.
// remocn 컴포넌트는 components.json의 "@/" 별칭을 통해 서로를 임포트합니다.
// 번들러는 tsconfig 경로를 읽지 않으므로 여기서도 별칭이 해석됩니다.
// 두 재정의 모두 의도적입니다: Remotion CLI는 overrideBundlerConfig를
// webpack과 rspack 모두에 적용하는 반면, Remocn Studio의 미리보기는
// overrideWebpackConfig만 읽습니다. 둘 다 프로젝트 루트에서 실행되며,
// process.cwd()가 이를 가리킵니다.
const withRemocnAlias = <C extends { resolve?: object }>(config: C): C => ({
  ...config,
  resolve: {
    ...config.resolve,
    alias: {
      ...((config.resolve as { alias?: object } | undefined)?.alias ?? {}),
      "@": path.join(process.cwd(), "src"),
    },
  },
});
// overrideBundlerConfig는 최신 Remotion 4 릴리스에만 존재합니다.
if (typeof Config.overrideBundlerConfig === "function") {
  Config.overrideBundlerConfig(withRemocnAlias);
}
Config.overrideWebpackConfig(withRemocnAlias);

path.join(process.cwd(), "src")를 위의 별칭 대상과 다를 경우 해당 대상으로 바꿉니다.

4. 보고

각 단계가 무엇을 했는지 사용자에게 간단히 알려줍니다: 생성, 변경, 또는 그대로 둠, 그리고 수동으로 추가해야 할 사항이 있다면 함께 알려줍니다. 그러면 프로젝트에서 npx shadcn@latest add @remocn/<name>이 작동합니다.

Individual skills in this repo

This repo contains 3 individual skills — each has its own dedicated page.

auto-edicao

Edita Reels, Shorts e TikToks verticais de ponta a ponta, conversando - corta o bruto, trata o áudio, monta cenas de motion em Remotion e entrega o vídeo medido e revisado. Orquestra as skills video-use (transcrição, cortes, legendas, grade) e remocn (componentes de animação para Remotion) e acrescenta o processo, os formatos, o padrão de qualidade e as armadilhas técnicas que as duas não cobrem. Use sempre que o usuário quiser editar, cortar, legendar, animar ou finalizar um vídeo vertical, montar um vídeo só com voz e motion, fazer uma mini-aula ou um vídeo com prints e telas, ajustar áudio, loudness ou trilha, renderizar com Remotion, ou revisar a qualidade de um vídeo, mesmo que não cite video-use, remocn nem Remotion. Exemplos - "edita esse vídeo pra mim", "corta os silêncios e põe legenda", "faz um reels com a minha narração e animações", "o áudio ficou baixo", "renderiza em pedaços que o disco está acabando", "revisa esse vídeo antes de eu postar".

remocn

Pick, install and compose remocn components: ready-made Remotion animations, transitions, backgrounds, captions, UI primitives and video templates from a shadcn registry. Use when building a video or scene out of prebuilt parts (product demo, launch, changelog, intro, social clip), adding an animation, transition or background to a Remotion project, or choosing between components. Activate for polished Remotion video work even when remocn isn't named. Works alongside the Remotion skills: questions about the Remotion API itself (interpolate, spring, Sequence, rendering, config) belong to them, not to this skill.

remocn-video

Make a complete Remotion video from a short brief with remocn components: pick the archetype, plan a storyboard with frame budgets, install the components, compose the scenes, check the render and point to Remocn Studio for tuning and export. Use when the user asks for a whole video (product demo, launch, feature announcement, changelog, OSS showcase, CLI demo, testimonials, year in review, pricing, logo bumper), not a single component.

관련 스킬