database
This skill should be used when the user wants to add a database (Postgres, Redis, MySQL, MongoDB), says "add postgres", "add redis", "add database", "connect…
Skill by artivilla
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/artivilla-database
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Shell scripts
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/database
Tools it pre-approves 1
From allowed-tools in SKILL.md: the agent may use these without asking you each time.
Bash(railway:*)
What's inside
- Skill name
database- Description
- This skill should be used when the user wants to add a database (Postgres, Redis, MySQL, MongoDB), says "add postgres", "add redis", "add database", "connect to database", or "wire up the database". For other templates (Ghost, Strapi, n8n, etc.), use the templates skill.
- License
- MIT
- Allowed tools
- Bash(railway:*)
- Instructions
- 280 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
- Pre-approves some shell commands
Files (6)
- SKILL.md
- environment-config.md · references/
- monorepo.md · references/
- railpack.md · references/
- variables.md · references/
- railway-api.sh · scripts/
SKILL.md (first lines)
# Database
Add official Railway database services. These are maintained templates with pre-configured volumes, networking, and connection variables.
For non-database templates, see the `templates` skill.
## When to Use
- User asks to "add a database", "add Postgres", "add Redis", etc.
- User needs a database for their application
- User asks about connecting to a database
- User says "add postgres and connect to my server"
- User says "wire up the database"
## Decision Flow
**ALWAYS check for existing databases FIRST before creating.**
```
User mentions database
│
Check existing DBs first
(query env config for source.image)
│
┌────┴────┐
Exists Doesn't exist
│ │
│ Create database
│ (CLI or API)
│ │
│ Wait for deployment
│ │
└─────┬─────┘
│
User wants to
connect service?
│
┌─────┴─────┐
Yes No
│ │
Wire vars Done +
via env suggest wiring
skill
```
## Check for Existing Databases
Before creating a database, check if one already exists.
For full environment config structure, see [environment-config.md](references/environment-config.md).
```bash
railway status --json
```
Then query environment config and check `source.image` for each service:
```graphql
query environmentConfig($environmentId: String!) {
environment(id: $environmentId) {
config(decryptVariables: false)
}
}
```
The `config.services` object contains each service's configuration. Check `source.image` for:
- `ghcr.io/railway/postgres*` or `postgres:*` → Postgres
- `ghcr.io/railway/redis*` or `redis:*` → Redis
- `ghcr.io/railway/mysql*` or `mysql:*` → MySQL
- `ghcr.io/railway/mongo*` or `mongo:*` → MongoDB
## Available Databases
| Database | Template Code |
|----------|---------------|
| PostgreSQL | `postgres` |
| Redis | `redis` |
| MySQL | `mysql` |
| MongoDB | `mongodb` |
## Prerequisites
Get project context:
```bash
railway status --json
```
Extract:
- `id` - project ID
- `environments.edges[0].node.id` - environment ID
Get workspace ID (not in status output):
```bash
bash <<'SCRIPT'
scripts/railway-api.sh \
'query getWorkspace($projectId: String!) {
project(id: $projectId) { workspaceId }
}' \
'{"projectId": "PROJECT_ID"}'
SCRIPT
```
## Adding a Database
### Step 1: Fetch Template
```bash
bash <<'SCRIPT'
scripts/railway-api.sh \
'query template($code: String!) {
template(code: $code) {
id
name
serializedConfig
}
}' \
'{"code": "postgres"}'
SCRIPTFrom artivilla/agents-config, MIT.
More from artivilla/agents-config
- 0.414score
pr-trends
artivilla
Generate weekly and monthly pull request trend tables for a git repository, including created PRs, merged PRs, average days to merge, and lines changed.
SkillDFreshness: DClaude Code +9 - 0.414score
paper-mcp
artivilla
Use the Paper MCP server to fetch paper metadata, sections, figures, citations, and full-text context, then translate that context into structured outputs…
SkillDFreshness: DClaude Code +9 - 0.409score
design-spec-rules
artivilla
Enforce design-to-code fidelity rules.
SkillDFreshness: DClaude Code +9 - 0.409score
github
artivilla
Manage GitHub issues using gh CLI - create, list, view, update, close, and assign issues.
SkillDFreshness: DClaude Code +9 - 0.409score
interfaces-raunofreiberg
artivilla
Review UI code against Rauno Freiberg's interface guidelines.
SkillDFreshness: DClaude Code +9 - 0.406score
mymind
artivilla
Use the local mymind CLI to initialize auth, refresh bookmark cache from access.mymind.com/cards, search bookmarks by text or regex, query tags, and shape…
SkillDFreshness: DClaude Code +9 - 0.403score
git-commit-message
artivilla
Auto-generates conventional commit messages from git diffs with tiered format enforcement.
SkillDFreshness: DClaude Code +9 - 0.390score
railway-docs
artivilla
This skill should be used when the user asks about Railway features, how Railway works, or shares a docs.railway.com URL.
SkillDFreshness: DClaude Code +9 - 0.390score
deployment
artivilla
This skill should be used when the user wants to manage Railway deployments, view logs, or debug issues.
SkillDFreshness: DClaude Code +9 - 0.390score
central-station
artivilla
This skill should be used when the user asks about Central Station threads, community discussions, support questions, feature requests, or wants to search…
SkillDFreshness: DClaude Code +9 - 0.390score
projects
artivilla
This skill should be used when the user wants to list all projects, switch projects, rename a project, enable/disable PR deploys, make a project…
SkillDFreshness: DClaude Code +9 - 0.385score
find-skills
artivilla
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express…
SkillDFreshness: DClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Feb 13, 2026 (8 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/artivilla/agents-config
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from artivilla
- 0.414score
pr-trends
artivilla
Generate weekly and monthly pull request trend tables for a git repository, including created PRs, merged PRs, average days to merge, and lines changed.
SkillDFreshness: DClaude Code +9 - 0.414score
paper-mcp
artivilla
Use the Paper MCP server to fetch paper metadata, sections, figures, citations, and full-text context, then translate that context into structured outputs…
SkillDFreshness: DClaude Code +9 - 0.409score
design-spec-rules
artivilla
Enforce design-to-code fidelity rules.
SkillDFreshness: DClaude Code +9 - 0.409score
github
artivilla
Manage GitHub issues using gh CLI - create, list, view, update, close, and assign issues.
SkillDFreshness: DClaude Code +9 - 0.409score
interfaces-raunofreiberg
artivilla
Review UI code against Rauno Freiberg's interface guidelines.
SkillDFreshness: DClaude Code +9 - 0.406score
mymind
artivilla
Use the local mymind CLI to initialize auth, refresh bookmark cache from access.mymind.com/cards, search bookmarks by text or regex, query tags, and shape…
SkillDFreshness: DClaude Code +9
Cite this page
database skill. Agent Mart. https://agentmart.dev/skills/artivilla-database (last updated 2026-10-24)