postgres-install-skill

postgres-install-skill is a skill for Claude Code, Codex from jiushiwon/wg-skills. It costs 52 tokens per session (687 once invoked), scanned B, original, Apache-2.0.

A PostgreSQL installation helper for setting up PostgreSQL, a relational database that stores structured data in tables. It supports package managers or Docker and asks for a database password before installing.

In plain words
What is it for?
Use it to install PostgreSQL 16, 15, or 14, then follow the checklist to start the service, create databases and users, and grant access.
Why use it?
It avoids searching for operating-system-specific commands and keeps installation separate from database initialization. It also provides password-change and reset instructions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to install PostgreSQL 16, 15, or 14, then follow the checklist to start the service, create databases and users, and grant access.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jiushiwon/wg-skills/postgres-install-skill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jiushiwon/wg-skills --skill postgres-install-skill
Clone the repo
git clone --depth 1 https://github.com/jiushiwon/wg-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for postgres-install-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/jiushiwon/wg-skills/postgres-install-skill/github.svg)](https://agentmods.dev/skills/jiushiwon/wg-skills/postgres-install-skill)
Your own site
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/postgres-install-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/postgres-install-skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for postgres-install-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/postgres-install-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/postgres-install-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 687 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00052 $0.00687
Opus 5.5 $0.00021 $0.00275
Sonnet 5.5 $0.00010 $0.00137
Haiku 4.5 $0.00005 $0.00069

Measured 2mo ago against content hash eadf1e0f8ec8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

postgres-install-skill scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- [ ] 启动服务: sudo systemctl start postgresql
super-deploy-skills/database-install-skill/children/postgres-install-skill/SKILL.md · 99 lines

What it actually says

PostgreSQL Install Skill

Overview

本技能负责在目标服务器上安装 PostgreSQL。支持多种安装方式,强制获取密码,幂等检测。

When to Use

触发词:

  • 安装 PostgreSQL
  • 装 PG
  • install postgresql

交互流程

1. 检测当前系统(OS + 版本 + 包管理器)
2. 询问安装方式(包管理器 / Docker)
3. 询问版本(16 / 15 / 14)
4. [强制] 获取数据库 root 密码 → 不输入则拒绝
5. 执行安装(幂等)
6. 不执行初始化,输出初始化清单
7. 输出修改密码和重置密码脚本

安装方式

包管理器安装

OS 安装命令
Ubuntu/Debian 添加 PGDG 仓库 + apt install postgresql-16
CentOS/RHEL dnf install postgresql16-server
macOS brew install postgresql@16
Windows winget install PostgreSQL.PostgreSQL.16

Docker 安装

docker pull postgres:16

版本选择

  • PostgreSQL 16(最新)
  • PostgreSQL 15
  • PostgreSQL 14

密码安全

  • 强制获取密码:不输入密码则直接拒绝安装
  • 不显示输入:交互式输入时不显示密码
  • 不记录密码:不将密码写入脚本或日志

输出

# PostgreSQL 安装完成

## 系统信息
- OS: Ubuntu 22.04 LTS
- 包管理器: apt

## 安装结果
- 版本: PostgreSQL 16
- 安装方式: apt
- 状态: ✅ 已安装

## 下一步(手动执行)
- [ ] 启动服务: sudo systemctl start postgresql
- [ ] 初始化数据库

## 初始化清单
- [ ] 1. 启动 PostgreSQL 服务
- [ ] 2. 修改 postgres 用户密码
- [ ] 3. 创建业务数据库
- [ ] 4. 创建业务用户并授权

## 修改密码脚本
sudo -u postgres psql -c "ALTER USER postgres WITH PASSWORD '你的密码';"

## 忘记密码急救脚本
sudo pg_ctlcluster 16 main stop
sudo pg_ctlcluster 16 main start -o "-c auth=trust"
sudo -u postgres psql -c "ALTER USER postgres WITH PASSWORD '新密码';"
sudo pg_ctlcluster 16 main restart

Resources

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 99 lines · 52 tokens per session scan B eadf1e0f8ec8

Subscribe to this mod's changes

postgres-install-skill is a skill published in the GitHub repository jiushiwon/wg-skills (154 stars, last pushed 7d ago), licensed Apache-2.0. It adds 52 tokens to every session and 687 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-30.

Related

postgres-install-skill compared with skills from other repositories

postgres-install-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
postgres-install-skilljiushiwon/wg-skillsSkill1547d agoApache-2.0B52Claude Code, Codex
alloydb-basicsgoogle/skillsSkill25ktodayApache-2.0A72Claude Code, Codex
postgresql-table-designwshobson/agentsSkill43kyesterdayMITA37Claude Code
db-repairgarrytan/gbrainSkill34ktodayMITA96Claude Code
dsqlawslabs/agent-pluginsSkill955todayApache-2.0A247Claude Code
volcengine-rds-postgresqlbytedance/agentkit-samplesSkill496todayApache-2.0A63Claude Code, Codex
analyzing-insights-across-teamsPostHog/posthog-fossSkill734todayMITA115Claude Code, Codex