Read-only skill for agents to verify and query a local Azure Cosmos DB emulator
A Claude Code plugin that gives AI agents a read-only tool to verify and query a local Azure Cosmos DB Emulator.
Use it to confirm databases, containers, and documents exist after agents write data — without risking any modifications.
/plugin install https://github.com/sponsorrockit1/askcosmosemu
dotnet --version should show 10.xSet one of the following in your project's .env or .env.local (gitignored):
Option A — Connection string:
COSMOS_CONNECTION_STRING=AccountEndpoint=https://<host>:8081/;AccountKey=<key>
Option B — Endpoint + key file:
COSMOS_ENDPOINT=https://<host>:8081/
COSMOS_KEY_FILE=C:\path\to\emulator.key
Option C — Endpoint + inline key:
COSMOS_ENDPOINT=https://<host>:8081/
COSMOS_KEY=<base64-encoded-key>
The script reads .env and .env.local from the current working directory automatically — no need to export env vars manually.
Ask your agent to run any of these:
/askcosmosemu verify
/askcosmosemu verify db=mydb
/askcosmosemu verify db=mydb cont=mycontainer
/askcosmosemu query db=mydb cont=mycontainer sql="SELECT * FROM c" limit=5
Or directly in bash:
SCRIPT=$(find "$USERPROFILE/.claude" -name "askcosmosemu.cs" | head -1)
dotnet run "$SCRIPT" verify
dotnet run "$SCRIPT" verify --db mydb
dotnet run "$SCRIPT" verify --db mydb --cont mycontainer
dotnet run "$SCRIPT" query --db mydb --cont mycontainer --sql "SELECT * FROM c" --limit 5
All output is JSON on stdout. Exit code 0 = success, non-zero = failure.
// verify success
{"status":"ok","endpoint":"https://localhost:8081/","latency_ms":42}
// verify db+container success
{"status":"ok","endpoint":"https://localhost:8081/","database":"mydb","container":"mycontainer","latency_ms":18}
// any failure
{"status":"error","message":"Database 'mydb' not found"}
// query results
[{"id":"1","name":"foo"},{"id":"2","name":"bar"}]
.env parser handles KEY=value, KEY="value", and KEY='value' but not multiline values or shell variable expansion.MIT
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub sponsorrockit1/askcosmosemu --plugin askcosmosemuOfficial Claude plugin for Azure Cosmos DB (NoSQL). Bundles skills for data modeling, partition key design, query optimization, SDK best practices, indexing, vector search, full-text search, global distribution, security, and more.
Database testing utilities with test data setup, transaction rollback, and schema validation
Connect and interact with a Cloud SQL for MySQL database and data.
Create, connect, and interact with a Cloud SQL for PostgreSQL database and data.
Create, connect, and interact with an AlloyDB for PostgreSQL database and data.
Official MongoDB agent skills for schema design, query tuning, search, and connections.