AGENT SKILL

phargus-verify

Verify a Node.js performance or memory fix by comparing Phargus measurements before and after the change. Use when deciding whether a runtime change helped, regressed, or remains inconclusive.

License 许可
Apache-2.0
最近更新
2026-11-13
Stars
★ 1
Forks
1

01 前言 Front Matter

name
phargus-verify
license
Apache-2.0
description
Verify a Node.js performance or memory fix by comparing Phargus measurements before and after the change. Use when deciding whether a runtime change helped, regressed, or remains inconclusive.
compatibility
Node.js >=22.18.0; before/after Phargus data and measurement conditions.

02 资源文件 12

03 SKILL.md 正文

Phargus Verify

Determine whether the requested change achieved its runtime goal. Read verification and data semantics. Use tools for capture, summarize and compare.

  1. Establish the goal and baseline before editing code or running the after measurement. Resolve this skill's absolute directory; invoke its scripts/phargus.mjs there.
  2. Record workload, concurrency, requests, warmupMs, durationMs, nodeVersion, machine, intervalMs and windowMs in capture conditions. Record application/config revisions.
  3. Reproduce matching conditions after the change. Keep both data files and manifests.
  4. Run compare with both manifests. Different conditions, missing data, truncation or unknown loss yield an inconclusive result; obtain a controlled raw capture to resolve it. Live capture stops at 10,000 events by default: for a high-rate service pass --max-events or a shorter --duration-ms. compare reads files without an event-count cap.
  5. For comparable measurements, assess deltas against the goal and inspect collateral heap/RSS, GC and backpressure changes. Repeat if normal variation can change the verdict.

Return before/after values, conditions, quality and a justified verdict with remaining uncertainty. A smaller number under lower load does not establish improvement. Read compatibility before requesting unsupported profiling.

Example request: "Verify that replacing this synchronous handler improved runtime latency."

04 同仓库更多 Skills

pharn-dev
pharn-dev/pharn-oss

broken

暂无简介

★ 1
pharn-dev
pharn-dev/pharn-oss

example

暂无简介

★ 1
pharn-dev
pharn-dev/pharn-oss

storybook

Storybook stories for UI components — one story per state, args tables and interaction tests. Use when adding or changing a reusable component.

★ 1
pharn-dev
pharn-dev/pharn-oss

error-handling

Route handler error conventions — wrap handlers in "withErrors" and throw HttpError.

★ 1
pharn-dev
pharn-dev/pharn-oss

date-formatting

Date and time formatting for display in the UI and in exported files, covering locales, relative times such as three days ago, absolute timestamps, time zones taken from the user profile, calendar weeks starting on Monday, the short and long date styles used in tables and detail pages, the rules for showing seconds only in audit views, the fallback used when a time zone is missing, and the helper functions formatDate, formatRelative and formatRange that wrap Intl.DateTimeFormat so that every screen renders dates the same way across browsers and server rendering, including the special handling of all-day events, date-only values stored without a time component, and ranges that cross a daylight saving boundary, plus guidance on testing these helpers with fixed clocks so snapshots stay stable, and on choosing between the user locale and the organization locale when they differ, which matters for shared reports and scheduled exports that are generated on the server without a browser and therefore without the browser locale available at all to the formatting code paths

★ 1
pharn-dev
pharn-dev/pharn-oss

auth-session

Authentication and session rules for every mutating API route.

★ 1