Text Classifier Pro: AI-powered Text Classification & Batch Labeling

Preface

When customer service tickets, user reviews, and open-ended survey responses pile up in CSV files, the common approach is to write hand-coded rules or build a separate annotation script, and then interface with a Large Language Model API. This results in long workflows, inconsistent formatting, and difficulty reusing the same conventions within Agent conversations. Below is an introduction to Text Classifier Pro (@user_26bdbd50/text-classifier-pro, v1.0.1) on SkillHub: it encodes the workflow of “Upload text or CSV → Classify and Tag → Structured Results with Confidence Scores” into a standard SKILL.md, and comes with a locally runnable Python script and Web interface.

What is this

Text Classifier Pro is a community-sourced (community) data-analysis Skill, listed on SkillHub by the publisher user_26bdbd50. The skill documentation states it is developed by YK-Global, with core capabilities in AI-driven text classification and tagging. The SkillHub page marks requires_api_key=true: aside from an optional plan Token (TEXT-CLS-*), the actual classification relies on an OpenAI API Key (which can be injected via the environment variable OPENAI_API_KEY).

Official Access:

  • SkillHub Display Page: https://www.skillhub.cn/skills/user_26bdbd50/text-classifier-pro
  • API Coordinate Page: https://api.skillhub.cn/user_26bdbd50/text-classifier-pro

As of the data retrieval time, SkillHub shows a rating of 100000, 823 downloads, and 0 installs (subject to the page, as these numbers change over time).

Core Functions

The following capabilities are derived from the SKILL.md / README.md within the skill package and can be cross-referenced with the local scripts.

Input and Output

  1. Input: Plain text paste, TXT (line-by-line), CSV (automatic text column detection, supporting GBK / GB2312 / UTF-8).
  2. Output: On-screen Markdown tables, CSV, Excel (xlsx), JSON; optional display of confidence scores (related to the plan tier).

Preset and Custom Classification

The skill provides 6 preset templates (Chinese names are used in CLI examples for Chinese scenarios, such as “Sentiment Classification”):

Classifier Label Examples
Intent Classification Inquiry / Complaint / Refund / Cooperation
Sentiment Classification Positive / Neutral / Negative
Industry Classification Finance / Healthcare / Education / Retail / Manufacturing
Risk Classification Compliant / Violation / Suspicious
Priority Classification High / Medium / Low
Content Classification News / Advertisement / UGC / Spam

Supports custom label lists and custom prompts. The README indicates that the model side supports OpenAI GPT-3.5 / GPT-4 / GPT-4 Turbo.

Plans and Token Verification

Licenses are verified via POST https://api.yk-global.com/v1/verify. The request header is Authorization: Bearer {api_key}, and the request body is {}. The valid field in the response is the deciding factor (not success). Token prefixes are TEXT-CLS-FREE / TEXT-CLS-STD / TEXT-CLS-PRO / TEXT-CLS-MAX; verification results are cached locally for 5 minutes. In case of network exceptions, the documentation states the system will downgrade to FREE without blocking usage.

Feature FREE STD ¥9.9 PRO ¥29.9 MAX ¥99
Classification Count 20 times 200 times/day 2000 times/day Unlimited
Batch Processing No Max 50 items Max 500 items Max 5000 items
Preset Classifiers 3 types 10 types 50 types Unlimited
Custom Classification No Yes Yes Yes
Confidence Display No Yes Yes Yes
History Records No 7 days 90 days 365 days
API Access No No Yes Yes

Batch requests are rate-limited to approximately 5 req/s on the implementation side to reduce the risk of triggering upstream API rate limits.

Triggering in Agents

Once installed into the Agent’s skills directory, the model can invoke this skill based on trigger words in SKILL.md, such as: 文本分类 (Text Classification), 文本打标 (Text Tagging), text classifier, 批量分类 (Batch Classification), 文本归类 (Text Categorization), etc.

Installation and Activation

1. Install SkillHub CLI (if not already installed)

command -v skillhub && skillhub --version

