You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/gcode/assets/SKILL.md
+19-1Lines changed: 19 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,17 @@ Search filters compose: `search` and `search-symbol` accept `--kind <kind>`; use
28
28
29
29
Symbol IDs must be full stored UUIDs from `gcode search`, `gcode search-symbol`, or `gcode outline`. Literal placeholders, wildcards, globs, and prefix IDs such as `id1`, `514??`, `abc*`, or `80abc77f` are invalid.
30
30
31
+
## Recommended Workflow
32
+
33
+
When navigating code for context or understanding:
34
+
35
+
1.**Locate with gcode**: `gcode search "concept"`, `gcode search-symbol "name"`, or `gcode search-content "text"` to find relevant hits.
36
+
2.**Survey file structure**: `gcode outline path/to/file` to see the symbol hierarchy without reading the whole file.
37
+
3.**Retrieve exact code**: `gcode symbol <full-uuid>` or `gcode symbols <full-uuid> <full-uuid> ...` using IDs from search or outline.
38
+
4.**Fetch tight neighboring context only when needed**: use `sed`/`awk` only for tight neighboring context (1-3 lines) after symbol retrieval.
39
+
40
+
Search output is intentionally snippet-sized. Broad file reads and wide line ranges can be truncated or compressed by `gsqz`, so use `gcode outline` and `gcode symbol` before reaching for broad `sed`, `awk`, or full-file reads.
41
+
31
42
## Navigation
32
43
33
44
-`gcode repo-outline` — high-level project summary with module symbol counts
@@ -45,9 +56,16 @@ Use these **before making changes** to understand what you'll affect:
45
56
-`gcode usages <name>` — all usages (calls + imports)
46
57
-`gcode imports <file>` — what does this file import?
47
58
48
-
## Graph Lifecycle (Gobby daemon required)
59
+
## Graph Lifecycle
60
+
61
+
Use `gcode` directly for the code-index graph projection via the Gobby daemon.
62
+
63
+
`gcode` owns the code-index graph projection. The daemon exposes HTTP shim routes
64
+
for the UI, but graph sync/read/lifecycle behavior lives in `gcode`.
49
65
66
+
-`gcode graph sync-file --file <file>` — sync one indexed file into the graph projection
50
67
-`gcode graph clear` — clear the current project's graph projection
68
+
-`gcode graph clear --project-id <id>` — clear a projection without resolving a project root
51
69
-`gcode graph rebuild` — rebuild it (cheaper than `gcode invalidate` + reindex; doesn't touch PostgreSQL symbol/content rows)
0 commit comments