Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add DMDuFresne/questllens --skill questllens-explore-a-databasegit clone --depth 1 https://github.com/DMDuFresne/questllensWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/dmdufresne/questllens/questllens-explore-a-database)<a href="https://agentmods.dev/skills/dmdufresne/questllens/questllens-explore-a-database"><img src="https://agentmods.dev/badge/skills/dmdufresne/questllens/questllens-explore-a-database.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00098 | $0.00954 |
| Opus 5 | $0.00049 | $0.00477 |
| Sonnet 5 | $0.00020 | $0.00191 |
| Haiku 4.5 | $0.00010 | $0.00095 |
Grade A, and why
questllens-explore-a-database scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.
questllens-explore-a-database
Orientation, in order. Each step narrows the next; skipping ahead is how you end up querying a table that has no rows in the window you care about.
1. Inventory
list_tables — every table and materialized view, with the designated timestamp,
partitioning strategy, and WAL flag. Read three things off it:
- Which tables have no designated timestamp. These are reference/dimension tables.
SAMPLE BYandLATEST ONdon't apply to them. - The partition unit (DAY/HOUR/MONTH). It tells you the granularity at which a time predicate becomes cheap.
- Materialized views vs base tables. An MV is derived; don't reason about ingestion from it.
2. Meaning before structure
If the operator supplied a domain context, it is already in the tool descriptions — read it first. It's the only source that explains why a table exists.
Then describe_table per interesting table. Two optional flags earn their cost:
with_time_range=true— min/max designated timestamp and total row count. Do this before writing any time filter. One cheap aggregate that tells you whether the table covers the period the user is asking about. Answering "there's no data" when you queried the wrong window is the most common avoidable error here.with_symbol_stats=true— distinct count per SYMBOL column against its declared capacity. Use it to learn cardinality (isdevice_id12 devices or 400,000?) and to spot capacity overruns. It's a full scan — worth it once per table, not per question.
describe_table also surfaces dedup keys (UPSERT KEYS). A table with dedup enabled
silently replaces rows matching those keys — so a duplicate-looking count isn't necessarily a
data-quality problem.
3. Shape of the data
get_sample_data— actual rows. Setlatest=trueto see the newest rows rather than the oldest, which is almost always what you want on a time-series table. Project withcolumnson wide tables; narrow withwherewhen you need a specific slice.get_table_stats— null percentage and distinct count per column. On a large table passsample_rowsto bound it to the latest N rows; without it you are scanning everything.search_columns— when the user names a column and you don't know which table holds it.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 7d ago First seen · 73 lines · 98 tokens per session scan A eaaa3d9f6d7e
questllens-explore-a-database is a skill published in the GitHub repository DMDuFresne/questllens (0 stars, last pushed 17d ago), licensed Apache-2.0. It adds 98 tokens to every session and 954 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
create-pr
Creates a GitHub PR with a Linear-ticket-prefixed title and a decision-led, narrative description for prisma-next. Use when the user wants to create a pull request, open a PR, or submit changes for review.
schema-exploration
Lists tables, describes columns and data types, identifies foreign key relationships, and maps entity relationships in a database. Use when the user asks about database schema, table structure, column types, what tables exist, ERD, foreign keys, or how entities relate.
ha-data-stores
Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…
supabase
Supabase / PostgREST Row-Level-Security playbook — pull the anon (or leaked servicerole) key out of the frontend JS, map tables from the auto-generated OpenAPI spec, test anonymous RLS READ disclosures (PII/secret leaks), and anonymous RLS WRITE abuse (insert/update/delete — e.g. forging…
nornicdb-cypher-queries
Pick fast, predictable Cypher query shapes in NornicDB — point lookups, batch retrieval, pagination, search, traversal, batched UNWIND/MERGE writes, cleanup, multi-tenant isolation. Use when writing or reviewing Cypher whose latency or throughput matters; maps user intent to the executor's hot-path query templates.
dsql
Build with Aurora DSQL — manage schemas, execute queries, handle migrations, diagnose query plans, diagnose cluster performance, load data, and develop applications with a serverless, distributed SQL database. Covers IAM auth, multi-tenant patterns, MySQL-to-DSQL and PostgreSQL-to-DSQL schema conversion, foreign key…