Skip to content

Commit 2b1aa52

Browse files
feat: launch 9Ruby revenue funnel updates
1 parent c2f238d commit 2b1aa52

117 files changed

Lines changed: 25867 additions & 7123 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude/skills/gitnexus/gitnexus-cli/SKILL.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ Run from the project root. This parses all source files, builds the knowledge gr
2121
| -------------- | ---------------------------------------------------------------- |
2222
| `--force` | Force full re-index even if up to date |
2323
| `--embeddings` | Enable embedding generation for semantic search (off by default) |
24+
| `--drop-embeddings` | Drop existing embeddings on rebuild. By default, an `analyze` without `--embeddings` preserves them. |
2425

25-
**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 runs `analyze` automatically after `git commit` and `git merge`, preserving embeddings if previously generated.
26+
**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.
2627

2728
### status — Check index freshness
2829

.gitignore

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,23 @@ npm-debug.log*
2929
yarn-debug.log*
3030
yarn-error.log*
3131
.pnpm-debug.log*
32+
.codex-screens/
33+
.codex-dev-*.log
3234

3335
# env files (can opt-in for committing if needed)
3436
.env*
3537

3638
# vercel
3739
.vercel
3840

41+
# generated/local analysis
42+
.gitnexus
43+
graphify-out/
44+
45+
# local runtime lead captures
46+
/data/audit-intake/
47+
/data/income-leads/
48+
3949
# typescript
4050
*.tsbuildinfo
4151
next-env.d.ts
42-
43-
.vercel
44-
.gitnexus

AGENTS.md

Lines changed: 5 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This version has breaking changes — APIs, conventions, and file structure may
77
<!-- gitnexus:start -->
88
# GitNexus — Code Intelligence
99

