postgresql-devsec
Skill by sickn33
Administer PostgreSQL databases, covering installation, replication, backups and performance tuning. Written for teams managing PostgreSQL deployments on Linux or Docker. It is docs-only, and no helper scripts are bundled.
Install postgresql-devsec
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/postgresql-devsec ~/.claude/skills/postgresql-devsecRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-skills/skills/postgresql-devsec ~/.gemini/antigravity-cli/skills/postgresql-devsecAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is a docs-only guide for administering PostgreSQL databases in development and production. It covers installation on Debian, Ubuntu, RHEL-based and Amazon Linux systems, initial user and database setup, a psql command reference, and configuration tuning for memory, WAL, planner and logging settings. It also covers client authentication with pg_hba.conf, logical and physical backups, restores, and streaming replication setup.
The guide includes monitoring queries for connections, long-running queries, dead tuples, index usage and cache hit ratio. It also has a Docker Compose setup with PgBouncer, maintenance commands and a troubleshooting table. It stresses safety: confirm the target host and scope, use protected password files instead of inline passwords, restrict remote addresses and require TLS. It suits database administrators and DevOps engineers. Helper scripts and templates are not bundled.
Written from the project's SKILL.md and checked against it.
What it can do
- InstallationInstall PostgreSQL on Debian, Ubuntu, RHEL or Amazon Linux and verify the service.
- User and database setupCreate an application user and database with default privileges in the public schema.
- Configuration tuningSet memory, WAL, planner and logging parameters in postgresql.conf.
- Client authenticationWrite pg_hba.conf rules using scram-sha-256 and reject unmatched remote access.
- Logical and physical backupsUse pg_dump, pg_restore, pg_basebackup and pg_verifybackup for backups and restores.
- Streaming replicationSet up a primary and replica and check replication status with system views.
- Monitoring queriesCheck connections, slow queries, dead tuples, index usage and cache hit ratio.
- Docker Compose setupRun PostgreSQL 16 with PgBouncer in containers, bound to localhost.
- Maintenance tasksRun VACUUM, ANALYZE, concurrent reindexing and unused index checks.
- TroubleshootingMap common errors such as too many connections to likely causes and fixes.
What you need
- Linux server (Debian/Ubuntu or RHEL-based) or Docker
- Root or sudo access for package installation
- Familiarity with SQL fundamentals
Try asking
- Show me how to set up streaming replication from a primary to a replica.
- Write pg_dump and pg_restore commands to back up my mydb database.
- Suggest postgresql.conf memory settings for a server with 16 GB of RAM.
Good to know
- Docs-only import; upstream scripts and templates are not bundled.
- Restore examples with --clean destroy existing objects; restore to a new disposable database first.
- Infrastructure commands can disrupt services; confirm the target and have backups before changes.
- Dead-tuple and index usage figures are statistics estimates and can mislead on short observation windows.
Security check
C- Asks for administrator rights (sudo)In
skills/postgresql-devsec/SKILL.md:sudo
Checked automatically: skills/postgresql-devsec/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md11 KB
Alternatives to postgresql-devsec
All alternatives →Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.
Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.
Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.
Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.
Compare with hugging-face-datasets, db-repair or alloydb-basics
postgresql-devsec: common questions
Which operating systems does this PostgreSQL skill cover?
The examples cover Debian, Ubuntu, RHEL-based systems and Amazon Linux, or Docker. The source notes that OS tooling and privileged access are required where stated.
Is it safe to run the restore and replica commands as written?
The source warns against running them blindly. It says --clean destroys existing objects and that a replica data directory should only be emptied after verifying it and keeping a tested backup.
Does this skill include the scripts it mentions?
No. The source says it is docs-only and that helper scripts and templates are not bundled.
How do I install postgresql-devsec?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is postgresql-devsec free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is postgresql-devsec safe to use?
It scores 88 of 100. Grades: maintenance A, licence A, quality A. Security check: grade C (asks for administrator rights (sudo)). Review the code before you install. How grades work.
What are alternatives to postgresql-devsec?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
