agentleFS
MicrosoftKnown publishermicrosoft/intelligent-terminal/.github/skills/performance-review/SKILL.md

performance-review

Skill2.1k starsChanged 3 months agoMITView on GitHub

Review Intelligent Terminal performance changes in local work, commit ranges, branches, or PRs. Use for renderer, text-buffer, VT, UI-thread, tab/pane, WTA, async, session, logging, allocation, event-amplification, benchmark, profiling, responsiveness, memory, and CI-cost changes.

We split this skill into the rules it gives an agent

4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 18 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Only HIGH findings are eligible for authorized autofix, and only when they are high-confidence, small and localized, behavior-preserving, …

    line 109
  2. Distinctive:

    When committing is authorized, make one separate minimal commit per HIGH finding and put its commit link in that finding's table row.

    line 115
  3. Distinctive:

    When proposals are committed, include one notice below the findings table: "Proposed fixes committed without build/test.

    line 125
  4. Distinctive:

    Keep the opening summary as prose.

    line 131

“Common” is measured: kept by at least 6 in 10 of the 18 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Performance Review

Investigate how a change affects typing, rendering, tab switching, WTA startup, session refresh and repeated work. Establish the affected scenario and cost before recommending an optimization.

Review context

Establish the baseline and reviewed changes from the caller's local diff, commit range, branch comparison or PR. Record the exact snapshot for mutable work so later edits cannot be mistaken for reviewed evidence.

Identify changed files, affected components and callers. File and line counts help estimate effort; execution frequency, data growth and subsystem risk determine which paths merit deeper investigation. Caller-supplied scope and analyzer output are discovery inputs, not proof of complete coverage.

Review produces Markdown using the results template below. The caller owns execution permissions, additional output formats, validation and delivery. Review-only is the default; authorized corrections follow the repair criteria.

Investigation

Inspect the complete patch and compare behavior with the baseline. Trace the changed functions into repeated lifecycle and event paths: renderer and TerminalCore, text buffer, VT parser/adapter, UI thread, tab/pane ownership, WTA process pooling, tasks, locks, channels, session/log enumeration, allocations, copies and notification amplification.

Apply each rule when its trigger appears in the changes or affected callers. Record the rule ID with its evidence.

RuleTriggerInvestigationIntentional cases
PERF-REPEATED-WORKA loop, lookup, copy or enumeration changes on a repeated path.Compare work as input grows; establish caller frequency and actual bounds. Inspect nested scans and collections used only for count or membership.Fixed small bounds, one-time startup, required snapshots and amortized work.
PERF-UI-BLOCKINGA UI callback or dispatcher path gains synchronous work.Trace the executing thread, I/O, waits and traversal through callees; identify the stalled interaction and its blocking cost.Already-background work, bounded cheap callbacks and required thread affinity.
PERF-MVVM-AMPLIFICATIONA property, binding, collection update or subscription changes.Trace notifications to consumers; count expensive refreshes per logical change, including bulk updates and reentrancy.Required individual notifications, cheap consumers and existing batching.
PERF-ASYNC-CONTENTIONLock scope, awaits, channels or synchronous work in a task changes.Establish what survives suspension, who contends and how ordering affects progress; verify actual scopes.Async-aware locks, released guards, intentional backpressure and non-suspending operations.
PERF-OWNER-LIFETIMETabs, panes, tasks, subscriptions, helpers or pools have different lifetimes.Trace repeated creation through teardown and cancellation; identify retained work or memory beyond its intended owner.Resident pools, pre-warmed helpers, stash/restore and deliberately longer-lived bounded tasks.

Analyzer and measurement evidence

Inspect each diagnostic in source before adopting it. Comparable results identify revisions, tool versions, configuration, target and analyzed scope. Separate new or worsened costs from unchanged baseline debt; moved lines alone are not new defects. Shared headers or callers can worsen behavior outside edited lines.

Available repository entrypoints include the opt-in C++ PerformanceAnalysis=Extended profile, cargo wta-perf and cargo wta-perf-extended. Use their definitions in the build configuration and Cargo aliases as the authority for checks and commands. Ordinary Cargo builds do not run Clippy.

C++ project selection is provisional until evaluated MSBuild ClCompile membership establishes translation-unit coverage. Successful prerequisite builds are not additional analyzer coverage. Unmapped sources, shared callers, headers and unsupported languages remain explicit coverage gaps.

Interpret warnings in context. await_holding_lock can warn after an explicit drop; collections may preserve iterator or clone side effects; boxing a large future trades stack size for allocation. Group membership and machine-fix availability do not establish impact or behavioral safety.

