Token导航 LogoToken导航

Agent Skill · 研究检索

sentiment-analyzer(情绪分析器)

sentiment-analyzer 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

sentiment-analyzer 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证为 MIT,暂无第三方扫描结果,按安装量在研究检索类的 73,675 个 Skill 里排第 7,870。

总安装 17,835周安装 517GitHub Stars 公开资料未说明下载 6,346核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:sentiment-analyzer(情绪分析器)
来源仓库:https://github.com/eddiebe147/claude-settings
仓库路径:skills/sentiment-analyzer
安装命令:
npx skills add eddiebe147/claude-settings --skill "sentiment-analyzer"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add eddiebe147/claude-settings --skill "sentiment-analyzer"

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

发现并推荐适用于 Claude Code 生态系统的技能插件资源。适合在 Codex、Claude、Cursor 等宿主环境中快速增强自动化能力。通过 npx 命令一键安装社区贡献的各类实用技能模块。使用前请评估技能维护频率与安全审计情况,防范潜在风险。

部分技能可能需要 API 密钥或其他认证配置,请参照 README 操作。

来源仓库内路径:skills/sentiment-analyzer

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add eddiebe147/claude-settings --skill "sentiment-analyzer";命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

sentiment-analyzer 怎么安装?

在终端执行 npx skills add eddiebe147/claude-settings --skill "sentiment-analyzer"。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

sentiment-analyzer 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

sentiment-analyzer 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

sentiment-analyzer 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

sentiment-analyzer 用的人多吗?

公开数据是累计安装 17,835 次,近一周安装 517 次,下载 6,346 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

sentiment-analyzer 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 要求有安全扫描结论才肯安装的团队。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
sentiment-analyzer

情绪分析器 · 本页

17,835—需要联网MIT未收录

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
Sentiment Analyzer
slug
sentiment-analyzer
description
Analyze text sentiment at scale with nuanced understanding
category
ai-ml
complexity
intermediate
version
1.0.0
author
ID8Labs
triggers
tags

Sentiment Analyzer

The Sentiment Analyzer skill guides you through implementing sentiment analysis systems that understand the emotional tone and opinion in text. From simple positive/negative classification to nuanced aspect-based sentiment and emotion detection, this skill covers the full spectrum of sentiment analysis capabilities.

Sentiment analysis is deceptively complex. Sarcasm, context, domain-specific language, and cultural nuances all challenge simple approaches. This skill helps you choose the right techniques for your accuracy requirements, whether that's fast rule-based systems, fine-tuned classifiers, or LLM-based analysis.

Whether you're analyzing customer reviews, social media mentions, support tickets, or survey responses, this skill ensures your sentiment analysis captures the true voice of your users.

Core Workflows

Workflow 1: Choose Sentiment Analysis Approach

  1. Define requirements:

- Granularity: Binary, ternary, or continuous? - Aspects: Overall or aspect-based? - Emotions: Sentiment or specific emotions? - Languages: Single or multilingual? - Volume: Batch or real-time?

  1. Evaluate options:
ApproachSpeedAccuracyCustomizableBest For
Rule-based (VADER)Very fastModerateLimitedSocial media, quick analysis
Pre-trained (RoBERTa)FastGoodFine-tunableGeneral text
Fine-tunedFastBestRequires dataDomain-specific
LLM (GPT-4, Claude)SlowExcellentPrompt-basedNuanced, complex
  1. Select based on tradeoffs
  2. Plan implementation

Workflow 2: Implement Sentiment Pipeline

  1. Preprocess text:
   def preprocess_for_sentiment(text):
       # Preserve sentiment-relevant features
       text = normalize_unicode(text)

       # Handle social media conventions
       text = expand_contractions(text)  # don't -> do not
       text = normalize_elongation(text)  # loooove -> love
       text = handle_negation(text)       # Mark negation scope

       # Preserve but normalize emoji/emoticons
       text = convert_emoji_to_text(text)  # :) -> [HAPPY]

       return text
  1. Analyze sentiment:
   class SentimentAnalyzer:
       def __init__(self, model_type="transformer"):
           if model_type == "transformer":
               self.model = pipeline("sentiment-analysis",
                                   model="cardiffnlp/twitter-roberta-base-sentiment")
           elif model_type == "vader":
               self.model = SentimentIntensityAnalyzer()

       def analyze(self, text):
           preprocessed = preprocess_for_sentiment(text)
           result = self.model(preprocessed)
           return {
               "text": text,
               "sentiment": result["label"],
               "confidence": result["score"]
           }
  1. Aggregate for insights:

- Overall sentiment distribution - Sentiment over time - Sentiment by segment/topic

  1. Validate results

Workflow 3: Aspect-Based Sentiment Analysis

  1. Identify aspects to track:

- Product features (price, quality, service) - Experience dimensions (speed, accuracy, friendliness) - Custom aspects for your domain

  1. Extract aspects from text:
   def extract_aspects(text, aspect_list):
       # Find mentions of known aspects
       found_aspects = []
       for aspect in aspect_list:
           if aspect.lower() in text.lower():
               found_aspects.append(aspect)

       # Also extract using NER or LLM for unknown aspects
       extracted = extract_noun_phrases(text)
       return found_aspects + extracted
  1. Analyze sentiment per aspect:
   def aspect_sentiment(text, aspects):
       results = {}
       for aspect in aspects:
           # Extract sentences mentioning aspect
           relevant = extract_aspect_context(text, aspect)

           # Analyze sentiment of relevant text
           if relevant:
               sentiment = analyze_sentiment(relevant)
               results[aspect] = sentiment

       return results
  1. Aggregate aspect sentiments across documents

Quick Reference

