octoquery: Skill for Claude Code

.agents/skills/ecommerce-demo-db/SKILL.md

ecommerce-demo-db is a skill for Claude Code, Codex from benedya/octoquery. It costs 67 tokens per session (512 once invoked), scanned A, original, MIT.

A tool for asking questions of a sample online-shop database containing users, products, orders, and order items.

In plain words
What is it for?
Use it to count orders, find products or customers, calculate revenue, compare categories, and analyze sales statuses.
Why use it?
It avoids manually joining tables or calculating sales figures when you need information from the sample store data.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is benedya/octoquery's own configuration. It tells Claude Code and Codex how to work on octoquery itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything octoquery configures →

Reuse

Borrowing it

Nothing to install: this file belongs to benedya/octoquery. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/benedya/octoquery/main/.agents/skills/ecommerce-demo-db/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/benedya/octoquery

Made for: Claude Code, Codex.

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 ecommerce-demo-db

README.md
[![agentmods](https://agentmods.dev/badge/skills/benedya/octoquery/ecommerce-demo-db/github.svg)](https://agentmods.dev/skills/benedya/octoquery/ecommerce-demo-db)
Your own site
<a href="https://agentmods.dev/skills/benedya/octoquery/ecommerce-demo-db"><img src="https://agentmods.dev/badge/skills/benedya/octoquery/ecommerce-demo-db/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 ecommerce-demo-db

Your own site · 80×15
<a href="https://agentmods.dev/skills/benedya/octoquery/ecommerce-demo-db"><img src="https://agentmods.dev/badge/skills/benedya/octoquery/ecommerce-demo-db.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 512 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.00067 $0.00512
Opus 5 $0.00034 $0.00256
Sonnet 5 $0.00013 $0.00102
Haiku 4.5 $0.00007 $0.00051

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

Security

Grade A, and why

ecommerce-demo-db 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 11d 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.

.agents/skills/ecommerce-demo-db/SKILL.md · 34 lines

What it actually says

E-commerce database

The database is exposed as the MCP tool sql_ecommerce_demo. Answer questions by sending a single SQL query string (PostgreSQL dialect) to that tool. Results come back as JSON rows, truncated to the configured row limit (default 100) — use LIMIT, aggregation, or ORDER BY to keep result sets small and relevant.

Schema

  • usersid, email, full_name, country (ISO 3166-1 alpha-2), created_at
  • productsid, sku, name, category (Electronics, Furniture, Accessories, Stationery), price_cents, created_at
  • ordersid, user_id → users, status (pending, paid, shipped, delivered, cancelled), placed_at
  • order_itemsid, order_id → orders, product_id → products, quantity, unit_price_cents

Relations

  • One user has many orders (orders.user_idusers.id).
  • One order has many order items (order_items.order_idorders.id); each item references one product (order_items.product_idproducts.id).
  • A product appears at most once per order (order_id, product_id is unique).

Conventions

  • All money values are integer cents; divide by 100.0 for display. Amounts have no currency column — treat them as USD.
  • Order totals are not stored — compute them by joining order_items (quantity * unit_price_cents).
  • unit_price_cents is the price at purchase time and may differ from the current products.price_cents.
  • Cancelled orders should normally be excluded from revenue and sales figures.

Guidelines

  • Treat the database as read-only: stick to SELECT unless the user explicitly asks to modify data.
  • Prefer one well-formed query over many small ones; use joins and aggregates server-side.
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. 11d ago First seen · 34 lines · 67 tokens per session scan A 0312163c3376

Subscribe to this mod's changes

ecommerce-demo-db is a skill published in the GitHub repository benedya/octoquery (3 stars, last pushed 1mo ago), licensed MIT. It adds 67 tokens to every session and 512 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

wc-hpos-compatibility

Make a WooCommerce plugin HPOS-compatible (High-Performance Order Storage, default-on in WC 10.x) — declare via FeaturesUtil::declarecompatibility on beforewoocommerceinit, replace $wpdb->postmeta / WPQuery order code with wcgetorders + WCOrder::getmeta / updatemetadata, gate runtime branches on…

nvdigitalsolutions/mcp-ai-wpoos · 171 tokens

wc-variations-data

Read, query, and write WooCommerce product variations correctly — the WCProductVariable (parent) vs WCProductVariation (child) class split, the parent's getvariationprices( $fordisplay ) cached aggregation and how to bust the wcvarprices transient, programmatic variation creation via WCProductVariation + setparentid +…

nvdigitalsolutions/mcp-ai-wpoos · 205 tokens

wcs-data-model-switching-gifting

WooCommerce Subscriptions data model, switcher, and gifting reference for exact order type names, product type slugs, subscription meta keys, schedule/date keys, related-order relation meta, switch cart data, switch order data, switched item types/meta, proration hooks, and WCS Gifting recipient storage. Use when code…

nvdigitalsolutions/mcp-ai-wpoos · 159 tokens

wcm-data-model-subscriptions-link

WooCommerce Memberships storage and relationship map for membership plan CPTs, user membership CPTs, post statuses, plan/user membership meta keys, rule storage, profile-field storage, order grant meta, and WooCommerce Subscriptions-linked memberships. Use when code reads or writes wcmembershipplan, wcusermembership…

nvdigitalsolutions/mcp-ai-wpoos · 130 tokens

redteam-sqli-detail-pack

Domain routing and boundary guidance for authorized SQL injection testing, including union-based, blind, error-based, stacked query, and second-order SQL injection variants. Use when a task belongs to the SQL injection domain and needs scope, evidence, pivot, or exit criteria.

Netw0rkNoob/VulnClaw · 59 tokens

api-canvas

DataCanvas primitive reference — a Tier 3 SQL/analytical workspace for tabular MCP servers, backed by DuckDB. Use when registering tables from upstream APIs, running ad-hoc SQL across them, and exporting results. Covers the acquire → register → query → export flow, per-table TTL, the token-sharing pattern for…

cyanheads/obsidian-mcp-server · 85 tokens