fleet: Skill for Claude Code

.claude/skills/debug-perf/SKILL.md

debug-perf is a skill for Claude Code from brizzai/fleet. It costs 111 tokens per session (2,352 once invoked), scanned A, original, Apache-2.0.

A read-only guide for diagnosing performance problems in a terminal user interface, such as freezes, slow updates, or high background CPU use. It uses stall reports and heartbeat logs produced when fleet debugging is enabled.

In plain words
What is it for?
Use it to inspect stall dumps, goroutine activity, CPU and memory usage, slow update warnings, and problems during terminal attachment.
Why use it?
It helps identify whether the interface loop is blocked or another process is consuming resources. It turns performance symptoms into evidence for a likely cause.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md.

This is brizzai/fleet's own configuration. It tells Claude Code how to work on fleet itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything fleet configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is Re-launch with: FLEET_DEBUG=1 ./build/fleet.

Reuse

Borrowing it

Nothing to install: this file belongs to brizzai/fleet. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/brizzai/fleet/master/.claude/skills/debug-perf/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/brizzai/fleet

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for debug-perf

README.md
[![agentmods](https://agentmods.dev/badge/skills/brizzai/fleet/debug-perf/github.svg)](https://agentmods.dev/skills/brizzai/fleet/debug-perf)
Your own site
<a href="https://agentmods.dev/skills/brizzai/fleet/debug-perf"><img src="https://agentmods.dev/badge/skills/brizzai/fleet/debug-perf/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for debug-perf

Your own site · 80×15
<a href="https://agentmods.dev/skills/brizzai/fleet/debug-perf"><img src="https://agentmods.dev/badge/skills/brizzai/fleet/debug-perf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,352 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 94
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00111 $0.02352
Opus 5.5 $0.00044 $0.00941
Sonnet 5.5 $0.00022 $0.00470
Haiku 4.5 $0.00011 $0.00235

Measured 2mo ago against content hash 1543d4800df9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

debug-perf scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/debug-perf/SKILL.md · 162 lines

How it starts

The opening of the file, as written. The whole thing — 162 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Debug Performance / UI Stalls

Diagnose why the fleet TUI froze, stuttered, or felt laggy by reading the artifacts the perfwatch package writes when FLEET_DEBUG=1 is set. Read-only — report findings and recommend fixes, never edit code.

What perfwatch records

When FLEET_DEBUG=1, internal/perfwatch instruments every Update() call and continuously samples runtime state:

  • Stall dumps — ~/.config/fleet/stalls/<ts>_update_stall_<msgType>_<ms>ms.txt written automatically when Update() runs longer than 500ms. Re-dumps every 1.5s while still stuck. Contains: in-flight message, recent message ring buffer (last 32 with durations), full goroutine stacks (debug=2), block profile, mutex profile, GC stats.
  • Heartbeat — every 5s in ~/.config/fleet/debug.log: goroutine count, process CPU%, heap KB, total/slow update counts, max update duration. Keeps logging during attach (when the Bubble Tea loop is suspended) so background-worker CPU usage is visible even when the TUI itself isn't running.
  • Slow Update warnings — any Update() ≥100ms gets a perfwatch: slow Update msg=… duration_ms=… WARN line in debug.log even if it didn't trigger a stall dump.
  • SIGUSR1 — kill -USR1 $(pgrep -f 'fleet$') forces a snapshot on demand. Filename ends in _manual_sigusr1.

Step 0: Verify perfwatch is enabled

If the user hasn't set FLEET_DEBUG, no dumps exist and you can't help. Check:

grep "perfwatch: enabled" ~/.config/fleet/debug.log | tail -1

If empty, instruct the user:

Re-launch with: FLEET_DEBUG=1 ./build/fleet
Reproduce the freeze, then run /debug-perf again.

If the user reports laggy attach but no TUI stall, also tell them: while attach feels laggy, run kill -USR1 $(pgrep -f 'fleet$') from another terminal to force a snapshot of background goroutines. Stalls during attach won't trigger the watchdog (Bubble Tea loop is suspended), so manual snapshots are the only signal.

Step 1: Find the relevant dump

ls -lt ~/.config/fleet/stalls/ | head -20

Read the full file on GitHub · 162 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 162 lines · 111 tokens per session scan A 1543d4800df9

Subscribe to this mod's changes

debug-perf is a skill published in the GitHub repository brizzai/fleet (59 stars, last pushed 9d ago), licensed Apache-2.0. It adds 111 tokens to every session and 2,352 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

debug-optimize-lcp

Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

systematic-debugging

Use when debugging a failing test, build error, or runtime issue that isn't immediately obvious. Guides a 4-phase root cause analysis instead of random fix attempts.

open-metadata/OpenMetadata · 37 tokens

log-error-digest

Analyze log files to troubleshoot errors, identify peak error periods, and produce error clustering, frequency statistics, and time distribution reports. Supports JSON, syslog, and Nginx formats with automatic detection. Use when a user uploads a .log file and asks to analyze errors, find patterns, debug issues, or…

zebbern/claude-code-guide · 71 tokens

cwv-optimizer

Diagnose and fix Core Web Vitals issues on AEM Edge Delivery Services pages. Goes deeper than generic CWV advice by understanding EDS-specific performance patterns including the 100KB LCP budget, E-L-D loading phases, block rendering behavior, and third-party script impact. Produces specific fixes for LCP, CLS, and…

adobe/skills · 112 tokens

incident-response-incident-response

Coordinate production incident triage, mitigation, investigation, recovery, and follow-up. Use when responding to outages or other incidents that require structured operational coordination.

rmyndharis/antigravity-skills · 36 tokens

ci-fixer

CI failures - read error, minimal fix, verify.

sipyourdrink-ltd/bernstein · 15 tokens