db-query
Skill1 starsChanged 5 months agoMITView on GitHub
Safe read-only exploration of spend/supplier data via SQL or pandas — read-only by default, writes require explicit opt-in, and no destructive statement without a WHERE clause. Use to answer a data question against a spend/supplier dataset or database. Trigger phrases "query the spend data", "check this in SQL", "explore this dataset".
4 other projects use a version of this.
Adopted by
Most recently taken up by
- TJaenichen/claude-code-harnesstheir own version, first seen Nov 15, 2026
- lldwb/lldwb-claude-skillstheir own version, first seen Sep 28, 2026
- Nza6920/skillstheir own version, first seen Sep 7, 2026
- platformplatform/PlatformPlatformtheir own version, first seen May 15, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- platformplatform/PlatformPlatform★ 439same name
- Nza6920/skills★ 2same name
- lldwb/lldwb-claude-skills★ 1same name
- TJaenichen/claude-code-harness★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository16 other files it gives its agents.
- catchupSkill
- claude-mdSkill
- context-budgetSkill
- debug-fixSkill
- eval-agentSkill
- explainSkill
- fix-issueSkill
- incident-ruleSkill
- pr-reviewSkill
- refactorSkill
- secrets-checkSkill
- setup-projectSkill
- shipSkill
- tddSkill
- test-writerSkill
- trace-agentSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
2
Distinctive
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
- Distinctive: line 13
Never run a destructive statement on a hunch, and never invent numbers — every figure comes from a query you actually ran.
- Distinctive: line 28
Every exploratory query is non-mutating.
- Very specific: line 30
Writes require explicit opt-in: If the task genuinely needs an INSERT/UPDATE/DELETE, STOP and confirm with Eugen first.
- Very specific: line 32
Never DELETE/UPDATE without a WHERE clause (the block-dangerous-commands hook enforces this too).
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
db-query
Trigger: "query the spend data" / "check this in SQL" / "explore this dataset"
Standing rules: ../_conventions.md.
Answer the data question without risking the data. Read-only is the default. Never run a destructive statement on a hunch, and never invent numbers — every figure comes from a query you actually ran. Procurement domain: spend, suppliers, categories, savings, compliance.
Steps
- Locate the source. A
.db/.sqlite, a connection configured via env vars (never hardcoded creds), or a CSV/Parquet for pandas. Confirm which. If it's a live DB, connect with a read-only credential where possible. - Understand the shape first. For SQL: list tables and columns (
.schema/information_schema). For pandas:df.head(),df.dtypes,df.shape. State the relevant columns before querying — don't guess column names. - Read-only by default.
SELECT/ pandas filters and aggregations only. Every exploratory query is non-mutating. Show the query, then the result. - Writes require explicit opt-in. If the task genuinely needs an
INSERT/UPDATE/DELETE, STOP and confirm with Eugen first. Then:- Never
DELETE/UPDATEwithout aWHEREclause (theblock-dangerous-commandshook enforces this too). - Preview the affected rows with a
SELECTusing the sameWHEREbefore running the mutation. - Wrap in a transaction where the engine supports it.
- Never
- Answer with the numbers. Give the actual result — top suppliers by spend, savings %, category totals, compliance gaps, whatever was asked. Show the query so it's reproducible and auditable. Round money sensibly; state the currency and time window.
- Report (terse): the answer first, then the query that produced it, then any caveat (nulls dropped, date range, dedupe applied). Never present a number you didn't compute from the data.
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
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.

