AGENT SKILL

coalesce-sql-transformation

Use when editing the SQL inside existing Coalesce V2 node files (.sql) — changing column expressions, joins, filters, CTEs, inline column annotations, or ref() macros. Not for creating/deleting node files (use coalesce-pipeline-structure).

License 许可
MIT
最近更新
2026-11-11
Stars
★ 0
Forks
0

01 前言 Front Matter

name
coalesce-sql-transformation
description
Use when editing the SQL inside existing Coalesce V2 node files (.sql) — changing column expressions, joins, filters, CTEs, inline column annotations, or ref() macros. Not for creating/deleting node files (use coalesce-pipeline-structure).

03 SKILL.md 正文

<!-- coalesce-node-managed: true -->

Prerequisite: load coalesce-pipelines first if it is not already loaded in this session. This skill assumes its rules and core loop.

SQL Transformation

Scope: the SELECT body of existing nodes/<LOCATION>-<NAME>.sql files. Column expressions, joins, filters, aggregations, CTEs, inline column annotations, and {{ ref(...) }} macros. Format details: sql-format reference.

Out of scope here

  • Creating or deleting node files (coalesce-pipeline-structure).
  • .yml nodes (V1 nodes reference), jobs, subgraphs, locations, macros.
  • Changing @nodeType, bumping a type's fileVersion, or anything under nodeTypes/. If the node's type turns out to be V1 (columns silently empty), stop and ask.
  • Nodes the user did not name.

Workflow, per node

  1. Read .claude/workspace-context.json if present, then the target file and the upstream nodes it reads from. Confirm every column you plan to use exists upstream.
  2. Check that each {{ ref("LOC", "NAME") }} in the file points at a real nodes/LOC-NAME.sql or .yml. A ref with the wrong location is a latent bug in the node you were asked to edit: fix the location argument and say that you did.
  3. Make the edit. Keep @id and @nodeType untouched on the first lines, keep the file's alias and quote style, and give every new ref both arguments in double quotes.
  4. Verify:
    • coa validate -d <dir>
    • coa create -d <dir> --include "{ NODE }" --dry-run --verbose
    • coa run -d <dir> --include "{ NODE }" --dry-run --verbose
  5. Repeat until validate shows 0 errors and 0 warnings and both dry-runs render the change. Touch downstream nodes only if asked.

04 同仓库更多 Skills

Coalesce-Software-Inc
Coalesce-Software-Inc/coalesce-platform-skills

coalesce-transform-mcp-install

Use when installing, connecting, or troubleshooting the hosted Coalesce Transform MCP server in an MCP client (Claude Code, Claude Desktop, Cursor, VS Code, Cortex Code) — endpoint URL, access token handling, registration, and verification. Not for coa CLI auth (use coalesce-cloud-api).

★ 0
Coalesce-Software-Inc
Coalesce-Software-Inc/coalesce-platform-skills

coalesce-review-risk

Use when reviewing Coalesce pipeline changes for correctness, impact, and risk before approval — READ-ONLY analysis of diffs, coa validate/dry-run evidence, and downstream blast radius. Never edits files or runs warehouse-mutating commands.

★ 0
Coalesce-Software-Inc
Coalesce-Software-Inc/coalesce-platform-skills

coalesce-rename-node-cascade

Rename a Coalesce node and cascade the new name through every downstream ref(), job selector, and subgraph selector, with quote-agnostic matching and validation.

★ 0
Coalesce-Software-Inc
Coalesce-Software-Inc/coalesce-platform-skills

coalesce-quality-test-authoring

Decide which data quality tests a table, view or model needs, and write them in whatever test format the project already uses (dbt, SYNQ YAML, SQLMesh audits, Soda, Great Expectations, custom SQL, and so on). Use it when asked to add, suggest, review or extend data tests for a warehouse asset, or when a change to a model should come with tests.

★ 0
Coalesce-Software-Inc
Coalesce-Software-Inc/coalesce-platform-skills

coalesce-pipelines

Use when working in a Coalesce Transform repository (data.yml + nodes/ with <LOCATION>-<NAME>.sql/.yml files) — building, editing, validating, or running data transformation pipelines with the coa CLI, including editing V1 .yml nodes and shared config (data.yml, locations, environments, jobs, node types). Start here; it routes to the more specific coalesce-* skills.

★ 0
Coalesce-Software-Inc
Coalesce-Software-Inc/coalesce-platform-skills

coalesce-pipeline-structure

Use when creating, deleting, renaming, or rewiring Coalesce nodes, subgraphs, or jobs — changing the structural topology of the transformation DAG. Not for editing SQL inside an existing node (use coalesce-sql-transformation).

★ 0