camilool8/harness-engineering-templates/sample-then-scale

Claude Code and agent skill by camilool8/harness-engineering-templates

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Run LIMIT 1000 / TABLESAMPLE first, inspect dtypes and shape, then graduate to the full query. The block-unbounded-sql hook rejects the unscoped form.

Install

npx vskill@latest install camilool8/harness-engineering-templates/sample-then-scale

SKILL.md

The same SKILL.md was published earlier as camilool8/harness-engineering-templates/sample-then-scale.

When to use

Every warehouse query. No exceptions.

How

  1. Start scoped. Append LIMIT 1000 to any new SELECT. For warehouses

that support it, prefer TABLESAMPLE BERNOULLI(1) over LIMIT — it surfaces row diversity that LIMIT may hide.

  1. Inspect. Print shape + dtypes + head. Verify the join cardinality

matches your mental model. Verify nullability where it matters.

  1. Estimate full-scale cost. For warehouses with EXPLAIN, run it; for

others, multiply: full-rows × cost-per-row-from-sample.

  1. Graduate. Remove the LIMIT only after the inspection passes and

the estimated cost is within budget.

Anti-patterns this skill prevents

  • The 200M-row SELECT * FROM events that doubles the warehouse bill.
  • Joins whose cardinality blows up by 10× because a key wasn't unique.
  • "It looked fine on 5 rows" — LIMIT 5 hides distribution problems.

Hook backing

The block-unbounded-sql shared hook (PreToolUse on Bash + warehouse-MCP) will reject an unscoped SELECT. Do not try to bypass; fix the query.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/camilool8/harness-engineering-templates/sample-then-scale/badge)](https://verified-skill.com/skills/camilool8/harness-engineering-templates/sample-then-scale)

Something wrong with this skill or its page? Tell us.