--- name: media-insertion description: >- Insert images and videos from Slack messages into changelog markdown. Use when you have media files downloaded from Slack that need to be included in documentation. targets: - '*' --- # Media Insertion for Changelogs This skill teaches you how to properly insert media (images and videos) from Slack into changelog content. ## Overview When Slack messages include media files, the `fetch_messages_from_channel` tool downloads them to: ``` ./docs/updates/media/YYYY-MM-DD/filename ``` You must insert references to these files in the markdown content so they appear in the final changelog. ## Step 1: Identify Media from Slack Response The Slack tool response includes `processed_files` for each message with media: ``` 📝 Message 1: 💬 Text: Check out this new feature! 📎 Files (1): 🖼️ Image: feature-screenshot_abc123.png Path: ./docs/updates/media/2025-11-06/feature-screenshot_abc123.png ``` ## Step 2: Insert Media References in Markdown When writing the changelog content, insert the image reference right after describing the feature: ```markdown ### New feature name Description of the feature and what it does. ![Alt text describing the image](./media/2025-11-06/feature-screenshot_abc123.png) More details about the feature... ``` **Important:** - Use the **local path** format: `./media/YYYY-MM-DD/filename` - Write descriptive alt text that explains what the image shows (be specific, not generic) - Place images where they make sense contextually (after introducing the feature) - **Only reference images that actually exist in the Slack response** - check the file paths shown - For videos (.mp4, .mov, .webm), use the same markdown syntax ## Step 3: Verify Images Before Inserting Before adding an image reference to your markdown: 1. Check the Slack tool response for the exact filename 2. Verify the path matches: `./docs/updates/media/YYYY-MM-DD/filename` 3. Use that exact filename in your markdown reference: `./media/YYYY-MM-DD/filename` **DO NOT** insert image references for files that weren't downloaded or don't appear in the Slack response. ## Step 4: Template Formatter Converts to Final Format The `template_formatter` agent will later: 1. Verify each image file exists at `./docs/updates/media/YYYY-MM-DD/filename` 2. Convert paths: `./media/YYYY-MM-DD/filename` → `/images/changelog/YYYY-MM-DD/filename` 3. Wrap in Frame tags: `...` 4. Convert video references to: `