Topic modeling

From Drchronx/ai-agent-research-starter-kit · View interactive version

Topic modeling is an AI agent skill from the GitHub repository Drchronx/ai-agent-research-starter-kit. Topic modeling workflows for Chinese corpora using LDA, Dynamic Topic Model/DTM, and BERTopic. Use when a user asks Codex to discover topics, train LDA models, compute topic keywords, model topic evolution over time, train DTM, run BERTopic, export document-topic assignments, or create topic visuali

How to use this skill

Skill file

Topic Modeling

Operating Rule

Use this skill as a fixed command-line workflow. Do not write ad-hoc topic modeling code.

  1. Decide whether the request is LDA, DTM, or BERTopic.
  2. If unsupported, state that this skill cannot solve it and identify the missing capability.
  3. If supported, write a plan before running commands. Include the model type, reference file, script, input data path, required columns, key parameters, and output directory.
  4. For LDA topic-count selection, run diagnostics first when the user has not explicitly chosen a final topic count. Show the diagnostic report, metrics, plots, candidate topic words, and candidate visualizations to the user, then stop and ask the user to choose the final topic count. Do not train the final LDA model until the user confirms K.
  5. Ask for missing text column, time column, topic count, model path, or output directory.
  6. Execute the relevant script with command-line arguments and report generated files.

Capability Map

Input Expectations

Course Context

This skill follows the topic modeling course notebook, including LDA, DTM/LdaSeqModel, BERTopic, topic words, document-topic outputs, and visualization-oriented artifacts.

The scripts are the source of truth for repeatable execution.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.