phargus-memory
Investigate Node.js memory growth with Phargus raw samples, allocation sites, and heap snapshot summaries or diffs. Use for suspected leaks, rising RSS, or determining what memory grew.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- phargus-memory
- license
- Apache-2.0
- description
- Investigate Node.js memory growth with Phargus raw samples, allocation sites, and heap snapshot summaries or diffs. Use for suspected leaks, rising RSS, or determining what memory grew.
- compatibility
- Node.js >=22.18.0; raw Phargus data or heap snapshots; a compatible application Phargus installation for heap analysis.
02 资源文件 12
- 参考文档agents/openai.yaml187 B
- 参考文档references/compatibility.md2.3 KB
- 参考文档references/data.md4.2 KB
- 参考文档references/memory.md2.0 KB
- 参考文档references/tools.md5.2 KB
- 脚本scripts/capture.mjs7.8 KB
- 脚本scripts/operations.mjs11.6 KB
- 脚本scripts/phargus.mjs6.1 KB
- 脚本scripts/records.mjs9.1 KB
- 脚本scripts/summary.mjs16.4 KB
- 脚本scripts/types.d.ts5.0 KB
- 脚本scripts/upstream.mjs6.0 KB
03 SKILL.md 正文
Phargus Memory
Identify the observed memory growth and test whether it persists under comparable work. Read memory and data semantics. Use tools for summary and heap analysis.
- Resolve this skill's absolute directory. Summarize the recording and establish workload, warmup, GC context and data quality. Request raw NDJSON when external/arrayBuffers are missing.
- Separate heap, RSS and external/buffer growth. Inspect comparable workload cycles and observed post-GC baselines before claiming a leak.
- Analyze supplied snapshots with the heap command and --project pointing to the app. Compare object-name counts and self sizes; these are not retaining paths or dominators.
- If needed, prepare an application-side capture for the user's requested operation. Snapshot/allocation APIs run in the monitored process, and snapshot capture pauses it. Read compatibility before choosing those APIs.
- Investigate supported sites/object groups and test the suspected correction over repeated equivalent workload cycles.
Return measured trajectories, capture/analysis limits, hypotheses and the next controlled experiment. Existing evidence may identify external pressure without proving a JS leak.
Example request: "RSS doubles after each batch; use these samples and snapshots to investigate."
04 同仓库更多 Skills
broken
暂无简介
example
暂无简介
pharn-cli
Operate the PHARN CLI (@pharn-dev/pharn 0.10.0+, best on 0.16.0, with a fallback for 0.9.x) on a project that has PHARN installed. Use when the person asks whether PHARN is up to date, what an update would change, to update it, what is installed, or to add or remove a capability (griller or lens), or when pharn.config.json exists and they mention updating PHARN. When they ask to set up or uninstall PHARN, it tells them how to do it themselves. Read-only checks and a dry-run preview first; never overwrites their edits.
pharn-ci-install
Add the pharn-ci pull request check (the pharn-dev/pharn-ci GitHub Action) to a repository, writing pharn-ci 0.9.1 (Report v2, with the test-integrity check and dependency safety) and recognising an existing 0.1.x to 0.9.x setup and what upgrading it changes - lcov or Cobertura coverage output from the project's own test run, checked locally the way pharn-ci reads it, a .pharn/ci.yml with the threshold, and a workflow pinned to a full commit SHA with the test-integrity input. Asks before writing a workflow for a repository on a private registry, because dependency safety flags off-registry sources (D05). Use when the person asks to set up, add, install, update or wire in pharn-ci, a diff coverage gate or test integrity for pull requests, including on fork PRs or in an existing CI job. Never uses pull_request_target, never writes a tag pin, asks before installing anything, never creates or applies the accept label, never switches dependency safety off on its own, never commits. Not for explaining a pharn-ci result (pharn-ci-explain), covering reported lines (pharn-ci-cover) or the PHARN CLI (pharn-cli).
pharn-ci-explain
Explain a pharn-ci result (the pharn-dev/pharn-ci GitHub Action or the `pharn-ci check` CLI, 0.1.x to 0.9.x) - why a pull request's pharn-ci check failed or warned, what a message code such as COVERAGE_PATHS_UNMATCHED, TEST_INTEGRITY_TI03, POLICY_P13, AGENT_CONFIG_SECRET_S01, INJECTION_PI01 or DEPENDENCY_D05 means, what its diff coverage number covers, what a test-integrity, org policy, prompt-injection, dependency or stale-instruction finding asks a reviewer to look at, and what to change in this repository. Use when the person asks about a pharn-ci comment, verdict, report.json, diff coverage gate, test integrity, policy, secret, injection, dependency or flaky-test finding or agent setup message, or asks to loosen a policy, add or apply the pharn/accepted accept label or otherwise get past a block. Read-only unless asked; never applies the accept label, changes a policy, turns dependency safety off or quarantines a test to get a PR through, and never repeats a secret or the text of an injection finding. Not for adding pharn-ci (pharn-ci-install), writing a policy (pharn-ci-policy), acting on fix hints (pharn-ci-fix) or the PHARN CLI (`pharn`, pharn.config.json), which is the pharn-cli skill.
pharn-ci-cover
Write tests for the added lines that a pharn-ci report (the pharn-dev/pharn-ci GitHub Action or the `pharn-ci check` CLI, 0.1.x with Report v1 or 0.2.x to 0.9.x with Report v2) lists as uncovered, so a pull request's diff coverage meets its threshold. Use when pharn-ci fails with DIFF_COVERAGE_BELOW_THRESHOLD, or the person asks to cover the lines pharn-ci reports, raise diff coverage, get the pharn-ci coverage check passing, or exclude a file from, lower or switch off the pharn-ci coverage gate (it explains what that changes and asks first). Adds tests only - never lowers the threshold, excludes files, edits the pharn-ci config or workflow (including the test-integrity, dependencies and accept-label inputs), adds coverage-ignore comments, skips or focuses tests, weakens test scripts, adds a dependency or edits a lockfile to satisfy a test, adds a test to a quarantine list, imports a changed file into an unrelated test, or applies the accept label. From a 0.9.x report it acts only on fix hints of kind add-test. Not for adding pharn-ci to a repository (pharn-ci-install) or the PHARN CLI (pharn-cli).