add
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAdd one remocn component
添加一个 remocn 组件
Requested: $ARGUMENTS
Load the skill first for the tier conventions and Canvas & timing.
remocn- Resolve the name. If the request is an exact component name, use it. If it's a description
("a glitchy title", "a fast cut"), shortlist from and offer the best two or three, each with its
https://remocn.dev/llms-components.txtline and length. Wait for the pick.Use for - Read its page. Fetch the docs URL the index gives for it. Note the props, the example,
.mdand anyLengthnote. If the avoid note matches what the user wants, say so and suggest the replacement it names.Avoid for - Prepare the project once. If has no
components.jsonregistry, run@remocnfirst (outside Claude Code:node "${CLAUDE_SKILL_DIR}/../video/scripts/setup.mjs" <project-root>from this skill's folder). Its JSON result says which files it wrote; relay any../video/scripts/setup.mjs.warning - Install. . Dependencies install transitively; list which files landed.
npx shadcn add @remocn/<name> - Use it. Show a usage snippet built from the docs example, sized to the canvas, inside a
of at least its
<Sequence durationInFrames>plus hold time. Transitions go intoLengthasTransitionSeries.Transitionwithpresentation/linearTimingat theirspringTiming. If the user named a place in their code, put it there; otherwise ask where it goes.Length - Check. , then a still at the end of its motion (
npx tsc --noEmit) and look at it.npx remotion still <composition> out/<name>.png --frame=<n>
请求的组件:$ARGUMENTS
首先加载 skill,以了解 tier 约定以及 Canvas 与时序。
remocn- 解析名称。 如果请求中包含准确的组件名称,直接使用。如果请求中只有描述
(“故障风标题”、“快速切换”),则从 中筛选候选组件, 并提供最合适的两个或三个选项,每个选项都附上其
https://remocn.dev/llms-components.txt说明和长度。等待用户选择。Use for - 阅读其页面。 获取索引提供的 文档 URL。记录 props、示例、
.md以及所有Length注意事项。如果不适合用户的备注与用户需求相符,应明确说明, 并建议其中指定的替代组件。Avoid for - 一次性准备项目。 如果 中没有
components.jsonregistry,先运行@remocn(在 Claude Code 之外运行时,从该 skill 所在目录执行node "${CLAUDE_SKILL_DIR}/../video/scripts/setup.mjs" <project-root>)。其 JSON 结果会说明写入的 文件;如有任何../video/scripts/setup.mjs,则进行转达。warning - 安装。 运行 。依赖项会通过传递方式安装;列出新增的 文件。
npx shadcn add @remocn/<name> - 使用。 根据文档示例构建用法代码片段,调整其尺寸以适配画布,并将其放入
中,时长至少为其
<Sequence durationInFrames>加保持时间。转场应放入Length中作为TransitionSeries.Transition,并按照其presentation设置Length/linearTiming。如果用户指定了代码中的位置,则放在该位置;否则询问应放在哪里。springTiming - 检查。 运行 ,然后在动画结束帧生成一张静态图片 (
npx tsc --noEmit)并检查效果。npx remotion still <composition> out/<name>.png --frame=<n>