camilool8/harness-engineering-templates/sample-then-scale
Claude Code and agent skill by camilool8/harness-engineering-templates
- community
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-scaleSKILL.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
- Start scoped. Append
LIMIT 1000to any newSELECT. For warehouses
that support it, prefer TABLESAMPLE BERNOULLI(1) over LIMIT — it surfaces row diversity that LIMIT may hide.
- Inspect. Print shape + dtypes + head. Verify the join cardinality
matches your mental model. Verify nullability where it matters.
- Estimate full-scale cost. For warehouses with EXPLAIN, run it; for
others, multiply: full-rows × cost-per-row-from-sample.
- Graduate. Remove the
LIMITonly after the inspection passes and
the estimated cost is within budget.
Anti-patterns this skill prevents
- The 200M-row
SELECT * FROM eventsthat doubles the warehouse bill. - Joins whose cardinality blows up by 10× because a key wasn't unique.
- "It looked fine on 5 rows" —
LIMIT 5hides 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
- SKILL.md in the repositoryCheckingplugins/harness-data/skills/sample-then-scale/SKILL.md
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
[](https://verified-skill.com/skills/camilool8/harness-engineering-templates/sample-then-scale)