This generates a persistent knowledge base in `.nexus-map/` that lets any AI session cold-start on an unfamiliar codebase without fumbling around. It runs a five-stage PROBE protocol using Tree-sitter AST extraction and git forensics to produce `INDEX.md`, system boundaries, dependency graphs, test coverage maps, and change hotspots. Supports 30+ languages out of the box with hooks for custom extensions. The real value is in the discipline: it forces explicit evidence tracking, blocks you from writing "maybe" without stating what evidence is missing, and ensures `implemented` nodes actually point to real code paths. Requires Python 3.10+ and shell access. If you just need ad-hoc file queries mid-session, use nexus-query instead.

skills.sh installs
365
GitHub stars
167
last updated
Aug 21, 2026

Install

$ npx -y skills add haaaiawd/nexus-skills --skill nexus-mapper --agent claude-code

Installs into .claude/skills of the current project.

Files

nexus-mapper — AI 项目探测协议

本 Skill 指导 AI Agent 使用 PROBE 五阶段协议,对任意本地 Git 仓库执行系统性探测,产出 .nexus-map/ 分层知识库。


何时调用 / 何时不调用

场景调用
用户提供本地 repo 路径,希望 AI 理解其架构是
需要生成 .nexus-map/INDEX.md 供后续 AI 会话冷启动是
用户说「帮我分析项目」「建立项目知识库」「让 AI 了解这个仓库」是
运行环境无 shell 执行能力(纯 API 调用模式,无 run_command 工具)否
宿主机无本地 Python 3.10+否
目标仓库无任何已知语言源文件(.py/.ts/.java/.go/.rs/.cpp 等均无)否
用户只想查询某个特定文件/函数 → 直接用 view_file / grep_search否

前提检查

缺失项要显式告知用户;需要降级等时及时提醒用户,经过同意才能继续。

前提检查方式
目标路径存在$repo_path 可访问
Python 3.10+python --version >= 3.10
脚本依赖已安装python -c "import tree_sitter" 无报错
有 shell 执行能力Agent 环境支持 run_command 工具调用

git 历史是加分项,不是硬阻塞项。没有 .git 或历史过少时,跳过热点分析,并在输出中明确记录这是一次降级探测。


输入契约

Sponsors

Details

Repository
github.com/haaaiawd/nexus-skills
Categories
Git & Pull Requests, Code Review & Quality, AI & Agent Building, Python, Marketing & SEO, CLI & Terminal
First seen
Jun 3, 2026

More from haaaiawd/nexus-skills

All 2
1mims-harvard avatartooluniverse-phylogeneticsmims-harvard/tooluniversePhylogenetic analysis — de novo multiple sequence alignment (Clustal Omega/MUSCLE/MAFFT via EBI_msa_align) and neighbour-joining/UPGMA tree building (EBI_build_365skills.sh installs
2oldwinter avatarpersonal-productivityoldwinter/skillsBuild a Personal Productivity System Pack (weekly timebox plan, capture+to-do system, daily/weekly review rituals, and a 7-day rollout). Use for timeboxing, cal365skills.sh installs
3randroids-dojo avatargodotrandroids-dojo/skillsDevelop, test, build, and deploy Godot 4.x games. Use when working with Godot Engine, GDScript, GdUnit4 testing, PlayGodot automation, or exporting games to web365skills.sh installs
4davila7 avatarbehavioral-modesdavila7/claude-code-templatesAI operational modes (brainstorm, implement, debug, review, teach, ship, orchestrate). Use to adapt behavior based on task type.364skills.sh installs
5jezweb avatarneon-vercel-postgresjezweb/claude-skillsSet up serverless Postgres with Neon or Vercel Postgres for Cloudflare Workers/Edge. Includes connection pooling, git-like branching, and Drizzle ORM integratio363skills.sh installs
6sharpdeveye avatarevaluatesharpdeveye/maestroUse when the user wants a quality review, interaction audit, or to test the workflow against realistic scenarios.363skills.sh installs