Skill: repo-navigator
Description
This skill acts as the entry point for code exploration. Instead of full-text searching, it consults architectural indices (crd-interaction.json and rpc-topology.json) to find the "Anchor File" and then uses LSP for fine-grained navigation.
Reasoning Flow
When asked "Where is the logic for X?", follow this hierarchy:
- •Identify Category: Is it a K8s Resource (CRD) or a gRPC Communication (RPC)?
- •Consult Maps:
- •If CRD: Query
context/indices/crd-interaction.json. - •If RPC: Query
context/indices/rpc-topology.json.
- •If CRD: Query
- •LSP Exploration: Once the file is found, use LSP
find-definitionorfind-referenceson key symbols likesyncHandlerorReconcile.
Usage
Run the helper script to query indices (uses defensive prelude: default dry-run, --execute to run, --json-log, --no-color, --force unused):
bash
# Find controller for a CRD bash .opencode/skills/repo-navigator/repo_navigator.sh --crd Volume # Find topology for a gRPC Service bash .opencode/skills/repo-navigator/repo_navigator.sh --rpc InstanceServiceClient