query-db

Query production PostgreSQL data with Entra ID authentication.

738|24|Updated Jan 10, 2026
One-click install
npx skills add https://github.com/learntocloud/learn-to-cloud-app --skill query-db
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: query-db
Source: https://github.com/learntocloud/learn-to-cloud-app/tree/main/.github/skills/query-db
Command: npx skills add https://github.com/learntocloud/learn-to-cloud-app --skill query-db

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Query production PostgreSQL data with Entra ID authentication to audit users, detect duplicates, and perform ad-hoc queries without exposing internal tooling.

Core Features & Use Cases

  • Entra ID authenticated access to manage secure connections to a production PostgreSQL instance.
  • Provides ready-to-run queries and guidance for user investigations, duplicate detection, and progress auditing.
  • Use Case: a security or operations engineer needs to verify user records, identify duplicates across users table, or scrutinize submission activity for a given cohort.

Quick Start

Connect to the production database and run the included queries to begin ad-hoc analysis.

Frequently Asked Questions about query-db

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

FAQPage Schema
How do I run ad-hoc queries on a production PostgreSQL database using Entra ID authentication?

You can query production PostgreSQL data by authenticating with Entra ID. This secure workflow allows you to investigate user records, debug duplicates, and run custom SQL without exposing internal tooling.

What is the best way to investigate user records and detect duplicates in PostgreSQL?

Investigating user records and detecting duplicates in PostgreSQL is best done using ready-to-run queries with Entra ID authentication. This provides secure access to scrutinize submission activity and identify duplicate users across the database.

Do I need specific firewall rules to query production PostgreSQL with Entra ID?

Yes, querying production PostgreSQL with Entra ID requires the database to be reachable through firewall rules. You must configure network access to establish a secure connection before running your ad-hoc analytics queries.

Can I use this approach to audit submission activity and certificates for a specific cohort?

Yes, you can audit submission activity and certificates for a specific cohort using predefined queries. Entra ID authenticated access enables operations engineers to securely scrutinize production data and audit user progress.

What limitations exist when running ad-hoc analytics against a production PostgreSQL instance?

Limitations include requiring a PostgreSQL database reachable through configured firewall rules and Entra ID authentication. Ad-hoc analytics are constrained to predefined queries for users, submissions, and certificates within this secure access workflow.

Why use Entra ID authentication for ad-hoc PostgreSQL queries instead of direct database credentials?

Using Entra ID authentication for ad-hoc PostgreSQL queries manages secure connections without exposing internal tooling or direct credentials. It conforms to a secure access workflow, ensuring operations engineers can investigate production data safely.