octoquery: Skill for Claude Code

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

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

A coding-agent skill that answers questions by querying a helpdesk database containing customers, support agents, and tickets. It uses SQL, a language for asking structured questions of databases.

In plain words
What is it for?
Use it to count open tickets, find unassigned urgent work, compare agents or priorities, and calculate ticket resolution times.
Why use it?
It avoids manually filtering support data and keeps answers focused on the relevant records, such as urgent or unresolved tickets.

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/helpdesk-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 helpdesk-demo-db

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/benedya/octoquery/helpdesk-demo-db"><img src="https://agentmods.dev/badge/skills/benedya/octoquery/helpdesk-demo-db.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 500 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.00070 $0.00500
Opus 5.5 $0.00028 $0.00200
Sonnet 5.5 $0.00014 $0.00100
Haiku 4.5 $0.00007 $0.00050

Measured 2mo ago against content hash f5d7a2b57d1d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

helpdesk-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 2mo 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/helpdesk-demo-db/SKILL.md · 32 lines

What it actually says

Helpdesk database

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

Schema

  • customers — id, email, full_name, company
  • agents — id, full_name, team (Tier 1, Tier 2)
  • tickets — id, customer_id → customers, agent_id → agents (NULL = unassigned), subject, priority (low, medium, high, urgent), status (open, pending, resolved, closed), created_at, resolved_at (NULL until resolved/closed)

Relations

  • One customer has many tickets (tickets.customer_id → customers.id).
  • One agent handles many tickets (tickets.agent_id → agents.id); agent_id IS NULL means the ticket is not assigned yet.

Conventions

  • Dialect is T-SQL: use TOP n (not LIMIT), GETDATE() for now, DATEDIFF(hour, created_at, resolved_at) for durations.
  • A ticket is outstanding when status IN ('open', 'pending'); resolved and closed are finished.
  • Resolution time only makes sense where resolved_at IS NOT NULL.
  • "Backlog" questions usually mean outstanding tickets grouped by priority; urgent unassigned tickets (priority = 'urgent' AND agent_id IS NULL) are the ones worth flagging.

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. 2mo ago First seen · 32 lines · 70 tokens per session scan A f5d7a2b57d1d

Subscribe to this mod's changes

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

helpdesk-demo-db compared with skills from other repositories

helpdesk-demo-db next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
helpdesk-demo-dbbenedya/octoquerySkill33mo agoMITA70Claude Code, Codex
omh-relational-dbrlaope/oh-my-hermesSkill5.2kyesterdayMITA100Claude Code, Codex
redteam-sqli-detail-packNetw0rkNoob/VulnClawSkill3.9k8d agoMITA59Claude Code, Codex
api-canvascyanheads/obsidian-mcp-serverSkill7027d agoApache-2.0A85Claude Code
api-mirrorcyanheads/obsidian-mcp-serverSkill7027d agoApache-2.0A68Claude Code
data-governanceWrongStack/WrongStackSkill404yesterdayMITA92Claude Code, Codex
backup-recoveryWrongStack/WrongStackSkill404yesterdayMITA87Claude Code, Codex