Skip to content
aj-geddes avatar

Sentiment Analysis

Sentiment classification pipeline combining lexicon scoring, TF-IDF with Naive Bayes, and visual reporting.

CCM score
35 of 100
skills.sh installs
484
GitHub stars
396
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers lexicon-based scoring with VADER and TextBlob, plus a TF-IDF and Naive Bayes classifier trained on labeled reviews
  • Includes sentiment distribution plots, VADER score histograms, a confusion matrix, and top-word frequency charts for positive and negative text
  • Labels text as Positive, Negative, Neutral, or Mixed, with thresholds of ±0.05 for VADER compound scores and ±0.1 for TextBlob polarity
  • Designed for opinion mining, brand monitoring, and customer feedback analysis on short review-style text

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill 'Sentiment Analysis' -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Sentiment Analysis

Overview

Sentiment analysis determines emotional tone and opinions in text, enabling understanding of customer satisfaction, brand perception, and feedback analysis.

Approaches

  • Lexicon-based: Using sentiment dictionaries
  • Machine Learning: Training classifiers on labeled data
  • Deep Learning: Neural networks for complex patterns
  • Aspect-based: Sentiment about specific features
  • Multilingual: Non-English text analysis

Sentiment Types

  • Positive: Favorable, satisfied
  • Negative: Unfavorable, dissatisfied
  • Neutral: Factual, no clear sentiment
  • Mixed: Combination of sentiments

Implementation with Python

import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.naive_bayes import MultinomialNB
from sklearn.pipeline import Pipeline
from sklearn.model_selection import train_test_split
from sklearn.metrics import classification_report, confusion_matrix, accuracy_score
import re
from collections import Counter

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
Data Science & Analytics, AI Agents & LLM Apps, Python
First seen
Jun 3, 2026

Questions

What does the Sentiment Analysis skill do?

It classifies text sentiment using lexicon-based analysis, machine learning and deep learning, for opinion mining, brand monitoring and customer feedback analysis. The SKILL.md walks through VADER and TextBlob scoring plus a TF-IDF and Naive Bayes classifier in Python, with plots of sentiment distribution and trends over time.

How do I install the Sentiment Analysis skill?

Run npx -y skills add aj-geddes/useful-ai-prompts --skill 'Sentiment Analysis' -y in your project. Once installed, the agent can build Python sentiment pipelines for review or feedback text.

Which Claude Marketplaces category is the Sentiment Analysis skill in, and what else is there?

It sits in Data Science & Analytics, alongside skills such as azure-kusto and analyze-project. What sets this one apart is its focus on NLP sentiment classification of customer text rather than general data querying.

What does the Sentiment Analysis skill need to run?

The Python examples use pandas, numpy, scikit-learn, matplotlib, seaborn, NLTK with its VADER lexicon, and TextBlob. Libraries that are not installed are skipped with a message in the sample code.

More from aj-geddes/useful-ai-prompts

All 258

Similar to Sentiment Analysis

More Data Science & Analytics