Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/pgplex/pgconsole/take-doc-screenshotsnpx skills add pgplex/pgconsole --skill take-doc-screenshotsgit clone --depth 1 https://github.com/pgplex/pgconsoleWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00032 | $0.00881 |
| Opus 5 | $0.00016 | $0.00441 |
| Sonnet 5 | $0.00006 | $0.00176 |
| Haiku 4.5 | $0.00003 | $0.00088 |
Grade A, and why
take-doc-screenshots scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -s -c cookies.txt -X POST http://localhost:5173/api/auth/login \ How it starts
The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Take Documentation Screenshots
Capture screenshots of the running pgconsole app at http://localhost:5173 for use in documentation.
Prerequisites
- The dev server must be running (
pnpm dev) shot-scrapermust be installed (pipx install shot-scraper && shot-scraper install)cwebpmust be installed (brew install webp)
Authentication
Login credentials are in pgconsole.toml under [[users]]. Use the first user entry.
- Read
pgconsole.tomlto find the email and password from the first[[users]]entry - Call the login API to get a session token:
curl -s -c cookies.txt -X POST http://localhost:5173/api/auth/login \ -H 'Content-Type: application/json' \ -d '{"email":"<email>","password":"<password>"}' - Extract the
pgconsole_tokencookie value from cookies.txt - Create a Playwright auth state JSON file:
{ "cookies": [{ "name": "pgconsole_token", "value": "<token>", "domain": "localhost", "path": "/", "httpOnly": true, "secure": false, "sameSite": "Lax" }], "origins": [] }
Taking Screenshots
Write a Playwright script (.mjs file in the scratchpad directory) that:
- Launches Chromium with
viewport: { width: 1440, height: 900 }(nodeviceScaleFactor— use 1x) - Sets the auth cookie via
context.addCookies() - Navigates to
http://localhost:5173 - Uses Playwright actions (click, type, keyboard) to navigate to the desired state
- Saves screenshots as PNG
CodeMirror Interaction
The SQL editor uses CodeMirror 6. To type into it:
- Click
.cm-contentto focus - Use
page.keyboard.type('SQL here', { delay: 5 })to type - Use
page.keyboard.press('Control+Space')for autocomplete - Use
page.keyboard.press('Meta+a')to select all before replacing content - Do NOT try to access
cmViewfrom the DOM — it's not exposed
UI Navigation
Key buttons to interact with:
buttonwith textSQL— opens a new query tabbuttonwith textRun— executes the querybuttonwith textFormat— opens format dropdownbuttonwith textQuick SQL— opens quick SQL dropdownbuttonwith textProcesses— opens processes modal- Right-click on
.cm-contentfor context menu
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 98 lines · 32 tokens per session scan A d53196f06297
take-doc-screenshots is a skill published in the GitHub repository pgplex/pgconsole (148 stars, last pushed 19d ago), licensed Apache-2.0. It adds 32 tokens to every session and 881 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
n8n-architect
Use when the user explicitly wants to create, edit, validate, sync, or troubleshoot n8n workflows, asks about n8n nodes or automation, or wants to use n8n-as-code in the current context root.
dependabot-batch
Use when reviewing Radar's weekly Dependabot PRs and replacing the safe, 72-hour-soaked updates with one changelog-vetted, tested PR.
test-radar
Use when building and testing Radar changes with the repository's real-instance smoke-test workflow.
visual-test
Use when visually testing Radar UI changes against a real Kubernetes cluster with Playwright screenshots.
qa-find-bugs
Drive the live product at https://dashboard.bex.co as a signed-in QA user (QAEMAIL / QAPASSWORD from .env), hunt real bugs across the hosting features, research each fix down to file:line, file the non-duplicate findings to the w6 board through /pm, and /ship the scheduled milestone. Use when the user asks to QA the…
pm
Inspect and maintain the repository's .pm workstreams, inbox notes, milestones, and tasks. Use when the user asks for PM board status or requests a supported board mutation such as creating, promoting, adding, or completing work.