pgconsole: Skill for Claude Code

.claude/skills/take-doc-screenshots/SKILL.md

take-doc-screenshots is a skill for Claude Code from pgplex/pgconsole. It costs 32 tokens per session (881 once invoked), scanned A, original, Apache-2.0.

A procedure for capturing screenshots of the running pgconsole application for documentation. pgconsole is the application being documented, and MDX is a format that combines Markdown with embedded components.

In plain words
What is it for?
Use it when updating documentation that needs images or screenshots of pgconsole screens.
Why use it?
It provides a repeatable way to log in, open the application, and save screenshots in the required format instead of capturing them manually.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

This is pgplex/pgconsole's own configuration. It tells Claude Code how to work on pgconsole itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything pgconsole configures →

Reuse

Borrowing it

Nothing to install: this file belongs to pgplex/pgconsole. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/pgplex/pgconsole/main/.claude/skills/take-doc-screenshots/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/pgplex/pgconsole

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for take-doc-screenshots

README.md
[![agentmods](https://agentmods.dev/badge/skills/pgplex/pgconsole/take-doc-screenshots/github.svg)](https://agentmods.dev/skills/pgplex/pgconsole/take-doc-screenshots)
Your own site
<a href="https://agentmods.dev/skills/pgplex/pgconsole/take-doc-screenshots"><img src="https://agentmods.dev/badge/skills/pgplex/pgconsole/take-doc-screenshots/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for take-doc-screenshots

Your own site · 80×15
<a href="https://agentmods.dev/skills/pgplex/pgconsole/take-doc-screenshots"><img src="https://agentmods.dev/badge/skills/pgplex/pgconsole/take-doc-screenshots.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 881 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 25
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What 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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.00881
Opus 5.5 $0.00013 $0.00352
Sonnet 5.5 $0.00006 $0.00176
Haiku 4.5 $0.00003 $0.00088

Measured 2mo ago against content hash d53196f06297, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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 2mo 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 \
.claude/skills/take-doc-screenshots/SKILL.md · 98 lines

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-scraper must be installed (pipx install shot-scraper && shot-scraper install)
  • cwebp must be installed (brew install webp)

Authentication

Login credentials are in pgconsole.toml under [[users]]. Use the first user entry.

  1. Read pgconsole.toml to find the email and password from the first [[users]] entry
  2. 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>"}'
    
  3. Extract the pgconsole_token cookie value from cookies.txt
  4. 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:

  1. Launches Chromium with viewport: { width: 1440, height: 900 } (no deviceScaleFactor — use 1x)
  2. Sets the auth cookie via context.addCookies()
  3. Navigates to http://localhost:5173
  4. Uses Playwright actions (click, type, keyboard) to navigate to the desired state
  5. Saves screenshots as PNG

CodeMirror Interaction

The SQL editor uses CodeMirror 6. To type into it:

  • Click .cm-content to 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 cmView from the DOM — it's not exposed

UI Navigation

Key buttons to interact with:

  • button with text SQL — opens a new query tab
  • button with text Run — executes the query
  • button with text Format — opens format dropdown
  • button with text Quick SQL — opens quick SQL dropdown
  • button with text Processes — opens processes modal
  • Right-click on .cm-content for context menu

Read the full file on GitHub · 98 lines

Changes

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.

  1. 2mo ago First seen · 98 lines · 32 tokens per session scan A d53196f06297

Subscribe to this mod's changes

take-doc-screenshots is a skill published in the GitHub repository pgplex/pgconsole (157 stars, last pushed yesterday), licensed Apache-2.0. It adds 32 tokens to every session and 881 once invoked, about $0.0001 per session on Opus 5.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.

Related

Other skills, from other repositories

orbit-notion

Open Orbit briefing skill — selected by the Orbit pipeline when Notion is the user's only connected connector, or when the user explicitly scopes their daily digest to Notion. Pulls the past 24 hours of document edits, comments, mentions, and database row changes from the user's authenticated Notion connection and…

nexu-io/open-design · 117 tokens

instrument-data-to-allotrope

Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…

anthropics/knowledge-work-plugins · 123 tokens

apify-youtube-transcript-scraper

Get YouTube captions, timestamped quotations, SRT/VTT and translated transcripts for videos, channels and playlists through the harshmaur/youtube-transcript-scraper Apify Actor.

sickn33/agentic-awesome-skills · 48 tokens

legal-hold

Issue, refresh, release, or report on legal holds — drafts the hold notice as .docx, updates legalhold fields in log.yaml, and calendars the next refresh. Use when the user says "issue a hold", "refresh hold", "release hold", or asks for a portfolio-wide hold status report.

anthropics/claude-for-legal · 68 tokens

feishu

Work with Feishu or Lark bots, docs, sheets, bitables, approval flows, and OpenAPI/MCP setup without hardcoding credentials.

Hmbown/CodeWhale · 33 tokens

read

Fetches URLs and PDFs, then summarizes or returns clean Markdown; can also search the web through DeepSeek when built-in search is thin. Use when asked to read, fetch, quote, cite, convert, or save a URL or PDF. Not for local text files already in the repo.

tw93/Waza · 61 tokens