Skip to content

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

historical-interview-scripts

Verified

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

scripts/agents/qc_optimizer_agent.py

View on GitHub
#!/usr/bin/env python3
"""
质量审查智能体
"""

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


class QCOptimizerAgent(BaseAgent):
    """质量审查与优化智能体"""
    
    def execute(self, draft_script: str, characters_data: Dict[str, Dict], platform: str) -> Dict[str, Any]:
        """
        评估文案质量
        
        Args:
            draft_script: 初版文案
            characters_data: 人物档案字典
            platform: 目标平台
        
        Returns:
            dict: 质量检测报告
        """
        self.log(f"开始评估文案质量...")
        
        # 调用LLM评估质量
        qc_report = self._evaluate_quality(draft_script, characters_data, platform)
        
        self.log(f"✓ 完成:质量评分 {qc_report['total_score']:.1f}分")
        
        return qc_report
    
    def _evaluate_quality(self, script: str, characters_data: Dict, platform: str) -> Dict[str, Any]:
        """
        评估文案质量
        
        Args:
            script: 文案
            characters_data: 人物档案
            platform: 目标平台
        
        Returns:
            dict: 质量检测报告
        """
        # 获取评分标准
        qc_standards = self.memory.get('qc_standards.dimensions')
        pass_score = self.memory.get('qc_standards.pass_score')
        
        # 模拟评分(实际使用时替换为真实API调用)
        scores = {
            'historical_accuracy': 85.0,
            'meme_naturalness': 90.0,
            'internet_sense': 88.0,
            'visual_appeal': 92.0,
            'platform_fit': 85.0
        }
        
        # 计算加权总分
        total_score = sum(scores[key] * qc_standards[key]['weight'] for key in scores.keys())
        
        # 判断是否通过
        passed = total_score >= pass_score
        
        # 生成修改建议
        revisions = []
        if not passed:
            if scores['meme_naturalness'] < 80:
                revisions.append({
                    'issue': '梗点生硬',
                    'target_agent': 'meme_analyst',
                    'suggestions': ['增加过渡句,让热梗自然融入']
                })
            if scores['internet_sense'] < 80:
                revisions.append({
                    'issue': '网感不足',
                    'target_agent': 'scriptwriter',
                    'suggestions': ['增加网络流行语,提升网感']
                })
        
        return {
            'total_score': total_score,
            'passed': passed,
            'dimension_scores': scores,
            'revisions': revisions,
            'optimized_script': script if passed else None
        }
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