Skip to content

feat: builder prompt rewrite + dbt skills consolidation + altimate-dbt CLI#174

Closed
suryaiyer95 wants to merge 10000 commits intomainfrom
feat/builder-prompt-and-dbt-skills
Closed

feat: builder prompt rewrite + dbt skills consolidation + altimate-dbt CLI#174
suryaiyer95 wants to merge 10000 commits intomainfrom
feat/builder-prompt-and-dbt-skills

Conversation

@suryaiyer95
Copy link
Copy Markdown
Contributor

Summary

  • Rewrite builder.txt from flat tool list to skills-first architecture with altimate_core offline SQL analysis tools surfaced
  • Add altimate-dbt CLI (packages/dbt-tools/) — 16 commands wrapping @altimateai/dbt-integration for one-shot dbt operations
  • Consolidate 8 dbt skills into 5 with progressive references/ system for lean AI routing
  • Fix dbt-tools CLI error handling in columns, init, and main dispatch

Changes

Builder Prompt (packages/opencode/src/altimate/prompts/builder.txt)

  • Skills-first architecture: organized tables for dbt (5), SQL (3), Training (3) skills
  • Surface 6 altimate_core tools (validate, semantics, lint, column_lineage, correct, grade) — previously invisible to the agent
  • Structured 5-phase workflow: Explore → Plan → Analyze → Execute → Validate
  • Common Pitfalls section from benchmark failure analysis
  • Removed verbose pre-execution protocol and FinOps tools

altimate-dbt CLI (packages/dbt-tools/)

  • 16 commands: init, doctor, info, compile, build, run, test, execute, columns, graph, deps, etc.
  • Config at ~/.altimate-code/dbt.json, auto-detected via altimate-dbt init
  • JSON output to stdout, logs to stderr
  • Python bridge fix for altimate_python_packages bundling

Skills Consolidation (.opencode/skills/)

  • New: dbt-develop, dbt-test, dbt-troubleshoot, dbt-analyze, dbt-docs (5 focused skills)
  • Deleted: dbt-cli, model-scaffold, generate-tests, yaml-config, incremental-logic, medallion-patterns, impact-analysis (7 merged)
  • Each skill has lean SKILL.md + references/ directory for progressive context

Test plan

  • Verify altimate-dbt init detects dbt project and creates config
  • Verify altimate-dbt build --model <name> compiles and runs models
  • Verify builder agent uses skills (dbt-develop, dbt-troubleshoot) when appropriate
  • Verify altimate_core_* tools appear in agent's tool list
  • Run Spider2-DBT benchmark to compare pass rate vs main

🤖 Generated with Claude Code

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.