db-schema

Display Mongoose schemas, indexes, sample documents, and statistics for MongoDB collections.

Updated May 12, 2026
One-click install
npx skills add https://github.com/HillBombCreations/vivreal-skills --skill db-schema-hillbombcreations
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: db-schema
Source: https://github.com/HillBombCreations/vivreal-skills/tree/main/vivreal-db-explorer/skills/cmd-db-schema
Command: npx skills add https://github.com/HillBombCreations/vivreal-skills --skill db-schema-hillbombcreations

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires mcp__mongodb__connect, mcp__mongodb__find, mcp__mongodb__collection-schema, mcp__mongodb__collection-indexes, mcp__mongodb__list-collections, mcp__mongodb__list-databases, mcp__mongodb__db-stats, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the process of understanding MongoDB collection schemas and statistics, providing a comprehensive view at your fingertips.

Core Features & Use Cases

  • Schema Definition: Displays the Mongoose schema definition for any collection.
  • Indexes: Lists all indexes on the collection.
  • Sample Document: Shows a redacted sample document from the collection.
  • Stats: Provides collection statistics like document count and size.
  • Use Case: Quickly understand the structure and data of any MongoDB collection in a Vivreal repository without manual querying.

Quick Start

Use the 'db-schema' skill to show the schema, indexes, sample document, and stats for the 'collections' collection in the 'general_shared' database.

Frequently Asked Questions about db-schema

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I view a MongoDB collection schema and indexes without manual querying?

You can view MongoDB collection schemas and indexes without manual querying by using this Skill to retrieve the Mongoose schema definition, list indexes, and display a redacted sample document for any specified collection.

What is the easiest way to get MongoDB collection stats like document count and size?

Getting MongoDB collection stats like document count and size is done by requesting a collection overview, which automatically parses and returns statistics alongside the schema and sample documents.

Can I list all databases and collections in the Vivreal ecosystem using MongoDB connection tools?

You can list all databases and collections in the Vivreal ecosystem using integrated MongoDB connection tools, which connect to the database and parse schemas to deliver comprehensive operational insights.

How do I get a Mongoose schema definition from an existing MongoDB collection?

Getting a Mongoose schema definition from an existing MongoDB collection involves applying a schema parsing function to the target collection, which extracts and displays the structure alongside indexes and sample documents.

Does this MongoDB schema viewer work with any collection in the Vivreal repository?

This MongoDB schema viewer works with any collection in the Vivreal repository, allowing you to instantly understand the structure and data of collections across databases like 'general_shared' without manual setup.