performance-investigation
- Repo stars 86,684
- Author updated Live
- Author repo svelte
- Domain
- AI
- Compatible agents
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- Trust score
- 88 / 100 · community maintained
- Author / version / license
- @sveltejs · no license declared
- Token usage
- Lean
- Setup complexity
- Plug-and-play
- External API key
- Not required
- Operating systems
- macOS · Linux · Windows
- Runtime requirements
- Node.js
- Permissions
-
- Read-only
- Write / modify
- Network behavior
- Local-only
- Install commands
- 26 variants
Profile is derived at build time from SKILL.md and install vectors. Subject to drift from author intent.
Heads up: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: performance-investigation
description: Investigate performance regressions and find opportunities for optimization pnpm bench:compare m…
category: ai
runtime: Node.js
---
# performance-investigation output preview
## PART A: Task fit
- Use case: Investigate performance regressions and find opportunities for optimization pnpm bench:compare main foo If you pass one branch, bench:compare automatically compares it to main. The .md files are generated summaries of the CPU profile and are usually the fastest way to inspect hotspots. runs entirely locally; runs on Node.js. Works with Claude Code, Cursor….
- Inputs: target material, constraints, expected output, and acceptance criteria.
- Evidence boundary: follow “Quick start / Where outputs go / Suggested investigation flow” and do not present inference as author intent.
## PART B: Execution result
- **01** The card summarizes the use case; runtime output centers on “Investigate performance regressions and find opportunities for optimization pnpm bench:compare main foo If you pass one branch, bench:compare automatically compares it to main. The .md files are generated summaries of the CPU profile and are usually the fastest way to inspect hotspots. runs entirely locally; runs on Node.js. Works with Claude Code, Cursor…”.
- **02** When the source has headings, the agent prioritizes “Quick start / Where outputs go / Suggested investigation flow” so the result follows the author’s structure.
- **03** Typical output includes task judgment, concrete steps, required commands or file edits, validation, and follow-up options.
- **04** Risk context follows the fingerprint: read files, write/modify files; mostly runs locally; usually needs no extra API key.
## Running Rules
- read files, write/modify files; mostly runs locally; usually needs no extra API key.
- Validate with a small sample before expanding scope.
- Return the result, validation criteria, and next iteration options. The source does not require a stable slash command. After installation, invoke the skill by name and describe the task.
Name target files or source material, expected output, forbidden changes, and whether network or shell access is allowed. Permission fingerprint: read files, write/modify files.
Start with a small task and check whether the result follows “Quick start / Where outputs go / Suggested investigation flow”. Inspect diffs, logs, previews, or tests before expanding scope.
Confirm the final output includes a concrete result, evidence, and next action. If it stays generic, tighten inputs, boundaries, and acceptance criteria.
---
name: performance-investigation
description: Investigate performance regressions and find opportunities for optimization pnpm bench:compare m…
category: ai
source: sveltejs/svelte
---
# performance-investigation
## When to use
- Investigate performance regressions and find opportunities for optimization pnpm bench:compare main foo If you pass on…
- Use it when the task has clear inputs, repeatable steps, and validation criteria.
## What to provide
- Target material, scope, expected result, and forbidden changes.
- Whether network, commands, file writes, or external services are allowed.
## Execution rules
- Organize steps around “Quick start / Where outputs go / Suggested investigation flow” and keep inference separate from source facts.
- read files, write/modify files; mostly runs locally; usually needs no extra API key.
- Validate with a small sample before expanding the task.
## Output requirements
- Return the deliverable, key evidence, validation method, and next action.
- Mark missing information as unknown; do not invent commands, platforms, or dependencies. The author source anchors workflow facts; repository files anchor sources and commands; Fluxly only adds fit, limitations, and quality judgment.
skill "performance-investigation" {
input -> user goal + target files + boundaries + acceptance criteria
context -> Quick start / Where outputs go / Suggested investigation flow
rules -> SKILL.md triggers / order / output contract
runtime -> Node.js | read files, write/modify files | mostly runs locally
guardrails -> usually needs no extra API key + small-sample validation + diff/log review
output -> copyable result + checklist + next iteration
} Quick start
- Start from a branch you want to measure (for example
foo). - Run:
pnpm bench:compare main foo
If you pass one branch, bench:compare automatically compares it to main.
Where outputs go
- Summary report:
benchmarking/compare/.results/report.txt - Raw benchmark numbers:
benchmarking/compare/.results/main.jsonbenchmarking/compare/.results/<your-branch>.json
- CPU profiles (per benchmark, per branch):
benchmarking/compare/.profiles/main/*.cpuprofilebenchmarking/compare/.profiles/main/*.mdbenchmarking/compare/.profiles/<your-branch>/*.cpuprofilebenchmarking/compare/.profiles/<your-branch>/*.md
The .md files are generated summaries of the CPU profile and are usually the fastest way to inspect hotspots.
Suggested investigation flow
- Open
benchmarking/compare/.results/report.txtand identify largest regressions first. - For each high-delta benchmark, compare:
benchmarking/compare/.profiles/main/<benchmark>.mdbenchmarking/compare/.profiles/<branch>/<benchmark>.md
- Look for changes in self/inclusive hotspot share in runtime internals (
runtime.js,reactivity/batch.js,reactivity/deriveds.js,reactivity/sources.js). - Make one optimization change at a time, then re-run targeted benches before re-running full compare.
Fast benchmark loops
Run only selected reactivity benchmarks by substring:
pnpm bench kairo_mux kairo_deep kairo_broad kairo_triangle
pnpm bench repeated_deps sbench_create_signals mol_owned
Tests to run after perf changes
Runtime reactivity regressions are most likely in runes runtime tests:
pnpm test runtime-runes
Helpful script
For quick cpuprofile hotspot deltas between two branches:
node benchmarking/compare/profile-diff.mjs kairo_mux_owned main foo
This prints top function sample-share deltas for the selected benchmark.
Practical gotchas
bench:comparechecks out branches while running. Avoid uncommitted changes (or stash them) so branch switching is safe.- Each
bench:comparerun rewritesbenchmarking/compare/.resultsandbenchmarking/compare/.profiles.
Decide Fit First
Design Intent
How To Use It
Boundaries And Review