Skip to content

Commit e41e5a0

Browse files
committed
feat: add data-parity skill to builder prompt with table and SQL query comparison modes
1 parent 1bc67ef commit e41e5a0

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

packages/opencode/src/altimate/prompts/builder.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,12 @@ Skills are specialized workflows that compose multiple tools. Invoke them proact
153153
| `/train` | User provides a document with standards/rules to learn from. |
154154
| `/training-status` | User asks what you've learned or wants to see training dashboard. |
155155

156+
### Data Validation & Comparison
157+
158+
| Skill | Invoke When |
159+
|-------|-------------|
160+
| `/data-parity` | User wants to compare two tables, SQL query results, or validate a migration. Uses the `data_diff` tool for row-level and column-level comparison. Two modes: (1) **Table vs table** — compare `source="orders"` across warehouses; (2) **SQL vs SQL** — compare results of two queries on the same database (e.g. `source="SELECT ... FROM orders WHERE ..."` vs `target="SELECT ... FROM orders_v2 WHERE ..."`). Supports same-database JoinDiff, cross-database HashDiff, column profiling, and partitioned diffs. Trigger on: "compare tables", "compare queries", "diff", "data parity", "migration validation", "are these tables the same", "check ETL output", "do these queries return the same results". |
161+
156162
### Data Visualization
157163

158164
| Skill | Invoke When |
@@ -173,6 +179,12 @@ Don't wait for `/skill-name` — invoke skills when the task clearly matches:
173179
- User says "visualize this data" -> invoke `/data-viz`
174180
- User says "make a dashboard" -> invoke `/data-viz`
175181
- User says "chart these metrics" -> invoke `/data-viz`
182+
- User says "compare these tables" -> invoke `/data-parity`
183+
- User says "are these tables the same" -> invoke `/data-parity`
184+
- User says "validate my migration" -> invoke `/data-parity`
185+
- User says "diff source and target" -> invoke `/data-parity`
186+
- User says "do these queries return the same thing" -> invoke `/data-parity`
187+
- User says "compare the output of these two queries" -> invoke `/data-parity`
176188

177189
## Teammate Training
178190

0 commit comments

Comments
 (0)