turso: Skill for Claude Code

.claude/skills/memory-benchmark/SKILL.md

memory-benchmark is a skill for Claude Code from tursodatabase/turso. It costs 120 tokens per session (5,653 once invoked), scanned A, original, MIT.

A toolkit for measuring and investigating memory use in Turso, a database project. It measures heap allocations and process memory while running SQL workloads under different journal modes.

In plain words
What is it for?
Use it to benchmark read-heavy or mixed SQL workloads, inspect heap-allocation reports with dhat, compare process memory snapshots, and investigate stack usage.
Why use it?
It shows how much memory database operations allocate and helps identify memory regressions or the code paths responsible for high usage.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 perf/memory/analyze-dhat.py /tmp/rows.json --sort-by eb --top 10.

About the project

Turso is an in-process SQL database written in Rust that is compatible with SQLite and also accepts PostgreSQL syntax through an experimental frontend. It is for applications and organizations that need an embeddable database engine with support for multiple languages, platforms, and database features. The catalogue entries are skills and instructions for working with Turso.

tursodatabase/turso · 25,079 stars · on GitHub

Reuse

Borrowing it

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

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 memory-benchmark

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/tursodatabase/turso/memory-benchmark"><img src="https://agentmods.dev/badge/skills/tursodatabase/turso/memory-benchmark.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 120 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,653 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. Third-party audits
  • Snyk pass 7 Sept 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

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 →

  • high Rogue Agent · line 3
    Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.
    Fix: Prevent the skill from modifying its own code, SKILL.md, or configuration files. Treat skill files as read-only at runtime.
  • high Rogue Agent · line 310
    Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.
    Fix: Prevent the skill from modifying its own code, SKILL.md, or configuration files. Treat skill files as read-only at runtime.
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.00120 $0.05653
Opus 5.5 $0.00048 $0.02261
Sonnet 5.5 $0.00024 $0.01131
Haiku 4.5 $0.00012 $0.00565

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

Security

Grade A, and why

memory-benchmark 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 yesterday.

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/memory-benchmark/SKILL.md · 434 lines

How it starts

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

Memory Benchmarking & Analysis

The perf/memory crate benchmarks memory usage of SQL workloads under WAL and MVCC journal modes. It uses dhat as the global allocator to track every heap allocation, and memory-stats for process-level RSS snapshots.

It also contains a stack-report helper binary for stack-usage investigations. That binary runs a SQL payload with the stacker feature enabled and captures turso_stack tracing events in-process, aggregating structured tracing fields instead of parsing stderr log text.

Location

  • Benchmark crate: perf/memory/
  • CodSpeed bench crate: perf/memory/codspeed/ (CI allocation regression tracking)
  • Analysis script: perf/memory/analyze-dhat.py
  • dhat output: dhat-heap.json (written to CWD after each run)

The crate is split into a library and binaries. The workload engine lives in memory_benchmark::workload (run_workload, WorkloadConfig, WorkloadObserver, the JournalMode/WorkloadProfile enums and create_profile); the memory-benchmark bin is a thin CLI over it that adds dhat/RSS measurement. Randomized profiles (read-heavy, mixed) use a fixed RNG seed (profile::WORKLOAD_RNG_SEED) so workloads are identical across runs.

MVCC Memory Per Row

The mvcc-row-memory binary measures the heap that one MVCC transaction keeps for each row it writes: one INSERT, UPDATE or DELETE over every row of t(id INTEGER PRIMARY KEY, v BLOB). update and delete change rows that a checkpoint already wrote to the B-tree. Use it to measure changes to MvStore data structures (version chains, write sets, tombstones).

cargo run -p memory-benchmark --bin mvcc-row-memory -- \
  --statement insert|update|delete --rows 100000 --payload-bytes 100 \
  --mode mvcc|wal --dhat-file /tmp/rows.json
python3 perf/memory/analyze-dhat.py /tmp/rows.json --sort-by eb --top 10

The JSON report has uncommitted_bytes_per_row (before COMMIT), statement_peak_bytes_per_row, commit_peak_bytes_per_row, committed_bytes_per_row (after COMMIT, with automatic checkpoints and GC off) and statement_allocations_per_row. The byte values are requested bytes, so a debug build gives the same numbers as an optimized build. The dhat file's "At exit" values are the live allocations at the committed measurement. See perf/memory/README.md for details.

Read the full file on GitHub · 434 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. yesterday Changed · +23 lines c2d0adf00ca7
  2. 1mo ago Changed · +2 lines e78e7a784324
  3. 1mo ago Changed · +90 lines 4d6cfbee6009
  4. 1mo ago First seen · 319 lines · 120 tokens per session scan A ecf7fbbdbe9c

Subscribe to this mod's changes

memory-benchmark is a skill published in the GitHub repository tursodatabase/turso (25,079 stars, last pushed today), licensed MIT. It adds 120 tokens to every session and 5,653 once invoked, about $0.0005 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-08-30.

Related

Other skills, from other repositories

chdb-datastore

Use when the user has tabular data (pandas DataFrame, parquet, csv, Arrow, json) and wants to filter, group, aggregate, join, or speed up slow pandas. Provides chDB DataStore — same pandas API, ClickHouse engine underneath. Also handles reading from S3, MySQL, PostgreSQL, MongoDB, ClickHouse Cloud, Iceberg, Delta Lake…

chdb-io/chdb · 168 tokens

chdb-sql

Use when the user wants to run SQL — especially analytical SQL — on local files (parquet/csv/json), URLs, S3 paths, or remote databases (Postgres, MySQL, MongoDB, ClickHouse Cloud, Iceberg, Delta Lake) without setting up a server. Provides chDB — embedded ClickHouse SQL in Python with 1000+ functions, Session for…

chdb-io/chdb · 214 tokens

duckdb

Use when analytical SQL must run in-process with no server: Parquet/CSV/JSON/Arrow queried in place, OLAP embedded in an app or notebook, a slow pandas groupby on multi-GB data, or S3/lakehouse data read without downloading. NOT a multi-user analytics server (that is clickhouse-analytics), NOT an app's transactional…

ericrisco/rsc-harness · 85 tokens

accounting-software-selection

Scores shortlisted accounting packages against 57 evidence-backed fields, emitted as CSV, SQL, JSON Schema or Notion on request. Use for choosing accounting software.

sickn33/agentic-awesome-skills · 37 tokens

360-feedback-system

360 feedback register: reviewer, subject, review cycle, visibility, due date and score, as CSV, SQL, JSON Schema or Notion on request. Use for 360 reviews or peer feedback cycles.

sickn33/agentic-awesome-skills · 45 tokens

admin-access-register

Admin account register: system, main and backup admin, seats, plan, 2FA, shared logins and access-review dates, as CSV, SQL, JSON Schema or Notion on request. Use for access reviews.

sickn33/agentic-awesome-skills · 49 tokens