Commit 384335d
feat: skill follow-up suggestions to improve dbt experience (#546)
* feat(dbt-tools): build entire project when no --model flag given
`altimate-dbt build` without arguments now builds the whole project via
`unsafeBuildProjectImmediately`, replacing the need for the separate
`build-project` command. Updated all dbt skill references accordingly.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* test(dbt-tools): add unit tests for build command routing
Covers: no-model → project build, --model → single model, --downstream flag.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix: address code review — remove `build-project` command, update help text, add stderr test
- Remove `build-project` from command map and switch case in `index.ts`
(now redundant since `build` without `--model` does the same thing)
- Update `build` help text to reflect optional `--model`
- Remove unused `project` import from `build.test.ts`
- Add test for `format()` stderr error path
- Fix comment alignment in all 5 `altimate-dbt-commands.md` reference files
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: add missing `fullOutput` field to satisfy `CommandProcessResult` type
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* feat: add follow-up suggestions after skill completion to reduce first-run churn
Telemetry analysis showed 78% of users churn after a single 2.4-minute session,
mostly dbt developers who run one skill and leave. Users who reach warehouse/schema
tools retain at 24.8% vs 3.3% for those who don't.
This adds contextual "What's Next?" suggestions after skill execution:
- Maps each skill to relevant follow-up skills (e.g., `dbt-develop` → `dbt-test`, `dbt-docs`)
- Includes a warehouse discovery nudge to bridge non-warehouse users
- Appended after `</skill_content>` so it doesn't interfere with skill parsing
- Covers all dbt skills, SQL skills, and data quality skills (12 skills total)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: address code review — truncation-safe followups, telemetry, immutable `get()`
- Move follow-up suggestions before `<skill_content>` so they survive output truncation
- Add `has_followups` and `followup_count` to `skill_used` telemetry event
- Return `readonly Suggestion[]` via `Object.freeze()` from `get()` to prevent shared state mutation
- Rewrite integration tests to verify followups appear before `<skill_content>` in output assembly
- Wrap custom return block in `altimate_change` markers for upstream safety
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* test: add e2e tests for skill follow-up suggestions via `SkillTool.execute`
- Test that `dbt-develop` skill output includes follow-ups before `<skill_content>`
- Test that unmapped skills produce no follow-up section
- Both tests invoke the real `SkillTool.execute` path end-to-end
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Michiel De Smet <mdesmet@gmail.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 33c331b commit 384335d
File tree
15 files changed
+606
-17
lines changed- .opencode/skills
- dbt-analyze
- references
- dbt-develop/references
- dbt-docs/references
- dbt-test/references
- dbt-troubleshoot/references
- packages
- dbt-tools
- src
- commands
- test
- opencode
- src
- altimate/telemetry
- skill
- tool
- test
- skill
- tool
15 files changed
+606
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | | - | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | | - | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | | - | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | | - | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | | - | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
171 | 170 | | |
172 | 171 | | |
173 | 172 | | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | 173 | | |
178 | 174 | | |
179 | 175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
| 352 | + | |
| 353 | + | |
352 | 354 | | |
353 | 355 | | |
354 | 356 | | |
| |||
0 commit comments