skill存档

Skill Call Protocol

Use this protocol when remotion-explainer-workflow needs another Skill. First version is a planning protocol only: it describes the request and expected return shape but does not execute external SKILL.md files.

Request Shape

export type SkillCallStatus = 'dryRun' | 'planned' | 'rendering' | 'done' | 'error';

export type SkillCallRequest = {
  requestId: string;
  skillName: string;
  purpose: string;
  status: 'dryRun';
  inputs: {
    sceneSpecs?: SceneSpec[];
    sceneAssets?: SceneAsset[];
    brief?: string;
    targetSceneIds?: string[];
    targetSubjectIds?: string[];
    style?: RemotionVideoStyle;
    constraints?: string[];
  };
  expectedOutputs: Array<
    | 'sceneSpecPatch'
    | 'sceneAssets'
    | 'promptSet'
    | 'musicBrief'
    | 'editPlan'
    | 'publishBrief'
    | 'postmortem'
  >;
};

Response Shape

export type SkillCallResult = {
  requestId: string;
  skillName: string;
  status: SkillCallStatus;
  summary: string;
  outputs: {
    sceneSpecPatch?: Partial<SceneSpec>[];
    sceneAssets?: SceneAsset[];
    promptSet?: PromptAsset[];
    musicBrief?: MusicBrief;
    editPlan?: EditPlan;
    publishBrief?: PublishBrief;
    postmortem?: PostmortemNote;
  };
  logs: string[];
  error?: string;
};

What RemotionSkill Requests

SkillRequestExpected return
ai-short-film-breakdownclassify video type, narrative strategy, scene logicsceneSpecPatch, strategy notes
aigc-prompt-optimizerprompts for visual assets, SVG/image/video referencespromptSet, optional sceneAssets
prompt-mastercross-tool prompt/agent instructionspromptSet
blind-editing-workflowedit/cut plan after timing/media existseditPlan
suno-music-briefBGM exploration or locked music briefmusicBrief
character-consistency-mjcharacter identity constraints for repeated subjectspromptSet, character asset notes
content-publish-soppublishing route, title/copy/platform adaptationpublishBrief
aigc-postmortemtesting/release reviewpostmortem

Binding Rules

  1. A result that changes story structure returns sceneSpecPatch.
  2. A result that produces or requests assets returns sceneAssets.
  3. A result that only gives prompt text returns promptSet and may later be converted into sceneAssets.
  4. Every asset-like output must include sceneId.
  5. If it targets a subject, include targetId; targetId must match a subjects[].id in that scene.
  6. Never mutate sceneSpecs implicitly. Return patches and let the caller apply them.

Status Rules

Current First-Version Constraint

For this v1 design phase, RemotionSkill should return dryRun or planned Skill calls only. Do not Read or execute external Skill files until 跳蛛先生 explicitly approves the next phase.