write-script-postgresql

Write and execute PostgreSQL queries with parameter handling and S3 streaming.

Updated May 28, 2026
One-click install
npx skills add https://github.com/Orvanta-Cloud/orvanta-cli-docs --skill write-script-postgresql-orvanta-cloud
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: write-script-postgresql
Source: https://github.com/Orvanta-Cloud/orvanta-cli-docs/tree/main/skills/write-script-postgresql
Command: npx skills add https://github.com/Orvanta-Cloud/orvanta-cli-docs --skill write-script-postgresql-orvanta-cloud

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps streamline the process of writing and testing PostgreSQL queries, reducing manual errors and improving efficiency.

Core Features & Use Cases

  • Query Writing: Guides users on how to write SQL queries efficiently.
  • Preview and Run Commands: Provides commands for previewing and running scripts.
  • Parameter Naming and Types: Offers a guide on how to name and type query parameters.
  • Streaming Results to S3: Explains how to stream query results directly to S3.
  • Use Case: A developer can use this Skill to write, test, and run a query to extract user data and stream the results to an S3 bucket for further processing.

Quick Start

Open the SKILL.md file under the skills/write-script-postgresql directory to begin crafting your PostgreSQL query.

Frequently Asked Questions about write-script-postgresql

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

FAQPage Schema
How do I write and test PostgreSQL queries without manual syntax errors?

To write and test PostgreSQL queries without manual syntax errors, this Skill guides you through efficient SQL query construction, correct parameter naming, and safe execution. It streamlines database development by providing commands to preview and run scripts.

Can I stream PostgreSQL query results directly to an S3 bucket?

Yes, you can stream PostgreSQL query results directly to an S3 bucket. This feature allows you to extract large datasets, such as user data for reporting and analytics, and route them to S3 for further downstream processing without manual export steps.

What is the best way to handle parameter types when writing PostgreSQL scripts?

The best way to handle parameter types in PostgreSQL scripts is to follow a structured naming and typing guide. This Skill provides explicit parameter handling rules to ensure correct syntax, preventing mismatched data types during query execution.

How do I preview a PostgreSQL query before executing it?

You can preview a PostgreSQL query before executing it by using the specific preview commands provided in the Skill's SKILL.md file. This allows you to verify script logic and syntax safely before running the query against your live database.

Does this PostgreSQL query writer support data retrieval for analytics tasks?

Yes, this PostgreSQL query writer supports data retrieval for analytics tasks. It is explicitly designed for reporting and data extraction workflows, enabling developers to construct, test, and run queries to pull analytical data efficiently.