PerformanceMonitor: Skill for Claude Code

.claude/skills/duckdb/SKILL.md

duckdb is a skill for Claude Code from erikdarlingdata/PerformanceMonitor. It costs 17 tokens per session (704 once invoked), scanned A, original, MIT.

A safe way to read PerformanceMonitor Lite's DuckDB database, a local file-based database, while the app is collecting data.

In plain words
What is it for?
It helps inspect monitoring data with SQL through Python without trying to change the database.
Why use it?
The app holds the database's write connection while it runs, so normal reads could conflict with data collection. This uses a read-only connection instead.

Skill for Claude Code

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

This is erikdarlingdata/PerformanceMonitor's own configuration. It tells Claude Code how to work on PerformanceMonitor 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 PerformanceMonitor configures →

Reuse

Borrowing it

Nothing to install: this file belongs to erikdarlingdata/PerformanceMonitor. 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/erikdarlingdata/PerformanceMonitor/main/.claude/skills/duckdb/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/erikdarlingdata/PerformanceMonitor

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 duckdb

README.md
[![agentmods](https://agentmods.dev/badge/skills/erikdarlingdata/performancemonitor/duckdb/github.svg)](https://agentmods.dev/skills/erikdarlingdata/performancemonitor/duckdb)
Your own site
<a href="https://agentmods.dev/skills/erikdarlingdata/performancemonitor/duckdb"><img src="https://agentmods.dev/badge/skills/erikdarlingdata/performancemonitor/duckdb/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 duckdb

Your own site · 80×15
<a href="https://agentmods.dev/skills/erikdarlingdata/performancemonitor/duckdb"><img src="https://agentmods.dev/badge/skills/erikdarlingdata/performancemonitor/duckdb.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 704 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00017 $0.00704
Opus 5 $0.00009 $0.00352
Sonnet 5 $0.00003 $0.00141
Haiku 4.5 $0.00002 $0.00070

Measured 2d ago against content hash 0557a1a82d51, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-13, from the pricing page.

Security

Grade A, and why

duckdb scanned grade A with 0 findings 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/duckdb/SKILL.md · 82 lines

How it starts

The opening of the file, as written. The whole thing — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Query Lite's DuckDB Database

Safely query the PerformanceMonitor Lite DuckDB database using Python. This skill exists because DuckDB only allows one read-write connection at a time. When Lite is running (collecting data), it holds the write connection. External readers MUST connect in read-only mode.

Database Location

Since the #1832 fix (data moved OUT of Velopack's install root, which Setup.exe deletes), the store lives at:

%LOCALAPPDATA%\PerformanceMonitorLite-Data\monitor.duckdb

Builds from BEFORE that fix (3.3.0 and earlier) keep it at the old path, and the file only moves when a fixed build first runs:

%LOCALAPPDATA%\PerformanceMonitorLite\monitor.duckdb

Check the -Data path first; fall back to the old path if it does not exist.

How to Query (ALWAYS use this pattern)

Use Python with the duckdb module. ALWAYS connect in read-only mode.

python -c "
import duckdb, os
la = os.environ['LOCALAPPDATA']
p = la + '/PerformanceMonitorLite-Data/monitor.duckdb'
if not os.path.exists(p):
    p = la + '/PerformanceMonitorLite/monitor.duckdb'
con = duckdb.connect(p, read_only=True)
result = con.execute('YOUR SQL HERE').fetchall()
for row in result:
    print(row)
con.close()
"

CRITICAL RULES

  1. ALWAYS use read_only=True -- without this, the connection will be blocked by Lite's write lock and hang or fail
  2. NEVER use duckdb.connect() without read_only=True -- the default is read-write which WILL conflict with the running app
  3. Use forward slashes in the path (Python on Windows handles this fine)
  4. Close the connection when done -- don't leave read locks dangling
  5. Use Python -- duckdb 1.4.4 is installed

Common Queries

List all tables:

SELECT table_name FROM information_schema.tables WHERE table_schema = 'main' ORDER BY table_name;

List columns for a table:

SELECT column_name, data_type FROM information_schema.columns WHERE table_name = 'TABLE_NAME' ORDER BY ordinal_position;

Read the full file on GitHub · 82 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. 2d ago First seen · 82 lines · 17 tokens per session scan A 0557a1a82d51

Subscribe to this mod's changes

duckdb is a skill published in the GitHub repository erikdarlingdata/PerformanceMonitor (494 stars, last pushed today), licensed MIT. It adds 17 tokens to every session and 704 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-10.

Related

Other skills, from other repositories

hithink-finance-data

A local data-management skill for the HiThink Finance command-line tool and its DuckDB database. DuckDB is a database stored in a local file.

HiThink-Tech/Financial-API · 60 tokens

usage

Wren Engine CLI workflow guide for AI agents. Answer data questions end-to-end using the wren CLI: gather schema context, recall past queries, write SQL through the MDL semantic layer, execute, and learn from confirmed results. Use when: user asks a data question, requests a report or analysis, asks about metrics…

Canner/WrenAI · 156 tokens

dlt-connector

Connect SaaS data (HubSpot, Stripe, Salesforce, GitHub, Slack, etc.) to Wren Engine for SQL analysis. Guides the user through the full flow: install dlt, pick a SaaS source, set up credentials, run the data pipeline into DuckDB, then auto-generate a Wren semantic project from the loaded data. Use this skill whenever…

Canner/WrenAI · 158 tokens

generate-mdl

Generate a Wren MDL project by exploring a database with available tools (SQLAlchemy, database drivers, MCP connectors, or raw SQL). Guides agents through schema discovery, type normalization, and MDL YAML generation using the wren CLI. Use when: user wants to create or set up a new MDL, onboard a new data source, or…

Canner/WrenAI · 82 tokens

wren

Wren CLI for AI agents — a semantic SQL layer over 22+ databases (Postgres, MySQL, BigQuery, Snowflake, Spark, …). The actual workflow guides live inside the wren CLI itself; this is just a discovery stub. Use whenever the user asks a data question (how many, show me, top N, compare, trend, breakdown, metric, revenue…

Canner/WrenAI · 315 tokens

analytical-databases-expert

Design and query columnar analytical stores: DuckDB, ClickHouse and cloud warehouses, including file formats, partitioning, sort keys and cost control. Use when the user mentions DuckDB, ClickHouse, Parquet, columnar storage, OLAP, a data warehouse or lakehouse, analytical queries over large tables, or when the task…

personamanagmentlayer/pcl · 100 tokens