DB Admin
EliasOulkadi/shokunin
PostgreSQL database administration — backup/restore (pgdump, PITR, WAL archiving), health monitoring (connections, bloat, cache hit ratio, dead tuples), connection pooling (PgBouncer), replication…
Restore a PostgreSQL database backup to a Railway environment.
$ npx skills add modelguide/modelguide --skill mg-railway-db-restore -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install modelguide/modelguide mg-railway-db-restore --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/modelguide/modelguide.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/mg-railway-db-restore .claude/skills/mg-railway-db-restore && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "mg-railway-db-restore" agent skill from https://github.com/modelguide/modelguide/tree/main/.claude/skills/mg-railway-db-restore into .claude/skills/mg-railway-db-restore/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mg-railway-db-restore", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/modelguide/modelguide/tree/main/.claude/skills/mg-railway-db-restoreType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add modelguide/modelguide --skill mg-railway-db-restore -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install modelguide/modelguide mg-railway-db-restore --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/modelguide/modelguide.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/mg-railway-db-restore .agents/skills/mg-railway-db-restore && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "mg-railway-db-restore" agent skill from https://github.com/modelguide/modelguide/tree/main/.claude/skills/mg-railway-db-restore into .agents/skills/mg-railway-db-restore/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mg-railway-db-restore", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add modelguide/modelguide --skill mg-railway-db-restore -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install modelguide/modelguide mg-railway-db-restore --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/modelguide/modelguide.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/mg-railway-db-restore .cursor/skills/mg-railway-db-restore && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "mg-railway-db-restore" agent skill from https://github.com/modelguide/modelguide/tree/main/.claude/skills/mg-railway-db-restore into .cursor/skills/mg-railway-db-restore/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mg-railway-db-restore", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/modelguide/modelguide.git --path .claude/skills/mg-railway-db-restore--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add modelguide/modelguide --skill mg-railway-db-restore -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install modelguide/modelguide mg-railway-db-restore --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/modelguide/modelguide.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/mg-railway-db-restore .gemini/skills/mg-railway-db-restore && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "mg-railway-db-restore" agent skill from https://github.com/modelguide/modelguide/tree/main/.claude/skills/mg-railway-db-restore into .gemini/skills/mg-railway-db-restore/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mg-railway-db-restore", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install modelguide/modelguide mg-railway-db-restoreInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add modelguide/modelguide --skill mg-railway-db-restore -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/modelguide/modelguide.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/mg-railway-db-restore .github/skills/mg-railway-db-restore && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "mg-railway-db-restore" agent skill from https://github.com/modelguide/modelguide/tree/main/.claude/skills/mg-railway-db-restore into .github/skills/mg-railway-db-restore/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mg-railway-db-restore", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add modelguide/modelguide --skill mg-railway-db-restore -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install modelguide/modelguide mg-railway-db-restore --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/modelguide/modelguide.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/mg-railway-db-restore .opencode/skills/mg-railway-db-restore && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "mg-railway-db-restore" agent skill from https://github.com/modelguide/modelguide/tree/main/.claude/skills/mg-railway-db-restore into .opencode/skills/mg-railway-db-restore/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mg-railway-db-restore", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
mg-railway-db-restoreRestore a PostgreSQL database backup to a Railway environment.
Mg Railway DB Restore is an agent skill from modelguide/modelguide. Restore a PostgreSQL database backup to a Railway environment. Use when the user asks to "restore db", "load database", "restore backup to railway", "import db", or "restore db to environment".
Its SKILL.md is about 560 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Databases, covering Database administration. It works with PostgreSQL. The repository describes itself as: Open-source voice agent orchestration framework - build production voice AI pipelines without vendor lock-in. The licence is MIT.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 554caa0. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
railwayFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Mg Railway DB Restore loads about 562 tokens when it runs. Until then it costs about 54 tokens; SKILL.md has 165 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from modelguide/modelguide at commit 554caa0, republished under its MIT licence (© modelguide). 165 words, ~562 tokens.
.claude/skills/mg-railway-db-restore/SKILL.md (or your agent's skills folder).Restore a local PostgreSQL backup file to a Railway environment.
Ask the user if not provided:
demo-upgrade, staging).dump.gz file (check .claude/local/ for available backups)List available backups (if user didn't specify a file):
ls -lh <project-root>/.claude/local/*.dump.gzLink to the correct project and environment using Railway MCP link-environment tool:
<project-root><environment>Restore the backup — credentials piped from Railway CLI (never write credential values in commands):
VARS=$(railway variables -s Postgres -e <environment> --kv 2>/dev/null) && \
export PGPASSWORD=$(echo "$VARS" | grep '^PGPASSWORD=' | cut -d= -f2-) && \
PGUSER=$(echo "$VARS" | grep '^PGUSER=' | cut -d= -f2-) && \
PGDATABASE=$(echo "$VARS" | grep '^PGDATABASE=' | cut -d= -f2-) && \
DB_URL=$(echo "$VARS" | grep '^DATABASE_PUBLIC_URL=' | cut -d= -f2-) && \
PGHOST=$(echo "$DB_URL" | sed 's|postgresql://[^@]*@||;s|:.*||') && \
PGPORT=$(echo "$DB_URL" | sed 's|.*:||;s|/.*||') && \
gunzip -c <backup-file-path> | pg_restore --clean --if-exists --no-owner --no-acl \
-h "$PGHOST" -p "$PGPORT" -U "$PGUSER" -d "$PGDATABASE"This reads credentials from railway variables into shell vars at runtime — no secrets ever appear in the command text.
Report success or any errors to the user.
postgresql@17 homebrew package--clean --if-exists drops existing objects before recreating (safe for existing databases)--no-owner --no-acl ensures compatibility across environments© modelguide, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .claude/skills/mg-railway-db-restore of modelguide/modelguide.
Open the folder on GitHubat commit 554caa0
Mg Railway DB Restore next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Mg Railway DB Restore this skillmodelguide/modelguide | 108 | — | ~562 | Automated safety check: Pass | MIT | |
| DB AdminEliasOulkadi/shokunin | 114 | — | ~2k | Automated safety check: Notes | MIT | |
| Postgres Expertcin12211/orca-q | 224 | — | ~5.5k | Automated safety check: Pass | MIT | |
| Postgres ExpertRightNow-AI/openfang | 18k | — | ~830 | Automated safety check: Pass | Apache-2.0 | |
| Optimizing Database Connection Poolingjeremylongshore/tons-of-skills-marketplace | 2.8k | — | ~1.9k | Automated safety check: Pass | MIT | |
| Postgres Optimizationrohitg00/awesome-claude-code-toolkit | 2.7k | — | ~1.1k | Automated safety check: Pass | Apache-2.0 |
EliasOulkadi/shokunin
PostgreSQL database administration — backup/restore (pgdump, PITR, WAL archiving), health monitoring (connections, bloat, cache hit ratio, dead tuples), connection pooling (PgBouncer), replication…
cin12211/orca-q
PostgreSQL query optimization, JSONB operations, advanced indexing strategies, partitioning, connection management, and database administration.
RightNow-AI/openfang
PostgreSQL expert for query optimization, indexing, extensions, and database administration
jeremylongshore/tons-of-skills-marketplace
Process use when you need to work with connection management.
rohitg00/awesome-claude-code-toolkit
PostgreSQL optimization including indexes, query plans, partitioning, JSONB operations, and connection pooling
digoal/blog
Portable digital employee distilled from digoal's personal blog for PostgreSQL, PolarDB, DuckDB, AI+database, vector/RAG, database operations, source-code reading, technical content creation…
modelguide/modelguide
Generate YAML configuration files and run CLI commands to onboard organizations into ModelGuide.
modelguide/modelguide
A skill your agent uses when the user asks to add a connector, create a connector, implement a connector for a service, add a tool to a connector, update a connector tool, or asks about connector…
modelguide/modelguide
Use before committing significant code changes to verify project integrity.
modelguide/modelguide
Trigger phrases - "reset local db", "recreate local postgres", "restore dump to local", "reset local database", "load backup locally"
modelguide/modelguide
Backup a PostgreSQL database from a Railway environment. An agent skill from modelguide/modelguide.
modelguide/modelguide
Deploy all ModelGuide services (API, UI, LB) to a Railway environment.
Works with
Categories
Restore a PostgreSQL database backup to a Railway environment. Mg Railway DB Restore is an agent skill from modelguide/modelguide. Restore a PostgreSQL database backup to a Railway environment.
Mg Railway DB Restore fits situations like: the user asks to restore db; restore backup to railway; restore db to environment.
Run `npx skills add modelguide/modelguide --skill mg-railway-db-restore -a claude-code`. Or copy the skill folder (.claude/skills/mg-railway-db-restore in modelguide/modelguide) into .claude/skills/mg-railway-db-restore in your project. Claude Code loads it when a task matches its description.
Run `npx skills add modelguide/modelguide --skill mg-railway-db-restore -a codex`. Or copy the skill folder (.claude/skills/mg-railway-db-restore in modelguide/modelguide) into .agents/skills/mg-railway-db-restore in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add modelguide/modelguide --skill mg-railway-db-restore -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mg-railway-db-restore, .gemini/skills/mg-railway-db-restore, .github/skills/mg-railway-db-restore and .opencode/skills/mg-railway-db-restore in your project.
Going by SKILL.md and its folder, Mg Railway DB Restore needs the command-line tools its instructions call (railway).
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Mg Railway DB Restore is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 562 tokens (SKILL.md is roughly 2.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Mg Railway DB Restore: DB Admin (EliasOulkadi/shokunin, 114 stars), Postgres Expert (cin12211/orca-q, 224 stars), Postgres Expert (RightNow-AI/openfang, 18k stars) and Optimizing Database Connection Pooling (jeremylongshore/tons-of-skills-marketplace, 2.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
modelguide (a GitHub organization) maintains it in modelguide/modelguide, which has 108 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on June 20, 2026.
Source: modelguide/modelguide on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.