/ Каталог / Песочница / Nexus-skills
● Сообщество Haaaiawd ⚡ Сразу

Nexus-skills

автор Haaaiawd · Haaaiawd/Nexus-skills

Codebase intelligence skills — build a persistent .nexus-map/ knowledge base and query file structure, dependencies, and change impact.

Nexus Skills makes Claude Code and other agents codebase-aware. Run it once to generate a .nexus-map/ knowledge base with file structure, dependency graphs, and call sites. After that, queries like 'what breaks if I change this function?' get precise answers instead of guesses. Useful in large, unfamiliar repos.

Зачем использовать

Ключевые функции

Живое демо

Как выглядит на практике

nexus-skill.replay ▶ готово
0/0

Установка

Выберите клиент

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "nexus-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/Haaaiawd/Nexus-skills",
        "~/.claude/skills/Nexus-skills"
      ],
      "_inferred": true
    }
  }
}

Откройте Claude Desktop → Settings → Developer → Edit Config. Перезапустите после сохранения.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "nexus-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/Haaaiawd/Nexus-skills",
        "~/.claude/skills/Nexus-skills"
      ],
      "_inferred": true
    }
  }
}

Cursor использует ту же схему mcpServers, что и Claude Desktop. Конфиг проекта приоритетнее глобального.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "nexus-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/Haaaiawd/Nexus-skills",
        "~/.claude/skills/Nexus-skills"
      ],
      "_inferred": true
    }
  }
}

Щёлкните значок MCP Servers на боковой панели Cline, затем "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "nexus-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/Haaaiawd/Nexus-skills",
        "~/.claude/skills/Nexus-skills"
      ],
      "_inferred": true
    }
  }
}

Тот же формат, что и Claude Desktop. Перезапустите Windsurf для применения.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "nexus-skill",
      "command": "git",
      "args": [
        "clone",
        "https://github.com/Haaaiawd/Nexus-skills",
        "~/.claude/skills/Nexus-skills"
      ]
    }
  ]
}

Continue использует массив объектов серверов, а не map.

~/.config/zed/settings.json
{
  "context_servers": {
    "nexus-skill": {
      "command": {
        "path": "git",
        "args": [
          "clone",
          "https://github.com/Haaaiawd/Nexus-skills",
          "~/.claude/skills/Nexus-skills"
        ]
      }
    }
  }
}

Добавьте в context_servers. Zed перезагружается автоматически.

claude mcp add nexus-skill -- git clone https://github.com/Haaaiawd/Nexus-skills ~/.claude/skills/Nexus-skills

Однострочная команда. Проверить: claude mcp list. Удалить: claude mcp remove.

Сценарии использования

Реальные сценарии: Nexus-skills

How to onboard to an unfamiliar codebase fast

👤 Engineers joining a new team or team inheriting a codebase ⏱ ~60 min intermediate

Когда использовать: Day one in a repo you've never seen; you want a map before making changes.

Предварительные требования
  • Skill installed — git clone https://github.com/Haaaiawd/Nexus-skills ~/.claude/skills/nexus-skills
Поток
  1. Build the map
    Use nexus-skills to scan this repo and build .nexus-map/.✓ Скопировано
    → Progress output + map files produced
  2. Get the tour
    Using .nexus-map, tell me: entry points, top 10 most-imported modules, and any orphaned files.✓ Скопировано
    → Repo overview keyed to actual files
  3. Dig into a subsystem
    Show me the payments subsystem — files, dependencies, external calls.✓ Скопировано
    → Scoped subsystem view

Итог: A factual mental model of the repo built in under an hour.

Подводные камни
  • Map goes stale after big merges — Re-run nexus update; it's incremental

Check blast radius before changing a core function

👤 Engineers about to touch a widely-used utility ⏱ ~30 min intermediate

Когда использовать: You're about to rename or change the signature of a function and want to see every call site.

Предварительные требования
  • .nexus-map/ already built — Run once per repo; incremental after
Поток
  1. Query impact
    What calls formatCurrency(), and what would break if I change the signature to accept a locale?✓ Скопировано
    → Call-site list with each caller's likely break mode
  2. Generate migration
    Produce the minimal diff across all call sites to add the new locale param with a sensible default.✓ Скопировано
    → Multi-file patch

Итог: A change with known blast radius and a prepared diff.

Find dead code and unused exports

👤 Engineers cleaning up before a refactor ⏱ ~40 min intermediate

Когда использовать: Before a refactor you want to know what's truly unused.

Поток
  1. Query map
    Using .nexus-map, list files with no imports from elsewhere, and exports with no external references.✓ Скопировано
    → Ranked list with confidence per finding
  2. Verify
    For the top 10 candidates, double-check by searching for string-based usage (reflection, dynamic imports).✓ Скопировано
    → Filtered list with false-positive caveats

Итог: A dead-code delete list you can actually ship.

Подводные камни
  • Dynamic imports look dead statically — Always run the string-based sweep before deleting

Комбинации

Сочетайте с другими MCP — эффект x10

Security-impact queries: where does tainted input flow?

Using nexus-map, trace every call path from the /ingest endpoint into the DB layer. Then OWASP review those paths.✓ Скопировано

Инструменты

Что предоставляет этот MCP

ИнструментВходные данныеКогда вызыватьСтоимость
build_map repo_root Once per repo initially compute (local)
update_map changed_files After large merges compute (local)
query_structure question Answering structure questions Claude tokens
change_impact symbol or file Before breaking changes Claude tokens
dead_code - Pre-refactor cleanup Claude tokens

Стоимость и лимиты

Во что обходится

Квота API
None
Токенов на вызов
Map build is local compute (fast); queries consume Claude tokens
Деньги
Free
Совет
Build once, query often. Re-build only when repo shape changes materially.

Безопасность

Права, секреты, радиус поражения

Хранение учётных данных: No credentials. .nexus-map/ is local by default.
Исходящий трафик: Map building is local. Querying sends map snippets to Claude.

Устранение неполадок

Частые ошибки и исправления

Map build crashes on monorepos

Run per-package rather than on the root; nexus supports a scope flag

Queries return stale results after edits

Run nexus update on the changed files; incremental is cheap

Language not recognized

Check supported languages in nexus docs; some frameworks need explicit parser config

Альтернативы

Nexus-skills в сравнении

АльтернативаКогда использоватьКомпромисс
SourceGraph / CodyYou need hosted code intelligence at org scalePaid; not local
tree-sitter + custom queriesYou want full controlMuch more build time

Ещё

Ресурсы

📖 Читать официальный README на GitHub

🐙 Открытые задачи

🔍 Все 400+ MCP-серверов и Skills