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

Sql Report Query Builder

skill-nicholashidalgo-claude-skillforge-sql-report-query-builder · by nicholashidalgo

Build report-safe SQL from business requests with grain control, join discipline, filter logic, and validation notes.

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

Install

$ agentstack add skill-nicholashidalgo-claude-skillforge-sql-report-query-builder

✓ 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-nicholashidalgo-claude-skillforge-sql-report-query-builder)

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 Sql Report Query Builder? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Runtime Configuration

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

Purpose

Turn a business request into production-grade SQL for reporting or analysis.

Process

  1. Identify business objective.
  2. Define the intended grain before writing SQL.
  3. List source tables, required joins, filters, and date logic.
  4. Flag join-risk before generating the query.
  5. Separate ad hoc SQL from report-safe SQL when relevant.
  6. Add a validation checklist after the SQL.

Required checks

  • Base grain is explicit
  • Join cardinality is assessed
  • Aggregation level matches requested output
  • Null handling is deliberate
  • Date filters use business-safe logic
  • Filter placement does not silently change row inclusion
  • Naming is readable and consistent

Output format

  1. Assumptions and grain
  2. SQL
  3. Validation checklist
  4. Risks or open questions

Gotcha Enforcement

Before finalizing any SQL output, verify each rule below. A HIGH violation must be corrected before responding. A MEDIUM violation must be flagged with an explanation in the risks section.

| ID | Sev | Check | |------|--------|---------------------------------------------------------------------------------| | G001 | HIGH | No SELECT * in any CTE or final SELECT | | G002 | HIGH | Every join has a stated cardinality; if unknown, provide the verification query | | G003 | HIGH | Every AVG, SUM, or COUNT documents its NULL behavior explicitly | | G004 | HIGH | No WHERE filter on a right-side column after a LEFT JOIN | | G005 | HIGH | Every dimension join includes an active/current filter or documents why not | | G006 | HIGH | All measures in one SELECT are at the same grain; mixed grains use separate CTEs| | G007 | HIGH | Validation queries use a different access path than the report SQL | | G010 | MEDIUM | Cardinality of every join key is confirmed or a check query is provided | | G011 | MEDIUM | Any DISTINCT is accompanied by a root-cause note, not just applied silently |

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.