skills/mongodb/SKILL.md
--- id: mongodb name: MongoDB description: Read-only MongoDB queries against project-configured databases. Actions: query (find docs), aggregate (pipeline), stats (counts + date range), project_health (pre-built NextPost AI analytics summary). URI and collection hints come from the dashboard Projects → Connectors panel. --- # MongoDB Run **read-only** queries against a project's MongoDB database using the URI and collection hints stored in the dashboard **Projects → Connectors** panel. ## Whe
npx skillsauth add bishwashere/cowcode skills/mongodbInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Run read-only queries against a project's MongoDB database using the URI and collection hints stored in the dashboard Projects → Connectors panel.
The skill reads the mongodb.uri and mongodb.collections hints from the project's connector entry in projects.db. If no project is specified, it uses the project whose name best matches the conversation.
Collection hints are key → collection-name pairs that describe the purpose of each collection. Always prefer using a hint key over guessing a collection name.
find, countDocuments, and aggregate are allowed. No writes.find results capped at 50 documents; aggregation pipelines limited to 200 output docs.mongodb_query — find documentsRun a find against one collection with optional filter, projection, sort, and limit (max 50).
mongodb_aggregate — aggregation pipelineRun a read-only aggregation pipeline. Use for rollups, grouping, date-range analytics. Limited to 200 output docs.
mongodb_stats — collection statsReturn document count, first/last createdAt, and the 3 most recent documents (id + date only) for a named collection. Good for a quick sanity-check before a deeper query.
mongodb_project_health — pre-built NextPost AI health summaryRuns a set of canonical aggregations across the analytics collections (project-analytics, project-pulse, campaign-analytics, PlatformPost) and returns a structured health report. Pass project name only; collection names come from the stored hints.
| Question | Action |
|---|---|
| "How is NextPost AI doing?" | mongodb_project_health project=nextpostai |
| "Show campaign analytics for last 30 days" | mongodb_aggregate on campaign-analytics |
| "How many posts were published this week?" | mongodb_query on PlatformPost with date filter |
| "What is the project pulse score trend?" | mongodb_aggregate on project-pulse |
mongodb_query
description: Run a read-only find() against a MongoDB collection. Provide project name (looks up URI + hints), collection (hint key or real name), optional filter (JSON), projection (JSON), sort (JSON), and limit (max 50).
parameters:
project: string
collection: string
filter: object (optional)
projection: object (optional)
sort: object (optional)
limit: number (optional)
mongodb_aggregate
description: Run a read-only aggregation pipeline against a MongoDB collection. Provide project name, collection (hint key or real name), and pipeline (array of stage objects). Output capped at 200 docs.
parameters:
project: string
collection: string
pipeline: array
mongodb_stats
description: Get document count and date range for a collection. Provide project name and collection (hint key or real name).
parameters:
project: string
collection: string
mongodb_project_health
description: Pre-built health report for a project — runs canonical aggregations across analytics collections and returns an engagement summary, pulse score trend, and campaign rollup. Pass project name only.
parameters:
project: string
testing
Bridge conversation to dashboard Projects and Missions — list configured projects, register new ones with setup details, health-check, propose tasks, create missions after user approval, log progress, and update task status. Use when the user wants to work on, track, or manage a project.
testing
Scan linked teammates and score who best fits a user request. Returns ranked agents with relevance scores, reasoning, and a recommendation (delegate, handle-in-main, adapt, or create-new). Call when the topic does not clearly match your active skills or before deciding whether to delegate.
tools
Gmail integration. List, read, search, send, reply, archive, trash, mark-read emails. Natural language commands like "clear my inbox" or "summarize unread". Requires gog CLI authenticated with Gmail.
documentation
GitHub integration. Read repos, list/read issues and PRs, create branches, post comments, create PRs. Requires GitHub token in ~/.pasture/secrets.json or GITHUB_TOKEN env var.