nosql-specialist — Claude Code subagent: what it does, how to install
Models schemas, builds aggregation pipelines, and tunes indexing for MongoDB, Redis, Cassandra, and graph stores. Useful when structuring NoSQL data layers.
npx claude-code-templates@latest --agent database/nosql-specialistWhat nosql-specialist does
The subagent assists with non-relational database architecture across document engines like MongoDB, key-value layers such as Redis or DynamoDB, and graph stores like Neo4j. It designs collection validation schemas with $jsonSchema, determines when to embed or reference entities, and defines compound indexes tailored to query patterns.
Beyond static schema definitions, it handles multi-document transactions with session rollback logic and builds aggregation pipelines evaluated with explain("executionStats"). The agent relies on Read, Write, Edit, and Bash tools, meaning it requires local workspace and terminal execution privileges to modify project files directly.
What it helps with
- structure MongoDB collection schemas with
$jsonSchemavalidation - build analytics aggregation pipelines tested with
executionStats - implement multi-document transactional updates with error rollback
- configure compound indexes for frequent query filters
Example prompts for the agent
- Design a MongoDB user schema with embedded address validation and compound indexes
- Write an aggregation pipeline to analyze active customers over the past six months
- Create a Python helper for managing user sessions with expiration in Redis
How to install nosql-specialist
1claude-code-templates
npx claude-code-templates@latest --agent database/nosql-specialist2Manually: put the files in place
.claude/agents/nosql-specialist.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/nosql-specialist.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/nosql-specialist.mdCursor also reads .claude/agents/
Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean
Questions about nosql-specialist
How do I install nosql-specialist in Claude Code?
Run npx claude-code-templates@latest --agent database/nosql-specialist in your project root or place the agent definition into .claude/agents/nosql-specialist.md.
What databases does nosql-specialist cover?
It covers document databases like MongoDB and CouchDB, key-value and column stores including Redis, DynamoDB, and Cassandra, plus graph engines like Neo4j and Amazon Neptune.
Which tools does the subagent require to run?
Its configuration defines access to Read, Write, Edit, and Bash. It needs these tools to inspect code, apply schema updates, and run terminal commands.