If not installed, follow the official SkillHub instructions to execute (full installation includes CLI and default Skills):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

2. Install the Skill into the current Agent’s skills directory

During installation, you must use --dir to point to the skills path recognized by the current client; otherwise, it defaults to ./skills/ which may not be loaded. Common paths provided in SkillHub documentation are as follows:

Client skills Directory
Cursor ~/.cursor/skills/
Claude Code ~/.claude/skills/
Codex ~/.codex/skills/ or .agents/skills/ under the project

Taking Cursor as an example:

skillhub install @user_26bdbd50/text-classifier-pro --dir ~/.cursor/skills/

You can also let the Agent complete the same installation following the prompts at https://skillhub.cn/install/skillhub.md. After installation, you typically need to restart or reload the corresponding client to read the new SKILL.md.

3. Local Runtime Dependencies (when using scripts or Web)

Enter the locally installed skill directory (e.g., .../skills/@user_26bdbd50/text-classifier-pro) and install Python dependencies:

pip install -r requirements.txt

Main dependencies in requirements.txt include: openai>=1.0.0, pandas>=1.5.0, flask>=3.0.0, openpyxl>=3.1.0, etc. The runtime environment requires Python 3.8+ and network access to the OpenAI API.

Optional environment variables (from README):

Variable Description
OPENAI_API_KEY OpenAI API Key
SECRET_KEY Flask session secret key
PORT Web service port, default 5000

Typical Usage

Web Interface

Start the Flask application in the skill directory:

python scripts/web_app.py

Access http://localhost:5000 in your browser (the port can be overridden via PORT).

Command Line

Single item classification:

python -m scripts.classifier \
  --text "这个产品很好用" \
  --classifier "情感分类" \
  --api-key "sk-..."

CSV batch processing and export:

python -m scripts.classifier \
  --file data.csv \
  --classifier "意图分类" \
  --api-key "sk-..." \
  --output csv \
  --output-path results.csv

Custom labels and Prompt:

python -m scripts.classifier \
  --text "紧急问题需要处理" \
  --custom-labels "高,中,低" \
  --custom-prompt "请判断以下问题的优先级" \
  --api-key "sk-..."

Python API

from scripts.classifier import classify_text, validate_token

tier = validate_token("TEXT-CLS-PRO-xxxx")
print(f"Tier: {tier}")

result = classify_text(
    text="这个产品非常好用,客服态度也很棒",
    classifier_name="情感分类",
    api_key="sk-...",
    show_confidence=True,
)
print(result)

The skill package includes test_text_classifier.py, which can be used for local verification with pytest test_text_classifier.py -v (you need to install pytest and other test dependencies yourself).

Use Cases and Notes

Suitable for: Product, operations, or data professionals who need a unified “Text Classification / Tagging” workflow within conversational Agents; scenarios with existing CSV reviews, tickets, or survey text where quick labeling and table export are desired; teams willing to use OpenAI API and optionally purchase TEXT-CLS-* plans to unlock batch, history, and API tier capabilities.

Notes:

  1. Keys: Do not commit OpenAI Keys or plan Tokens to repositories; prioritize using environment variables.
  2. Compliance and Costs: Classification requests go through OpenAI; plan quotas and batch limits depend on the Token tier. For payment details, see YK-Global.com.
  3. License: README / SKILLHUB marks it as Proprietary (YK Global); please verify authorization for commercial use before proceeding.
  4. Paths: The cd /home/gem/workspace/... path in the documentation examples is the author’s environment path. You should actually switch to the skill directory on your local machine after running skillhub install before executing commands.

Conclusion

Text Classifier Pro consolidates preset classification templates, custom tagging, multi-format export, and Token tier constraints into an installable Agent Skill, retaining three implementation methods: CLI / Web / Python API. To enable it in clients like Cursor, simply install @user_26bdbd50/text-classifier-pro from SkillHub to the corresponding skills directory; for details and version information, see https://www.skillhub.cn/skills/user_26bdbd50/text-classifier-pro .

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye