> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
**Goal:** Make Agent-generated storyboards persist and expose `sceneRef` and `videoPrompt`, while keeping the existing script-import and storyboard generation flow compatible.
**Architecture:** Add two columns to `storyboards`, normalize storyboard generation output so scene references are stored separately from character references, then extend the existing prompt-generation pipeline to persist `video_prompt`. Agent `storyboard_gen` keeps the same outward step shape, but internally runs “generate storyboards -> fill missing video prompts” and exposes richer progress/log output. Frontend changes are limited to type updates and storyboard workspace display.
mvn -q-pl yaoai-comic-studio/yaoai-bootstrap -am-Dtest=StoryboardPipelineServiceImplTest#from_shouldExposeSceneRefAndVideoPrompt test
```
Expected: FAIL because `sceneRef` and `videoPrompt` fields do not exist yet.
-[]**Step 3: Add Flyway migration**
```sql
ALTERTABLEstoryboards
ADDCOLUMNscene_refVARCHAR(128)DEFAULTNULL
COMMENT'分镜主场景引用,格式 @场景名',
ADDCOLUMNvideo_promptLONGTEXTDEFAULTNULL
COMMENT'分镜视频生成提示词';
```
-[]**Step 4: Extend entity and DTO**
```java
privateStringsceneRef;
privateStringvideoPrompt;
```
```java
dto.setSceneRef(s.getSceneRef());
dto.setVideoPrompt(s.getVideoPrompt());
```
-[]**Step 5: Add mapper helpers for follow-up tasks**
```java
@Select("SELECT * FROM storyboards WHERE episode_id=#{episodeId} AND tenant_id=#{tenantId} AND (video_prompt IS NULL OR video_prompt='') ORDER BY sequence_num ASC")