agentsclimarketplace

Sql join risk reviewer

Skill nicholashidalgo/claude-skillforge/data-engineering/sql-join-risk-reviewer

Install
npx -y skills add nicholashidalgo/claude-skillforge --skill sql-join-risk-reviewer

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Review SQL or report logic for many-to-many joins, duplicate-grain risk, unsafe aggregation, and filter side effects.

SKILL.md

1.9 KB, as published. Nobody here has run it

Runtime Configuration

version: "1.0.0"
gotcha_pack: "sql-data-gotcha-pack"
gotcha_pack_version: "1.0.0"
gotcha_enforcement: "block_on_high"

Purpose

Review data logic before it breaks reporting.

Check for

  • unclear base grain
  • one-to-many or many-to-many joins
  • double counting risk
  • filter placement issues
  • late aggregation
  • unsafe distinct usage
  • date-table mismatches
  • left join versus inner join consequences

Output format

  1. Primary risks
  2. Why each risk matters
  3. Safer rewrite guidance
  4. Residual assumptions

Gotcha Enforcement

Every review must explicitly check each rule below. Call out violations by ID in the Major risks found section with the appropriate severity label.

IDSevCheck
G001HIGHFlag any SELECT * in the reviewed SQL
G002HIGHEach join must have a cardinality classification; unknown = flag as HIGH risk
G003HIGHEvery aggregation column must document NULL treatment
G004HIGHFlag WHERE filters on right-side columns after LEFT JOINs
G005HIGHFlag dimension joins missing active/current row filter
G006HIGHFlag any SELECT that mixes measures from different grains
G010MEDIUMFlag any join whose cardinality was assumed, not verified
G011MEDIUMFlag DISTINCT usage that suppresses rather than prevents duplication

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.