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.
mdr add victorrentea/petclinic/db-cli@git:20260925.7787f92Pins 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
mdr add victorrentea/petclinic/db-cli@sha256:297451e0d4f9a052The 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.
[](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.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260925.7787f92 latest | 2026-09-25 | 7787f92 | 3,278 B | A | view · diff |
| git:20260925.4315506 | 2026-09-25 | 4315506 | 3,849 B | A | view |
Audit of the latest version
- 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
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
Every file in victorrentea/petclinic