Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

linguistic-semantic-algorithms

БесплатноБез исполняемых скриптовНе проверен

Mapping out an unfamiliar codebase via NLP and graph algorithms — 40 algorithms across topic modelling, semantic embeddings, code graphs, repository mining…

pproencaот pproenca★ 231 звезда на GitHub

Об этом скилле

pproenca Linguistic and Semantic Algorithms Best Practices

Reference of 40 algorithms an agent should reach for when extracting structure, meaning, history, or risk signals from source code and commit data. Categories are ordered by insight-per-effort — how much non-obvious truth the technique exposes relative to how easy it is to apply. The first two categories target the highest-leverage questions: what business entities live in this code? and where else does this concept already exist? — questions that grep and intuition cannot answer.

When to Apply

Reach for these algorithms when:

  • Orienting in an unfamiliar codebase: PageRank the import graph to find the core, run LDA over identifier tokens to discover business themes, mine change coupling to surface hidden architectural couplings.
  • Hunting a bug from a description: BM25 + history prior + embedding re-rank produces a ranked file shortlist far better than grep.
  • Scoping a feature: find prior PRs that did similar work via embedding similarity; map the feature's vocabulary against the codebase's domain via TF-IDF and noun-phrase mining.
  • Reviewing a refactor: AST-level GumTree diff reveals semantic impact text diff hides; PDG isomorphism finds the "same logic, different code" twin you should also update.
  • Auditing risk: hotspots (churn × complexity), bus factor, defect-magnet density, dead-code candidates — together they direct attention to the parts of the codebase that pay back attention.
  • Identifying domain entities and bounded contexts: noun-phrase mining + TF-IDF rare-term extraction + Louvain communities + Jensen-Shannon divergence on per-cluster vocabulary.

Rule Categories by Priority

Priority Category Impact Prefix Question answered
1 Concept & Domain Extraction CRITICAL concept- What business entities live in this code?
2 Semantic Similarity & Feature Mapping CRITICAL sim- Where else does this concept already exist?
3 Architectural Topology HIGH graph- What is the shape of this codebase?
4 Co-Change & Temporal Mining HIGH mine- What hidden couplings does history reveal?
5 Clone & Duplication Detection MEDIUM-HIGH clone- Where are we repeating ourselves?
6 Bug & Feature Localization MEDIUM-HIGH local- Given a description, where in code?
7 Identifier Linguistics MEDIUM ling- How to prepare tokens so the other algorithms work?
8 Complexity & Risk Metrics MEDIUM risk- Where is the danger concentrated?

Quick Reference

1. Concept & Domain Extraction (CRITICAL)

2. Semantic Similarity & Feature Mapping (CRITICAL)

3. Architectural Topology (HIGH)

Полный SKILL.md на GitHub

Установить linguistic-semantic-algorithms в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

AGENTS.mdassets/templates/_template.mdmetadata.jsonreferences/_sections.mdreferences/clone-ast-gumtree.mdreferences/clone-minhash-lsh.mdreferences/clone-simhash.mdreferences/clone-suffix-array-cpd.mdreferences/clone-zhang-shasha-ted.mdreferences/concept-bounded-context-detection.mdreferences/concept-entity-name-resolution.mdreferences/concept-identifier-cooccurrence-network.mdreferences/concept-lda-topic-modeling.mdreferences/concept-noun-phrase-mining.mdreferences/concept-tfidf-rare-terms.mdreferences/graph-betweenness-bottlenecks.mdreferences/graph-feedback-arcs.mdreferences/graph-louvain-modules.mdreferences/graph-pagerank-core.mdreferences/graph-scc-cycle-tangles.mdreferences/ling-abbreviation-expansion.mdreferences/ling-camel-snake-split.mdreferences/ling-porter-stemming.mdreferences/ling-pos-tagging-identifiers.mdreferences/local-bm25-saturation.mdreferences/local-embedding-bug-text.mdreferences/local-history-prior-localization.mdreferences/local-tfidf-bug-reports.mdreferences/mine-bug-fix-density.mdreferences/mine-bus-factor.mdreferences/mine-change-coupling.mdreferences/mine-codebase-aging.mdreferences/mine-commit-topic-modeling.mdreferences/mine-hotspots-churn-complexity.mdreferences/risk-cognitive-complexity.mdreferences/risk-cyclomatic-mccabe.mdreferences/risk-halstead-volume.mdreferences/risk-shannon-entropy-naming.mdreferences/sim-call-pattern-similarity.mdreferences/sim-codebert-embeddings.md

FAQ

Что делает скилл linguistic-semantic-algorithms?

Mapping out an unfamiliar codebase via NLP and graph algorithms — 40 algorithms across topic modelling, semantic embeddings, code graphs, repository mining, clone detection, IR-based bug localization, identifier linguistics, and complexity metrics. Trigger when hunting bugs across many files, scoping a new feature, identifying domain entities, or analyzing commit history — even if the user doesn't explicitly mention algorithms — apply when they ask "where does X live in this codebase?", "what is this codebase about?", "find duplicated logic", "what changed recently?", "who owns this code?", or "is this function risky?".

Как установить скилл linguistic-semantic-algorithms?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл linguistic-semantic-algorithms запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить linguistic-semantic-algorithms с