Agent skill

Test Perf Leaks

by dxos in dxos/dxos

CPU-profile or leak-detect an existing vitest suite via env-gated instrumentation — DXPROFILETESTS emits a V8 .cpuprofile, DXDEBUGLEAKS writes before/after heap snapshots plus a per-test heapUsed…

Custom licenceAuto-check passedTesting & QA

Install Test Perf Leaks

skills CLI
$ npx skills add dxos/dxos --skill test-perf-leaks -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install dxos/dxos test-perf-leaks --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/dxos/dxos.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/test-perf-leaks .claude/skills/test-perf-leaks && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
test-perf-leaks
GitHub stars
525
Token cost
~1.4k tokens
SKILL.md length
631 words
Files
1
Skills in repo
41
Repo updated
First seen
Licence
Custom licence

At a glance

CPU-profile or leak-detect an existing vitest suite via env-gated instrumentation — DXPROFILETESTS emits a V8 .cpuprofile, DXDEBUGLEAKS writes before/after heap snapshots plus a per-test heapUsed…

  • Works in 3 steps: Slope first. heap-samples.ndjson has one… → Then the diff. Load before.heapsnapshot… → Amplification comes from the suite's own…
  • A suite is slow
  • SKILL.md covers Run it, Read the CPU profile, Read the leak snapshots and Triage, plus 2 more sections
  • Calls bash

What it does

Test Perf Leaks is an agent skill from dxos/dxos. CPU-profile or leak-detect an existing vitest suite via env-gated instrumentation — DXPROFILETESTS emits a V8 .cpuprofile, DXDEBUGLEAKS writes before/after heap snapshots plus a per-test heapUsed slope, with zero edits to the test file. Use when a suite is slow, memory grows across a run, or you need to find a hotspot/leak in node tests (echo/halo/mesh/sdk/composer/compute, incl. assistant + agentService).

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Testing & QA, covering Unit testing. It works with Vitest. The repository describes itself as: TypeScript implementation of the DXOS protocols, SDK, toolchain and Composer.

