Agent skill

Postgres

by olasunkanmi-SE in olasunkanmi-SE/codebuddy

Manage PostgreSQL databases via the psql CLI. An agent skill from olasunkanmi-SE/codebuddy.

MITAuto-check passedAI & LLM Engineering

Install Postgres

skills CLI
$ npx skills add olasunkanmi-SE/codebuddy --skill postgres -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install olasunkanmi-SE/codebuddy postgres --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/olasunkanmi-SE/codebuddy.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/postgres .claude/skills/postgres && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
postgres
GitHub stars
141
Token cost
~207 tokens
SKILL.md length
43 words
Files
2
Skills in repo
11
Repo updated
First seen
Licence
MIT

At a glance

Manage PostgreSQL databases via the psql CLI. An agent skill from olasunkanmi-SE/codebuddy.

  • AI & LLM Engineering work in your project
  • SKILL.md covers Common Commands and Notes
  • Runs Shell scripts from its folder; calls psql

What it does

Postgres is an agent skill from olasunkanmi-SE/codebuddy. Manage PostgreSQL databases via the psql CLI.

Its SKILL.md is about 210 tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `install.sh`).

It sits in AI & LLM Engineering. It works with PostgreSQL. The repository describes itself as: An Autonomous AI Software Engineer. The licence is MIT.

When your agent uses it

  • AI & LLM Engineering work in your project

Example prompts

  • “/postgres”

Requirements

  • A Bash shell

What it can do on your machine

Read from SKILL.md and the folder at commit a9b8cd0. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • psql

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Postgres loads about 207 tokens when it runs. Until then it costs about 14 tokens; SKILL.md has 43 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~14
When it runs · the whole SKILL.md, loaded when a task matches
~207

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from olasunkanmi-SE/codebuddy at commit a9b8cd0, republished under its MIT licence (© olasunkanmi-SE). 43 words, ~207 tokens.

Download SKILL.mdSave it as .claude/skills/postgres/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
postgres
description
Manage PostgreSQL databases via the psql CLI.
metadata.displayName
PostgreSQL
metadata.icon
postgres
metadata.category
databases
metadata.version
1.0.0

psql

Use psql to interact with PostgreSQL databases.

Common Commands

Connection
  • Connect: psql "postgresql://user:password@host:port/dbname"
Operations
  • List databases: \l
  • List tables: \dt
  • Describe table: \d <table_name>
  • Execute query: SELECT * FROM table LIMIT 10;
  • Quit: \q

Notes

  • Requires psql to be installed in the environment.

© olasunkanmi-SE, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in skills/postgres of olasunkanmi-SE/codebuddy.

  • SKILL.md
  • install.sh

Open the folder on GitHubat commit a9b8cd0

Compare with similar skills

Postgres next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Postgres compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Postgres this skillolasunkanmi-SE/codebuddy141—~207Automated safety check: PassMIT
Pgvector Semantic Searchtimescale/pg-aiguide1.9k1 repos~3.8kAutomated safety check: PassApache-2.0
Pixeltablepixeltable/pixeltable1.6k—~216Automated safety check: PassApache-2.0
Postgres Hybrid Text Searchtimescale/pg-aiguide1.9k—~3.1kAutomated safety check: PassApache-2.0
Searching DocumentsGAIK-project/gaik-toolkit100—~4.2kAutomated safety check: PassMIT
Cocoindexdavila7/claude-code-templates32k2 repos~6.4kAutomated safety check: NotesMIT

