Live survey315 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

Agent skill · Audited from source

db-manager

skill · jeanpfs/db-managerMIT licenceAudited 14 Oct 2026 · source b5623b57df89

★ 0pushed today
✕BLOCKGrade D · 69/100 · 5 findings · b5623b5
0repo stars · whole jeanpfs/db-manager

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,…

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
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

Trust score69/100✕BLOCK D
0 critical3 high0 medium0 low2 info

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

LayerWhat we checkResultFindings
L0 ProvenanceRepo owner, licence, archive status, activityPASS0
L1 Static sourceSecrets, path traversal, supply chain, hidden codePASS0
L2 InstructionsPrompt injection, authority framing, hidden directivesFAIL5
L3 InventoryThe files and declarations match the sourcePASS0
L4 SandboxRun in isolation and watch behaviourSKIPPED why0

Gates applied: no behavioural pass.

Findings (5)

HIGHPrompt injectionprompt.credential_read · SKILL.md:26
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
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
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
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
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
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
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
- 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
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
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 "${SESSION

Excerpt, 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

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

AgentStatusMore
Claude CodeMentioned in its text, not testedSkills for Claude Code · About Claude Code
“Mentioned” means the skill’s text names the agent. We have not run it there.

Audit history

Every audit, every source change

  1. ✕BLOCK D 69 / 100

    first audit · source b5623b57df89

Questions about db-manager

What does the db-manager skill do?
Claude Code skill for safe PostgreSQL access from project .env files
Is db-manager safe to install?
No — not without reading the findings first. The audit graded it D (69/100) and found 3 critical or high issues in the source. Each one is listed on this page with the file and line it is on.
What can db-manager access on my machine?
The audit observed no filesystem, network or shell use at all in its source.
Which assistants does db-manager work with?
Its documentation mentions claude-code. That is what the text claims, not a compatibility test we ran.
How current is this page?
The grade is for one exact copy of the source (b5623b57df89), read on 2026-10-14. The repository is watched, and a new audit runs when it changes — this is the first audit.

Sources

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.