agentleFS
rk-chavalirk-chavali/gcp-de-skills/skills/de-pr-reviewer/SKILL.md

de-pr-reviewer

Skill0 starsChanged 3 months agoMITView on GitHub

Review a data engineering pull request covering SQL, Dataform, Airflow DAGs, or Terraform, and return blocking findings separated from suggestions. Use when the user asks for a code review, pastes a diff or PR link for pipeline code, asks whether a change is safe to merge, or asks what would break if they ship something.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read references/conventions.md.

    line 8
  2. Very specific:

    Read references/execution-model.md.

    line 54
  3. Distinctive:

    Do not invent findings to fill the sections.

    line 100
  4. Distinctive:

    If you are unsure whether something breaks, say so and name the check that would settle it.

    line 102
  5. Distinctive:

    No em dashes in review comments.

    line 104

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Data engineering PR reviewer

Read references/conventions.md. If the repo has its own conventions file, that one wins and you say so in the review.

Separate blocking from non-blocking, always

A review that mixes "this will corrupt production" with "prefer trailing commas" gets skimmed. Two sections, blocking first, and if there is nothing blocking, say so in the first line.

Blocking findings

Anything on this list blocks a merge.

Correctness

  • The grain changed and no downstream aggregate was updated.
  • A join that can fan out with no dedupe and no uniqueness assertion.
  • LEFT JOIN where an inner join is intended, changing the row count silently.
  • Timezone handling: CURRENT_DATE() with no timezone in a scheduled job.
  • A filter that drops rows in staging, hiding data from every consumer.
  • Non-idempotent writes. Re-running the task produces different output.

Safety

  • A schema change that breaks a contract with no version bump or notice.
  • Dropping or renaming a column that appears in another model or a dashboard.
  • WRITE_TRUNCATE on a whole table where a partition write was intended.
  • Terraform that destroys and re-creates a stateful resource. Read the plan output, not just the diff.
  • A new IAM binding at project scope, or any primitive role.
  • A service account key added anywhere.
  • Secrets, project ids, or emails hardcoded in the diff.

Operability

  • A new production table with no partition, no assertion, or no description.
  • A DAG with catchup=True and an old start date.
  • A sensor with no timeout, or a sensor in poke mode.
  • A new scheduled model with no tag, meaning it runs in no schedule.
  • A query whose cost is materially higher and unexplained. Ask for the dry run.

Non-blocking suggestions

Naming, CTE ordering, comment quality, minor readability, opportunities to consolidate. Cap this section at five items. Beyond five, the author stops reading and the blocking section loses its force.

Verify the diff against the warehouse

Read references/execution-model.md. Several blocking findings can be confirmed rather than suspected when a connection is available, and a confirmed finding survives an argument in the PR thread:

  • Changed or dropped column: get_table_info on the table, then a job history scan for queries referencing that column in the last 30 days. Name the consumers in the review.
  • New table with no partition: get_table_info confirms it.
  • Fan-out risk on a join: run the uniqueness check on the join key through execute_sql_readonly and report the actual duplicate count.

terraform plan is a read and worth running for the destroy list. apply is not. A review never mutates anything.

What to ask for when the diff is not enough

  • The dry run byte estimate for any new or changed scheduled query.
  • The terraform plan output for any infra change, specifically the destroy list.
  • The downstream references for any changed column:
grep -rn "column_name" definitions/ dags/ --include=*.sqlx --include=*.py
  • Who consumes this table, if the grain or schema moved.

Output format

VERDICT: block | approve-with-comments | approve

BLOCKING
1. <file:line> <what breaks, and what it breaks>
   Fix: <specific change>

SUGGESTIONS
- <file:line> <short>

QUESTIONS
- <the one thing you cannot tell from the diff>

Rules

  • Review what changed, plus what the change touches. A one-line SQL edit to a model with nine downstream dependents is not a one-line review.
  • Do not invent findings to fill the sections. "Nothing blocking, three small suggestions" is a complete and useful review.
  • If you are unsure whether something breaks, say so and name the check that would settle it. Do not soften a real risk into a suggestion.
  • No em dashes in review comments.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.