| 1 | --- |
| 2 | name: managing-content |
| 3 | description: Manages media files, drafts, and content organization. Use when user needs to upload media, create drafts, organize content, save to library, or manage media groups. 内容管理、媒体管理、保存媒体、创建草稿、素材管理、上传视频、保存到素材库。 |
| 4 | --- |
| 5 | |
| 6 | # Content Management |
| 7 | |
| 8 | Manages media files, drafts, and content organization. |
| 9 | |
| 10 | ## When to Use |
| 11 | |
| 12 | Use this skill when: |
| 13 | |
| 14 | - Saving generated media to library |
| 15 | - Creating drafts for later publishing |
| 16 | - Organizing content into groups |
| 17 | - Managing media files |
| 18 | |
| 19 | ## Workflow |
| 20 | |
| 21 | ### Step 1: Get Target Group |
| 22 | |
| 23 | Call `getMediaGroupInfoByName` or `getDraftGroupInfoByName` to find the target group. |
| 24 | |
| 25 | ### Step 2: Create Content |
| 26 | |
| 27 | **For Media:** |
| 28 | Call `createMedia` with media details. |
| 29 | |
| 30 | **For Drafts:** |
| 31 | Call `createDraft` with content details. |
| 32 | |
| 33 | ### Step 3: Return Results |
| 34 | |
| 35 | Return the created media ID or draft ID. |
| 36 | |
| 37 | ## Examples |
| 38 | |
| 39 | ### Example 1: Save Generated Video |
| 40 | |
| 41 | ``` |
| 42 | 1. getMediaGroupInfoByName: |
| 43 | - title: "My Videos" |
| 44 | 2. createMedia: |
| 45 | - groupId: from step 1 |
| 46 | - type: "VIDEO" |
| 47 | - url: generated video URL |
| 48 | - title: "My Generated Video" |
| 49 | 3. Return media ID |
| 50 | ``` |
| 51 | |
| 52 | ### Example 2: Create Draft for Publishing |
| 53 | |
| 54 | ``` |
| 55 | 1. getDraftGroupInfoByName: |
| 56 | - title: "Drafts" |
| 57 | 2. createDraft: |
| 58 | - groupId: from step 1 |
| 59 | - title: "Video Title" |
| 60 | - type: "VIDEO" |
| 61 | - mediaList: [{ url: "video.mp4", type: "VIDEO" }] |
| 62 | 3. Return draft ID |
| 63 | ``` |
| 64 | |
| 65 | ## Media Types |
| 66 | |
| 67 | | Type | Description | |
| 68 | | ----- | ---------------------- | |
| 69 | | VIDEO | Video files (MP4, MOV) | |
| 70 | | IMAGE | Image files (JPG, PNG) | |
| 71 | | AUDIO | Audio files (MP3, WAV) | |
| 72 | |
| 73 | ## Material Types |
| 74 | |
| 75 | | Type | Description | |
| 76 | | ------- | -------------------- | |
| 77 | | VIDEO | Video-based content | |
| 78 | | IMAGE | Image-based content | |
| 79 | | ARTICLE | Text/article content | |
| 80 | |
| 81 | ## Important Notes |
| 82 | |
| 83 | - Falls back to default group if specified group not found |
| 84 | - Media and draft IDs are returned for reference |
| 85 | - Content is organized by groups for easy management |
| 86 |