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.
npx agentmods add skills/jiushiwon/wg-skills/pgsql-module-skillnpx skills add jiushiwon/wg-skills --skill pgsql-module-skillgit clone --depth 1 https://github.com/jiushiwon/wg-skillsWrote 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.
[](https://agentmods.dev/skills/jiushiwon/wg-skills/pgsql-module-skill)<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/pgsql-module-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/pgsql-module-skill.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00120 | $0.01423 |
| Opus 5 | $0.00060 | $0.00711 |
| Sonnet 5 | $0.00024 | $0.00285 |
| Haiku 4.5 | $0.00012 | $0.00142 |
Grade A, and why
pgsql-module-skill scanned grade A with 0 findings 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 6d 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 212 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PostgreSQL Module Skill
面向已有后端项目的开发者,快速集成 PostgreSQL 能力。
能力清单
| 能力 | 说明 |
|---|---|
| 连接配置 | JDBC/连接池/环境变量配置 |
| 表结构设计 | DDL 建表/字段类型/约束 |
| ORM 映射 | 实体类/Repository/Service |
| JSON/JSONB | JSON 文档存储与查询 |
| 数组类型 | PostgreSQL 原生数组支持 |
| 索引优化 | 索引设计/慢查询优化 |
| 事务处理 | 声明式/编程式事务 |
| 主从复制 | 读写分离/流复制 |
触发场景
用户说"帮我加 PostgreSQL"或"集成 PostgreSQL"时触发。
核心配置
Java (Spring Boot)
# application.yml
spring:
datasource:
url: jdbc:postgresql://${PG_HOST:localhost}:${PG_PORT:5432}/${PG_DATABASE:myapp}
username: ${PG_USER:postgres}
password: ${PG_PASSWORD:}
driver-class-name: org.postgresql.Driver
hikari:
maximum-pool-size: 10
minimum-idle: 5
connection-timeout: 30000
Python (FastAPI)
# config.py
from pydantic_settings import BaseSettings
class Settings(BaseSettings):
pg_host: str = "localhost"
pg_port: int = 5432
pg_user: str = "postgres"
pg_password: str = ""
pg_database: str = "myapp"
# database.py
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
engine = create_engine(
f"postgresql+psycopg2://{user}:{password}@{host}:{port}/{database}",
pool_size=10,
max_overflow=20,
pool_pre_ping=True
)
SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
表结构设计
基础表模板
CREATE TABLE "wg_user" (
"id" BIGSERIAL PRIMARY KEY,
"username" VARCHAR(50) NOT NULL UNIQUE,
"password" VARCHAR(255) NOT NULL,
"nickname" VARCHAR(100),
"avatar" VARCHAR(500),
"email" VARCHAR(100),
"phone" VARCHAR(20),
"status" SMALLINT NOT NULL DEFAULT 1 CHECK (status IN (0, 1)),
"extra" JSONB DEFAULT '{}',
"tags" TEXT[] DEFAULT '{}',
"created_at" TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updated_at" TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
"deleted_at" TIMESTAMP
);
CREATE INDEX "idx_wg_user_status" ON "wg_user" ("status");
CREATE INDEX "idx_wg_user_created_at" ON "wg_user" ("created_at");
CREATE INDEX "idx_wg_user_extra" ON "wg_user" USING GIN ("extra");
COMMENT ON TABLE "wg_user" IS '用户表';
COMMENT ON COLUMN "wg_user"."username" IS '用户名';
What ships with it
1 file 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.
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.
- 6d ago First seen · 212 lines · 120 tokens per session scan A f8b3555ca907
pgsql-module-skill is a skill published in the GitHub repository jiushiwon/wg-skills (88 stars, last pushed 4d ago), licensed Apache-2.0. It adds 120 tokens to every session and 1,423 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
alloydb-basics
Manages clusters, instances, and backups for AlloyDB for PostgreSQL, and integrates with AlloyDB Model Context Protocol (MCP) tools for automated database operations. Use when creating, configuring, or administering AlloyDB databases. Do NOT use for general PostgreSQL instances (e.g. Cloud SQL) or other GCP databases.
postgresql-table-design
Use this skill when designing or reviewing a PostgreSQL-specific schema. Covers best-practices, data types, indexing, constraints, performance patterns, and advanced features.
db-repair
Auto-fix gbrain's Postgres access so the brain stays available. When any gbrain command or MCP tool result carries a GBRAINDBACCESS marker (or an operator reports the brain database is down), run the hardcoded gbrain db-repair ladder: diagnose, apply the safe tier, verify. The action is ALWAYS the hardcoded command …
claimable-postgres
Provision instant temporary Postgres databases via Claimable Postgres by Neon (neon.new) with no login, signup, or credit card. Supports REST API, CLI, and SDK. Use when users ask for a quick Postgres environment, a throwaway DATABASEURL for prototyping/tests, or "just give me a DB now". Triggers include: "quick…
dsql
Build with Aurora DSQL — manage schemas, execute queries, handle migrations, diagnose query plans, diagnose cluster performance, load data, and develop applications with a serverless, distributed SQL database. Covers IAM auth, multi-tenant patterns, MySQL-to-DSQL and PostgreSQL-to-DSQL schema conversion, foreign key…
volcengine-rds-postgresql
使用火山引擎 RDS PostgreSQL,帮助用户完成 RDS PostgreSQL 相关的实例管理、数据库操作、账号管理和运维任务,可直接调用 uv run ./scripts/callrdspostgresql.py 脚本获取实时结果。.