pluginagentmarketplace/custom-plugin-postgresql · Archived

postgresql-admin

Administer PostgreSQL - security, roles, permissions, maintenance

First seen Feb 10, 2026

Installation

$ npx skills add pluginagentmarketplace/custom-plugin-postgresql --skill postgresql-admin

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from pluginagentmarketplace/custom-plugin-postgresql · top by installs.

npx skills add pluginagentmarketplace/custom-plugin-postgresql

Browse all from pluginagentmarketplace/custom-plugin-postgresql

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 1
License LICENSE
Default branch main
Open issues 0
Status Archived

Skill metadata

Parsed from SKILL.md frontmatter.

Version3.0.0

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,723 B
  • docs SUMMARY.md 89 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 3 installs

SKILL.md

PostgreSQL Administration Skill

Atomic skill for database security and maintenance

Overview

Production-ready patterns for role management, security hardening, and routine maintenance.

Prerequisites

  • PostgreSQL 16+
  • Superuser or role management privileges

Parameters

parameters:
  operation:
    type: string
    required: true
    enum: [create_role, grant, revoke, audit, maintain]
  role_name:
    type: string
    pattern: "^[a-z][a-z0-9_]*$"

Quick Reference

Role Creation

CREATE ROLE app_user WITH LOGIN PASSWORD 'secure' CONNECTION LIMIT 100;
CREATE ROLE readonly_role;
GRANT SELECT ON ALL TABLES IN SCHEMA app TO readonly_role;

Security Hardening

REVOKE ALL ON SCHEMA public FROM PUBLIC;
ALTER TABLE data ENABLE ROW LEVEL SECURITY;
CREATE POLICY isolation ON data USING (tenant_id = current_setting('app.tenant')::uuid);

Maintenance

ANALYZE VERBOSE table_name;
VACUUM (VERBOSE, ANALYZE) table_name;
REINDEX INDEX CONCURRENTLY idx_name;

Security Audit

SELECT rolname FROM pg_roles WHERE rolsuper;  -- Superusers
SELECT * FROM information_schema.table_privileges WHERE grantee = 'PUBLIC';

Troubleshooting

Error Cause Solution
42501 Permission denied Check GRANTs
28P01 Auth failed Reset password
55P03 Lock unavailable Kill blocker

Usage

Skill("postgresql-admin")