querying-from-seekdb

querying-from-seekdb is a skill for Claude Code from oceanbase/seekdb-ecology-plugins. It costs 77 tokens per session (3,246 once invoked), scanned A, original, Apache-2.0.

A skill for searching a seekdb vector database, which stores data for similarity-based searches. It supports metadata-only filtering and hybrid search, which combines exact text matching with meaning-based search, and can export results to CSV or Excel files.

In plain words
What is it for?
Inspecting collection fields, running scalar or hybrid searches, and exporting results to CSV or Excel.
Why use it?
It helps find records using either structured fields, text, meaning, or a combination of these. It also turns search results into files that can be reviewed or shared.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code.

Part of the seekdb-plugin plugin — 4 skills shipped together

Good fit Inspecting collection fields, running scalar or hybrid searches, and exporting results to CSV or Excel.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/oceanbase/seekdb-ecology-plugins/querying-from-seekdb
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.

Any agent
npx skills add oceanbase/seekdb-ecology-plugins --skill querying-from-seekdb
Clone the repo
git clone --depth 1 https://github.com/oceanbase/seekdb-ecology-plugins

Made for: Claude Code.

Or install seekdb-plugin, the plugin that ships this one along with the rest of its 4 skills.

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 querying-from-seekdb

README.md
[![agentmods](https://agentmods.dev/badge/skills/oceanbase/seekdb-ecology-plugins/querying-from-seekdb/github.svg)](https://agentmods.dev/skills/oceanbase/seekdb-ecology-plugins/querying-from-seekdb)
Your own site
<a href="https://agentmods.dev/skills/oceanbase/seekdb-ecology-plugins/querying-from-seekdb"><img src="https://agentmods.dev/badge/skills/oceanbase/seekdb-ecology-plugins/querying-from-seekdb/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for querying-from-seekdb

Your own site · 80×15
<a href="https://agentmods.dev/skills/oceanbase/seekdb-ecology-plugins/querying-from-seekdb"><img src="https://agentmods.dev/badge/skills/oceanbase/seekdb-ecology-plugins/querying-from-seekdb.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,246 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00077 $0.03246
Opus 5 $0.00039 $0.01623
Sonnet 5 $0.00015 $0.00649
Haiku 4.5 $0.00008 $0.00325

Measured 9d ago against content hash c15ef254e32d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

querying-from-seekdb 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 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/query_from_seekdb.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

agent-skills/skills/querying-from-seekdb/SKILL.md · 319 lines

How it starts

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

Query and Export Data from seekdb

Query data from seekdb vector database with support for scalar search, hybrid search (fulltext + semantic), and export to CSV/Excel files.

Path Convention

Note: All paths in this document (e.g., scripts/) are relative to THIS skill directory, not the project root.

Prerequisites

  • Python 3.10+ installed
  • Data imported into seekdb collection
  • Required packages:
pip install pyseekdb pandas openpyxl

⚠️ CRITICAL: Execution Workflow

MUST FOLLOW this workflow when handling user search requests:

Step 1: Get Collection Information (If Not Already Known)

Before constructing any query, you MUST understand the data structure. However, you should cache this information within the conversation.

Caching Rules:

  • First query for a collection: Execute --info to get metadata structure
  • Subsequent queries for the SAME collection: Use cached info from earlier in conversation, skip --info
  • Query for a DIFFERENT collection: Execute --info for the new collection
  • User explicitly asks for collection info: Execute --info
# Get collection info to see metadata fields (only if not already known)
python scripts/query_from_seekdb.py <collection_name> --info

This shows:

  • Total record count
  • Available metadata field names (e.g., source, year, category)
  • Sample documents

Example conversation flow:

User: "找 seekdb_demo 中 2023 年的教程"
→ Claude Code: 执行 --info (第一次查询此 collection)
→ 发现 metadata 有 source, year 字段
→ 执行搜索

User: "再找一下 notion 来源的"
→ Claude Code: 不需要再执行 --info (同一 collection,结构已知)
→ 直接执行搜索

User: "查一下 another_collection 中的数据"
→ Claude Code: 执行 --info (不同 collection)
→ 了解新 collection 的结构
→ 执行搜索

Step 2: Analyze User Request

Parse the user's natural language request to identify:

Component Look For Maps To
Metadata conditions Field-value pairs like "2023年", "来自notion", "价格<100" --where filter
Content/Semantic search Keywords, concepts, descriptions, questions --query-text (used for BOTH fulltext and semantic)

Read the full file on GitHub · 319 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago First seen · 319 lines · 77 tokens per session scan A c15ef254e32d

Subscribe to this mod's changes

querying-from-seekdb is a skill published in the GitHub repository oceanbase/seekdb-ecology-plugins (9 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 77 tokens to every session and 3,246 once invoked, about $0.0004 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.