LDAvis

LDAvis is a skill for Claude Code, Codex from LeoLin990405/r-analytics-skill. It costs 24 tokens per session (1,140 once invoked), scanned A, original, MIT.

An R package for exploring topic models in an interactive browser view, showing topics and their important words.

In plain words
What is it for?
Use it to turn an LDA model into data for LDAvis and open the interactive visualization in a browser.
Why use it?
It makes statistical topic-model results easier to inspect than raw tables of numbers.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to turn an LDA model into data for LDAvis and open the interactive visualization in a browser.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/leolin990405/r-analytics-skill/ldavis
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add LeoLin990405/r-analytics-skill --skill ldavis
Clone the repo
git clone --depth 1 https://github.com/LeoLin990405/r-analytics-skill

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for LDAvis

README.md
[![agentmods](https://agentmods.dev/badge/skills/leolin990405/r-analytics-skill/ldavis/github.svg)](https://agentmods.dev/skills/leolin990405/r-analytics-skill/ldavis)
Your own site
<a href="https://agentmods.dev/skills/leolin990405/r-analytics-skill/ldavis"><img src="https://agentmods.dev/badge/skills/leolin990405/r-analytics-skill/ldavis/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for LDAvis

Your own site · 80×15
<a href="https://agentmods.dev/skills/leolin990405/r-analytics-skill/ldavis"><img src="https://agentmods.dev/badge/skills/leolin990405/r-analytics-skill/ldavis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,140 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00024 $0.01140
Opus 5 $0.00012 $0.00570
Sonnet 5 $0.00005 $0.00228
Haiku 4.5 $0.00002 $0.00114

Measured 8d ago against content hash 20868fac4b74, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

LDAvis scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

sub-skills/r-nlp/r-nlp-topic/LDAvis/SKILL.md · 195 lines

How it starts

The opening of the file, as written. The whole thing — 195 lines — stays where its author put it; the contents beside it link to each section on GitHub.

LDAvis

Interactive visualization of LDA topic models.

Basic Usage

library(LDAvis)
library(topicmodels)

# Fit LDA model first
lda_model <- LDA(dtm, k = 10)

# Create visualization
json <- createJSON(
  phi = posterior(lda_model)$terms,
  theta = posterior(lda_model)$topics,
  doc.length = rowSums(as.matrix(dtm)),
  vocab = colnames(dtm),
  term.frequency = colSums(as.matrix(dtm))
)

# View in browser
serVis(json)

With topicmodels

library(topicmodels)
library(LDAvis)

# Fit LDA
lda <- LDA(dtm, k = 10, method = "Gibbs",
           control = list(seed = 123, iter = 1000))

# Extract components
phi <- posterior(lda)$terms
theta <- posterior(lda)$topics
vocab <- colnames(dtm)
doc_length <- rowSums(as.matrix(dtm))
term_freq <- colSums(as.matrix(dtm))

# Create JSON
json <- createJSON(
  phi = phi,
  theta = theta,
  doc.length = doc_length,
  vocab = vocab,
  term.frequency = term_freq
)

serVis(json)

Customization

json <- createJSON(
  phi = phi,
  theta = theta,
  doc.length = doc_length,
  vocab = vocab,
  term.frequency = term_freq,
  R = 30,                    # Number of terms to display
  lambda.step = 0.01,        # Lambda slider step
  mds.method = jsPCA,        # MDS method
  cluster = NULL,            # Cluster topics
  reorder.topics = TRUE      # Reorder by prevalence
)

Save Visualization

# Save as HTML
serVis(json, out.dir = "lda_vis", open.browser = FALSE)

# Creates:
# - lda_vis/index.html
# - lda_vis/lda.json
# - lda_vis/d3.v3.js
# - lda_vis/ldavis.v1.0.0.js
# - lda_vis/ldavis.v1.0.0.css

With text2vec

library(text2vec)
library(LDAvis)

# Create DTM with text2vec
it <- itoken(texts, preprocessor = tolower, tokenizer = word_tokenizer)
vocab <- create_vocabulary(it)
vectorizer <- vocab_vectorizer(vocab)
dtm <- create_dtm(it, vectorizer)

# Fit LDA
lda_model <- LDA$new(n_topics = 10)
doc_topic_distr <- lda_model$fit_transform(dtm, n_iter = 1000)

# Get components
phi <- lda_model$get_top_words(n = ncol(dtm), lambda = 1)
# ... create visualization

Read the full file on GitHub · 195 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 195 lines · 24 tokens per session scan A 20868fac4b74

Subscribe to this mod's changes

LDAvis is a skill published in the GitHub repository LeoLin990405/r-analytics-skill (5 stars, last pushed 5mo ago), licensed MIT. It adds 24 tokens to every session and 1,140 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

wp-ux-design

WordPress UX and design enforcement — Core Web Vitals, mobile-first layout, typography, color systems, navigation, page builder patterns, image optimization, form UX, loading and error states, admin UX, and performance checklists with concrete CSS/HTML/PHP examples.

xonack/wp-ux-design-claude-skill · 59 tokens

pixel2motion

Turn a raster logo (PNG/JPG/WebP/screenshot) into a clean minimal SVG with edge smoothness as the primary hard gate and IoU optimized as high as reasonably possible without a fixed global threshold, then into a choreographed logo animation delivered as standalone JS-rendered HTML, applying Disney's 12 animation…

nolangz/pixel2motion · 163 tokens

superdesign

Design or redesign frontend UI, presentations, and graphics on the Superdesign canvas with a choice of leading AI models. Use whenever the user wants to design a page, feature, flow, slide deck, or brand-new product; improve or reproduce existing UI; compare design results across top models; explore visual variants…

superdesigndev/superdesign-skill · 115 tokens

json-render-ui

Generate guardrailed UI from natural language. Emits constrained JSON that a Preact runtime renders. Use when the request is for a dashboard with metrics, charts, or tables; an admin panel; a data visualization interface; or a form-based application.

oaustegard/claude-skills · 54 tokens

web-design

A web design workflow for turning a brief, reference website, screenshot, or keywords into a design specification and then web code. It covers visual style, page structure, interaction, responsive layouts, and motion.

xiaopu-ai/web-design · 151 tokens

add-educational-comments

Add educational comments to code files to transform them into effective learning resources. Explains the "why" behind syntax, idioms, and design choices, aligned with the learner's knowledge level and educational goals.

VincentChuWaiChow/vanguard-frontier-agentic · 47 tokens