Agent skill

Postgres Install Skill

by jiushiwon in jiushiwon/wg-skills

PostgreSQL 安装子技能。支持 apt/dnf/Docker 方式安装指定版本的 PostgreSQL,强制获取密码,幂等检测。当用户说「安装 PostgreSQL」「装 PG」时触发。

Apache-2.0Auto-check: notesDatabases

Install Postgres Install Skill

skills CLI
$ npx skills add jiushiwon/wg-skills --skill postgres-install-skill -a claude-code

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

GitHub CLI
$ gh skill install jiushiwon/wg-skills postgres-install-skill --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/jiushiwon/wg-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/vibeCoding/super-deploy-skills/database-install-skill/children/postgres-install-skill .claude/skills/postgres-install-skill && 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-install-skill
GitHub stars
110
Token cost
~422 tokens
SKILL.md length
61 words
Files
4 (incl. references)
Skills in repo
121
Repo updated
First seen
Licence
Apache-2.0

At a glance

PostgreSQL 安装子技能。支持 apt/dnf/Docker 方式安装指定版本的 PostgreSQL,强制获取密码,幂等检测。当用户说「安装 PostgreSQL」「装 PG」时触发。

  • Tasks that involve Skill management
  • SKILL.md covers Overview, When to Use, 交互流程 and 安装方式, plus 4 more sections
  • Calls docker
  • Tasks that involve Containers

What it does

Postgres Install Skill is an agent skill from jiushiwon/wg-skills. PostgreSQL 安装子技能。支持 apt/dnf/Docker 方式安装指定版本的 PostgreSQL,强制获取密码,幂等检测。当用户说「安装 PostgreSQL」「装 PG」时触发。

Its SKILL.md is about 420 tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `README.md`, `references/install-commands.md` and `references/password-scripts.md`).

It sits in Databases, covering Skill management and Containers. It works with PostgreSQL and Docker. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Skill management
  • Tasks that involve Containers

Example prompts

  • “/postgres-install-skill”

Requirements

  • Docker

What it can do on your machine

Read from SKILL.md and the folder at commit a4a640b. 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

    Shell commands in SKILL.md call:

    • docker

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

  • Network

    No URLs in SKILL.md. Its commands use docker, which can reach the network depending on how they are called.

    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 Install Skill loads about 422 tokens when it runs, and up to ~2.9k if it reads all its reference files. Until then it costs about 30 tokens; SKILL.md has 61 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~30
When it runs · the whole SKILL.md, loaded when a task matches
~422
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.9k

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: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteRuns commands with sudoSKILL.md:76
    - [ ] 启动服务: sudo systemctl start postgresql
  • NoteRuns commands with sudoSKILL.md:86
    sudo -u postgres psql -c "ALTER USER postgres WITH PASSWORD '你的密码';"
  • NoteRuns commands with sudoSKILL.md:89
    sudo pg_ctlcluster 16 main stop
  • NoteRuns commands with sudoSKILL.md:90
    sudo pg_ctlcluster 16 main start -o "-c auth=trust"
  • NoteRuns commands with sudoSKILL.md:91
    sudo -u postgres psql -c "ALTER USER postgres WITH PASSWORD '新密码';"
  • NoteRuns commands with sudoSKILL.md:92
    sudo pg_ctlcluster 16 main restart

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 jiushiwon/wg-skills at commit a4a640b, republished under its Apache-2.0 licence (© jiushiwon). 61 words, ~422 tokens.

Download SKILL.mdSave it as .claude/skills/postgres-install-skill/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
postgres-install-skill
description
PostgreSQL 安装子技能。支持 apt/dnf/Docker 方式安装指定版本的 PostgreSQL,强制获取密码,幂等检测。当用户说「安装 PostgreSQL」「装 PG」时触发。

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/RHELdnf install postgresql16-server
macOSbrew install postgresql@16
Windowswinget install PostgreSQL.PostgreSQL.16
Docker 安装
bash
docker pull postgres:16

版本选择

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

密码安全

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

输出

markdown
# 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

