query-datasets

query-datasets is a skill for Claude Code, Codex, Cursor from ertra/pm-brain-for-cursor. It costs 91 tokens per session (2,828 once invoked), scanned A, original, MIT.

A read-only search tool for answering yes-or-no questions about two example datasets: support tickets and call transcripts. It uses a local database containing searchable text and meaning-based indexes.

In plain words
What is it for?
Use it to find whether support tickets or sales calls mention requests, issues, or subjects such as time zones, audit logs, or extension conflicts.
Why use it?
It helps developers check whether the sample records mention a topic without manually reading every record.

Skill for Claude CodeCodexCursor

Install

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.

agentmods
npx agentmods add skills/ertra/pm-brain-for-cursor/query-datasets
Any agent
npx skills add ertra/pm-brain-for-cursor --skill query-datasets
Clone the repo
git clone --depth 1 https://github.com/ertra/pm-brain-for-cursor

Made for: Claude Code, Codex, Cursor.

Wrote 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.

agentmods badge for query-datasets

README.md
[![agentmods](https://agentmods.dev/badge/skills/ertra/pm-brain-for-cursor/query-datasets.svg)](https://agentmods.dev/skills/ertra/pm-brain-for-cursor/query-datasets)
Your own site
<a href="https://agentmods.dev/skills/ertra/pm-brain-for-cursor/query-datasets"><img src="https://agentmods.dev/badge/skills/ertra/pm-brain-for-cursor/query-datasets.svg" alt="Measured on agentmods" height="20"></a>
Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,828 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00091 $0.02828
Opus 5 $0.00046 $0.01414
Sonnet 5 $0.00018 $0.00566
Haiku 4.5 $0.00009 $0.00283

Measured 5d ago against content hash 51d1b7f4bcbd, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

query-datasets 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 5d 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.

.cursor/skills/query-datasets/SKILL.md · 165 lines

How it starts

The opening of the file, as written. The whole thing — 165 lines — stays where its author put it; the contents beside it link to each section on GitHub.

query-datasets

Answer questions about what's in 03-datasets/ using the local indexes at 03-datasets/_indexes/*.db.

The repo ships a small, fictional sample dataset under 03-datasets/ plus the self-contained tooling under 03-datasets/_tools/. Use this skill for demos, walkthroughs, and questions of the form "do any support tickets / calls in the sample mention X?". The skill is read-only.

When this skill applies

  • "Do support tickets mention conflicts with the Gmail extension?"
  • "Did any prospect on a call ask for an audit log UI?"
  • "Is there a ticket about timezone / DST handling?"
  • Any factual lookup against 03-datasets/.

When it does NOT apply

  • General PM workflow questions not tied to the datasets.
  • Requests to modify / add / delete tickets. This skill is read-only.
  • Questions spanning multiple corpora at once — ask the user which one instead.

Preconditions

  1. 03-datasets/_indexes/<corpus>.db must exist and be complete. The file exists AND SELECT value FROM meta WHERE key='build_complete_at' returns non-empty.
  2. Local Python env must be ready to load the same sentence-transformers model recorded in meta.model when using hybrid or vector mode.
  3. Python venv at .venv/ with dependencies installed (pip install -r requirements.txt).
  4. If the indexes do not exist yet, build them first:
    source .venv/bin/activate
    python 03-datasets/_tools/build_index.py --corpus support_tickets \
      --provider sentence-transformers --model nomic-ai/nomic-embed-text-v1.5
    python 03-datasets/_tools/build_index.py --corpus call_transcripts \
      --provider sentence-transformers --model nomic-ai/nomic-embed-text-v1.5
    
    First run downloads nomic-ai/nomic-embed-text-v1.5 from Hugging Face (~500 MB).

If any of these fail, tell the user what's missing and how to fix it — don't invent results.

Checklist

Do these steps in order. Create TodoWrite items for them when the question is non-trivial.

  1. Identify the single target corpus from the user's phrasing. Signals:
    • "support tickets" / "Zendesk" / "help desk" / "customer support" / "ticket #NNN" → support_tickets
    • "calls" / "recordings" / "transcripts" / "what did the prospect say" → call_transcripts

Read the full file on GitHub · 165 lines

Changes

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.

  1. 5d ago First seen · 165 lines · 91 tokens per session scan A 51d1b7f4bcbd

Subscribe to this mod's changes

query-datasets is a skill published in the GitHub repository ertra/pm-brain-for-cursor (22 stars, last pushed 3mo ago), licensed MIT. It adds 91 tokens to every session and 2,828 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-30.

Related

Other skills, from other repositories

jira

Jira integration via acli CLI. Use when user says '/jira', 'check Jira board', 'create Jira ticket', 'move ticket to done', 'search Jira', 'sync blockers from Jira', 'what's in the sprint', 'Jira status', 'assign ticket', 'view backlog', or wants to interact with Jira issues, sprints, or boards from the terminal.

kv0906/pm-kit · 80 tokens

notion

Bridge PM-Kit vault with Notion workspace — search, sync, publish, and link vault notes to Notion pages. Use when the user says "/notion", "notion sync", "publish to notion", "notion search", "sync from notion", "push to notion", "notion setup", mentions Notion in any project management context, wants to share vault…

kv0906/pm-kit · 112 tokens

excalidraw-generator

Professional Excalidraw diagram generation expert that creates complete, valid .excalidraw.json files based on user descriptions. Use ONLY when users explicitly mention "Excalidraw" or request to create diagrams specifically with Excalidraw (e.g., "用 Excalidraw 画个流程图", "generate an Excalidraw diagram", "create…

kv0906/pm-kit · 113 tokens

onboard

Interactive onboarding — sets up your first project, learns who you are, generates core/identity.md profile, creates your first daily note, then loads vault context. For returning users, skips setup and loads context directly.

kv0906/pm-kit · 47 tokens

linear

Interact with Linear for issue tracking — search, create, sync, and link issues to vault notes. Use when the user says "/linear", "linear issues", "sync linear", "create issue", "link to linear", "check linear", "what's assigned to me", "my linear tasks", mentions Linear in any project management context, or wants to…

kv0906/pm-kit · 96 tokens

obsidian-cli

Control Obsidian from the terminal using the obsidian CLI. Use when the agent needs to open notes, search the vault inside Obsidian, append/prepend content to the active file, create notes from templates, manage properties, check backlinks/orphans, query Bases, or interact with the running Obsidian app. Requires…

kv0906/pm-kit · 82 tokens