mssql-query

mssql-query is a skill for Claude Code, Codex from Elumenotion/GuideAnts. It costs 73 tokens per session (1,566 once invoked), scanned A, original, Apache-2.0.

A tool for inspecting and querying a SQL Server database, including its databases, tables, schema, and sample rows. SQL Server is a relational database system that stores structured data in tables.

In plain words
What is it for?
Exploring schemas, checking sample data, reading related records, and performing approved data-definition or data-change operations.
Why use it?
It gives you a documented way to understand the database and run read-only SQL, with changes requiring explicit opt-in.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Exploring schemas, checking sample data, reading related records, and performing approved data-definition or data-change operations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/elumenotion/guideants/mssql-query
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 Elumenotion/GuideAnts --skill mssql-query
Clone the repo
git clone --depth 1 https://github.com/Elumenotion/GuideAnts

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 mssql-query

README.md
[![agentmods](https://agentmods.dev/badge/skills/elumenotion/guideants/mssql-query/github.svg)](https://agentmods.dev/skills/elumenotion/guideants/mssql-query)
Your own site
<a href="https://agentmods.dev/skills/elumenotion/guideants/mssql-query"><img src="https://agentmods.dev/badge/skills/elumenotion/guideants/mssql-query/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 mssql-query

Your own site · 80×15
<a href="https://agentmods.dev/skills/elumenotion/guideants/mssql-query"><img src="https://agentmods.dev/badge/skills/elumenotion/guideants/mssql-query.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,566 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00073 $0.01566
Opus 5.5 $0.00029 $0.00626
Sonnet 5.5 $0.00015 $0.00313
Haiku 4.5 $0.00007 $0.00157

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

Security

Grade A, and why

mssql-query 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 1mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/mssql_tool.py, scripts/test_mssql_query.sh), 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.

samples/skills/mssql-query/SKILL.md · 121 lines

How it starts

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

Queries the stack's SQL Server (mssql-express container) from the sandbox, using the connection string supplied through the environment (GA_DB_CONNECTION_STRING — set on the Guide, marked secret). The tool self-bootstraps pymssql on first use (one pip install), then everything is local Python.

Database at a glance

Read references/database.md first — it is the persistent understanding of this database (table names, column gotchas, feature areas, how the tables join, the enum dictionary, a reading a conversation recipe, usage, performance, and undone turns, guides, projects, and environments, and a verified core-query library), so you do not re-derive the schema each session.

The short version: GuideAnts is a Projects > Notebooks workspace. Each notebook has files (NotebookFiles, versioned ContentFiles) and conversations (NotebookConversations -> NotebookConversationMessages

  • ConversationTurns). Guides/Assistants (Assistants, Kind 1=Guide) package the way of working; execution is AgentInvocations (-> AgentInvocationMessages for detail) + JobQueue; cost/telemetry is UsageEvents; file provenance is FileLineageEvents. UsageEvents has a nullable FK to nearly every other table, so it is the key for "what/who/cost" questions. SQL table names are plural (the doc uses singular entity names); verify column details with schema <Table>.

How the instance is wired

The skill runs inside the guideants-ai container, inside the running compose stack; mssql-express is a sibling service (stock compose: service mssql-express, image mssql2025-express-fts, publishes 1434:1433 on the host). The connection string is the ADO.NET one the webapi carries as ConnectionStrings__DefaultConnection — here it arrives as GA_DB_CONNECTION_STRING (Guide Environment variable, secret).

Endpoint resolution in the tool: --endpoint → GA_DB_ENDPOINT → the Server= field of the connection string (only when that host is an IP literal or localhost; the compose service name mssql-express does not resolve from the ai container) → default host.docker.internal:1434.

Read the full file on GitHub · 121 lines

Files

What ships with it

4 files 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. 1mo ago First seen · 121 lines · 73 tokens per session scan A 49ca906aa294

Subscribe to this mod's changes

mssql-query is a skill published in the GitHub repository Elumenotion/GuideAnts (65 stars, last pushed today), licensed Apache-2.0. It adds 73 tokens to every session and 1,566 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-09-03.

Related

Other skills, from other repositories

database-expert

Advanced database design and administration for PostgreSQL, MongoDB, and Redis. Use when designing schemas, optimizing queries, managing database performance, or implementing data patterns.

travisjneuman/.claude · 36 tokens

generic-fullstack-feature-developer

Guide feature development for full-stack applications with architecture focus. Covers Next.js App Router patterns, NestJS backend services, database models, data workflows, and seamless integration. Use when adding new features, refactoring existing code, or planning major changes.

travisjneuman/.claude · 56 tokens

agent-database-expert

Specialist subagent: Expert database architect and engineer for PostgreSQL, MongoDB, Redis, and all major databases. Use when designing schemas, optimizing queries, planning migrations, implementing caching, or troubleshooting database performance.

travisjneuman/.claude · 49 tokens

sqlite-ops

SQLite across every host and engine - query performance, concurrency, schema, feature modules, operations. Triggers on: sqlite, slow query, EXPLAIN QUERY PLAN, query plan, SCAN vs SEARCH, covering index, index not used, rows read, rowsread, sqldurationms, ANALYZE, sqlitestat1, LIKE performance, database is locked…

0xDarkMatter/claude-mods · 169 tokens

payloadcms-ops

Payload CMS 3 (Next.js-native) architecture - collections, globals, fields, access control, hooks, Local API, storage adapters, and database (Postgres/MongoDB/SQLite). Use for: payload, payloadcms, payload cms, payload 3, collection config, access control, payload hooks, local api, payload fields, multi-tenant…

0xDarkMatter/claude-mods · 101 tokens

postgres-ops

PostgreSQL operations, optimization, and administration. Use for: schema design, index selection, query tuning with EXPLAIN ANALYZE, postgresql.conf configuration, backup and restore (pgdump, pgbasebackup, WAL, PITR), vacuum and autovacuum tuning, connection pooling (pgBouncer, pgPool), replication (streaming…

0xDarkMatter/claude-mods · 149 tokens