Skip to content

feat: add cortex_skill materialization for agent skills (#7) - #8

Merged
Matts52 merged 1 commit into
mainfrom
skill-tool-representation-support
Jul 21, 2026
Merged

feat: add cortex_skill materialization for agent skills (#7)#8
Matts52 merged 1 commit into
mainfrom
skill-tool-representation-support

Conversation

@Matts52

@Matts52 Matts52 commented Jul 21, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds a new cortex_skill materialization that uploads a skill directory (SKILL.md + optional companion scripts) to a Snowflake named stage via PUT, creating the stage automatically if it does not exist
  • Adds cortex_skill_path(ref(...)) macro that wires a skill model into a cortex_agent spec with correct DAG ordering and automatic stage path resolution — no hard-coded paths or vars needed
  • Adds integration test models (forecaster_skill, agent_with_skill) and extends the compile test script to cover skill models

Test plan

  • DuckDB compile tests pass for all agent and skill models
  • cortex_skill_path(ref('forecaster_skill')) resolves stage path correctly at compile time
  • Confirmed via Snowflake Python connector source that PUT is detected correctly even with dbt's prepended query comment (remove_starting_comments() in _sql_util.py)
  • Live Snowflake validation of PUT 'file://dir/*' @stage/ wildcard upload via dbt's execution layer still needed before merge

🤖 Generated with Claude Code

 #7)

Adds a new `cortex_skill` materialization that uploads a skill directory
(SKILL.md + optional companion scripts) to a Snowflake named stage via PUT,
creating the stage automatically if it does not exist. A new
`cortex_skill_path(ref(...))` macro wires skill models to agent specs with
correct DAG ordering and automatic stage path resolution — no hard-coded
paths or vars needed. Adds integration test models (forecaster_skill,
agent_with_skill) and extends the compile test script to cover skill models.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Matts52
Matts52 merged commit a35070d into main Jul 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant