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: .codex/skills/query-plan-snapshot-cli/SKILL.md
+53-1Lines changed: 53 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,10 +5,62 @@ description: Use QueryPlanSnapshotCli to capture and compare RDF4J query plans,
5
5
6
6
# query-plan-snapshot-cli
7
7
8
-
Use this skill to run reproducible query-plan captures and classify likely regression/improvement signals.
8
+
Use this skill to run reproducible query-plan captures, triage historical theme-query benchmark results, and classify likely regression/improvement signals.
9
9
10
10
## Fast workflow
11
11
12
+
1. Capture raw benchmark output into a normalized result file when needed.
13
+
2. Analyze the newest dated run against historical results.
14
+
3. Drill into the fastest known runs for a specific theme/query.
15
+
4. If needed, capture baseline/candidate plan snapshots and diff them semantically.
- Default mode: newest dated file only for the “latest” baseline; compares against all other `results-*.md`, including `results-develop.md` and `results-main-branch.md`, but prints only queries where latest is more than 20% slower than historical best.
-`--top N`: top N regressions only; implies regression sorting.
53
+
-`--all`: prints every latest query; if latest is a new best it prints how much faster it is than the previous best.
54
+
- Query detail mode: top three runs sorted by score ascending; ties prefer richer files with plan/query content.
55
+
-`plan no | query yes`: optimized query rendered, no physical plan block in that result file.
56
+
-`plan no | query no`: summary-only run or no per-query capture in that file.
57
+
58
+
Use this path when the goal is optimizer-loop work: find the fastest known plan/query for a theme/query, then compare new runs back to that history before touching production logic.
59
+
60
+
## Snapshot diff workflow
61
+
62
+
Use this when you need semantic plan diffs between two controlled captures of the same query.
63
+
12
64
1. Capture baseline run (main/reference commit).
13
65
2. Capture candidate run (changed commit) with same query selector + `--query-id`.
0 commit comments