Agent skill

TS Memory Baseline

by victorgarciaesgi in victorgarciaesgi/regle

Measure and compare TypeScript memory usage for @regle/core and test typechecks.

MITAuto-check passed

Install TS Memory Baseline

skills CLI
$ npx skills add victorgarciaesgi/regle --skill ts-memory-baseline -a claude-code

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

GitHub CLI
$ gh skill install victorgarciaesgi/regle ts-memory-baseline --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/victorgarciaesgi/regle.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.cursor/skills/ts-memory-baseline .claude/skills/ts-memory-baseline && 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
ts-memory-baseline
GitHub stars
506
Token cost
~785 tokens
SKILL.md length
251 words
Files
1
Skills in repo
9
Repo updated
First seen
Licence
MIT

At a glance

Measure and compare TypeScript memory usage for @regle/core and test typechecks.

  • Works in 3 steps: Use Node 24 for all measurements. → Run pnpm build before any test-related… → pnpm run test:typecheck should never…
  • Checking TS server pressure
  • SKILL.md covers Hard requirements, Environment setup, Measurement runbook (must… and Measurement commands, plus 2 more sections
  • Calls pnpm, node and tsc

What it does

TS Memory Baseline is an agent skill from victorgarciaesgi/regle. Measure and compare TypeScript memory usage for @regle/core and test typechecks. Use when checking TS server pressure, type-level perf regressions, or before/after heavy generic typing changes.

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

It works with TypeScript, Vue.js and pnpm. The repository describes itself as: ✅ Headless form validation library for Vue.js. The licence is MIT.

When your agent uses it

  • Checking TS server pressure
  • Type-level perf regressions
  • Before/after heavy generic typing changes

Example prompts

  • “/ts-memory-baseline”

Workflow steps

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

  1. Use Node 24 for all measurements.
  2. Run pnpm build before any test-related measurement.
  3. pnpm run test:typecheck should never fail. If it fails, treat the run as invalid for regression tracking.

What it can do on your machine

Read from SKILL.md and the folder at commit 9d69771. 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:

    • pnpm
    • node
    • tsc

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

  • Network

    No URLs in SKILL.md. Its commands use pnpm, which can reach the network depending on how they are called.

    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

TS Memory Baseline loads about 785 tokens when it runs. Until then it costs about 53 tokens; SKILL.md has 251 words of instructions outside code blocks.

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

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

The full file from victorgarciaesgi/regle at commit 9d69771, republished under its MIT licence (© victorgarciaesgi). 251 words, ~785 tokens.

Download SKILL.mdSave it as .claude/skills/ts-memory-baseline/SKILL.md (or your agent's skills folder).
name
ts-memory-baseline
description
Measure and compare TypeScript memory usage for @regle/core and test typechecks. Use when checking TS server pressure, type-level perf regressions, or before/after heavy generic typing changes.
metadata.author
regle
metadata.version
2026.03.19

TypeScript memory baseline procedure

This skill defines a reproducible process to measure TypeScript memory usage in this repository.

Hard requirements

  1. Use Node 24 for all measurements.
  2. Run pnpm build before any test-related measurement.
  3. pnpm run test:typecheck should never fail. If it fails, treat the run as invalid for regression tracking.

Environment setup

bash
PATH="/Users/victorgarcia/.nvm/versions/node/v24.15.0/bin:$PATH"
node -v
pnpm -v

Expected:

  • Node v24.x
  • pnpm 11.20.0 (or project-compatible version)

Measurement runbook (must follow)

  1. Ensure no extra monorepo tasks are running.
  2. Use the exact Node 24 PATH prefix in every command.
  3. Run one warm-up pass that is discarded.
  4. Run 3 measured passes and compare medians.
  5. Save only the final medians in tests/TS_MEMORY_BASELINE_RESULTS.md.

Measurement commands

A. @regle/core compiler diagnostics
bash
PATH="/Users/victorgarcia/.nvm/versions/node/v24.15.0/bin:$PATH" \
./node_modules/.bin/tsc -p "packages/core/tsconfig.json" --noEmit --extendedDiagnostics

Capture:

  • Memory used
  • Instantiations
  • Check time
B. Full type tests memory

Run build first:

bash
PATH="/Users/victorgarcia/.nvm/versions/node/v24.15.0/bin:$PATH" pnpm build

Then:

bash
PATH="/Users/victorgarcia/.nvm/versions/node/v24.15.0/bin:$PATH" \
/usr/bin/time -l pnpm run test:typecheck

Capture:

  • exit code (must be 0)
  • maximum resident set size
  • peak memory footprint
  • real/user/sys

Recommended sequence:

bash
# warm-up (discard)
PATH="/Users/victorgarcia/.nvm/versions/node/v24.15.0/bin:$PATH" \
/usr/bin/time -l corepack pnpm run test:typecheck

# measured runs (collect all 3)
PATH="/Users/victorgarcia/.nvm/versions/node/v24.15.0/bin:$PATH" \
/usr/bin/time -l corepack pnpm run test:typecheck
PATH="/Users/victorgarcia/.nvm/versions/node/v24.15.0/bin:$PATH" \
/usr/bin/time -l corepack pnpm run test:typecheck
PATH="/Users/victorgarcia/.nvm/versions/node/v24.15.0/bin:$PATH" \
/usr/bin/time -l corepack pnpm run test:typecheck

Comparison protocol

Use median deltas because absolute values can vary with machine/CPU load.

  1. Compute medians for old baseline and new run.
  2. Compute delta % = (new - old) / old * 100.
  3. Evaluate with these thresholds:
    • Likely noise: within ±5% for memory metrics.
    • Watch zone: >5% and <=10% increase.
    • Regression candidate: >10% increase.
  4. For Check time and real time, treat as noisy:
    • investigate only if increase is >15% and reproducible across runs.
  5. If pnpm run test:typecheck exit code is non-zero, invalidate the run (do not update baseline).

Results storage

Store only numeric outcomes in:

  • tests/TS_MEMORY_BASELINE_RESULTS.md

Do not put procedural instructions in the results file.

© victorgarciaesgi, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .cursor/skills/ts-memory-baseline of victorgarciaesgi/regle.

Open the folder on GitHubat commit 9d69771

Compare with similar skills

TS Memory Baseline 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.

TS Memory Baseline compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
TS Memory Baseline this skillvictorgarciaesgi/regle506—~785Automated safety check: PassMIT
Pnpm Engineteambit/bit18k—~1.9kAutomated safety check: PassCustom licence
Create Docsvictorgarciaesgi/nuxt-typed-router4132 repos~2.8kAutomated safety check: PassMIT
Rgsm Gui Debugmcthesw/game-save-manager1.1k—~267Automated safety check: PassAGPL-3.0
Vuetify Playgroundvuetifyjs/vuetify41k—~730Automated safety check: PassCustom licence
Link Workspace Packagesnomcopter/react-mosaic4.8k6 repos~760Automated safety check: PassCustom licence

Similar skills

  • Pnpm Engine

    teambit/bit

    Work on the pnpm Rust engine (@pnpm/napi, the pacquet crates) that bit install runs through.

    18k GitHub stars~1.9k tokensUpdated today
    DevelopmentAuto-check passed
  • Create Docs

    victorgarciaesgi/nuxt-typed-router

    Create complete documentation sites for projects. An agent skill from victorgarciaesgi/nuxt-typed-router.

    413 GitHub starsUsed in 2 repos~2.8k tokens
    Frontend & DesignAuto-check passed
  • Rgsm Gui Debug

    mcthesw/game-save-manager

    Debug the RGSM frontend against the real Rust backend in a normal browser, without Tauri IPC or WebView tooling.

    1.1k GitHub stars~267 tokensUpdated 2 days ago
    Frontend & DesignAuto-check passed
  • Vuetify Playground

    vuetifyjs/vuetify

    Maintains the Vuetify repo's local Playground.vue so contributors get a realistic reproduction and a short demo they can paste into a pull request description.

    41k GitHub stars~730 tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Link Workspace Packages

    nomcopter/react-mosaic

    Link workspace packages in monorepos (npm, yarn, pnpm, bun).

    4.8k GitHub starsUsed in 6 repos~760 tokens
    DevelopmentAuto-check passed
  • Generate comprehensive release notes for Bit from git commits and pull requests.

    18k GitHub stars~2.2k tokensUpdated today
    DevelopmentAuto-check passed

More from victorgarciaesgi/regle

All 9 skills in this repo
  • Regle

    victorgarciaesgi/regle

    Core Regle form validation in Vue 3 — setup with useRegle, the reactive r$ object, validation properties, displaying errors, and modifiers.

    506 GitHub stars~840 tokensUpdated 11 days ago
    Auto-check passed
  • Regle Migrate Vuelidate

    victorgarciaesgi/regle

    Migrate Vuelidate form validation to Regle. An agent skill from victorgarciaesgi/regle.

    506 GitHub stars~752 tokensUpdated 11 days ago
    Auto-check passed
  • Regle Rules

    victorgarciaesgi/regle

    Regle validation rules — built-in rules from @regle/rules, custom rules with createRule, rule wrappers (withMessage, withParams, withAsync, withTooltip), and rule operators (and, or, xor, not…

    506 GitHub stars~564 tokensUpdated 11 days ago
    Auto-check passed
  • Regle Schemas

    victorgarciaesgi/regle

    Validate Regle forms with schema libraries via @regle/schemas — Zod, Valibot, ArkType, and any Standard Schema spec library using useRegleSchema, useRules, refineRules, and InferInput.

    506 GitHub stars~485 tokensUpdated 11 days ago
    Auto-check passed
  • Regle Advanced

    victorgarciaesgi/regle

    Advanced Regle form validation patterns — collection validation with $each, async rules and $pending, server/externalErrors, $reset options, global config with defineRegleConfig, discriminated-union…

    506 GitHub stars~683 tokensUpdated 11 days ago
    Auto-check passed
  • Code Review

    victorgarciaesgi/regle

    Mandatory pre-commit validation for every Copilot code review on pull requests in the regle monorepo.

    506 GitHub stars~470 tokensUpdated 11 days ago
    Auto-check passed

Questions about TS Memory Baseline

What does TS Memory Baseline do?

Measure and compare TypeScript memory usage for @regle/core and test typechecks. TS Memory Baseline is an agent skill from victorgarciaesgi/regle. Measure and compare TypeScript memory usage for @regle/core and test typechecks.

When should I use TS Memory Baseline?

TS Memory Baseline fits situations like: checking TS server pressure; type-level perf regressions; before/after heavy generic typing changes.

How do I install TS Memory Baseline in Claude Code?

Run `npx skills add victorgarciaesgi/regle --skill ts-memory-baseline -a claude-code`. Or copy the skill folder (.cursor/skills/ts-memory-baseline in victorgarciaesgi/regle) into .claude/skills/ts-memory-baseline in your project. Claude Code loads it when a task matches its description.

How do I install TS Memory Baseline in Codex?

Run `npx skills add victorgarciaesgi/regle --skill ts-memory-baseline -a codex`. Or copy the skill folder (.cursor/skills/ts-memory-baseline in victorgarciaesgi/regle) into .agents/skills/ts-memory-baseline in your project. Codex loads it when a task matches its description.

Can I use TS Memory Baseline 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 victorgarciaesgi/regle --skill ts-memory-baseline -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ts-memory-baseline, .gemini/skills/ts-memory-baseline, .github/skills/ts-memory-baseline and .opencode/skills/ts-memory-baseline in your project.

What does TS Memory Baseline need to run?

Going by SKILL.md and its folder, TS Memory Baseline needs the command-line tools its instructions call (pnpm, node and tsc).

Does TS Memory Baseline access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is TS Memory Baseline 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 TS Memory Baseline use?

TS Memory Baseline is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does TS Memory Baseline use?

About 785 tokens (SKILL.md is roughly 3.1k 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 TS Memory Baseline?

Skills that share tags, products or a category with TS Memory Baseline: Pnpm Engine (teambit/bit, 18k stars), Create Docs (victorgarciaesgi/nuxt-typed-router, 413 stars), Rgsm Gui Debug (mcthesw/game-save-manager, 1.1k stars) and Vuetify Playground (vuetifyjs/vuetify, 41k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains TS Memory Baseline?

victorgarciaesgi (a GitHub user) maintains it in victorgarciaesgi/regle, which has 506 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on September 28, 2026.

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