🔎
AI EngineeringPython

Nexus Query

by Haaaiawd

Nexus Query is an AI Engineering skill for Claude Code, published by Haaaiawd in Nexus-skills.

164 stars15 forkson Haaaiawd/Nexus-skillsAdded 2026/09/08Repository updated 2026/03/31
agent-skillsagentic-aiai-codingai-toolsastclaude-codeclaude-skillsclinecode-analysiscodebase-intelligencecursordependency-graphgithub-copilotlegacy-coderefactoringskillsspectree-sittervibe-coding
Install in seconds
Install Nexus Query
Copy Nexus Query into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/Haaaiawd/Nexus-skills/tree/master/skills/nexus-query ~/.claude/skills/nexus-query

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/Haaaiawd/Nexus-skills.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/nexus-query/SKILL.md in Haaaiawd/Nexus-skills
Installs to
~/.claude/skills/nexus-query
Collection
One of 2 skills cataloged from this repository
Category
AI Engineering3670 skills

What Nexus Query does

Nexus Query answers code-structure questions from AST data, such as who imports a module, what depends on an interface, and how far a change will ripple. Use it before refactors, interface changes, or when estimating risk in large legacy codebases.

Nexus Query is cataloged under AI Engineering on DirSkills. Nexus Query comes from a repository tagged agent-skills, agentic-ai, ai-coding, ai-tools and ast.

Documentation

README

nexus-query — 代码结构精准查询

何时调用

场景 调用
「这个文件有哪些类/方法,依赖什么」
「改这个接口/模块,哪些文件受影响」
「这个改动的影响半径是多大」
「项目里谁是真正的核心依赖节点」
「整个项目大概分哪几块」
用户希望生成完整的 .nexus-map/ 知识库 否 → 改用 nexus-mapper
运行环境无 shell 执行能力
宿主机无本地 Python 3.10+

前提:确保 ast_nodes.json 可用

进入查询前 → 检查是否有 ast_nodes.json
├── 有(.nexus-map/raw/ast_nodes.json 或用户指定路径)→ 直接查询
└── 没有 → 运行 extract_ast.py 生成 → 再查询

生成 AST 时,支持与 nexus-mapper 一致的扫描过滤:

  • --exclude-dirs django_static,.go_root 按目录名或仓库相对路径忽略杂物目录
  • --use-gitignore 启用 <repo_path>/.gitignore 规则(默认开启),忽略其中声明的文件和目录
  • --no-gitignore 不应用 .gitignore 规则;此时仍会保留内置排除项和 --exclude-dirs

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Nexus Query

  • What else does Haaaiawd publish alongside Nexus Query?

    Nexus Query is one of 2 skills that DirSkills catalogs from Haaaiawd/Nexus-skills, the repository it ships in. Its siblings there include Nexus Mapper. Each one is a separate skill with its own page in this directory, installs the same way Nexus Query does, and is maintained by Haaaiawd in that same repository. The rest of the collection is listed on the Haaaiawd/Nexus-skills page.

  • How does Nexus Query compare to other AI Engineering skills?

    Nexus Query ranks #3381 by stars among the 3670 AI Engineering skills in this catalog. The most-starred ones next to it are Architecture Decision Records, AI-First Engineering and Agentic OS. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Nexus Query against them. Open each page to compare what they document and how they install.