Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
f2fc11b
feat(i18n): localize Peers, Access Control, Groups modules to Chinese
sakuradairong Jun 18, 2026
bd2c5ce
feat(i18n): localize Users, Service Users, Groups main pages
sakuradairong Jun 18, 2026
c4469af
feat(i18n): localize DNS, Reverse Proxy, Settings, Posture Checks, Ne…
sakuradairong Jun 18, 2026
27fe310
feat(docker): containerize localized dashboard
sakuradairong Jun 18, 2026
da01b5b
feat(i18n): expand Chinese localization and fix env substitution
sakuradairong Jun 18, 2026
bb6c304
feat(i18n): localize remaining reverse proxy, table headers and modal…
sakuradairong Jun 18, 2026
21e4ceb
fix(server): add comment explaining single-locale /zh fallback logic
sakuradairong Jun 18, 2026
4bd5eda
fix(i18n): address CodeRabbit review — localize confirmation dialogs,…
sakuradairong Jun 18, 2026
6c363b6
fix(i18n): localize RestrictedAccess component and add restrictedAcce…
sakuradairong Jun 18, 2026
98a7923
feat(i18n): cookie-based locale detection with English default and sw…
sakuradairong Jun 20, 2026
c05a3ee
fix(i18n): localize remaining hardcoded UI strings across settings an…
sakuradairong Jun 20, 2026
96f15d7
fix(i18n): localize remaining hardcoded titles in user detail, peers …
sakuradairong Jun 20, 2026
2dc523c
fix(i18n): localize Cancel button text across 25 modal components
sakuradairong Jun 20, 2026
77b413d
fix(i18n): localize aria-label attributes across 12 components
sakuradairong Jun 20, 2026
50c2ffa
fix(i18n): localize Danger Zone account deletion text
sakuradairong Jun 20, 2026
5c4df7a
merge: resolve conflict with origin/main (IdentityProviderModal logou…
sakuradairong Jun 20, 2026
d894c74
fix(i18n): localize Settings tab sub-categories (forms, labels, help …
sakuradairong Jun 20, 2026
bddc357
fix(i18n): localize Resource Access Control, Peer Expiration, Peer Se…
sakuradairong Jun 20, 2026
055252d
Merge remote-tracking branch 'origin/main' into localize-zh-v2.39.0
sakuradairong Jun 23, 2026
312c32f
fix(i18n): localize Peer sections and Posture Checks components
sakuradairong Jun 23, 2026
dc9c9d9
fix(i18n): localize RouteModal, SetupKeyModal, CreateAccessTokenModal
sakuradairong Jun 23, 2026
8e40fd8
fix(i18n): localize IdentityProviderModal, ChangePasswordModal, Creat…
sakuradairong Jun 23, 2026
acf427d
fix(i18n): localize groups sections, DNS records, route modals, rever…
sakuradairong Jun 23, 2026
fcb1e8c
fix(i18n): localize UserInviteModal and team/user page
sakuradairong Jun 23, 2026
0ccc0f9
fix(i18n): localize AuthenticationTab
sakuradairong Jun 23, 2026
c0fe4d0
fix(i18n): localize PeerMultiSelect and add route keys
sakuradairong Jun 23, 2026
c8eec5a
fix(i18n): add accessControlGroups and autoApply keys
sakuradairong Jun 23, 2026
11ca0c6
Merge remote-tracking branch 'origin/main' into localize-zh-v2.39.0
sakuradairong Jun 23, 2026
e89c56b
fix(i18n): commit remaining locale changes for team/user, PeerMultiSe…
sakuradairong Jun 23, 2026
9cd0d6c
fix(i18n): convert PeersTable columns to useTranslations
sakuradairong Jun 23, 2026
249da77
fix(i18n): convert UsersTable columns to useTranslations
sakuradairong Jun 23, 2026
722c9fb
fix(i18n): localize AccessTokensTable and SetupKeysTable columns
sakuradairong Jun 23, 2026
f9326f6
fix(i18n): localize PeerSSHToggle and PeerEditIPModal
sakuradairong Jun 23, 2026
fdc7af1
fix(i18n): localize peer SSH, edit IP, routes, access tokens and setu…
sakuradairong Jun 23, 2026
9bbbeea
i18n: localize notifications module (channels, modals, events)
sakuradairong Jun 23, 2026
3b870a0
i18n: localize reverse-proxy terminated service badge
sakuradairong Jun 23, 2026
9d1cd3e
i18n: localize invoices module (tab, table, action cells, type cells)
sakuradairong Jun 23, 2026
1e0b124
i18n: localize webhooks module (general, headers, auth, config)
sakuradairong Jun 23, 2026
3cb8244
i18n: add survey and aws marketplace translation keys
sakuradairong Jun 23, 2026
a6f46b1
i18n: localize critical UI components into Chinese
Jun 23, 2026
46d20e5
i18n: localize remaining UI strings in users module
Jun 24, 2026
3bb1a61
i18n: localize Peers, Activity, Setup Keys modules
Jun 24, 2026
5eb928f
i18n: localize Routes, DNS, Networks, Access Control modules
Jun 24, 2026
2bd2e03
i18n: add untranslated English string baseline
Jun 24, 2026
2ce9f90
Merge remote-tracking branch 'origin/main' into localize-zh-v2.39.0
sakuradairong Jun 24, 2026
7e4e2f0
fix(i18n): resolve build/type errors, sync main, and address CodeRabb…
sakuradairong Jun 24, 2026
d9b9bb5
i18n: remove unused navigation and routing modules
Jun 26, 2026
43a9649
i18n: add IntlMessages type augmentation for next-intl
Jun 26, 2026
1514a48
i18n: localize dashboard page metadata titles
Jun 26, 2026
92dc5b2
i18n: add translation keys for onboarding, posture checks and routes
Jun 26, 2026
b13b7de
i18n: localize onboarding intent, completion and demo-call screens
Jun 26, 2026
fdcf641
i18n: localize posture checks table and action components
Jun 26, 2026
083b5db
i18n: replace string concatenations with message interpolation
Jun 26, 2026
9bb8d2f
fix(i18n): use users namespace for admin label in service users table
Jun 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 85 additions & 0 deletions .claude/skills/gitnexus/gitnexus-cli/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
---
name: gitnexus-cli
description: "Use when the user needs to run GitNexus CLI commands like analyze/index a repo, check status, clean the index, generate a wiki, or list indexed repos. Examples: \"Index this repo\", \"Reanalyze the codebase\", \"Generate a wiki\""
---

# GitNexus CLI Commands

Commands below use `node .gitnexus/run.cjs <command>` — the project-local runner `gitnexus analyze` drops next to the index. It auto-selects an available runner at call time (global `gitnexus`, else `pnpm dlx`, else `npx`), so no package-manager assumption and no global install is required.

> **Not analyzed yet, or `node .gitnexus/run.cjs` reports `Cannot find module`** (the gitignored runner is absent — e.g. a fresh clone or `git clean`)? (Re)generate it with `npx gitnexus analyze` from the project root. On **npm 11.x**, if `npx` crashes during install (`node.target is null`), install once with `npm i -g gitnexus` (then `gitnexus analyze`) or use `pnpm --allow-build=@ladybugdb/core --allow-build=gitnexus --allow-build=tree-sitter dlx gitnexus@latest analyze`. See [#1939](https://github.com/abhigyanpatwari/GitNexus/issues/1939).

## Commands

### analyze — Build or refresh the index

```bash
node .gitnexus/run.cjs 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) |
| `--drop-embeddings` | Drop existing embeddings on rebuild. By default, an `analyze` without `--embeddings` preserves them. |

**When to run:** First time in a project, after major code changes, or when `gitnexus://repo/{name}/context` reports the index is stale. In Claude Code, a PostToolUse hook detects staleness after `git commit` and `git merge` and notifies the agent to run `analyze` — the hook does not run analyze itself, to avoid blocking the agent for up to 120s and risking KuzuDB corruption on timeout.

### status — Check index freshness

```bash
node .gitnexus/run.cjs 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.

### clean — Delete the index

```bash
node .gitnexus/run.cjs 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 |

### wiki — Generate documentation from the graph

```bash
node .gitnexus/run.cjs 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 |

### list — Show all indexed repos

```bash
node .gitnexus/run.cjs list
```

Lists all repositories registered in `~/.gitnexus/registry.json`. The MCP `list_repos` tool provides the same information.

## After Indexing

1. **Read `gitnexus://repo/{name}/context`** to verify the index loaded
2. Use the other GitNexus skills (`exploring`, `debugging`, `impact-analysis`, `refactoring`) for your task

## Troubleshooting

- **"Not inside a git repository"**: Run from a directory inside a git repo
- **Index is stale after re-analyzing**: Restart Claude Code to reload the MCP server
- **Embeddings slow**: Omit `--embeddings` (it's off by default) or set `OPENAI_API_KEY` for faster API-based embedding
89 changes: 89 additions & 0 deletions .claude/skills/gitnexus/gitnexus-debugging/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
---
name: gitnexus-debugging
description: "Use when the user is debugging a bug, tracing an error, or asking why something fails. Examples: \"Why is X failing?\", \"Where does this error come from?\", \"Trace this bug\""
---

# Debugging with GitNexus

## When to Use

- "Why is this function failing?"
- "Trace where this error comes from"
- "Who calls this method?"
- "This endpoint returns 500"
- Investigating bugs, errors, or unexpected behavior

## Workflow

```
1. query({query: "<error or symptom>"}) → Find related execution flows
2. context({name: "<suspect>"}) → See callers/callees/processes
3. READ gitnexus://repo/{name}/process/{name} → Trace execution flow
4. cypher({query: "MATCH path..."}) → Custom traces if needed
```

> If "Index is stale" → run `node .gitnexus/run.cjs analyze` in terminal.

## Checklist

```
- [ ] Understand the symptom (error message, unexpected behavior)
- [ ] query for error text or related code
- [ ] Identify the suspect function from returned processes
- [ ] context to see callers and callees
- [ ] Trace execution flow via process resource if applicable
- [ ] cypher for custom call chain traces if needed
- [ ] Read source files to confirm root cause
```

## Debugging Patterns

| Symptom | GitNexus Approach |
| -------------------- | ---------------------------------------------------------- |
| Error message | `query` for error text → `context` on throw sites |
| Wrong return value | `context` on the function → trace callees for data flow |
| Intermittent failure | `context` → look for external calls, async deps |
| Performance issue | `context` → find symbols with many callers (hot paths) |
| Recent regression | `detect_changes` to see what your changes affect |

## Tools

**query** — find code related to error:

```
query({query: "payment validation error"})
→ Processes: CheckoutFlow, ErrorHandling
→ Symbols: validatePayment, handlePaymentError, PaymentException
```

**context** — full context for a suspect:

```
context({name: "validatePayment"})
→ Incoming calls: processCheckout, webhookHandler
→ Outgoing calls: verifyCard, fetchRates (external API!)
→ Processes: CheckoutFlow (step 3/7)
```

**cypher** — custom call chain traces:

```cypher
MATCH path = (a)-[:CodeRelation {type: 'CALLS'}*1..2]->(b:Function {name: "validatePayment"})
RETURN [n IN nodes(path) | n.name] AS chain
```

## Example: "Payment endpoint returns 500 intermittently"

```
1. query({query: "payment error handling"})
→ Processes: CheckoutFlow, ErrorHandling
→ Symbols: validatePayment, handlePaymentError

2. context({name: "validatePayment"})
→ Outgoing calls: verifyCard, fetchRates (external API!)

3. READ gitnexus://repo/my-app/process/CheckoutFlow
→ Step 3: validatePayment → calls fetchRates (external)

4. Root cause: fetchRates calls external API without proper timeout
```
78 changes: 78 additions & 0 deletions .claude/skills/gitnexus/gitnexus-exploring/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
---
name: gitnexus-exploring
description: "Use when the user asks how code works, wants to understand architecture, trace execution flows, or explore unfamiliar parts of the codebase. Examples: \"How does X work?\", \"What calls this function?\", \"Show me the auth flow\""
---

# Exploring Codebases with GitNexus

## When to Use

- "How does authentication work?"
- "What's the project structure?"
- "Show me the main components"
- "Where is the database logic?"
- Understanding code you haven't seen before

## Workflow

```
1. READ gitnexus://repos → Discover indexed repos
2. READ gitnexus://repo/{name}/context → Codebase overview, check staleness
3. query({query: "<what you want to understand>"}) → Find related execution flows
4. context({name: "<symbol>"}) → Deep dive on specific symbol
5. READ gitnexus://repo/{name}/process/{name} → Trace full execution flow
```

> If step 2 says "Index is stale" → run `node .gitnexus/run.cjs analyze` in terminal.

## Checklist

```
- [ ] READ gitnexus://repo/{name}/context
- [ ] query for the concept you want to understand
- [ ] Review returned processes (execution flows)
- [ ] context on key symbols for callers/callees
- [ ] READ process resource for full execution traces
- [ ] Read source files for implementation details
```

## Resources

| Resource | What you get |
| --------------------------------------- | ------------------------------------------------------- |
| `gitnexus://repo/{name}/context` | Stats, staleness warning (~150 tokens) |
| `gitnexus://repo/{name}/clusters` | All functional areas with cohesion scores (~300 tokens) |
| `gitnexus://repo/{name}/cluster/{name}` | Area members with file paths (~500 tokens) |
| `gitnexus://repo/{name}/process/{name}` | Step-by-step execution trace (~200 tokens) |

## Tools

**query** — find execution flows related to a concept:

```
query({query: "payment processing"})
→ Processes: CheckoutFlow, RefundFlow, WebhookHandler
→ Symbols grouped by flow with file locations
```

**context** — 360-degree view of a symbol:

```
context({name: "validateUser"})
→ Incoming calls: loginHandler, apiMiddleware
→ Outgoing calls: checkToken, getUserById
→ Processes: LoginFlow (step 2/5), TokenRefresh (step 1/3)
```

## Example: "How does payment processing work?"

```
1. READ gitnexus://repo/my-app/context → 918 symbols, 45 processes
2. query({query: "payment processing"})
→ CheckoutFlow: processPayment → validateCard → chargeStripe
→ RefundFlow: initiateRefund → calculateRefund → processRefund
3. context({name: "processPayment"})
→ Incoming: checkoutHandler, webhookHandler
→ Outgoing: validateCard, chargeStripe, saveTransaction
4. Read src/payments/processor.ts for implementation details
```
64 changes: 64 additions & 0 deletions .claude/skills/gitnexus/gitnexus-guide/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
---
name: gitnexus-guide
description: "Use when the user asks about GitNexus itself — available tools, how to query the knowledge graph, MCP resources, graph schema, or workflow reference. Examples: \"What GitNexus tools are available?\", \"How do I use GitNexus?\""
---

# GitNexus Guide

Quick reference for all GitNexus MCP tools, resources, and the knowledge graph schema.

## Always Start Here

For any task involving code understanding, debugging, impact analysis, or refactoring:

1. **Read `gitnexus://repo/{name}/context`** — codebase overview + check index freshness
2. **Match your task to a skill below** and **read that skill file**
3. **Follow the skill's workflow and checklist**

> If step 1 warns the index is stale, run `node .gitnexus/run.cjs analyze` in the terminal first.
## Skills

| Task | Skill to read |
| -------------------------------------------- | ------------------- |
| Understand architecture / "How does X work?" | `gitnexus-exploring` |
| Blast radius / "What breaks if I change X?" | `gitnexus-impact-analysis` |
| Trace bugs / "Why is X failing?" | `gitnexus-debugging` |
| Rename / extract / split / refactor | `gitnexus-refactoring` |
| Tools, resources, schema reference | `gitnexus-guide` (this file) |
| Index, status, clean, wiki CLI commands | `gitnexus-cli` |

## Tools Reference

| Tool | What it gives you |
| ---------------- | ------------------------------------------------------------------------ |
| `query` | Process-grouped code intelligence — execution flows related to a concept |
| `context` | 360-degree symbol view — categorized refs, processes it participates in |
| `impact` | Symbol blast radius — what breaks at depth 1/2/3 with confidence |
| `detect_changes` | Git-diff impact — what do your current changes affect |
| `rename` | Multi-file coordinated rename with confidence-tagged edits |
| `cypher` | Raw graph queries (read `gitnexus://repo/{name}/schema` first) |
| `list_repos` | Discover indexed repos |

## Resources Reference

Lightweight reads (~100-500 tokens) for navigation:

| Resource | Content |
| ---------------------------------------------- | ----------------------------------------- |
| `gitnexus://repo/{name}/context` | Stats, staleness check |
| `gitnexus://repo/{name}/clusters` | All functional areas with cohesion scores |
| `gitnexus://repo/{name}/cluster/{clusterName}` | Area members |
| `gitnexus://repo/{name}/processes` | All execution flows |
| `gitnexus://repo/{name}/process/{processName}` | Step-by-step trace |
| `gitnexus://repo/{name}/schema` | Graph schema for Cypher |

## Graph Schema

**Nodes:** File, Function, Class, Interface, Method, Community, Process
**Edges (via CodeRelation.type):** CALLS, IMPORTS, EXTENDS, IMPLEMENTS, DEFINES, MEMBER_OF, STEP_IN_PROCESS

```cypher
MATCH (caller)-[:CodeRelation {type: 'CALLS'}]->(f:Function {name: "myFunc"})
RETURN caller.name, caller.filePath
```
Loading