golem-add-postgres-ts

Connect TypeScript Golem agents to PostgreSQL with parameterized SQL and transactions.

Updated May 17, 2026
One-click install
npx skills add https://github.com/Rust-soham/golem-claw --skill golem-add-postgres-ts-rust-soham
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: golem-add-postgres-ts
Source: https://github.com/Rust-soham/golem-claw/tree/main/packages/golem/.agents/skills/golem-add-postgres-ts
Command: npx skills add https://github.com/Rust-soham/golem-claw --skill golem-add-postgres-ts-rust-soham

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you connect a TypeScript Golem agent to PostgreSQL and run safe, parameterized SQL without hand-rolling boilerplate.

Core Features & Use Cases

  • Open PostgreSQL connections: Uses golem:rdbms/postgres in TypeScript and supports normal try/catch handling for failures.
  • Query and execute SQL with placeholders: Supports PostgreSQL-style $1, $2, ... parameter binding using typed DbValue values.
  • Run statements inside transactions: Begins a transaction, executes updates, and commits for atomic changes.

Real-world example: a TypeScript agent receives a request to create a note, fetches related rows, and then updates multiple tables in a single transaction to keep data consistent.

Quick Start

Use the golem-add-postgres-ts Skill to connect to your PostgreSQL database, then run parameterized SELECT/INSERT/UPDATE statements from a TypeScript Golem agent.

Frequently Asked Questions about golem-add-postgres-ts

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

FAQPage Schema
How do I connect a TypeScript Golem agent to PostgreSQL?

You connect a TypeScript Golem agent to PostgreSQL by using the golem:rdbms/[email protected] DbConnection interface. This enables your agent to establish database connections and execute SQL statements safely using normal try/catch handling for failures.

How do I run parameterized SQL queries in TypeScript using Golem?

You run parameterized SQL queries in TypeScript by using PostgreSQL-style $1, $2 placeholders and passing typed DbValue parameters. This approach ensures safe data access and prevents SQL injection when executing SELECT, INSERT, or UPDATE statements from your agent code.

Can I execute transactional database updates from a Golem TypeScript agent?

Yes, you can execute transactional database updates from a Golem TypeScript agent. Use the beginTransaction method to start a transaction, execute your SQL updates, and call commit to apply atomic changes across multiple tables for data consistency.

What placeholder syntax does PostgreSQL use for parameterized queries in TypeScript?

PostgreSQL parameterized queries in TypeScript use Pg-style $1, $2, ... placeholder syntax. You bind values to these placeholders using typed DbValue parameters, ensuring safe query execution without hand-rolling boilerplate connection code.

Does this Skill support atomic updates across multiple PostgreSQL tables?

Yes, this Skill supports atomic updates across multiple PostgreSQL tables. By using beginTransaction and commit within your TypeScript agent, you can execute multiple related SQL statements and ensure they either all succeed or roll back to maintain data consistency.