360 Secure SkillHub
360 安全技能中心

Sentinel Mood

核心功能为分析文本情感,输出正、负、中性及复合情感得分,可间接推断语气。典型场景包括判断用户情绪、检测内容紧急度、分析社交或对话类文本语气。输入为待分析文本,输出结构化JSON格式的得分数据,依赖Python环境及NLTK库。

numbpill3d
numbpill3d
热度 57.16
最近更新 2026-05-11 17:27:36
分类:数据依赖:代码执行应用场景:数据处理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add sentinel-mood
Metadata
name
sentinel-mood
description
Analyze the sentiment and emotional tone of text using NLTK and VADER. Use this to gauge user mood, detect urgency, or analyze content tone.
metadata
{"openclaw":{"emoji":"🎭","requires":{"python_packages":["nltk"]}}}

Sentinel Mood

A lightweight sentiment analysis skill powered by NLTK's VADER (Valence Aware Dictionary and sEntiment Reasoner). It is specifically tuned for social media texts, conversational language, and short updates.

Capabilities

  • Analyze Sentiment: Get positive, negative, neutral, and compound scores for any text.
  • Detect Tone: (Implicit) Infer tone based on polarity scores.

Usage

User: "Analyze the sentiment of this message: 'I love how this project is turning out, great job!'" Agent: [Runs skill] -> Returns sentiment scores (e.g., compound: 0.8, pos: 0.6).

Technical Details

This skill uses a Python script (analyze.py) that imports nltk.sentiment.SentimentIntensityAnalyzer.

Dependencies

  • Python 3
  • nltk library (pip install nltk)
  • vader_lexicon (downloaded via nltk.downloader)

Implementation

The skill executes a python script that takes text as an argument and outputs JSON.