performance-analysis

Diagnose slow execution, high memory usage, and excessive token consumption through systematic measurement.

1|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/voidful/Aixlarity --skill performance-analysis-voidful
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: performance-analysis
Source: https://github.com/voidful/Aixlarity/tree/main/.aixlarity/skills/performance-analysis
Command: npx skills add https://github.com/voidful/Aixlarity --skill performance-analysis-voidful

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Agent systems suffer from two distinct performance problems: slow Rust runtime code and runaway LLM token costs. Optimizing based on intuition wastes effort, so this Skill enforces a measure-first workflow that uses profiling data to decide what to fix. ## Core Features & Use Cases - Runtime Profiling: Compile with debug symbols and profile the Rust binary using tools like perf to find slow execution paths. - Token Performance Tracking: Monitor prompt tokens, completion tokens, tool calls per task, and total cost per session to detect waste. - Waste Pattern Detection: Identify context stuffing, skill catalog bloat, history accumulation, and redundant tool calls that inflate token usage. - Use Case: When a task consumes far more tokens than expected or auto-compact triggers frequently, use this Skill to trace whether the cause is bloated context injection or repeated file reads across turns. ## Quick Start Analyze why my last agent session consumed so many tokens and identify which context sources or tool calls caused the bloat.

Frequently Asked Questions about performance-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I profile a Rust binary for performance issues?

Build with debug symbols using cargo build --release, then record execution with a system profiler like perf record followed by perf report. This shows which functions consume the most CPU time during a task run.

How to reduce token usage in LLM agent workflows?

Track prompt tokens, completion tokens, and tool calls per task to find waste. Common fixes include injecting fewer files into context, trimming the skill catalog with progressive disclosure, and avoiding repeated reads of the same file across turns.

What metrics should I track for LLM token performance?

Track prompt tokens per turn for context bloat, completion tokens per turn for over-generation, tool calls per task for wasted reads, and total cost per task. Aixlarity tracks session cost automatically.

Why does auto-compact trigger frequently in long agent sessions?

Frequent auto-compact signals context pressure from accumulated conversation history or oversized injected files. It indicates the prompt assembly is carrying more context than needed and should be audited before adding new sources.

When should I not optimize agent performance?

Never optimize based on intuition alone. Measure first with profiling data, since the actual bottleneck is often different from what developers assume, and premature optimization wastes effort on the wrong components.