gitnexus-cli by abhigyanpatwari/gitnexus
npx skills add https://github.com/abhigyanpatwari/gitnexus --skill gitnexus-cli所有命令都通过 npx 运行,无需全局安装。
npx gitnexus analyze
从项目根目录运行。此命令会解析所有源文件,构建知识图谱,将其写入 .gitnexus/ 目录,并生成 CLAUDE.md / AGENTS.md 上下文文件。
| 标志 | 效果 |
|---|---|
--force | 即使索引是最新的,也强制完全重新索引 |
--embeddings | 启用嵌入生成以支持语义搜索(默认关闭) |
何时运行: 在项目中首次使用、进行重大代码更改后,或当 gitnexus://repo/{name}/context 报告索引已过时时。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
npx gitnexus status
显示当前仓库是否有 GitNexus 索引、上次更新时间以及符号/关系数量。使用此命令检查是否需要重新索引。
npx gitnexus clean
删除 .gitnexus/ 目录并从全局注册表中注销该仓库。如果索引损坏或在从项目中移除 GitNexus 后,请在重新索引前使用此命令。
| 标志 | 效果 |
|---|---|
--force | 跳过确认提示 |
--all | 清理所有已索引的仓库,而不仅仅是当前仓库 |
npx gitnexus wiki
使用 LLM 从知识图谱生成仓库文档。需要 API 密钥(首次使用时保存到 ~/.gitnexus/config.json)。
| 标志 | 效果 |
|---|---|
--force | 强制完全重新生成 |
--model <model> | LLM 模型(默认:minimax/minimax-m2.5) |
--base-url <url> | LLM API 基础 URL |
--api-key <key> | LLM API 密钥 |
--concurrency <n> | 并行 LLM 调用数(默认:3) |
--gist | 将 wiki 发布为公开的 GitHub Gist |
npx gitnexus list
列出 ~/.gitnexus/registry.json 中注册的所有仓库。MCP 的 list_repos 工具提供相同的信息。
gitnexus://repo/{name}/context 以验证索引已加载exploring、debugging、impact-analysis、refactoring)来完成任务--embeddings 标志(默认关闭)或设置 OPENAI_API_KEY 以使用更快的基于 API 的嵌入每周安装量
19
仓库
GitHub 星标数
11.6K
首次出现
10 天前
安全审计
安装于
opencode18
claude-code18
github-copilot18
codex18
amp18
cline18
All commands work via npx — no global install required.
npx gitnexus analyze
Run from the project root. This parses all source files, builds the knowledge graph, writes it to .gitnexus/, and generates CLAUDE.md / AGENTS.md context files.
| Flag | Effect |
|---|---|
--force | Force full re-index even if up to date |
--embeddings | Enable embedding generation for semantic search (off by default) |
When to run: First time in a project, after major code changes, or when gitnexus://repo/{name}/context reports the index is stale.
npx gitnexus status
Shows whether the current repo has a GitNexus index, when it was last updated, and symbol/relationship counts. Use this to check if re-indexing is needed.
npx gitnexus clean
Deletes the .gitnexus/ directory and unregisters the repo from the global registry. Use before re-indexing if the index is corrupt or after removing GitNexus from a project.
| Flag | Effect |
|---|---|
--force | Skip confirmation prompt |
--all | Clean all indexed repos, not just the current one |
npx gitnexus wiki
Generates repository documentation from the knowledge graph using an LLM. Requires an API key (saved to ~/.gitnexus/config.json on first use).
| Flag | Effect |
|---|---|
--force | Force full regeneration |
--model <model> | LLM model (default: minimax/minimax-m2.5) |
--base-url <url> | LLM API base URL |
--api-key <key> | LLM API key |
--concurrency <n> | Parallel LLM calls (default: 3) |
--gist | Publish wiki as a public GitHub Gist |
npx gitnexus list
Lists all repositories registered in ~/.gitnexus/registry.json. The MCP list_repos tool provides the same information.
gitnexus://repo/{name}/context to verify the index loadedexploring, debugging, impact-analysis, refactoring) for your task--embeddings (it's off by default) or set OPENAI_API_KEY for faster API-based embeddingWeekly Installs
19
Repository
GitHub Stars
11.6K
First Seen
10 days ago
Security Audits
Gen Agent Trust HubFailSocketWarnSnykFail
Installed on
opencode18
claude-code18
github-copilot18
codex18
amp18
cline18
AI 代码实施计划编写技能 | 自动化开发任务分解与 TDD 流程规划工具
49,800 周安装