Skip to content

Commit 29e8c9d

Browse files
authored
Merge branch 'main' into claude/test-finops-formatting-01AfyN3rkDU7fn9G5SpZSM77
2 parents 5fd6316 + 8eb13d4 commit 29e8c9d

7 files changed

Lines changed: 1769 additions & 10 deletions

File tree

.opencode/skills/sql-translate/SKILL.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: Translate SQL queries between database dialects (Snowflake, BigQuer
77

88
## Requirements
99
**Agent:** builder or migrator (may write translated SQL to files)
10-
**Tools used:** sql_translate, read, write, sql_validate
10+
**Tools used:** sql_translate, read, write, altimate_core_validate
1111

1212
Translate SQL queries from one database dialect to another using sqlglot's transpilation engine.
1313

@@ -36,7 +36,7 @@ Translate SQL queries from one database dialect to another using sqlglot's trans
3636
- Any warnings about lossy translations or features that need manual review
3737

3838
6. **Offer next steps** if applicable:
39-
- Suggest running `sql_validate` on the translated SQL to verify syntax
39+
- Suggest running `altimate_core_validate` on the translated SQL to verify syntax
4040
- Offer to write the translated SQL to a file
4141
- Offer to translate additional queries
4242

@@ -65,4 +65,4 @@ The user invokes this skill with optional dialect and SQL arguments:
6565
| Oracle | `oracle` |
6666
| Trino/Presto | `trino` / `presto` |
6767

68-
Use the tools: `sql_translate`, `read`, `write`, `sql_validate`.
68+
Use the tools: `sql_translate`, `read`, `write`, `altimate_core_validate`.

packages/opencode/src/agent/agent.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export namespace Agent {
168168
PermissionNext.fromConfig({
169169
"*": "deny",
170170
// SQL read tools
171-
sql_execute: "allow", sql_validate: "allow", sql_analyze: "allow",
171+
sql_execute: "allow", altimate_core_validate: "allow", sql_analyze: "allow",
172172
sql_translate: "allow", sql_optimize: "allow", lineage_check: "allow",
173173
sql_explain: "allow", sql_format: "allow", sql_fix: "allow",
174174
sql_autocomplete: "allow", sql_diff: "allow",
@@ -184,7 +184,7 @@ export namespace Agent {
184184
finops_unused_resources: "allow", finops_role_grants: "allow",
185185
finops_role_hierarchy: "allow", finops_user_roles: "allow",
186186
// Core tools
187-
altimate_core_validate: "allow", altimate_core_check: "allow",
187+
altimate_core_check: "allow",
188188
altimate_core_rewrite: "allow",
189189
// Read-only file access
190190
read: "allow", grep: "allow", glob: "allow",

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ You are altimate-code in analyst mode — a read-only data exploration agent.
22

33
You CANNOT modify any files or execute destructive SQL. You can only:
44
- Execute SELECT queries (enforced by AltimateCore read-only mode) via `sql_execute`
5-
- Validate and lint SQL via `sql_validate`
5+
- Validate and lint SQL via `altimate_core_validate`
66
- Analyze SQL for anti-patterns and optimization opportunities via `sql_analyze`
77
- Inspect database schemas via `schema_inspect`
88
- Check column-level lineage via `lineage_check`
@@ -41,7 +41,7 @@ Remember: your users are hired to generate insights, not warehouse bills. Every
4141
- /cost-report — Snowflake cost analysis with optimization suggestions
4242
- /query-optimize — Query optimization with anti-pattern detection
4343
- /sql-translate — Cross-dialect SQL translation with warnings (analysis only; writing translated files requires the builder agent)
44-
- /impact-analysis — Downstream impact analysis using lineage + manifest
44+
- /dbt-analyze — Downstream impact analysis using lineage + manifest
4545
- /lineage-diff — Compare column lineage between SQL versions
4646
- /data-viz — Build interactive data visualizations, dashboards, charts, and analytics views from query results
4747
Note: Skills that write files (/generate-tests, /model-scaffold, /yaml-config, /dbt-docs, /medallion-patterns, /incremental-logic) require the builder agent.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ You are altimate-code in builder mode — a data engineering agent specializing
1010
You have full read/write access to the project. You can:
1111
- Create and modify dbt models, SQL files, and YAML configs
1212
- Execute SQL against connected warehouses via `sql_execute`
13-
- Validate SQL with AltimateCore via `altimate_core_validate` (syntax + schema references)
13+
- Validate SQL syntax and schema references via `altimate_core_validate`
1414
- Analyze SQL for anti-patterns and performance issues via `sql_analyze`
1515
- Inspect database schemas via `schema_inspect`
1616
- Search schemas by natural language via `schema_search`
@@ -41,7 +41,7 @@ altimate-dbt info # Project metadata
4141

4242
When writing SQL:
4343
- Always run `sql_analyze` to check for anti-patterns before finalizing queries
44-
- Validate SQL with `sql_validate` before executing against a warehouse
44+
- Validate SQL with `altimate_core_validate` before executing against a warehouse
4545
- Use `schema_inspect` to understand table structures before writing queries
4646
- Prefer CTEs over subqueries for readability
4747
- Include column descriptions in dbt YAML files

0 commit comments

Comments
 (0)