pgroles-operator

pgroles-operator is a skill for Claude Code, Codex from thepartly/pgroles. It costs 56 tokens per session (3,181 once invoked), scanned A, original, MIT.

A guide for installing, upgrading, reviewing, and troubleshooting the pgroles Kubernetes operator and its PostgresPolicy resources. Kubernetes runs and manages containerized applications, while PostgreSQL is a relational database.

In plain words
What is it for?
Use it to manage the operator, Helm releases, database access policies, status conflicts, reconciliation, and maintenance tasks.
Why use it?
It reduces upgrade and configuration mistakes by checking the installed chart and resource definitions before changes are applied.

Skill for Claude CodeCodex

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

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.

agentmods
npx agentmods add skills/thepartly/pgroles/pgroles-operator
Any agent
npx skills add thepartly/pgroles --skill pgroles-operator
Clone the repo
git clone --depth 1 https://github.com/thepartly/pgroles

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 pgroles-operator

README.md
[![agentmods](https://agentmods.dev/badge/skills/thepartly/pgroles/pgroles-operator.svg)](https://agentmods.dev/skills/thepartly/pgroles/pgroles-operator)
Your own site
<a href="https://agentmods.dev/skills/thepartly/pgroles/pgroles-operator"><img src="https://agentmods.dev/badge/skills/thepartly/pgroles/pgroles-operator.svg" alt="Measured on agentmods" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,181 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00056 $0.03181
Opus 5 $0.00028 $0.01590
Sonnet 5 $0.00011 $0.00636
Haiku 4.5 $0.00006 $0.00318

Measured yesterday against content hash 61fb8fcfa73b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

pgroles-operator 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 yesterday.

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.

skills/pgroles-operator/SKILL.md · 325 lines

How it starts

The opening of the file, as written. The whole thing — 325 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Pgroles Operator

Use the deployed chart and CRD as the schema authority. Do not copy fields from newer upstream documentation into an older cluster.

Load the pgroles-policy skill as well when changing roles, profiles, grants, memberships, ownership, default privileges, or retirements.

Install or upgrade with the Helm instructions for the target release. Always inspect chart values and rendered resources before applying an upgrade:

helm show values oci://ghcr.io/thepartly/charts/pgroles-operator \
  --version <version>
helm template pgroles-operator \
  oci://ghcr.io/thepartly/charts/pgroles-operator \
  --version <version> --namespace pgroles-system --include-crds \
  --values values.yaml > pgroles-operator-rendered.yaml

Helm does not upgrade objects shipped in a chart's crds/ directory. Apply the version-matched CRDs explicitly before upgrading the controller:

set -euo pipefail
helm show crds oci://ghcr.io/thepartly/charts/pgroles-operator \
  --version <version> > pgroles-operator-crds.yaml
test -s pgroles-operator-crds.yaml
kubectl apply --server-side -f pgroles-operator-crds.yaml
helm upgrade --install pgroles-operator \
  oci://ghcr.io/thepartly/charts/pgroles-operator \
  --version <version> --namespace pgroles-system --create-namespace \
  --values values.yaml

Review the rendered CRD and workload diff before applying it. The API is v1alpha1 and has no conversion webhook; check release notes for compatibility and rollback implications.

Execution And Reconciliation

Two independent controls determine behavior:

  • spec.mode: observe computes and publishes a filtered plan without executing PostgreSQL SQL.
  • spec.mode: apply may execute the filtered plan, subject to spec.approval.
  • spec.reconciliation_mode selects additive, adopt, or authoritative filtering. See the policy skill before changing it.

Treat observe to apply, approval changes, and stronger reconciliation modes as operational database migrations. Review generated SQL and replacement access before enabling execution.

Read the full file on GitHub · 325 lines

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. yesterday Changed · +16 lines 61fb8fcfa73b
  2. yesterday First seen · 309 lines · 56 tokens per session scan A 0beab5c9df45

Subscribe to this mod's changes

pgroles-operator is a skill published in the GitHub repository thepartly/pgroles (19 stars, last pushed yesterday), licensed MIT. It adds 56 tokens to every session and 3,181 once invoked, about $0.0003 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-09-05.

Related

Other skills, from other repositories

cloud-sql-basics

This file generates or explains Cloud SQL resources. Use this file when the user asks to create a Cloud SQL instance or database for MySQL, PostgreSQL, or SQL Server. Cloud SQL manages third-party MySQL, PostgreSQL, and SQL Server instances as resources in Cloud SQL. For example, when Cloud SQL creates an open-source…

google/skills · 108 tokens

moai-platform-database-cloud

Cloud database platform specialist covering Neon (serverless PostgreSQL), Supabase (PostgreSQL 16 with real-time), and Firebase Firestore (NoSQL with offline sync). Use when choosing or setting up cloud databases.

modu-ai/moai-adk · 51 tokens

aws-rds

Manage Amazon RDS for fully managed relational databases. Provision MySQL, PostgreSQL, and Aurora instances with automated backups and patching. Configure read replicas for scaling, snapshots for recovery, and Aurora Serverless for variable workloads.

TerminalSkills/skills · 52 tokens

huawei-cloud-rds-smart-service

Huawei Cloud RDS (Relational Database Service) full-scenario intelligent service covering all database engines (MySQL, PostgreSQL, SQL Server, MariaDB, GaussDB for MySQL, TaurusDB). Provides six capability domains: (1) Basic intelligent Q&A for RDS product features, best practices, and specifications; (2) SQL…

huaweicloud/huaweicloud-skills · 330 tokens

add-backup-db

Add automated Neon database backups to the current project. Registers the project as a snapshot target of the unified shared Cloudflare Worker "hypervibe-jobs" (one Worker per account for ALL background jobs, reused across projects) that creates point-in-time Neon branch snapshots every 2 weeks. Retention - rolling (2…

flavien-ia/hypervibe-harness · 129 tokens

postgres

Configure DigitalOcean Managed Postgres with bindable variables or schema isolation. Use when setting up databases, creating users, managing permissions, configuring multi-tenant schemas, or troubleshooting database connectivity on App Platform.

digitalocean-labs/do-app-platform-skills · 42 tokens