Skip to content
Back to skills

Gpui Perf Audit

ASecurity

Audit GPUI streaming performance (UI-thread I/O, commit/pulse cadence, pane caching). Use for CPU spikes, frame stutter, or animation/scrollbar changes.

  • 23 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 19, 2026
ai-agentsbashgitperformance

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 19, 2026

npx -y skills add wisnuwiry/padu --skill gpui-perf-audit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Gpui Perf Audit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Gpui Perf Audit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/wisnuwiry-gpui-perf-audit/badge)](https://www.skillsdirectory.com/skills/wisnuwiry-gpui-perf-audit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: gpui-perf-audit
description: >-
  Audit GPUI streaming performance (UI-thread I/O, commit/pulse cadence, pane
  caching). Use for CPU spikes, frame stutter, or animation/scrollbar changes.
---

# GPUI Performance & Streaming Audit Skill

Target: sustained streaming CPU ~<10% on 120 Hz displays. Rules verbatim in
[Cadence Invariants](./references/cadence-invariants.md) — this file is the
procedure, not a second copy of the rules.

## When to use

CPU spikes / stutter while streaming; touching animation loops, loaders,
scrollbars, pane observation, or `runtime.rs` / `ui/motion.rs` / `md/render.rs`.

## Checklist (in order)

1. **UI-thread I/O** — no `std::fs::*` / `Command::new` reached from
   `render()` or row builders (`git grep` both in `apps/desktop/src/`).
   Heavy work → `cx.background_executor().spawn`, store on entity, `cx.notify()`.
2. **Cadence** — commits ≤ ~8.3 Hz (120 ms interval, every delta kind routes
   the pump onto `StreamFrame`); pulse ≤ ~30 Hz via shared clock, never
   `with_animation(...).repeat()`; loaders on costly surfaces carry a stride.
3. **Panes** — root re-renders every frame; sidebar/transcript/right panel stay
   `Entity::cached` islands observing root; no fan-out during 200 ms slide.
4. **Scrollbars** — constant-opacity hold while streaming (zero repaints);
   one-shot wake on expiry, pulse clock through the 350 ms fade only.

## Measure

```bash
.agents/skills/gpui-perf-audit/scripts/measure-stream-cpu.sh 15 "Padu Debug"  # avg < ~12% debug
sample $(pgrep -f "Padu Debug" | head -1) 5                                    # leaf-function sampling
```

If notify rate is suspect, wire the temporary `AtomicU32` counters from
[counter-instrumentation.rs](./examples/counter-instrumentation.rs) (do not ship).

Files in this skill

  • SKILL.md1.7 KB
  • examples/counter-instrumentation.rs1.4 KB
  • references/cadence-invariants.md2.6 KB
  • scripts/measure-stream-cpu.sh3.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.