depth-classifier-updater

Regenerate SHALLOW/DEEP keyword lists from MongoDB conversations.

3|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/eamars/KazusaAIChatbot --skill depth-classifier-updater
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: depth-classifier-updater
Source: https://github.com/eamars/KazusaAIChatbot/tree/main/.agents/skills/depth-classifier-updater
Command: npx skills add https://github.com/eamars/KazusaAIChatbot --skill depth-classifier-updater

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The skill keeps the depth classifier in sync with real conversation patterns by regenerating SHALLOW/DEEP keyword lists from MongoDB data to improve routing decisions.

Core Features & Use Cases

  • Sample recent messages from MongoDB (300-1000) to reflect current usage.
  • Classify messages as SHALLOW or DEEP using signal-based heuristics and deduplicate phrases.
  • Balance English/Chinese keyword coverage and update depth_classifier.py.
  • Validate changes with tests and provide guidance for deployment.

Quick Start

Run the updater to refresh the depth classifier keywords according to recent conversations.

Frequently Asked Questions about depth-classifier-updater

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I regenerate keyword lists for a depth classifier from MongoDB conversations?

To regenerate keyword lists for a depth classifier from MongoDB conversations, run the update script to sample recent user messages, classify them as SHALLOW or DEEP, and deduplicate phrases to refresh the classifier file.

When should I update my depth classifier to prevent routing accuracy drift?

You should update your depth classifier during routine maintenance, after feature deployments, or whenever classifier accuracy drifts. This realigns SHALLOW and DEEP routing decisions with current real user conversation patterns.

Do I need a Python runtime and MongoDB connection to run the depth classifier updater?

Yes, you need a MongoDB connection, the Kazusa AI Chatbot package, and a Python runtime to execute the update script, re-sample messages, balance languages, and run tests for the depth classifier.

How does the depth classifier updater balance bilingual keyword coverage?

The depth classifier updater balances bilingual keyword coverage by classifying sampled messages using signal-based heuristics, then deduplicating phrases to ensure balanced English and Chinese keywords in the updated classifier file.

What is the best way to validate depth classifier keyword updates before deployment?

The best way to validate depth classifier keyword updates before deployment is to run the integrated tests within the Python script after regenerating the SHALLOW and DEEP lists, which provides deployment guidance and confirms accuracy.

How many MongoDB messages do I need to sample for updating the depth classifier?

You need to sample 300 to 1000 recent messages from MongoDB to update the depth classifier. This volume ensures the regenerated keyword lists accurately reflect current usage and improve routing decisions.