Skip to content

anbeime/skill / skills/historical-interview-scripts/historical-interview-scripts

historical-interview-scripts

Verified

自媒体创作者在策划历史名人访谈短视频时,当需要融合古今反差与网络热梗打造爆款,使用本技能可自动生成包含吸睛标题、主持人串词与爆笑问答的完整结构化脚本,轻松产出高传播力的趣味短视频文案。

scripts/agents/visual_design_agent.py

View on GitHub
#!/usr/bin/env python3
"""
人物形象设计智能体
"""

from typing import Dict, List, Any
from .base_agent import BaseAgent


class VisualDesignAgent(BaseAgent):
    """人物形象设计智能体"""
    
    def execute(self, characters: List[str], theme: str, style: str = 'cartoon') -> Dict[str, Dict]:
        """
        生成视觉设计提示词
        
        Args:
            characters: 历史人物列表
            theme: 访谈主题
            style: 视觉风格
        
        Returns:
            dict: 视觉设计提示词字典
        """
        self.log(f"开始生成视觉设计提示词...")
        
        visual_prompts = {}
        
        for character in characters:
            # 从记忆库中查找人物档案
            character_data = self.memory.get(f'characters.{character}')
            
            # 生成视觉提示词
            self.log(f"  - {character}:生成视觉提示词...")
            prompt = self._generate_visual_prompt(character, character_data, style)
            visual_prompts[character] = prompt
        
        self.log(f"✓ 完成:生成{len(visual_prompts)}个人物的视觉提示词")
        
        return visual_prompts
    
    def _generate_visual_prompt(self, character: str, data: Dict, style: str) -> Dict[str, str]:
        """
        生成视觉设计提示词
        
        Args:
            character: 人物姓名
            data: 人物档案
            style: 视觉风格
        
        Returns:
            dict: 视觉设计提示词
        """
        # 模拟响应(实际使用时替换为真实API调用)
        return {
            "base_style": style,
            "character": character,
            "costume": f"{character}的古装造型",
            "expression": "微笑",
            "action": "坐在现代访谈椅上",
            "modern_elements": "手持麦克风",
            "keyframe": f"{character}坐在现代访谈椅上,表情自信微笑,手持麦克风,背景是直播间"
        }
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 196kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 192kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 192kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 192kUpdated Claude CodeCodexVerifiedInstall