When your agent uses it

  • A suite is slow
  • Memory grows across a run
  • You need to find a hotspot/leak in node tests (echo/halo/mesh/sdk/composer/compute

Example prompts

  • “/test-perf-leaks”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Slope first. heap-samples.ndjson has one {test, heapUsed} line per test, taken
  2. Then the diff. Load before.heapsnapshot and after.heapsnapshot in **DevTools →
  3. Amplification comes from the suite's own test count (vitest 4 dropped config repeats),

What it can do on your machine

Read from SKILL.md and the folder at commit 2e6b92a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • bash

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • speedscope.app

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Test Perf Leaks loads about 1.4k tokens when it runs. Until then it costs about 107 tokens; SKILL.md has 631 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~107
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 631 words (~1,412 tokens).

“Two opt-in env vars instrument the shared node vitest project (createNodeProject in vite.base.config.ts). Unset → the config is byte-identical to a normal run, so CI and everyday runs are unaffected. You point them at an existing suite; nothing in the…”

— opening of SKILL.md by dxos, Custom licence
name
test-perf-leaks

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .agents/skills/test-perf-leaks of dxos/dxos.

Open the folder on GitHubat commit 2e6b92a

Compare with similar skills

Test Perf Leaks next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Test Perf Leaks compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Test Perf Leaks this skilldxos/dxos525—~1.4kAutomated safety check: PassCustom licence
Test Writing WorkflowiOfficeAI/AionUi33k1 repos~1.2kAutomated safety check: PassApache-2.0
Vitestsupabase/supabase111k12 repos~1.1kAutomated safety check: PassApache-2.0
Test GuardamElnagdy/guard-skills1.3k2 repos~2.1kAutomated safety check: PassMIT
Adding LLM MCP ToolsTriliumNext/Trilium38k—~2.5kAutomated safety check: PassAGPL-3.0
Concept Page Test Writerleonardomso/33-js-concepts67k—~5.5kAutomated safety check: PassMIT

Similar skills

  • Test Writing Workflow

    iOfficeAI/AionUi

    Sets the test-writing workflow for the repository: risk-first scenario lists, behavior-focused Vitest tests, a full run before each commit and a coverage target.

    33k GitHub starsUsed in 1 repo~1.2k tokens
    Testing & QAAuto-check passed
  • Vitest

    supabase/supabase

    Official

    Vitest API and config reference (Jest-compatible) — mocking with vi., spies, fake timers, coverage configuration, fixtures, snapshots, and test filtering.

    111k GitHub starsUsed in 12 repos~1.1k tokens
    Testing & QAAuto-check passed
  • Test Guard

    amElnagdy/guard-skills

    Reviews newly written or edited tests against nine rules that cut test bloat, such as mock-heavy checks and near-duplicate cases, before they are committed.

    1.3k GitHub starsUsed in 2 repos~2.1k tokens
    Testing & QAAuto-check passed
  • Adding LLM MCP Tools

    TriliumNext/Trilium

    A skill your agent uses when adding, changing, or reviewing an LLM/MCP tool in Trilium (the defineTools definitions under packages/trilium-core/src/services/llm/tools/ —…

    38k GitHub stars~2.5k tokensUpdated today
    Testing & QAAuto-check passed
  • Concept Page Test Writer

    leonardomso/33-js-concepts

    Generates Vitest tests for every runnable code example on a JavaScript concept documentation page, following a four-phase extraction and conversion process.

    67k GitHub stars~5.5k tokensUpdated 28 days ago
    Testing & QAAuto-check passed
  • Archestra Dev Testing

    archestra-ai/archestra

    A skill your agent uses for test selection and quality across backend, frontend, and e2e; load its backend reference for Vitest projects, mocking, DB fixtures, and performance.

    4.4k GitHub stars~3.2k tokensUpdated today
    Testing & QAAuto-check passed

More from dxos/dxos

All 41 skills in this repo
  • Run the rule-driven agentic code review — discover rule blocks in the repo's .mdl files, prepare per-rule review groups (full project by default; diff-only with --pr-only), spawn one focused Sonnet…

    525 GitHub stars~4.4k tokensUpdated today
    Auto-check passed
  • Forensically inspect and repair Composer browser profiles — offline (Chrome OPFS / SQLite extract) or live via /recovery.html debug port.

    525 GitHub stars~3.1k tokensUpdated today
    Auto-check passed
  • Migrate Oxfmt

    dxos/dxos

    Guide for migrating a project from Prettier or Biome to Oxfmt.

    525 GitHub starsUsed in 3 repos~2.2k tokens
    Auto-check passed
  • Moon

    dxos/dxos

    This skill should be used when the user asks to "configure moon", "set up moonrepo", "create moon tasks", "run moon commands", "configure moon workspace", "add moon project", "moon ci setup", "moon…

    525 GitHub stars~2.1k tokensUpdated today
    Auto-check passed
  • Reference for SubductionPolicy (the four hooks authorizeConnect, authorizeFetch, authorizePut, filterAuthorizedFetch passed via Subduction.hydrate(..., policy) or new Repo({ subductionPolicy })).

    525 GitHub stars~3.4k tokensUpdated today
    Auto-check passed
  • Autocue

    dxos/dxos

    Record a demo of the running app that the agent drives itself — a .mdl QA test or an ad-hoc walkthrough — as a captioned .webm (or a screenshot), trimmed of dead air and ready to attach.

    525 GitHub stars~12k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Test Perf Leaks

What does Test Perf Leaks do?

CPU-profile or leak-detect an existing vitest suite via env-gated instrumentation — DXPROFILETESTS emits a V8 .cpuprofile, DXDEBUGLEAKS writes before/after heap snapshots plus a per-test heapUsed…. Test Perf Leaks is an agent skill from dxos/dxos.cpuprofile, DXDEBUGLEAKS writes before/after heap snapshots plus a per-test heapUsed slope, with zero edits to the test file.

When should I use Test Perf Leaks?

Test Perf Leaks fits situations like: A suite is slow; memory grows across a run; you need to find a hotspot/leak in node tests (echo/halo/mesh/sdk/composer/compute.

How do I install Test Perf Leaks in Claude Code?

Run `npx skills add dxos/dxos --skill test-perf-leaks -a claude-code`. Or copy the skill folder (.agents/skills/test-perf-leaks in dxos/dxos) into .claude/skills/test-perf-leaks in your project. Claude Code loads it when a task matches its description.

How do I install Test Perf Leaks in Codex?

Run `npx skills add dxos/dxos --skill test-perf-leaks -a codex`. Or copy the skill folder (.agents/skills/test-perf-leaks in dxos/dxos) into .agents/skills/test-perf-leaks in your project. Codex loads it when a task matches its description.

Can I use Test Perf Leaks in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add dxos/dxos --skill test-perf-leaks -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/test-perf-leaks, .gemini/skills/test-perf-leaks, .github/skills/test-perf-leaks and .opencode/skills/test-perf-leaks in your project.

What does Test Perf Leaks need to run?

Going by SKILL.md and its folder, Test Perf Leaks needs the command-line tools its instructions call (bash).

Does Test Perf Leaks access the network?

SKILL.md names 1 domain. As links in the text: speedscope.app. This is read from the text; nothing was executed.

Is Test Perf Leaks safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Test Perf Leaks use?

Test Perf Leaks has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Test Perf Leaks use?

About 1.4k tokens (SKILL.md is roughly 5.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Test Perf Leaks?

Skills that share tags, products or a category with Test Perf Leaks: Test Writing Workflow (iOfficeAI/AionUi, 33k stars), Vitest (supabase/supabase, 111k stars), Test Guard (amElnagdy/guard-skills, 1.3k stars) and Adding LLM MCP Tools (TriliumNext/Trilium, 38k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Test Perf Leaks?

dxos (a GitHub organization) maintains it in dxos/dxos, which has 525 GitHub stars. The repository holds 41 skills in this directory. The repository was last updated on October 9, 2026.

Source: dxos/dxos on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.