Similar skills

  • Pgvector Semantic Search

    timescale/pg-aiguide

    A skill your agent uses for setting up vector similarity search with pgvector for AI/ML embeddings, RAG applications, or semantic search.

    1.9k GitHub starsUsed in 1 repo~3.8k tokens
    AI & LLM EngineeringAuto-check passed
  • Pixeltable

    pixeltable/pixeltable

    Build multimodal AI apps with Pixeltable. An agent skill from pixeltable/pixeltable.

    1.6k GitHub stars~216 tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Postgres Hybrid Text Search

    timescale/pg-aiguide

    A skill your agent uses to implement hybrid search combining BM25 keyword search with semantic vector search using Reciprocal Rank Fusion (RRF).

    1.9k GitHub stars~3.1k tokensUpdated 6 days ago
    AI & LLM EngineeringAuto-check passed
  • Searching Documents

    GAIK-project/gaik-toolkit

    Builds and debugs retrieval with the gaik toolkit — PgVectorStore, Ranker, FinnishTextProcessor, RelevanceGate — as hybrid search: pgvector similarity plus Postgres full-text, fused by rank, and the…

    100 GitHub stars~4.2k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed
  • Cocoindex

    davila7/claude-code-templates

    Comprehensive toolkit for developing with the CocoIndex library.

    32k GitHub starsUsed in 2 repos~6.4k tokens
    AI & LLM EngineeringAuto-check: notes
  • Vector DB

    ericrisco/rsc-harness

    A skill your agent uses when operating a vector store as a data layer — choosing or migrating between Pinecone, Qdrant, Weaviate and pgvector; designing a collection or index (distance metric…

    156 GitHub stars~2.8k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed

More from olasunkanmi-SE/codebuddy

All 11 skills in this repo
  • Datadog

    olasunkanmi-SE/codebuddy

    Query metrics, manage monitors, post events, and interact with Datadog via the dogshell CLI.

    141 GitHub stars~1.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Telegram

    olasunkanmi-SE/codebuddy

    Send Telegram messages, files, and interact with Telegram bots via the telegram-send CLI tool.

    141 GitHub stars~817 tokensUpdated 1 mo ago
    Auto-check passed
  • Elasticsearch

    olasunkanmi-SE/codebuddy

    Interact with Elasticsearch clusters via the API. An agent skill from olasunkanmi-SE/codebuddy.

    141 GitHub stars~425 tokensUpdated 1 mo ago
    Auto-check passed
  • Gmail

    olasunkanmi-SE/codebuddy

    Read, send, and manage Gmail emails via the gmail-cli tool. An agent skill from olasunkanmi-SE/codebuddy.

    141 GitHub stars~1.9k tokensUpdated 1 mo ago
    Auto-check: warnings
  • GitHub

    olasunkanmi-SE/codebuddy

    Manage GitHub repositories, issues, and pull requests via the gh CLI.

    141 GitHub stars~611 tokensUpdated 1 mo ago
    Auto-check: notes
  • GitLab

    olasunkanmi-SE/codebuddy

    Manage GitLab issues and merge requests via the glab CLI. An agent skill from olasunkanmi-SE/codebuddy.

    141 GitHub stars~476 tokensUpdated 1 mo ago
    Auto-check: notes

Works with

Questions about Postgres

What does Postgres do?

Manage PostgreSQL databases via the psql CLI. An agent skill from olasunkanmi-SE/codebuddy. Postgres is an agent skill from olasunkanmi-SE/codebuddy. Manage PostgreSQL databases via the psql CLI.

When should I use Postgres?

Postgres fits situations like: AI & LLM Engineering work in your project.

How do I install Postgres in Claude Code?

Run `npx skills add olasunkanmi-SE/codebuddy --skill postgres -a claude-code`. Or copy the skill folder (skills/postgres in olasunkanmi-SE/codebuddy) into .claude/skills/postgres in your project. Claude Code loads it when a task matches its description.

How do I install Postgres in Codex?

Run `npx skills add olasunkanmi-SE/codebuddy --skill postgres -a codex`. Or copy the skill folder (skills/postgres in olasunkanmi-SE/codebuddy) into .agents/skills/postgres in your project. Codex loads it when a task matches its description.

Can I use Postgres in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add olasunkanmi-SE/codebuddy --skill postgres -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/postgres, .gemini/skills/postgres, .github/skills/postgres and .opencode/skills/postgres in your project.

What does Postgres need to run?

Going by SKILL.md and its folder, Postgres needs a shell for the scripts in its folder and the command-line tools its instructions call (psql). Our summary lists: A Bash shell.

Does Postgres access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Postgres safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Postgres use?

Postgres is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Postgres use?

About 207 tokens (SKILL.md is roughly 828 characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Postgres?

Skills that share tags, products or a category with Postgres: Pgvector Semantic Search (timescale/pg-aiguide, 1.9k stars), Pixeltable (pixeltable/pixeltable, 1.6k stars), Postgres Hybrid Text Search (timescale/pg-aiguide, 1.9k stars) and Searching Documents (GAIK-project/gaik-toolkit, 100 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Postgres?

olasunkanmi-SE (a GitHub user) maintains it in olasunkanmi-SE/codebuddy, which has 141 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on August 28, 2026.

Source: olasunkanmi-SE/codebuddy on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.