Inspect existing evidence where relevant: src/ConsolePerf.wprp, src/tools/ConsoleBench, test/e2e/Measure-PaneContext.ps1, build/scripts/Measure-AgentHookOverhead.ps1, focused tests and duration telemetry.

EvidenceWhat it establishes
Source / complexity / blocking / lifetime proofA concrete causal cost under stated execution and input bounds.
MicrobenchmarkCost of the measured operation, not end-to-end improvement.
End-to-end measurementImpact on the measured user scenario and environment.
ProfileWhere measured work or resource use accumulates.
Native testBehavior covered by that test on the exact validated source.
Missing, partial or failed analysisA coverage gap or blocker, not a clean result.

Separate application performance, responsiveness, memory growth and CI runtime/cost. Record the native OS, architecture, tooling and measurement conditions. Noisy measurements need at least three samples and their spread; cross-platform timings remain evidence for the platform actually measured.

Triage and repair

Classify each finding as HIGH, MEDIUM or LOW before choosing its disposition. Rank severity by demonstrated scenario impact, frequency or growth, not by how easy a fix is. Do not promote a finding to HIGH to make it autofix-eligible. Collapse duplicate warnings for the same underlying defect.

ResultDisposition
HIGH, high confidence, measured regression or proven complexity/blocking/lifetime defect on a relevant pathPropose the smallest behavior-preserving correction.
Important defect with redesign, ordering/lifetime uncertainty or unsupported validationManual handoff with evidence and missing proof.
Plausible cost with uncertain impact or frequencyMEDIUM/LOW advice with uncertainty and tradeoffs.
Unrelated baseline debt, negligible bounded cost, intentional behavior or false positiveExplain the exclusion in check evidence.

Proof that work exists is not proof that it merits HIGH repair. Tie its growth, blocking or retention to the affected scenario's actual bounds/frequency or demonstrated impact. An unnecessary allocation or copy with no such context remains MEDIUM/LOW advice, even if its local replacement is obvious. A separate HIGH defect in the same file does not authorize editing an advice-only finding.

Only HIGH findings are eligible for authorized autofix, and only when they are high-confidence, small and localized, behavior-preserving, and supported by repository-specific evidence. Build and test are not prerequisites for committing an authorized proposal: the original reviewer owns validation and may revert the proposed fix commit. Broad threading, caching, architecture, dependency or policy changes require separate design work. When committing is authorized, make one separate minimal commit per HIGH finding and put its commit link in that finding's table row. Do not combine findings or add unrelated cleanup.

Preserve existing tests and intended semantics. Analyzer replacements need the same proof as hand-written changes: a reference parameter can affect ABI or coroutine lifetime, and reserved capacity can increase retained memory. Insufficient evidence or validation results in an unresolved handoff rather than a broader edit. Report source changes and validation separately so a proposal cannot be mistaken for a verified improvement. When proposals are committed, include one notice below the findings table: "Proposed fixes committed without build/test. The original reviewer owns validation and may revert the fix commit." Do not repeat it for each finding.

Results template

Keep the opening summary as prose. Use tables for findings and checks, ordered HIGH, MEDIUM, LOW; within a severity, show validated corrections, proposals, manual handoffs and advice in that order. Include exact commands/results and missing evidence. With no actionable findings, use that plain statement instead of placeholder rows.

## Performance review

<One sentence describing the outcome and most important impact.>

### Findings

| Severity | Rule / location | Finding and impact | Disposition | Commit | Validation |
| --- | --- | --- | --- | --- | --- |
| HIGH / MEDIUM / LOW | <rule ID; path:line> | <scenario and evidenced cost> | Proposed fix commit / Manual handoff / Advice only | <actual commit link, or None> | <performed check or Not built/tested> |

<For committed proposals, put one shared build/test ownership and rollback
notice here; omit it when nothing was committed.>

### Checks performed

| Check | Scope / command | Result | Missing evidence |
| --- | --- | --- | --- |
| <analyzer or architecture rule> | <actual scope and command/inspection> | Completed / Failed / Not run | <gap, or None> |

Completed records that a check ran; it does not imply no findings or measured gain. A validated correction names its exact source and completed validation. Unavailable or failed checks remain visible even when source review is complete.

Download now (ZIP)

Trending

Quiet since September.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 1 mentionJun 2026: 1 mentionJul 2026: 3 mentionsAug 2026: 2 mentionsSep 2026: 3 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/intelligent-terminal repository that our weekly crawl found: only 10 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about microsoft/intelligent-terminal

The biggest 5 of 10 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 10

Talked about on GitHub and Bluesky (10 times).

On GitHub · 9

4 more on GitHub

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.