Hf Sentiment is a skill that connects an AI agent to Hugging Face’s Inference API to perform sentiment classification using the DistilBERT-SST-2 transformer model. Each piece of text is labeled positive or negative and returned with a confidence score, producing structured, reproducible output rather than the variable estimates an LLM generates on its own.
The skill handles three input modes. A single string can be classified in one call. Multiple strings can be submitted together in a batch request. Alternatively, the skill can be pointed at a local text file and will process it line by line automatically. All results are saved as versioned JSON files in a local directory, so outputs are available for auditing, downstream pipeline steps, or later retrieval without re-running the analysis.
Because the heavy computation runs on Hugging Face’s hosted inference infrastructure rather than through a general-purpose LLM, the skill is suited to high-volume or recurring classification tasks where cost and consistency matter. The DistilBERT-SST-2 model used is a specialized binary sentiment classifier, which means its scope is intentionally narrow: it outputs positive or negative labels only and does not perform fine-grained emotion detection, multi-class categorization, or language tasks beyond English sentiment.