# Database

> Manage PostgreSQL, SQLite, and Redis databases: create, migrate, backup, restore, query, optimize.

- **Type:** Skill
- **Install:** `agentstack add skill-jansenanalytics-claudex-database`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [JansenAnalytics](https://agentstack.voostack.com/s/jansenanalytics)
- **Installs:** 0
- **Category:** [Databases](https://agentstack.voostack.com/c/databases)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [JansenAnalytics](https://github.com/JansenAnalytics)
- **Source:** https://github.com/JansenAnalytics/claudex/tree/main/skills/database

## Install

```sh
agentstack add skill-jansenanalytics-claudex-database
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# database

Manage PostgreSQL, SQLite, and Redis databases: create, migrate, backup, restore, query, optimize.

## When to Use

- Setting up new databases or tables
- Running schema migrations
- Creating and restoring backups
- Debugging query performance
- Managing database users and permissions
- Health checking database instances

## Scripts

| Script            | Purpose                                       | Usage                                                             |
| ----------------- | --------------------------------------------- | ----------------------------------------------------------------- |
| `backup.sh`       | Backup/restore PostgreSQL or SQLite databases | `bash scripts/backup.sh backup\|restore   [file]`       |
| `migrate.sh`      | Run SQL migration files in order              | `bash scripts/migrate.sh  `               |
| `health-check.sh` | Check database connectivity and basic stats   | `bash scripts/health-check.sh  `                |
| `user-manager.sh` | Manage PostgreSQL users and permissions       | `bash scripts/user-manager.sh create\|grant\|revoke\|list ` |

## References

| File                       | Contents                                   |
| -------------------------- | ------------------------------------------ |
| `postgresql-cheatsheet.md` | Common PostgreSQL commands and patterns    |
| `sqlite-cheatsheet.md`     | SQLite CLI and SQL reference               |
| `redis-cheatsheet.md`      | Redis commands and data structures         |
| `backup-strategies.md`     | Backup approaches for production databases |

## Examples

### Backup a SQLite database

```bash
bash scripts/backup.sh backup sqlite /path/to/mydb.sqlite3
```

### Run migrations

```bash
bash scripts/migrate.sh sqlite:///path/to/db.sqlite3 ./migrations/
```

### Health check PostgreSQL

```bash
bash scripts/health-check.sh postgres "host=localhost dbname=myapp user=admin"
```

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [JansenAnalytics](https://github.com/JansenAnalytics)
- **Source:** [JansenAnalytics/claudex](https://github.com/JansenAnalytics/claudex)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-jansenanalytics-claudex-database
- Seller: https://agentstack.voostack.com/s/jansenanalytics
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