10-
This project is indexed by GitNexus as **9ruby-home** (400 symbols, 569 relationships, 5 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely.
10+
This project is indexed by GitNexus as **9ruby-site** (2306 symbols, 3512 relationships, 113 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely.
1111

1212
> If any GitNexus tool warns the index is stale, run `npx gitnexus analyze` in terminal first.
1313
@@ -19,79 +19,21 @@ This project is indexed by GitNexus as **9ruby-home** (400 symbols, 569 relation
1919
- When exploring unfamiliar code, use `gitnexus_query({query: "concept"})` to find execution flows instead of grepping. It returns process-grouped results ranked by relevance.
2020
- When you need full context on a specific symbol — callers, callees, which execution flows it participates in — use `gitnexus_context({name: "symbolName"})`.
2121

22-
## When Debugging
23-
24-
1. `gitnexus_query({query: "<error or symptom>"})` — find execution flows related to the issue
25-
2. `gitnexus_context({name: "<suspect function>"})` — see all callers, callees, and process participation
26-
3. `READ gitnexus://repo/9ruby-home/process/{processName}` — trace the full execution flow step by step
27-
4. For regressions: `gitnexus_detect_changes({scope: "compare", base_ref: "main"})` — see what your branch changed
28-
29-
## When Refactoring
30-
31-
- **Renaming**: MUST use `gitnexus_rename({symbol_name: "old", new_name: "new", dry_run: true})` first. Review the preview — graph edits are safe, text_search edits need manual review. Then run with `dry_run: false`.
32-
- **Extracting/Splitting**: MUST run `gitnexus_context({name: "target"})` to see all incoming/outgoing refs, then `gitnexus_impact({target: "target", direction: "upstream"})` to find all external callers before moving code.
33-
- After any refactor: run `gitnexus_detect_changes({scope: "all"})` to verify only expected files changed.
34-
3522
## Never Do
3623

3724
- NEVER edit a function, class, or method without first running `gitnexus_impact` on it.
3825
- NEVER ignore HIGH or CRITICAL risk warnings from impact analysis.
3926
- NEVER rename symbols with find-and-replace — use `gitnexus_rename` which understands the call graph.
4027
- NEVER commit changes without running `gitnexus_detect_changes()` to check affected scope.
4128

42-
## Tools Quick Reference
43-
44-
| Tool | When to use | Command |
45-
|------|-------------|---------|
46-
| `query` | Find code by concept | `gitnexus_query({query: "auth validation"})` |
47-
| `context` | 360-degree view of one symbol | `gitnexus_context({name: "validateUser"})` |
48-
| `impact` | Blast radius before editing | `gitnexus_impact({target: "X", direction: "upstream"})` |
49-
| `detect_changes` | Pre-commit scope check | `gitnexus_detect_changes({scope: "staged"})` |
50-
| `rename` | Safe multi-file rename | `gitnexus_rename({symbol_name: "old", new_name: "new", dry_run: true})` |
51-
| `cypher` | Custom graph queries | `gitnexus_cypher({query: "MATCH ..."})` |
52-
53-
## Impact Risk Levels
54-
55-
| Depth | Meaning | Action |
56-
|-------|---------|--------|
57-
| d=1 | WILL BREAK — direct callers/importers | MUST update these |
58-
| d=2 | LIKELY AFFECTED — indirect deps | Should test |
59-
| d=3 | MAY NEED TESTING — transitive | Test if critical path |
60-
6129
## Resources
6230

6331
| Resource | Use for |
6432
|----------|---------|
65-
| `gitnexus://repo/9ruby-home/context` | Codebase overview, check index freshness |
66-
| `gitnexus://repo/9ruby-home/clusters` | All functional areas |
67-
| `gitnexus://repo/9ruby-home/processes` | All execution flows |
68-
| `gitnexus://repo/9ruby-home/process/{name}` | Step-by-step execution trace |
69-
70-
## Self-Check Before Finishing
71-
72-
Before completing any code modification task, verify:
73-
1. `gitnexus_impact` was run for all modified symbols
74-
2. No HIGH/CRITICAL risk warnings were ignored
75-
3. `gitnexus_detect_changes()` confirms changes match expected scope
76-
4. All d=1 (WILL BREAK) dependents were updated
77-
78-
## Keeping the Index Fresh
79-
80-
After committing code changes, the GitNexus index becomes stale. Re-run analyze to update it:
81-
82-
```bash
83-
npx gitnexus analyze
84-
```
85-
86-
If the index previously included embeddings, preserve them by adding `--embeddings`:
87-
88-
```bash
89-
npx gitnexus analyze --embeddings
90-
```
91-
92-
To check whether embeddings exist, inspect `.gitnexus/meta.json` — the `stats.embeddings` field shows the count (0 means no embeddings). **Running analyze without `--embeddings` will delete any previously generated embeddings.**
93-
94-
> Claude Code users: A PostToolUse hook handles this automatically after `git commit` and `git merge`.
33+
| `gitnexus://repo/9ruby-site/context` | Codebase overview, check index freshness |
34+
| `gitnexus://repo/9ruby-site/clusters` | All functional areas |
35+
| `gitnexus://repo/9ruby-site/processes` | All execution flows |
36+
| `gitnexus://repo/9ruby-site/process/{name}` | Step-by-step execution trace |
9537

9638
## CLI
9739

CLAUDE.md

Lines changed: 5 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<!-- gitnexus:start -->
44
# GitNexus — Code Intelligence
55

6-
This project is indexed by GitNexus as **9ruby-home** (400 symbols, 569 relationships, 5 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely.
6+
This project is indexed by GitNexus as **9ruby-site** (2306 symbols, 3512 relationships, 113 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely.
77

88
> If any GitNexus tool warns the index is stale, run `npx gitnexus analyze` in terminal first.
99
@@ -15,79 +15,21 @@ This project is indexed by GitNexus as **9ruby-home** (400 symbols, 569 relation
1515
- When exploring unfamiliar code, use `gitnexus_query({query: "concept"})` to find execution flows instead of grepping. It returns process-grouped results ranked by relevance.
1616
- When you need full context on a specific symbol — callers, callees, which execution flows it participates in — use `gitnexus_context({name: "symbolName"})`.
1717

18-
## When Debugging
19-
20-
1. `gitnexus_query({query: "<error or symptom>"})` — find execution flows related to the issue
21-
2. `gitnexus_context({name: "<suspect function>"})` — see all callers, callees, and process participation
22-
3. `READ gitnexus://repo/9ruby-home/process/{processName}` — trace the full execution flow step by step
23-
4. For regressions: `gitnexus_detect_changes({scope: "compare", base_ref: "main"})` — see what your branch changed
24-
25-
## When Refactoring
26-
27-
- **Renaming**: MUST use `gitnexus_rename({symbol_name: "old", new_name: "new", dry_run: true})` first. Review the preview — graph edits are safe, text_search edits need manual review. Then run with `dry_run: false`.
28-
- **Extracting/Splitting**: MUST run `gitnexus_context({name: "target"})` to see all incoming/outgoing refs, then `gitnexus_impact({target: "target", direction: "upstream"})` to find all external callers before moving code.
29-
- After any refactor: run `gitnexus_detect_changes({scope: "all"})` to verify only expected files changed.
30-
3118
## Never Do
3219

3320
- NEVER edit a function, class, or method without first running `gitnexus_impact` on it.
3421
- NEVER ignore HIGH or CRITICAL risk warnings from impact analysis.
3522
- NEVER rename symbols with find-and-replace — use `gitnexus_rename` which understands the call graph.
3623
- NEVER commit changes without running `gitnexus_detect_changes()` to check affected scope.
3724

38-
## Tools Quick Reference
39-
40-
| Tool | When to use | Command |
41-
|------|-------------|---------|
42-
| `query` | Find code by concept | `gitnexus_query({query: "auth validation"})` |
43-
| `context` | 360-degree view of one symbol | `gitnexus_context({name: "validateUser"})` |
44-
| `impact` | Blast radius before editing | `gitnexus_impact({target: "X", direction: "upstream"})` |
45-
| `detect_changes` | Pre-commit scope check | `gitnexus_detect_changes({scope: "staged"})` |
46-
| `rename` | Safe multi-file rename | `gitnexus_rename({symbol_name: "old", new_name: "new", dry_run: true})` |
47-
| `cypher` | Custom graph queries | `gitnexus_cypher({query: "MATCH ..."})` |
48-
49-
## Impact Risk Levels
50-
51-
| Depth | Meaning | Action |
52-
|-------|---------|--------|
53-
| d=1 | WILL BREAK — direct callers/importers | MUST update these |
54-
| d=2 | LIKELY AFFECTED — indirect deps | Should test |
55-
| d=3 | MAY NEED TESTING — transitive | Test if critical path |
56-
5725
## Resources
5826

5927
| Resource | Use for |
6028
|----------|---------|
61-
| `gitnexus://repo/9ruby-home/context` | Codebase overview, check index freshness |
62-
| `gitnexus://repo/9ruby-home/clusters` | All functional areas |
63-
| `gitnexus://repo/9ruby-home/processes` | All execution flows |
64-
| `gitnexus://repo/9ruby-home/process/{name}` | Step-by-step execution trace |
65-
66-
## Self-Check Before Finishing
67-
68-
Before completing any code modification task, verify:
69-
1. `gitnexus_impact` was run for all modified symbols
70-
2. No HIGH/CRITICAL risk warnings were ignored
71-
3. `gitnexus_detect_changes()` confirms changes match expected scope
72-
4. All d=1 (WILL BREAK) dependents were updated
73-
74-
## Keeping the Index Fresh
75-
76-
After committing code changes, the GitNexus index becomes stale. Re-run analyze to update it:
77-
78-
```bash
79-
npx gitnexus analyze
80-
```
81-
82-
If the index previously included embeddings, preserve them by adding `--embeddings`:
83-
84-
```bash
85-
npx gitnexus analyze --embeddings
86-
```
87-
88-
To check whether embeddings exist, inspect `.gitnexus/meta.json` — the `stats.embeddings` field shows the count (0 means no embeddings). **Running analyze without `--embeddings` will delete any previously generated embeddings.**
89-
90-
> Claude Code users: A PostToolUse hook handles this automatically after `git commit` and `git merge`.
29+
| `gitnexus://repo/9ruby-site/context` | Codebase overview, check index freshness |
30+
| `gitnexus://repo/9ruby-site/clusters` | All functional areas |
31+
| `gitnexus://repo/9ruby-site/processes` | All execution flows |
32+
| `gitnexus://repo/9ruby-site/process/{name}` | Step-by-step execution trace |
9133

9234
## CLI
9335

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ npm install
2020
npm run dev # http://localhost:3000
2121
```
2222

23+
## Environment
24+
25+
Copy `.env.example` to `.env.local` for local-only secrets.
26+
27+
- `OPENROUTER_API_KEY` uses OpenRouter first, defaulting to the free `openrouter/free` router.
28+
- `GROQ_API_KEY` is the second provider, defaulting to `llama-3.1-8b-instant`.
29+
- `GEMINI_API_KEY` is the third provider, defaulting to `gemini-2.5-flash-lite`.
30+
- Without an AI provider key, the homepage uses local deterministic copy.
31+
2332
## Project Structure
2433

2534
```

components.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "radix-nova",
4+
"rsc": true,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "",
8+
"css": "src/app/globals.css",
9+
"baseColor": "neutral",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"iconLibrary": "lucide",
14+
"rtl": false,
15+
"aliases": {
16+
"components": "@/components",
17+
"utils": "@/lib/utils",
18+
"ui": "@/components/ui",
19+
"lib": "@/lib",
20+
"hooks": "@/hooks"
21+
},
22+
"menuColor": "default",
23+
"menuAccent": "subtle",
24+
"registries": {}
25+
}

0 commit comments

Comments
 (0)