Skip to content

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

historical-interview-scripts

Verified

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

scripts/agents/meme_analyst_agent.py

View on GitHub
#!/usr/bin/env python3
"""
热梗融合智能体
"""

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


class MemeAnalystAgent(BaseAgent):
    """热梗融合智能体"""
    
    def execute(self, characters_data: Dict[str, Dict], platform: str, suggestions: List[str] = None) -> Dict[str, List[Dict]]:
        """
        匹配网络热梗
        
        Args:
            characters_data: 人物档案字典
            platform: 目标平台
            suggestions: 热梗建议(可选)
        
        Returns:
            dict: 人梗融合方案
        """
        self.log(f"开始匹配热梗...")
        
        meme_schemes = {}
        
        for character, data in characters_data.items():
            # 从记忆库中查找热梗
            cached_memes = self.memory.get(f'memes.{platform}')
            
            if cached_memes:
                self.log(f"  - {character}:使用缓存热梗")
                memes = cached_memes
            else:
                # 调用LLM生成热梗融合方案
                self.log(f"  - {character}:生成新热梗方案...")
                memes = self._generate_meme_scheme(character, data, platform, suggestions)
                
                # 存入记忆库
                if f'memes.{platform}' not in self.memory.data['memes']:
                    self.memory.set(f'memes.{platform}', {})
                current_memes = self.memory.get(f'memes.{platform}') or {}
                current_memes[character] = memes
                self.memory.set(f'memes.{platform}', current_memes)
            
            meme_schemes[character] = memes
        
        self.log(f"✓ 完成:生成{len(meme_schemes)}个人物的人梗融合方案")
        
        return meme_schemes
    
    def _generate_meme_scheme(self, character: str, data: Dict, platform: str, suggestions: List[str] = None) -> List[Dict]:
        """
        生成人梗融合方案
        
        Args:
            character: 人物姓名
            data: 人物档案
            platform: 目标平台
            suggestions: 热梗建议(可选)
        
        Returns:
            list: 热梗列表
        """
        # 模拟响应(实际使用时替换为真实API调用)
        if character == "李白":
            return [
                {
                    "meme": "榜一大哥",
                    "usage": "形容杜甫作为忠实粉丝",
                    "fusion_point": "杜甫追星李白",
                    "viral_score": 0.85
                },
                {
                    "meme": "破防了",
                    "usage": "被贬经历",
                    "fusion_point": "友情与苦难",
                    "viral_score": 0.78
                },
                {
                    "meme": "666",
                    "usage": "赞扬才华",
                    "fusion_point": "诗歌创作能力",
                    "viral_score": 0.82
                }
            ]
        elif character == "李清照":
            return [
                {
                    "meme": "直男发言",
                    "usage": "吐槽苏轼",
                    "fusion_point": "婉约vs豪放",
                    "viral_score": 0.85
                },
                {
                    "meme": "恋爱脑",
                    "usage": "澄清误解",
                    "fusion_point": "情感经历",
                    "viral_score": 0.88
                },
                {
                    "meme": "躺平",
                    "usage": "生活态度",
                    "fusion_point": "南渡后的生活",
                    "viral_score": 0.75
                }
            ]
        else:
            return []
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: 193kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 193kUpdated 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: 193kUpdated Claude CodeCodexVerifiedInstall