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.
npx skills add LeoLin990405/r-analytics-skill --skill text2vecgit clone --depth 1 https://github.com/LeoLin990405/r-analytics-skillWrote 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.
[](https://agentmods.dev/skills/leolin990405/r-analytics-skill/text2vec)<a href="https://agentmods.dev/skills/leolin990405/r-analytics-skill/text2vec"><img src="https://agentmods.dev/badge/skills/leolin990405/r-analytics-skill/text2vec/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.
<a href="https://agentmods.dev/skills/leolin990405/r-analytics-skill/text2vec"><img src="https://agentmods.dev/badge/skills/leolin990405/r-analytics-skill/text2vec.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00028 | $0.00466 |
| Opus 5.5 | $0.00011 | $0.00186 |
| Sonnet 5.5 | $0.00006 | $0.00093 |
| Haiku 4.5 | $0.00003 | $0.00047 |
Grade A, and why
text2vec 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 3mo 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.
What it actually says
text2vec Package
Fast text vectorization and embeddings.
Tokenization
library(text2vec)
# Iterator
it <- itoken(texts,
preprocessor = tolower,
tokenizer = word_tokenizer
)
# From files
it <- ifiles("*.txt") %>%
itoken(tokenizer = word_tokenizer)
Vocabulary
# Create vocabulary
vocab <- create_vocabulary(it)
# Prune
vocab <- prune_vocabulary(vocab,
term_count_min = 5,
doc_proportion_max = 0.5
)
# Vectorizer
vectorizer <- vocab_vectorizer(vocab)
Document-Term Matrix
# Create DTM
dtm <- create_dtm(it, vectorizer)
# TF-IDF
tfidf <- TfIdf$new()
dtm_tfidf <- fit_transform(dtm, tfidf)
Word Embeddings (GloVe)
# Co-occurrence matrix
tcm <- create_tcm(it, vectorizer, skip_grams_window = 5)
# Train GloVe
glove <- GloVe$new(rank = 100, x_max = 10)
word_vectors <- glove$fit_transform(tcm, n_iter = 20)
# Get word vector
word_vectors["king", ]
# Word analogies
king <- word_vectors["king", ]
man <- word_vectors["man", ]
woman <- word_vectors["woman", ]
queen_vec <- king - man + woman
Topic Modeling (LDA)
lda <- LDA$new(n_topics = 10)
doc_topics <- lda$fit_transform(dtm, n_iter = 100)
# Top words per topic
lda$get_top_words(n = 10)
Similarity
# Cosine similarity
sim <- sim2(dtm[1:10, ], dtm, method = "cosine")
# Jaccard
sim <- sim2(dtm, method = "jaccard")
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.
- 3mo ago First seen · 92 lines · 28 tokens per session scan A badfeb8a7df8
text2vec is a skill published in the GitHub repository LeoLin990405/r-analytics-skill (6 stars, last pushed 28d ago), licensed MIT. It adds 28 tokens to every session and 466 once invoked, about $0.0001 per session on Opus 5.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.
text2vec compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| text2vecLeoLin990405/r-analytics-skill | Skill | 6 | 28d ago | MIT | A | 28 | Claude Code, Codex |
| alterlab-pyhealthAlterLab-IEU/AlterLab-Academic-Skills | Skill | 88 | 2d ago | MIT | A | 132 | Claude Code |
| alterlab-esmAlterLab-IEU/AlterLab-Academic-Skills | Skill | 88 | 2d ago | MIT | A | 101 | Claude Code |
| alterlab-deepchemAlterLab-IEU/AlterLab-Academic-Skills | Skill | 88 | 2d ago | MIT | A | 127 | Claude Code |
| alterlab-hypogenicAlterLab-IEU/AlterLab-Academic-Skills | Skill | 88 | 2d ago | MIT | A | 122 | Claude Code |
| alterlab-molfeatAlterLab-IEU/AlterLab-Academic-Skills | Skill | 88 | 2d ago | MIT | A | 145 | Claude Code |
| alterlab-genimlAlterLab-IEU/AlterLab-Academic-Skills | Skill | 88 | 2d ago | MIT | A | 152 | Claude Code |