ActionCommand/Trigger
Analyze sentiment"Analyze sentiment of [text]"
Choose approach"Best sentiment analysis for [use case]"
Aspect-based"Sentiment by feature for [reviews]"
Detect emotions"Detect emotions in [text]"
Handle sarcasm"How to handle sarcasm in sentiment"
Aggregate results"Summarize sentiment trends"

Best Practices

  • Preserve Sentiment Signals: Don't preprocess away important cues

- Keep punctuation (!! vs .) - Preserve capitalization patterns - Keep emoji/emoticons (convert to text) - Handle negation explicitly

  • Match Model to Domain: Pre-trained models have domain bias

- Twitter models work differently than product review models - Fine-tune or select domain-appropriate models - Test on your actual data before deploying

  • Handle Negation Properly: "Not bad" isn't negative

- Rule-based: Mark negation scope - Neural models: Usually handle automatically - Test negation cases explicitly

  • Consider Context: Sentiment depends on context

- "Cheap" is positive for budget items, negative for luxury - Use aspect-based analysis for nuance - Include surrounding context when possible

  • Validate with Humans: Machine sentiment != human sentiment

- Sample and manually verify results - Calculate agreement metrics - Iterate on disagreements

  • Report Uncertainty: Not all text has clear sentiment

- Neutral is a valid class - Low confidence predictions should be flagged - Consider abstaining on ambiguous cases

Advanced Techniques

LLM-Based Nuanced Sentiment

Use language models for complex analysis:

def llm_sentiment_analysis(text, aspects=None):
    prompt = f"""Analyze the sentiment of the following text.

Text: "{text}"

Provide:
1. Overall sentiment (positive/negative/neutral/mixed)
2. Confidence (0-1)
3. Key positive aspects mentioned
4. Key negative aspects mentioned
5. Notable emotional tones (joy, frustration, surprise, etc.)

{"Also rate sentiment specifically for these aspects: " + ", ".join(aspects) if aspects else ""}

Respond in JSON format."""

    response = llm.complete(prompt)
    return json.loads(response)

Emotion Detection

Beyond positive/negative to specific emotions:

from transformers import pipeline

# Multi-label emotion classification
emotion_classifier = pipeline(
    "text-classification",
    model="SamLowe/roberta-base-go_emotions",
    top_k=None
)

def detect_emotions(text):
    results = emotion_classifier(text)[0]
    # Filter to significant emotions
    significant = [r for r in results if r["score"] > 0.1]
    return sorted(significant, key=lambda x: x["score"], reverse=True)

# Example output:
# [{"label": "admiration", "score": 0.45},
#  {"label": "joy", "score": 0.32},
#  {"label": "gratitude", "score": 0.28}]

Comparative Sentiment

Detect sentiment comparisons:

def comparative_sentiment(text):
    """
    Detect: "A is better than B" patterns
    """
    prompt = f"""Analyze this text for comparative sentiment.

Text: "{text}"

If the text compares entities, identify:
1. Entity A (the preferred/better one)
2. Entity B (the less preferred/worse one)
3. Dimension of comparison (price, quality, etc.)
4. Strength of preference (slight, moderate, strong)

If no comparison, respond with: {{"comparison": false}}

Respond in JSON."""

    return llm.complete(prompt)

Temporal Sentiment Tracking

Analyze sentiment over time:

def sentiment_timeline(documents, time_field, window="day"):
    """
    Track sentiment trends over time.
    """
    # Analyze each document
    results = []
    for doc in documents:
        sentiment = analyze_sentiment(doc["text"])
        results.append({
            "timestamp": doc[time_field],
            "sentiment": sentiment["score"],
            "text": doc["text"]
        })

    # Aggregate by time window
    df = pd.DataFrame(results)
    df["window"] = df["timestamp"].dt.floor(window)

    trends = df.groupby("window").agg({
        "sentiment": ["mean", "std", "count"],
        "text": lambda x: list(x)[:3]  # Sample texts
    })

    return trends

Sarcasm Detection

Handle sarcasm before sentiment analysis:

def detect_sarcasm(text):
    """
    Detect potential sarcasm indicators.
    """
    indicators = {
        "exaggeration": bool(re.search(r'\b(best|worst|ever|always|never)\b', text.lower())),
        "air_quotes": '"' in text,
        "ellipsis": "..." in text,
        "positive_negative_mix": has_mixed_signals(text),
        "hashtags": "#sarcasm" in text.lower() or "#not" in text.lower()
    }

    # Use model for detection
    sarcasm_score = sarcasm_model.predict(text)

    return {
        "is_sarcastic": sarcasm_score > 0.5,
        "confidence": sarcasm_score,
        "indicators": indicators
    }

def sentiment_with_sarcasm(text):
    sarcasm = detect_sarcasm(text)
    base_sentiment = analyze_sentiment(text)

    if sarcasm["is_sarcastic"] and sarcasm["confidence"] > 0.7:
        # Flip sentiment
        return flip_sentiment(base_sentiment)
    return base_sentiment

Common Pitfalls to Avoid

  • Using generic models on domain-specific text
  • Preprocessing away sentiment-relevant features (emoji, punctuation)
  • Ignoring negation handling
  • Treating neutral as absence of opinion vs explicit neutrality
  • Not validating model outputs against human judgment
  • Assuming sarcasm doesn't exist in your data
  • Over-weighting extreme sentiments in aggregation
  • Reporting sentiment without confidence/uncertainty

平台分布

Claude Code

27.31%
按下载量换算1,733

OpenCode

22.37%
按下载量换算1,420

Gemini CLI

18.82%
按下载量换算1,194

Antigravity

12.57%
按下载量换算798

Cursor

6.78%
按下载量换算430

windsurf

3.14%
按下载量换算199

安全审计

暂无安全审计结果可展示。

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills