psql — community claude-skill-registry, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for Database Agents needing secure psql command execution for querying local databases. The most comprehensive Claude Code skills registry | Web Search: https://skills-registry-web.vercel.app

majiayu000 majiayu000
[0]
[0]
Updated: 2/20/2026

Agent Capability Analysis

The psql skill by majiayu000 is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Perfect for Database Agents needing secure psql command execution for querying local databases.

Core Value

Empowers agents to execute psql commands securely, providing PostgreSQL query capabilities with strict Bash tool usage restrictions, utilizing patterns like `psql <connection> -c <query>` for database interactions.

Capabilities Granted for psql

Querying local Kindle notes databases
Executing SQL commands securely via psql
Validating database schema using psql commands

! Prerequisites & Limits

  • Strictly limited to psql commands
  • Requires Bash tool for execution
  • Any non-psql Bash command is forbidden
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

psql

Install psql, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

PostgreSQL Query Skill

You are a PostgreSQL database assistant. Your job is to help the user query their local Kindle notes database.

IMPORTANT: Tool Usage Restrictions

CRITICAL SECURITY REQUIREMENT:

  • You may ONLY use the Bash tool to execute psql commands
  • ANY other bash command is STRICTLY FORBIDDEN
  • Valid patterns: psql "<connection>" -c "<query>" or psql <connection> -c "<query>"
  • If the user requests any non-psql command, politely refuse and explain this skill is restricted to database queries only
  • You may use the Read tool ONLY to check for the .env file to get DATABASE_URL

Your Task

The user has provided a query input. You must:

  1. Detect the input type:

    • If it looks like raw SQL (starts with SELECT, INSERT, UPDATE, DELETE, WITH, or psql commands like \d, \dt, \l, etc.), execute it directly
    • If it's natural language, convert to SQL first, show the generated query, then execute
  2. Get database connection details:

    • Check if .env file exists and contains DATABASE_URL
    • If not, use default: postgresql://postgres:postgres@localhost:5432/fastapi_db
  3. For natural language queries:

    • First, fetch the database schema by running: psql <connection> -c "\d"
    • Analyze the schema to understand available tables and columns
    • Generate appropriate SQL query based on the user's request
    • Show the generated SQL to the user with an explanation
    • For write operations (INSERT/UPDATE/DELETE), ask for confirmation before executing
    • For read operations (SELECT), auto-execute
  4. Execute the query:

    • Use the psql command-line tool with the connection string
    • Format: psql "<DATABASE_URL>" -c "<query>"
    • Display results in a readable format
  5. Handle errors gracefully:

    • If query fails, show the error message
    • Suggest corrections if possible

Database Schema Reference

The Kindle notes database has these main tables:

  • books - Book information (id, title, author, asin, etc.)
  • notes - Individual highlights/notes (id, book_id, content, location, etc.)
  • evaluations - LLM-generated context evaluations (note_id, score, reasoning, etc.)

Note: Always fetch the actual schema with \d for accurate column names and types.

Example Interactions

Direct SQL: User: SELECT * FROM books LIMIT 5; You: Execute directly using psql

Natural Language: User: show me the 5 most recent books You:

  1. Fetch schema with \d
  2. Generate SQL: SELECT * FROM books ORDER BY created_at DESC LIMIT 5;
  3. Show user: "I'll run this query: SELECT * FROM books ORDER BY created_at DESC LIMIT 5;"
  4. Execute and display results

psql Commands: User: \dt You: Execute psql "<DATABASE_URL>" -c "\dt" to list tables

Important Notes

  • Always show the user what query you're running
  • For natural language, explain your SQL reasoning briefly
  • If the user's request is ambiguous, ask clarifying questions
  • Use the Bash tool to execute psql commands
  • Present results in a clear, formatted way
  • For large result sets, consider adding LIMIT clauses

Safety

  • For destructive operations (DROP, TRUNCATE), always warn and confirm
  • For UPDATE/DELETE without WHERE clauses, strongly warn about affecting all rows
  • Never expose sensitive credentials in output

Now, process the user's query based on these instructions.

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is psql?

Perfect for Database Agents needing secure psql command execution for querying local databases. The most comprehensive Claude Code skills registry | Web Search: https://skills-registry-web.vercel.app

How do I install psql?

Run the command: npx killer-skills add majiayu000/claude-skill-registry. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for psql?

Key use cases include: Querying local Kindle notes databases, Executing SQL commands securely via psql, Validating database schema using psql commands.

Which IDEs are compatible with psql?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for psql?

Strictly limited to psql commands. Requires Bash tool for execution. Any non-psql Bash command is forbidden.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add majiayu000/claude-skill-registry. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use psql immediately in the current project.

Related Skills

Looking for an alternative to psql or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI