Agent skill · Audited from source
db-manager
skill · jeanpfs/db-managerMIT licenceAudited 14 Oct 2026 · source b5623b57df89
Is it safe? No — BLOCK, grade D (69/100). We read this skill's source at commit b5623b57df89 and found no filesystem, network or shell access and no hard-coded secrets. The audit raised 5 findings, 3 critical or high. What it does: Use when the user asks to query a database, run SQL, check tables, inspect schema, connect to PostgreSQL, switch database environments, or any task involving database access (SELECT, INSERT, UPDATE, DELETE, pg_dump,…
Cite
Cite this page
ModelsAtlas. “db-manager (jeanpfs/db-manager)”. Retrieved 14 Oct 2026. https://modelsatlas.com/skills/jeanpfs/db-manager
Blocked. The page stays public so you can check this skill if someone recommended it to you. The audit found 3 critical or high findings, starting with “Prompt injection” in SKILL.md:26. Do not install it without reading them.
Trust audit
Audit 0.4.1 · source read 14 Oct 2026
BLOCK means the audit found something that could harm you or your machine. Grade D is shared by 749 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 0 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | PASS | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | FAIL | 5 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (5)
HIGHPrompt injectionprompt.credential_read · SKILL.md:26
Read `DATABASE_URL` from project `.env` files only when needed. The session file stores **only metadata** (path to the `.env` and a label) — never the URL itself. Never `source` the session file: it i
- Why
- asks the agent to read credentials
- Fix
- —
HIGHPrompt injectionprompt.credential_read · SKILL.md:85
Re-read the URL from the `.env` referenced by the session every time — never persist it:
- Why
- asks the agent to read credentials
- Fix
- —
HIGHPrompt injectionprompt.credential_read · <listing:description>:1
Claude Code skill for safe PostgreSQL access from project .env files
- Why
- asks the agent to read credentials
- Fix
- —
INFOPrompt injectionprompt.credential_read · CHANGELOG.md:24
- Per-project sessions stored under `~/.cache/db-manager/` (mode `600`); session metadata only — credentials are re-read from the project `.env` on every query.
- Why
- asks the agent to read credentials
- Fix
- —
INFOPrompt injectionprompt.credential_read · README.md:7
A [Claude Code](https://docs.claude.com/en/docs/claude-code) skill for safe PostgreSQL access from project `.env` files.
- Why
- asks the agent to read credentials
- Fix
- —
Audit 0.4.1 · source sha b5623b57df89 · 14 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- Publisherjeanpfs GitHub userOwner of the repository this skill is read from
- Source folderjeanpfs/db-managerThe exact folder we audited
- LicenceMITAs the repository states it
- Commit pinned for this verdictb5623b57df89A new audit runs when the source changes
- Repository statusNot archivedPushed today
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: Use when the user asks to query a database, run SQL, check tables, inspect schema, connect to PostgreSQL, switch database environments, or any task involving database access (SELECT, INSERT, UPDATE, DELETE, pg_dump,…
---
name: db-manager
description: >
Use when the user asks to query a database, run SQL, check tables, inspect schema,
connect to PostgreSQL, switch database environments, or any task involving database
access (SELECT, INSERT, UPDATE, DELETE, pg_dump, psql). Also use when starting a
session in a project that has .env files with DATABASE_URL. Triggers: "query the
database", "run this SQL", "show me the tables", "check the schema", "connect to
the database", "switch to staging/production", "list the tables", "describe schema",
"what's in the database", "show data from".
argument-hint: "[SQL query or command]"
license: MIT
allowed-tools: Bash(psql *), Bash(pg_dump *), Bash(grep *), Bash(echo *), Bash(printf *), Bash(mkdir *), Bash(chmod *), Bash(test *), Bash(shasum *), Bash(sha256sum *), Bash(find *), Bash(cut *), Bash(head *), Bash(basename *), Bash(tr *), Bash(sed *), Bash(date *), Bash(install *), Read, Grep, Glob, Write, Edit
---
# DB Manager — PostgreSQL Direct Access
## Session status
!`SESSION_DIR="${HOME}/.cache/db-manager"; if command -v sha256sum >/dev/null 2>&1; then SESSION_KEY=$(printf %s "$PWD" | sha256sum | cut -c1-16); else SESSION_KEY=$(printf %s "$PWD" | shasum -a 256 | cut -c1-16); fi; SESSION_FILE="${SESSION_DIR}/session_${SESSION_KEY}"; if [ -f "$SESSION_FILE" ] && [ ! -L "$SESSION_FILE" ]; then DB_LABEL=$(grep '^DB_LABEL=' "$SESSION_FILE" | cut -d= -f2-); DB_SOURCE=$(grep '^DB_SOURCE=' "$SESSION_FILE" | cut -d= -f2-); echo "CONNECTED: ${DB_LABEL} (source: ${DB_SOURCE})"; else echo "NO_SESSION"; fi`
> Hash helper used throughout: `sha256sum` on Linux, `shasum -a 256` on macOS — both produce the same hex digest, the snippets fall back automatically.
## Core principle
Read `DATABASE_URL` from project `.env` files only when needed. The session file stores **only metadata** (path to the `.env` and a label) — never the URL itself. Never `source` the session file: it is data, not code.
## Session setup (only if NO_SESSION)
1. Find `.env` files with `DATABASE_URL` in the project:
```bash
find . \( -name ".env" -o -name ".env.local" -o -name ".env.development" -o -name ".env.dev" \
-o -name ".env.staging" -o -name ".env.production" \) \
-not -path "*/node_modules/*" -not -path "*/.git/*" 2>/dev/null | while read -r f; do
match=$(grep -E "^(DATABASE_URL|DB_URL|POSTGRES_URL)=" "$f" 2>/dev/null | head -1)
[ -n "$match" ] && echo "$f"
done
```
2. If multiple found, ask the user which one. If only one, use it.
3. Save session metadata under `~/.cache/db-manager/` (mode `600`):
```bash
ENV_PATH="<selected .env>"
PROJECT=$(basename "$PWD" | tr -cd 'a-zA-Z0-9._-')
LABEL_SUFFIX="<dev|staging|production|...>"
SESSION_DIR="${HOME}/.cache/db-manager"
mkdir -p "$SESSION_DIR" && chmod 700 "$SESSION_DIR"
if command -v sha256sum >/dev/null 2>&1; then
SESSION_KEY=$(printf %s "$PWD" | sha256sum | cut -c1-16)
else
SESSION_KEY=$(printf %s "$PWD" | shasum -a 256 | cut -c1-16)
fi
SESSION_FILE="${SESSION_DIR}/session_${SESSION_KEY}"
if [ -L "$SESSION_FILE" ]; then
echo "REFUSING: session path is a symlink"; exit 1
fi
umask 077
{
printf 'DB_ENV_PATH=%s\n' "$ENV_PATH"
printf 'DB_LABEL=%s/%s\n' "$PROJECT" "$LABEL_SUFFIX"
printf 'DB_SOURCE=%s\n' "$ENV_PATH"
} > "$SESSION_FILE"
chmod 600 "$SESSION_FILE"
```
4. Test the connection without persisting the URL:
```bash
DB_URL=$(grep -E "^(DATABASE_URL|DB_URL|POSTGRES_URL)=" "$ENV_PATH" | head -1 | cut -d= -f2-)
DB_URL="${DB_URL%\"}"; DB_URL="${DB_URL#\"}"
DB_URL="${DB_URL%\'}"; DB_URL="${DB_URL#\'}"
psql "$DB_URL" -c "SELECT 1" >/dev/null 2>&1 && echo "Connected" || echo "FAILED"
```
## Running queries
Re-read the URL from the `.env` referenced by the session every time — never persist it:
```bash
SESSION_DIR="${HOME}/.cache/db-manager"
if command -v sha256sum >/dev/null 2>&1; then
SESSION_KEY=$(printf %s "$PWD" | sha256sum | cut -c1-16)
else
SESSION_KEY=$(printf %s "$PWD" | shasum -a 256 | cut -c1-16)
fi
SESSION_FILE="${SESSION_DIR}/session_${SESSION_KEY}"
ENV_PATH=$(grep '^DB_ENV_PATH=' "$SESSION_FILE" | cut -d= -f2-)
DB_URL=$(grep -E "^(DATABASE_URL|DB_URL|POSTGRES_URL)=" "$ENV_PATH" | head -1 | cut -d= -f2-)
DB_URL="${DB_URL%\"}"; DB_URL="${DB_URL#\"}"
DB_URL="${DB_URL%\'}"; DB_URL="${DB_URL#\'}"
psql "$DB_URL" -c "SELECT ..."
```
> Note on argv exposure: PostgreSQL connection URIs as the first positional argument to `psql` may be visible in `/proc/<pid>/cmdline` on Linux while the process runs. For higher assurance, configure `~/.pgpass` (mode `600`) and pass only host/db/user instead of the full URL.
## Query protocol — MANDATORY
**NEVER guess column names.** Before writing any SELECT, INSERT, UPDATE, or DELETE:
1. Run `\d tablename` for each table involved
2. Only then write SQL using the actual column names
**Exceptions:**
- Table already inspected earlier in the same conversation
- User provides the exact SQL to run
## Destructive operations
For destructive operations, follow the mandatory confirmation protocol in [security-rules.md](references/security-rules.md). **Never skip confirmation.**
## Schema dump (opt-in)
Only when the user explicitly asks:
```bash
ENV_PATH=$(grep '^DB_ENV_PATH=' "$SESSION_FILE" | cut -d= -f2-)
DB_URL=$(grep -E "^(DATABASE_URL|DB_URL|POSTGRES_URL)=" "$ENV_PATH" | head -1 | cut -d= -f2-)
DB_URL="${DB_URL%\"}"; DB_URL="${DB_URL#\"}"
DB_URL="${DB_URL%\'}"; DB_URL="${DB_URL#\'}"
mkdir -p docs
pg_dump "$DB_URL" --schema-only --no-owner --no-acl --no-comments > docs/schema.sql
```
## Managing the session
Switch to a different `.env` for the same project:
```bash
# Re-run the "Session setup" steps with a different ENV_PATH; the file is
# overwritten in place under ~/.cache/db-manager/.
```
Forget the current session:
```bash
SESSION_DIR="${HOME}/.cache/db-manager"
if command -v sha256sum >/dev/null 2>&1; then
SESSION_KEY=$(printf %s "$PWD" | sha256sum | cut -c1-16)
else
SESSION_KEY=$(printf %s "$PWD" | shasum -a 256 | cut -c1-16)
fi
rm -f "${SESSIONExcerpt, first 6,000 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit b5623b5
git clone https://github.com/jeanpfs/db-manager.git
git clone https://github.com/jeanpfs/db-manager git -C db-manager checkout b5623b57df89
Commands as the repository documents them: shown, never run by us. Our verdict covers commit b5623b57df89 only.
Works in which agents?
What its own text says, not a test
| Agent | Status | More |
|---|---|---|
| Claude Code | Mentioned in its text, not tested | Skills for Claude Code · About Claude Code |
Audit history
Every audit, every source change
- ✕BLOCK D 69 / 100
first audit · source
b5623b57df89
Similar skills
All data & analysis skills →op7418/guizang-ppt-skill
生成横向翻页网页 PPT(单 HTML 文件),含 WebGL 背景、演讲者视图、观众屏同步、讲稿备注、章节幕封、数据大字报、图片网格等模板。提供两种风格:1 "电子杂志 × 电子墨水"(衬线 + 流体背景 + 暖色) 2 "瑞士国际主义"(无衬线 + 网格点阵 + IKB/柠檬黄/柠檬绿/安全橙高亮)。当用户需要制作分享 / 演讲 / 发布会风格的网页 PPT,或提到"杂志风 PPT"、"瑞士风 PPT"、"Swiss…
tursodatabase/turso
How WAL mechanics, checkpointing, concurrency rules, recovery work in tursodb
tursodatabase/turso
SQLite file format, B-trees, pages, cells, overflow, freelist that is used in tursodb
tursodatabase/turso
How to write tests, when to use each type of test, and how to run them. Contains information about conversion of `.test` to `.sqltest`, and how to write `.sqltest` and rust tests
tursodatabase/turso
General guidelines for Commits, formatting, CI, dependencies, security
tursodatabase/turso
Overview of Experimental MVCC feature - snapshot isolation, versioning, limitations
Questions about db-manager
What does the db-manager skill do?
Is db-manager safe to install?
What can db-manager access on my machine?
Which assistants does db-manager work with?
How current is this page?
Sources
- github.com/jeanpfs/db-manager — the audited source at commit b5623b57df89 and every finding aboveObserved · 14 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the db-manager skill do?
- Is db-manager safe to install?
- What can db-manager access on my machine?