db-cli SKILL.md skillA

db-cli from victorrentea/petclinic is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add victorrentea/petclinic/db-cli@git:20260925.7787f92

Pins git:20260925.7787f92 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
victorrentea/petclinic
Path
.claude/skills/db-cli/SKILL.md
Versions recorded
2
Latest version
git:20260925.7787f92, committed Sep 25, 2026
First version recorded
Sep 25, 2026
Size
3,278 bytes
Repository stars
17
License
none declared

Query the petclinic Postgres database (owners, pets, vets, visits, types, specialties) by calling the project's Postgres MCP server as a shell command. Use whenever a task needs to read or inspect petclinic data or schema AND no database MCP tools are available (no mcp__postgres-db__* tools). Also use when explicitly asked to "use the db-cli skill".

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Database access when MCP servers are disabled

The `postgres-db` MCP server declared in `.mcp.json` is not connected in this
session. The **same server** is still reachable from the shell: `db-cli.py` starts
it and speaks MCP to it over stdio (stdlib-only Python, needs just `python3` and
`npx`). Same tools, same parameters, same JSON responses — only the transport
differs, and nothing about the server changes once MCP access is restored.

Run everything below from the repo root.

## 1. Discover what the server offers

```bash
.claude/skills/db-cli/db-cli.py tools
```

Prints every tool with its parameter signature and description — the same
information an MCP client would put in your tool list. Run this first if you
are unsure what is available.

## 2. Call a tool

```bash
.claude/skills/db-cli/db-cli.py call <tool_name> --params '<json>'
```

The two tools this server exposes:

```bash
# run SQL
.claude/skills/db-cli/db-cli.py call execute_sql \
  --params '{"sql":"select count(*) from owners"}'

# explore the schema without guessing table names
.claude/skills/db-cli/db-cli.py call search_objects \
  --params '{"object_type":"table"}'
```

## 3. Keep the output small
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add victorrentea/petclinic/db-cli@sha256:297451e0d4f9a052

The line at the top of this page pins the label git:20260925.7787f92, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_nvhfshgghwrqfi6y.svg)](https://markdownregistry.com/a/art_nvhfshgghwrqfi6y)

1 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 2 versions of this file, all committed on Sep 25, 2026.

versioncommittedcommitsizeaudit
git:20260925.7787f92 latest2026-09-25 7787f92 3,278 BA view · diff
git:20260925.43155062026-09-25 4315506 3,849 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (3278 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

victorrentea/petclinic · 17 stars · license none declared · pushed 2026-10-22 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_nvhfshgghwrqfi6y
GET https://markdownregistry.com/api/v1/resolve?ref=victorrentea/petclinic/db-cli
GET https://markdownregistry.com/api/v1/blob/297451e0d4f9a05267ce859dfb7e6eda22962b0f99e5cb1cac85a1be18ea0ba8

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from victorrentea/petclinic

browser-cli SKILL.md skill
victorrentea/petclinic · .claude/skills/browser-cli/SKILL.md · Drive a real browser from the shell with Playwright CLI - open pages, click, fill forms, read the DOM, screenshot…
git:20260812.926728b · audit A · 17 stars
ci-watch SKILL.md skill
victorrentea/petclinic · .claude/skills/ci-watch/SKILL.md · Watch the GitHub Actions run for a pushed commit and repair the build if it goes red — read the failing job logs…
git:20260904.1e9a84f · audit A · 17 stars
confluence-cli SKILL.md skill
victorrentea/petclinic · .claude/skills/confluence-cli/SKILL.md · Read and write Confluence pages from the shell — get/search pages, create, update, append, comment, label (tag)…
git:20260923.4813a6b · audit B · 17 stars
drawio-png SKILL.md skill
victorrentea/petclinic · .claude/skills/drawio-png/SKILL.md · Read the draw.io diagram embedded in a *.drawio.png (also .drawio / .drawio.svg) as text — vertices, edges, and the…
git:20261015.295c2c1 · audit A · 17 stars
grill-me SKILL.md skill
victorrentea/petclinic · .claude/skills/grill-me/SKILL.md · Interviews you relentlessly about a plan, one question at a time, until you share an understanding. Invoked via…
git:20261015.aeb84cc · audit F · 17 stars
java-coverage SKILL.md skill
victorrentea/petclinic · .claude/skills/java-coverage/SKILL.md · Measure backend test coverage from the terminal — JaCoCo line coverage reported as the exact uncovered lines, and PIT…
git:20260904.1e9a84f · audit A · 17 stars
jenkins-cli SKILL.md skill
victorrentea/petclinic · .claude/skills/jenkins-cli/SKILL.md · Drive Jenkins from the shell — list jobs, trigger builds with parameters and wait for the result, stream console…
git:20260923.4092d44 · audit B · 17 stars
jira-cli SKILL.md skill
victorrentea/petclinic · .claude/skills/jira-cli/SKILL.md · Read and write JIRA issues from the shell — get/search issues, create, update, comment, label (tag), assign…
git:20260923.4813a6b · audit B · 17 stars
AGENTS.md AGENTS.md file
victorrentea/petclinic · AGENTS.md
git:20261022.1c3773a · audit A · 17 stars
AGENTS.md@petclinic-backend AGENTS.md file
victorrentea/petclinic · petclinic-backend/AGENTS.md
git:20261001.1a810a5 · audit B · 17 stars
AGENTS.md@petclinic-test AGENTS.md file
victorrentea/petclinic · petclinic-test/AGENTS.md
git:20261021.a0fc27e · audit A · 17 stars
grill-me SKILL.md skill
victorrentea/petclinic · plugin-marketplace-demo/plugins/petclinic-tools/skills/grill-me/SKILL.md · Interview the user relentlessly about a plan, one question at a time, until there is a shared understanding.
git:20261009.c68428d · audit F · 17 stars

Every file in victorrentea/petclinic

Other files named db-cli

db-cli SKILL.md skill
fgpaz/mi-lsp · internal/skills/testdata/skills-root/db-cli/SKILL.md · Query SQL Server and Postgres databases through governed db-cli wrappers.
git:20260725.b7ff160 · audit A · 12 stars

Browse by kind, by grade A, or by owner.