seed-postgres

seed-postgres is a skill for Claude Code from JimmyPaolini/codebase. It costs 53 tokens per session (844 once invoked), scanned A, original, MIT.

A guide for exporting and importing data in local PostgreSQL databases, which store structured application data. It covers complete databases, schemas, and selected tables using the repository's Nx commands.

In plain words
What is it for?
Use it to back up, dump, export, restore, import, or copy local PostgreSQL databases, schemas, and tables.
Why use it?
It provides a consistent way to back up or restore local database data while using the repository's configured credentials and output location.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to back up, dump, export, restore, import, or copy local PostgreSQL databases, schemas, and tables.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jimmypaolini/codebase/seed-postgres
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.

Any agent
npx skills add JimmyPaolini/codebase --skill seed-postgres
Clone the repo
git clone --depth 1 https://github.com/JimmyPaolini/codebase

Made for: Claude Code.

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 seed-postgres

README.md
[![agentmods](https://agentmods.dev/badge/skills/jimmypaolini/codebase/seed-postgres/github.svg)](https://agentmods.dev/skills/jimmypaolini/codebase/seed-postgres)
Your own site
<a href="https://agentmods.dev/skills/jimmypaolini/codebase/seed-postgres"><img src="https://agentmods.dev/badge/skills/jimmypaolini/codebase/seed-postgres/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for seed-postgres

Your own site · 80×15
<a href="https://agentmods.dev/skills/jimmypaolini/codebase/seed-postgres"><img src="https://agentmods.dev/badge/skills/jimmypaolini/codebase/seed-postgres.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 844 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00053 $0.00844
Opus 5.5 $0.00021 $0.00338
Sonnet 5.5 $0.00011 $0.00169
Haiku 4.5 $0.00005 $0.00084

Measured 3mo ago against content hash edc76ced7f1b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

seed-postgres 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 3mo 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.

.agents/skills/seed-postgres/SKILL.md · 138 lines

How it starts

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

PostgreSQL Data Management

When to Use

Use this skill when you need to:

  • Backup or export the entire local PostgreSQL database.
  • Dump specific databases, schemas, or tables (often referred to as collections).
  • Restore or import data into the local PostgreSQL instance.

Prerequisites

  • The PostgreSQL container must be running. Use nx run codebase:postgres-container:up to start it.
  • pg_dump and pg_restore (version 18) must be installed locally. If you see version mismatch errors, ensure the client tools are installed via Homebrew (brew install postgresql@18) or apt.

Procedure

Dumps and restores are managed securely via Nx targets, which pull credentials directly from the .env file and output to the data/ folder at the workspace root.

Choose the appropriate command based on the required scope:

Dumps (Backup/Export)

Files are exported using the custom format (-Fc) and saved as .dump files in the data/ folder.

  1. Complete Database Cluster:

    nx run codebase:postgres-data:dump-complete
    
    
  2. Dictionary Tables Only:

    nx run codebase:postgres-data:dump-dictionary
    
    
  3. Literature Tables Only:

    nx run codebase:postgres-data:dump-literature
    
    
  4. Specific Database:

    nx run codebase:postgres-data:dump-database --database=<database_name>
    
    
  5. Specific Schema:

    nx run codebase:postgres-data:dump-schema --schema=<schema_name>
    
    
  6. Specific Table (Single Collection):

    nx run codebase:postgres-data:dump-table --table=<table_name>
    
    
  7. Custom Flags (Multiple Tables):

    nx run codebase:postgres-data:dump-custom --flags="-t table1 -t table2" --name="my_dump"
    
    

Restores (Import)

Restores are destructive by default. They use the clean flag (-c) to drop existing objects before restoring, and run in a single transaction (-1).

  1. Complete Database Cluster:

    nx run codebase:postgres-data:restore-complete
    
    

Read the full file on GitHub · 138 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. 3mo ago First seen · 138 lines · 53 tokens per session scan A edc76ced7f1b

Subscribe to this mod's changes

seed-postgres is a skill published in the GitHub repository JimmyPaolini/codebase (0 stars, last pushed 2mo ago), licensed MIT. It adds 53 tokens to every session and 844 once invoked, about $0.0002 per session on Opus 5.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-01.

Related

seed-postgres compared with skills from other repositories

seed-postgres next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
seed-postgresJimmyPaolini/codebaseSkill02mo agoMITA53Claude Code
alloydb-basicsgoogle/skillsSkill25ktodayApache-2.0A72Claude Code, Codex
postgresql-table-designwshobson/agentsSkill43k6d agoMITA37Claude Code
db-repairgarrytan/gbrainSkill34ktodayMITA96Claude Code
dsqlawslabs/agent-pluginsSkill953todayApache-2.0A247Claude Code
volcengine-rds-postgresqlbytedance/agentkit-samplesSkill4965d agoApache-2.0A63Claude Code, Codex
postgresdbericrisco/rsc-harnessSkill6825d agoMITA91Claude Code, Codex