© jiushiwon, Apache-2.0. 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 3 other files (references) in vibeCoding/super-deploy-skills/database-install-skill/children/postgres-install-skill of jiushiwon/wg-skills.

  • SKILL.md
  • README.md
  • references/install-commands.md
  • references/password-scripts.md

Open the folder on GitHubat commit a4a640b

Compare with similar skills

Postgres Install Skill 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 Install Skill compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Postgres Install Skill this skilljiushiwon/wg-skills110—~422Automated safety check: NotesApache-2.0
Cloudrun DevelopmentTencentCloudBase/CloudBase-AI-Toolkit1.1k1 repos~7.2kAutomated safety check: PassMIT
Postgres Health Checkfmflurry/settings-opencode171—~3.3kAutomated safety check: PassMIT
Monstermq Broker Configvogler75/monster-mq142—~2.2kAutomated safety check: PassGPL-3.0
Local Platform E2Ecomputesdk/benchmarks126—~3kAutomated safety check: NotesMIT
Fly Io DeployerLeoYeAI/openclaw-master-skills2.2k—~6.3kAutomated safety check: NotesMIT

Similar skills

  • Cloudrun Development

    TencentCloudBase/CloudBase-AI-Toolkit

    CloudBase Run backend development rules (Function mode/Container mode).

    1.1k GitHub starsUsed in 1 repo~7.2k tokens
    DatabasesAuto-check passed
  • Postgres Health Check

    fmflurry/settings-opencode

    Read-only PostgreSQL instance health battery: connectivity/uptime, cache hit ratio, dead tuples & autovacuum hotspots, XID wraparound distance, long-running & idle-in-transaction sessions, unused…

    171 GitHub stars~3.3k tokensUpdated 2 days ago
    DatabasesAuto-check passed
  • Monstermq Broker Config

    vogler75/monster-mq

    Guide for configuring, deploying, and operating the MonsterMQ broker.

    142 GitHub stars~2.2k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Local Platform E2E

    computesdk/benchmarks

    Stand up benchmarks-platform locally (Postgres + MinIO + ClickHouse in docker) and run a real @benchsdk/runner benchmark against it, with no cloud or provider credentials.

    126 GitHub stars~3k tokensUpdated yesterday
    DatabasesAuto-check: notes
  • Fly Io Deployer

    LeoYeAI/openclaw-master-skills

    Deploy and operate Node, Python, Go, Rust, Elixir, and Docker apps on Fly.io with production-grade fly.toml authoring, Machines API orchestration, region selection (latency vs sovereignty vs…

    2.2k GitHub stars~6.3k tokensUpdated 2 mo ago
    DevOps & CloudAuto-check: notes
  • Cognee Docker Setup

    topoteretes/cognee

    Runs the Cognee AI memory platform in Docker, from a one-file prebuilt image to a full compose stack with UI, MCP server, Postgres and Neo4j.

    32k GitHub starsUsed in 1 repo~901 tokens
    DevOps & CloudAuto-check: notes

More from jiushiwon/wg-skills

All 121 skills in this repo
  • Frontend UI Foundry

    jiushiwon/wg-skills

    A skill your agent uses when generating UI for a specific scenario (mobile/PC/官网/管理端/营销页/文档/金融/原生/3D), when refactoring an existing HTML/Vue/React project to a unified design system, when extracting…

    110 GitHub stars~1.4k tokensUpdated 3 days ago
    Auto-check passed
  • Workflow Diagram Skill

    jiushiwon/wg-skills

    A skill your agent uses when 用户想用一句话生成流程图、工作流图解、开发流程图、AI 流程图或任何步骤型图解,支持多风格输出(flat icon / 暖白手账风 / dark / cute),并提供现成模板一键出图。

    110 GitHub stars~1.2k tokensUpdated 3 days ago
    Auto-check passed
  • Uniapp App Generate Skill

    jiushiwon/wg-skills

    This skill should be used when the user wants to create a standardized uni-app project for WeChat mini-program, H5, and App from scratch.

    110 GitHub stars~5k tokensUpdated 3 days ago
    Auto-check: notes
  • Fastapi Init Skill

    jiushiwon/wg-skills

    FastAPI 项目一键初始化技能。面向零基础小白,提供环境探测、自动安装、完整 Web 骨架生成、SSE 流式框架、JWT 鉴权、统一响应封装、文件上传接口、一键启动/重启脚本、Swagger 文档,内置 MySQL(默认)/ PostgreSQL / MongoDB 数据库选择。用户只需说"帮我搭一个 FastAPI 项目"即可一条命令完成从零到跑的完整链路。触发词:"FastAPI…

    110 GitHub stars~1.8k tokensUpdated 3 days ago
    Auto-check: notes
  • Ffmpeg Skill

    jiushiwon/wg-skills

    FFmpeg 多媒体处理技能 — 将自然语言描述转为正确的 ffmpeg 命令,覆盖视频剪辑、转码、水印、合成、提取、生成等操作。内置一键安装脚本(Windows/Mac/Linux)。触发词:ffmpeg、视频剪辑、视频裁剪、视频转码、视频压缩、去水印、加水印、视频拼接、视频合成、提取音频、视频转…

    110 GitHub stars~1.4k tokensUpdated 3 days ago
    Auto-check passed
  • Frontend Request Skill

    jiushiwon/wg-skills

    A skill your agent uses when designing or reviewing the request layer of a frontend project (web / uni-app / mini-program), including request.ts wrappers, interceptors, deduplication, mocks, error…

    110 GitHub stars~3.6k tokensUpdated 3 days ago
    Auto-check passed

Questions about Postgres Install Skill

What does Postgres Install Skill do?

PostgreSQL 安装子技能。支持 apt/dnf/Docker 方式安装指定版本的 PostgreSQL,强制获取密码,幂等检测。当用户说「安装 PostgreSQL」「装 PG」时触发。. Postgres Install Skill is an agent skill from jiushiwon/wg-skills.

When should I use Postgres Install Skill?

Postgres Install Skill fits situations like: tasks that involve Skill management; tasks that involve Containers.

How do I install Postgres Install Skill in Claude Code?

Run `npx skills add jiushiwon/wg-skills --skill postgres-install-skill -a claude-code`. Or copy the skill folder (vibeCoding/super-deploy-skills/database-install-skill/children/postgres-install-skill in jiushiwon/wg-skills) into .claude/skills/postgres-install-skill in your project. Claude Code loads it when a task matches its description.

How do I install Postgres Install Skill in Codex?

Run `npx skills add jiushiwon/wg-skills --skill postgres-install-skill -a codex`. Or copy the skill folder (vibeCoding/super-deploy-skills/database-install-skill/children/postgres-install-skill in jiushiwon/wg-skills) into .agents/skills/postgres-install-skill in your project. Codex loads it when a task matches its description.

Can I use Postgres Install Skill 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 jiushiwon/wg-skills --skill postgres-install-skill -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-install-skill, .gemini/skills/postgres-install-skill, .github/skills/postgres-install-skill and .opencode/skills/postgres-install-skill in your project.

What does Postgres Install Skill need to run?

Going by SKILL.md and its folder, Postgres Install Skill needs the command-line tools its instructions call (docker). Our summary lists: Docker.

Does Postgres Install Skill access the network?

SKILL.md contains no URLs. Its commands use docker, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Postgres Install Skill safe to install?

Our automated static check of SKILL.md found notes only (runs commands with sudo), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Postgres Install Skill use?

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

How many tokens does Postgres Install Skill use?

About 422 tokens (SKILL.md is roughly 1.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.4k tokens, read only when the agent opens those files.

What are the alternatives to Postgres Install Skill?

Skills that share tags, products or a category with Postgres Install Skill: Cloudrun Development (TencentCloudBase/CloudBase-AI-Toolkit, 1.1k stars), Postgres Health Check (fmflurry/settings-opencode, 171 stars), Monstermq Broker Config (vogler75/monster-mq, 142 stars) and Local Platform E2E (computesdk/benchmarks, 126 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Postgres Install Skill?

jiushiwon (a GitHub user) maintains it in jiushiwon/wg-skills, which has 110 GitHub stars. The repository holds 121 skills in this directory. The repository was last updated on October 4, 2026.

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