Skip to content
Back to skills

Local Database Setup

ASecurity

Sets up the project's local database: starts Docker/Postgres, runs the setup script, applies pending migrations.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 14, 2026
databasesgobashsqldockergitdatabase

Security analysis

A100/100

Scanned November 14, 2026

npx -y skills add SebastianLuser/claude-code-arcane --skill local-database-setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Local Database Setup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Local Database Setup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sebastianluser-local-database-setup/badge)](https://www.skillsdirectory.com/skills/sebastianluser-local-database-setup)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: local-database-setup
description: "Sets up the project's local database: starts Docker/Postgres, runs the setup script, applies pending migrations."
category: "database"
argument-hint: ""
user-invocable: true
allowed-tools: Read, Glob, Grep, Bash
---

# Skill: local-database-setup

## Trigger
When the user says "setup database", "configure the database", "spin up the db", "initialize db", or similar.

## Workflow

1. Check if Docker is running (PostgreSQL usually runs in Docker locally)

2. Look for database setup scripts in the project:
   - `db/local/init-local-db.sh`
   - `docker-compose.yml` with postgres service
   - `Makefile` with db-related targets

3. Run the setup script:
   ```bash
   # For tich-cronos
   bash db/local/init-local-db.sh
   ```

4. Verify the database is accessible:
   - Check connection using env vars from `.env.local`
   - Run a simple query to verify

5. Run pending migrations if any exist:
   - Check `db/migrations/` directory
   - Run migrations using golang-migrate

## Project-specific setup

### tich-cronos
```bash
# 1. Start PostgreSQL (Docker)
bash db/local/init-local-db.sh

# 2. Run migrations
go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@v4.12.2
migrate -path db/migrations -database "$DATABASE_URL" up
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in databases →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.