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 (637 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 637 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.00637
Opus 5.5 $0.00007 $0.00255
Sonnet 5.5 $0.00003 $0.00127
Haiku 4.5 $0.00002 $0.00064

Measured 15d ago against content hash c17c0230256f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 15d 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 · 80 lines

How it starts

The opening of the file, as written. The whole thing — 80 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, so an external reader connects in read-only mode.

Database Location

The store lives at:

%LOCALAPPDATA%\PerformanceMonitorLite-Data\monitor.duckdb

Lite 3.3.0 and earlier kept it at the path below, and the file moves to the path above only when a newer build first runs. Check the path above first, and fall back to this one when it does not exist:

%LOCALAPPDATA%\PerformanceMonitorLite\monitor.duckdb

How to Query

Use Python with the duckdb module, always with this pattern:

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()
"

Rules

  1. Pass read_only=True to duckdb.connect(). The default is read-write. Lite's write lock blocks a read-write connection, and it hangs or fails.
  2. Use forward slashes in the path (Python on Windows handles this fine)
  3. Close the connection when done, so no read lock is left dangling
  4. Use Python with its duckdb module

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;

List all views:

SELECT table_name FROM information_schema.tables WHERE table_type = 'VIEW' ORDER BY table_name;

Row counts:

SELECT table_name, estimated_size FROM duckdb_tables() ORDER BY estimated_size DESC;

Read the full file on GitHub · 80 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. 15d ago Changed · -2 lines c17c0230256f
  2. 1mo 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 (528 stars, last pushed today), licensed MIT. It adds 17 tokens to every session and 637 once invoked, about $0.0001 per session on Opus 5.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

duckdb compared with skills from other repositories

duckdb next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
duckdberikdarlingdata/PerformanceMonitorSkill528todayMITA17Claude Code
usageCanner/WrenAISkill18k2d agononeA156Claude Code, Codex
generate-mdlCanner/WrenAISkill18k2d agononeA82Claude Code, Codex
dlt-connectorCanner/WrenAISkill18k2d agononeA158Claude Code, Codex
wrenCanner/WrenAISkill18k2d agononeA315Claude Code
duckdb-spatialznlgis/opengis-skillsSkill7610d agoMITA125Claude Code, Codex
duckdb-differentialtobilg/duckdb-differentialSkill484d agoMITA123Claude Code