Skip to main content

postgres

Manage PostgreSQL databases via the psql CLI. Use when querying, inspecting schema, or managing PostgreSQL databases.

来源信息

仓库
fworks-tech/agenthood
最近来源活动
2026年9月16日 21:10
检测到的 SKILL.md 语言
英语
星标
3
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
postgres
description
Manage PostgreSQL databases via the psql CLI. Use when querying, inspecting schema, or managing PostgreSQL databases.
license
MIT
metadata
{"category":"databases","dependencies":{"cli":"psql","checkCommand":"psql --version","install":{"darwin":"[Truncated]","linux":"[Truncated]","windows":"[Truncated]"}}}
# psql Use `psql` to interact with PostgreSQL databases. ## Common Commands ### Connection - Connect: `psql "postgresql://user:password@host:port/dbname"` - Connect with env var: `psql "${DATABASE_URL}"` ### Inspection - List databases: `\l` - List tables: `\dt` - Describe table: `\d <table_name>` - List schemas: `\dn` ### Queries - Execute query: `psql -c "SELECT * FROM table LIMIT 10" "${DATABASE_URL}"` - Execute from file: `psql -f migration.sql "${DATABASE_URL}"` - Quit: `\q` ## Notes - Requires `psql` installed. Set `DATABASE_URL` environment variable for connection string.
在 GitHub 查看