querying-positron
Skill by artsy
Queries Positron's MongoDB database from natural language questions about articles, authors, channels and verticals. It runs the queries through a wrapper script, then presents, analyzes or transforms the results. Aimed at people who need Positron's actual data.
Install querying-positron
Built from the published package, never by AI.
git clone --depth 1 https://github.com/artsy/positron /tmp/positron && mkdir -p ~/.claude/skills && cp -r /tmp/positron/.claude/skills/querying-positron ~/.claude/skills/querying-positronRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/artsy/positron /tmp/positron && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/positron/.claude/skills/querying-positron ~/.gemini/antigravity-cli/skills/querying-positronAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Querying Positron is an agent skill that turns plain language questions into MongoDB queries for Positron's database. It runs the queries through a wrapper script at scripts/exec.sh, which handles the connection and checks that mongosh is installed. The assistant then presents, analyzes or transforms the results.
The skill covers collections such as articles, authors, channels, curations, organizations, sections, sessions, tags, users and verticals. It includes rules for article data, such as treating the last entry in the slugs array as the canonical slug and joining author names through author_ids. It is intended for people who want to know Positron's actual data about articles, authors, channels and verticals.
Written from the project's SKILL.md and checked against it.
What it can do
- Count published articlesRuns counts, such as how many published articles exist.
- Find articlesFinds articles by fields such as layout and sorts them by publish date.
- Aggregation pipelinesGroups and counts results, for example published articles per layout value.
- Author name lookupJoins articles to the authors collection using author_ids.
- Article URL patternsBuilds public article, admin editing and artwork URLs when asked.
- Collection inspectionShows document shapes by fetching the most recent documents from a collection.
What you need
- mongosh installed
- Access to Positron's Mongo cluster
Try asking
- How many published articles are there in Positron?
- Show the most recent published article where layout is video.
- Count published articles for each layout value in Positron.
Good to know
- Assumes articles are published unless the user says otherwise.
- Partner-authored articles are a known issue and need a reference check first.
- Does not use the --json flag because it often fails to serialize correctly.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/querying-positron/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: Bash(.claude/skills/querying-positron/scripts/exec.sh:*)
Alternatives to querying-positron
All alternatives →Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.
Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.
Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.
Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.
Compare with hugging-face-datasets, db-repair or alloydb-basics
querying-positron: common questions
Which Positron collections can it query?
The source lists articles, authors, channels, curations, organizations, sections, sessions, tags, users and verticals. Most queries focus on articles.
How does it find article author names?
It uses an aggregation with $lookup on author_ids against the authors collection. The source says not to rely only on contributing_authors or author.name.
Does it require mongosh?
Yes. The wrapper script validates that mongosh is installed before running queries.
How do I install querying-positron?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is querying-positron free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is querying-positron safe to use?
It scores 72 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to querying-positron?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
