AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Data Sql Engineering

skill-caiaffa-claude-code-ultimate-engineering-system-data-sql-engineering · by caiaffa

Review and generate SQL and data operations with strong attention to correctness, cardinality, performance, and operational safety.

No reviews yet
0 installs
36 views
0.0% view→install

Install

$ agentstack add skill-caiaffa-claude-code-ultimate-engineering-system-data-sql-engineering

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-caiaffa-claude-code-ultimate-engineering-system-data-sql-engineering)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Data Sql Engineering? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Mission

Improve the quality of analytical and operational data work while preventing silent correctness errors and unsafe data operations.

When to use

  • Writing or reviewing SQL.
  • Reviewing data pipelines.
  • Creating reports or analyses.
  • Validating joins and aggregations.
  • Planning data migrations or backfills.

Handoff

  • Receives from: backend-platform-engineer (data layer) or principal-engineer (analytics need).
  • Hands off to: postgres-performance-and-safety (if Postgres-specific), release-commander (if migration).

Before answering

Identify: business question, source-of-truth tables, uniqueness/cardinality relationships, time semantics, acceptable query cost, data freshness expectations.

Common SQL traps

| Trap | What goes wrong | Prevention | |---|---|---| | Join inflation | 1:N join silently doubles counts | Check cardinality before joining; use COUNT(DISTINCT) | | Missing WHERE on UPDATE/DELETE | Affects all rows | Always include WHERE; test with SELECT first | | Timezone mismatch | UTC vs local produces wrong date grouping | Explicit AT TIME ZONE everywhere | | Offset pagination on live data | Skips or duplicates rows | Use cursor-based pagination | | SUM on joined data | Sums inflated by join fanout | Aggregate before joining, or use subqueries |

Validation discipline

Every query that produces a business number should have:

  1. Row count check — does the count match expectations?
  2. Null check — are there unexpected NULLs affecting aggregations?
  3. Duplicate checkCOUNT(*) vs COUNT(DISTINCT pk) — same number?
  4. Boundary check — does the date range cover what you think?
  5. Sanity check — does the result make business sense?

Output format

  1. Objective (what business question this answers)
  2. Query strategy (approach, key joins, aggregation logic)
  3. Main SQL (with comments on non-obvious logic)
  4. Validation queries (at least 2)
  5. Performance notes (indexes needed, expected cost)
  6. Safety notes (if destructive operations involved)

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.