Skip to content
Back to skills

Bertopic

ASecurity

"Route BERTopic topic modeling, embedding, vectorizer, labeling,

  • 247 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 8, 2026
ai-agentspythonbashbackend

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 20 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill bertopic --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Bertopic?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Bertopic
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-bertopic/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-bertopic)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: bertopic
description: "Route BERTopic topic modeling, embedding, vectorizer, labeling,
  visualization, and serialization workflows."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# BERTopic

BERTopic turns documents, precomputed embeddings, or multimodal inputs into topic models you can fit, inspect, label, visualize, and save.

## Install

```bash
python -m pip install bertopic
```

Use only the optional packages that the chosen workflow needs. For example, multimodal image workflows use `bertopic[vision]`, while label and backend workflows may require `openai`, `litellm`, `langchain`, `llama-cpp-python`, `spacy`, `fastembed`, `model2vec`, `gensim`, `flair`, `safetensors`, or `datamapplot`.

If you are working from a local checkout to inspect the package, editable install is also fine:

```bash
python -m pip install -e .
```

## Quick check

Run the bundled environment check first:

```bash
python scripts/check_env.py
```

Add `--smoke` for a tiny no-download fit/load-style smoke that uses synthetic documents and precomputed embeddings.

## Route map

- `sub-skills/topic-modeling/` — build BERTopic models, fit and transform data, run `partial_fit`, mutate topics, and combine or reduce fitted models.
- `sub-skills/embeddings-backends/` — choose embedding backends, build custom embedders, inventory optional backend imports, and handle precomputed or multimodal embeddings.
- `sub-skills/vectorizers-ctfidf/` — tune `ClassTfidfTransformer`, `CountVectorizer`, and `OnlineCountVectorizer` for better topic words.
- `sub-skills/representations-labeling/` — rerank keywords, generate labels, chain representation models, and manage multi-aspect topic outputs.
- `sub-skills/analysis-visualization/` — inspect fitted models with topic tables, hierarchies, distributions, and plots.
- `sub-skills/serialization/` — save, reload, and share fitted models locally or through the Hugging Face Hub.

When a task spans more than one route, start with the earliest route in the pipeline and move forward: embeddings → model building → topic-word tuning → labels → analysis → serialization.

## Read next

- `references/workflows.md` for the fastest route through common BERTopic tasks.
- `references/troubleshooting.md` when imports, optional dependencies, plotting, or save/load fail.
- `references/repo-provenance.md` before deciding whether this skill matches the current checkout.

Files in this skill

  • SKILL.md2.4 KB
  • references/repo-provenance.md1.4 KB
  • references/repo-routing-metadata.json408 B
  • references/troubleshooting.md4.5 KB
  • references/workflows.md2.5 KB
  • scripts/check_env.py6.7 KB
  • sub-skills/analysis-visualization/SKILL.md3.7 KB
  • sub-skills/analysis-visualization/references/api-reference.md11.6 KB
  • sub-skills/analysis-visualization/references/troubleshooting.md7.2 KB
  • sub-skills/analysis-visualization/references/workflows.md6.3 KB
  • sub-skills/analysis-visualization/scripts/smoke_visualization.py11.1 KB
  • sub-skills/embeddings-backends/SKILL.md3.7 KB
  • sub-skills/embeddings-backends/references/api-reference.md6.2 KB
  • sub-skills/embeddings-backends/references/troubleshooting.md3.9 KB
  • sub-skills/embeddings-backends/references/workflows.md4.2 KB
  • sub-skills/embeddings-backends/scripts/inventory_backends.py11.5 KB
  • sub-skills/representations-labeling/SKILL.md3.3 KB
  • sub-skills/representations-labeling/references/api-reference.md9 KB
  • sub-skills/representations-labeling/references/troubleshooting.md3.4 KB
  • sub-skills/representations-labeling/references/workflows.md2.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.