rust-soham/golem-claw/golem-add-postgres-ts

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Using golem:rdbms/postgres from a TypeScript Golem agent. Use when the user asks to connect to PostgreSQL, run SQL, or use PostgreSQL from TypeScript agent code.

Install

npx vskill@latest install rust-soham/golem-claw/golem-add-postgres-ts

SKILL.md

Using PostgreSQL from a TypeScript Agent

The TypeScript SDK already includes the host module declaration for golem:rdbms/postgres@1.5.0.

Imports

ts
import { DbConnection, type DbValue } from "golem:rdbms/postgres@1.5.0";

Open a Connection

DbConnection.open(...) throws on failure, so use normal try / catch handling when needed.

ts
const conn = DbConnection.open("postgres://user:password@localhost:5432/app");

Query Data

PostgreSQL placeholders use $1, $2, ...

ts
const result = conn.query("SELECT $1::text", [{ tag: "text", val: "hello" } satisfies DbValue]);
const value = result.rows[0]?.values[0];
if (!value || (value.tag !== "text" && value.tag !== "varchar" && value.tag !== "bpchar")) {
throw new Error(`Unexpected PostgreSQL value: ${JSON.stringify(value)}`);
}
const message = value.val;

Execute Statements

ts
conn.execute(
"INSERT INTO notes (id, body) VALUES ($1, $2)",
[
{ tag: "int4", val: 1 },
{ tag: "text", val: "hello" },
],
);

Transactions

ts
const tx = conn.beginTransaction();
tx.execute("UPDATE notes SET body = $1 WHERE id = $2", [
{ tag: "text", val: "updated" },
{ tag: "int4", val: 1 },
]);
tx.commit();

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/rust-soham/golem-claw/golem-add-postgres-ts/badge)](https://verified-skill.com/skills/rust-soham/golem-claw/golem-add-postgres-ts)

Something wrong with this skill or its page? Tell us.