When to Use This Skill
Use the Exploring skill when you need to:- Understand how a feature or system works
- Discover the project structure and architecture
- Trace execution flows through the codebase
- Navigate unfamiliar parts of the code
- Answer “How does X work?” questions
Example Scenarios
How does authentication work?
How does authentication work?
Use
gitnexus_query({query: "authentication"}) to find all auth-related execution flows, then drill down with gitnexus_context on specific symbols.What's the project structure?
What's the project structure?
Read
gitnexus://repo/{name}/clusters to see all functional areas with cohesion scores, then explore individual clusters.Show me the main components
Show me the main components
Use
gitnexus_query with broad terms like “main” or “core”, then examine the process-grouped results.Where is the database logic?
Where is the database logic?
Query for “database” or “db” to find all database-related symbols grouped by execution flow.
Workflow
Follow these steps for effective code exploration:Step-by-Step Guide
1. Discover Indexed Repositories- Number of indexed symbols
- Number of execution flows (processes)
- Index freshness status
- Available tools
- Processes: Execution flows related to your query (e.g., CheckoutFlow, RefundFlow)
- Symbols: Functions/classes grouped by which process they participate in
- Priorities: Which processes are most relevant
- Incoming calls: Who calls this function
- Outgoing calls: What this function calls
- Processes: Which execution flows include this symbol (with step index)
- File location: Exact path and line number
Checklist
Use this checklist to ensure thorough exploration:- READ
gitnexus://repo/{name}/contextfor overview and staleness check -
gitnexus_queryfor the concept you want to understand - Review returned processes and their priorities
-
gitnexus_contexton key symbols for callers/callees - READ process resource for full execution traces
- Read source files for implementation details
Resources Reference
Lightweight reads for navigation (100-500 tokens each):| Resource | What You Get | Token Cost |
|---|---|---|
gitnexus://repo/{name}/context | Stats, staleness warning | ~150 |
gitnexus://repo/{name}/clusters | All functional areas with cohesion scores | ~300 |
gitnexus://repo/{name}/cluster/{name} | Area members with file paths | ~500 |
gitnexus://repo/{name}/processes | All execution flows | ~400 |
gitnexus://repo/{name}/process/{name} | Step-by-step execution trace | ~200 |
Tools for Exploring
gitnexus_query
Find execution flows related to a concept:- Finding all code related to a feature
- Discovering execution flows you didn’t know about
- Understanding which symbols work together
gitnexus_context
Get 360-degree view of a symbol:- Understanding who calls a function
- Finding all dependencies of a symbol
- Seeing which execution flows involve this code
Example: “How does payment processing work?”
Here’s a complete walkthrough:Step 1: Get Context
Step 2: Query for Payment Processing
Step 3: Deep Dive on processPayment
Step 4: Trace Full Flow
Step 5: Read Implementation
Now readsrc/payments/processor.ts to see the actual implementation of processPayment.
Complete answer:
Payment processing in this codebase follows a 7-step checkout flow:The payment can also be triggered via webhook for subscription renewals (webhookHandler).
- Cart validation ensures items are available
processPaymentorchestrates the payment (src/payments/processor.ts:42)- Card details are validated via
validateCard- Stripe is charged via
chargeStripe- Transaction is saved to the database
- Confirmation email is sent
- Inventory is updated
Best Practices
Start Broad, Then Narrow
Use
query to find related processes, then context to drill down on specific symbols.Trust the Process Groups
GitNexus groups results by execution flow—this reveals architectural patterns.
Check Index Freshness
Always read
context first to ensure you’re working with up-to-date data.Follow the Trace
Process resources show you the exact order of execution—follow the steps.
Common Patterns
Understanding a Feature
Finding Entry Points
Understanding Data Flow
Next Steps
Try Debugging
Once you understand how code works, learn how to trace bugs through it