From cedardb
Inspect, reuse, start, or deploy a local CedarDB Docker container and write a .cedardb connection file for downstream CedarDB workflows. Use when the user wants a local CedarDB instance for analysis, dashboards, or alerts. Inspect first. Only create, recreate, start, or write files when the user explicitly wants deployment to proceed.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cedardb:deployThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Deploy or reconnect to a local CedarDB instance via Docker.
Deploy or reconnect to a local CedarDB instance via Docker.
Rules
Run:
docker --version
docker info
docker ps -a --filter name=cedardb --format '{{.Names}}\t{{.Status}}'
Check port 5432:
ss -tln | grep ':5432 ' || netstat -tln 2>/dev/null | grep ':5432 '
Choose host port:
5432 if free5433If Docker is missing or the daemon is not running, stop and tell the user what to do:
curl -fsSL https://get.docker.com | shsudo systemctl start dockerSummarize:
cedardb container stateIf the user has not explicitly asked to deploy, start, or recreate, stop here.
If cedardb exists and is running, prefer reuse.
If cedardb exists and is stopped and the user wants reuse, run:
docker start cedardb
If the user explicitly wants recreation, run:
docker rm -f cedardb
Do not remove cedardb-data unless the user explicitly asks to remove stored data too.
Generate a password:
openssl rand -hex 16
Create the data directory and pull the image:
mkdir -p cedardb-data
docker pull cedardb/cedardb
Run the container with the chosen host port and the literal generated password:
docker run -d \
--name cedardb \
--restart unless-stopped \
-p <host-port>:5432 \
-v ./cedardb-data:/var/lib/cedardb/data \
-e CEDAR_PASSWORD=<generated-password> \
cedardb/cedardb
Replace <host-port> and <generated-password> with literal final values.
Run docker ps and logs in the background, then check the output:
docker ps --filter name=cedardb
docker logs --tail 20 cedardb
If the container is not running or logs show errors, report and stop. Otherwise wait a few seconds and verify the database is accepting connections before proceeding.
.cedardbWrite the file in the current working directory using literal final values:
cat > .cedardb <<'EOF'
CEDAR_DSN=postgresql://postgres:<password>@localhost:<host-port>/postgres
CEDAR_LABEL=cedardb
EOF
Replace <password> and <host-port> with literal final values before writing.
If .gitignore exists, append .cedardb only if missing:
grep -qxF '.cedardb' .gitignore || echo '.cedardb' >> .gitignore
Return:
cedardb./cedardb-datalocalhostpostgrespostgres.cedardb was writtenUseful commands:
docker logs -f cedardb
docker stop cedardb
docker start cedardb
docker rm -f cedardb
rm -rf cedardb-data
Only include the last command when discussing full cleanup.
docker logs cedardb.5432 is occupied, use host port 5433 and update the DSN.cedardb-data and recreate.npx claudepluginhub cedardb/claude-plugin --plugin cedardbProvides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Searches MemPalace before answering questions about past work, people, projects, or prior decisions. Returns verbatim stored content instead of guessing from model memory.