AGENT SKILL

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.

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

01 前言 Front Matter

name
coalesce-review-risk
description
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.

03 SKILL.md 正文

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

Review & Risk

Analyze a change so the user can decide whether to approve it. This is read-only: never edit, stage, commit, or run coa create / coa run without --dry-run. Use coa output as evidence and do not minimize risk.

References: coa-cli for selectors, sql-format for the rules being checked.

Checklist

  1. Read the diff (git diff, git diff --staged). List the nodes added, modified, deleted, and renamed.
  2. For each modified node, read the changed SQL against the upstream nodes it reads from. Check that join keys pair the columns that actually relate the two tables, and that filters, aggregations, and column mappings still mean what the node's name and neighbors say they should. A change can be valid SQL and still wrong.
  3. Run coa validate -d <dir> --json and report every error and warning. The JSON is nested: data.validation.results[] ({ file, status, errors: [{ path, message }] }) and data.validation.summary. Quote the failing file, path, and message.
  4. Run coa create -d <dir> --dry-run --json and coa run -d <dir> --dry-run --json. Report template failures: empty SQL, comment-only output, missing DDL.
  5. Blast radius: enumerate { NODE }+ for each touched node (+{ NODE } is upstream; do not reverse them).
  6. Check which jobs (includeSelector / excludeSelector) and subgraphs (steps) pick up the change.

Risks to flag

  • A .sql node whose @nodeType is not a fileVersion: 2 type: columns are silently empty.
  • A hand-authored .yml node with empty or partial operation.config: it passes validate and the create dry-run but renders zero run SQL.
  • Deleted or renamed nodes that still have dependents or stale ref()s.
  • One-argument ref(), hardcoded db.schema.table, or column annotations that are neither native (@isBusinessKey, @isChangeTracking, @id, @description) nor declared by the node type.
  • Edits to shared config: nodeTypes/, locations, workspace, environments, jobs, macros, data.yml, fileVersion bumps, template swaps. A new nodeTypes/ folder counts; ask whether the user requested a custom type.
  • Any change under apps/: this is code, not config. A workspace app runs with the user's permissions as soon as anyone opens it in Coalesce. Read the changed files and flag network calls to outside hosts, writes outside the app's data folder, exec or shell: true, innerHTML with workspace values, reads of ~/.coa/config or other credentials, committed secrets, CORS headers, and a removed Host or write check. Rules: coalesce-create-app.

Report

State a verdict, then the findings with the specific file, column, and coa output behind each. Say plainly when the analysis is incomplete (validate could not run, selectors unscoped).

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-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).

★ 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