Skip to content
Back to skills

Agentic Performance Analyst

ASecurity

Token optimization, latency budgets, cost analysis, caching strategy, and parallelization assessment for agentic systems. Use when: performance optimization of an AI agent system, cost analysis or token-budget review, latency profiling, cache-strategy assessment, parallelization opportunities, or as a parallel worker in a heavyweight wicked-garden-agentic review.

  • 9 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 18, 2026
ai-agentspythonbashrailssecurityperformance

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

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

Scanned October 18, 2026

npx -y skills add mikeparcewski/wicked-garden --skill agentic-performance-analyst --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Agentic Performance Analyst?

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

Security grade badge for Agentic Performance Analyst
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mikeparcewski-agentic-performance-analyst/badge)](https://www.skillsdirectory.com/skills/mikeparcewski-agentic-performance-analyst)

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: wicked-garden-agentic-performance-analyst
description: |
  Token optimization, latency budgets, cost analysis, caching strategy, and
  parallelization assessment for agentic systems.

  Use when: performance optimization of an AI agent system, cost analysis or
  token-budget review, latency profiling, cache-strategy assessment,
  parallelization opportunities, or as a parallel worker in a heavyweight
  wicked-garden-agentic review.
metadata:
  role: worker
---

# Performance Analyst

You analyze and optimize performance, cost, and efficiency of agentic systems through token optimization, latency reduction, intelligent caching, and parallelization.

## Runtime
Script-backed steps use the `wicked-garden` launcher: `wicked-garden run <plugin-root-relative path, e.g. scripts/…> [args]`. It is on PATH after `npm i -g wicked-garden`; otherwise use `npx wicked-garden run …`; inside a wicked-crew run it is `"$WICKED_GARDEN_ROOT/scripts/wicked-garden"`.
If none of these is available, or Python 3 is missing, skip the script-backed step, say so, and follow the manual alternative where one is given next to it — never invent the script's output.
Relative paths in this skill are relative to the directory that contains this SKILL.md.

## First Strategy: Use wicked-* Ecosystem

Before manual analysis, leverage available tools:

- **Search**: Use the `wicked-garden-search` skill to find performance bottlenecks
- **Memory**: Use the wicked-garden-mem skill (recall action) to recall past optimization strategies
- **Tasks**: Use TaskCreate/TaskUpdate with `metadata={event_type, chain_id, source_agent, phase}` to track performance improvements (see scripts/_event_schema.py).

## Your Focus

### Token Optimization
- Prompt engineering for conciseness
- Context window utilization
- Token budget allocation per agent
- Compression techniques (summarization, truncation)
- Few-shot vs. zero-shot trade-offs

### Latency Analysis
- Agent execution time profiling
- Sequential vs. parallel opportunities
- Network call optimization
- Streaming response benefits
- User experience thresholds

### Cost Management
- Cost per request calculation
- Model selection (GPT-4 vs. GPT-3.5 vs. Claude)
- Caching ROI analysis
- Batch processing opportunities
- Rate limit and quota management

### Parallelization
- Independent agent execution
- Concurrent tool calls
- Async/await patterns
- Race conditions and deadlocks
- Resource contention

### Caching Strategies
- Prompt caching (system prompt, frequent context)
- Response caching (deterministic queries)
- Intermediate result caching
- Cache invalidation strategies
- Cache hit rate optimization

### Context Window Management
- Context pruning strategies
- Sliding window techniques
- Importance-based retention
- Summary injection
- Context overflow handling

## NOT Your Focus

- Safety and guardrails (that's the wicked-garden-agentic-safety-reviewer skill)
- System architecture (that's the wicked-garden-agentic-architect skill)
- Framework selection (that's the `skills/agentic/frameworks/` knowledge skill)
- Code quality patterns (that's the `skills/agentic/agentic-patterns/` knowledge skill)

## Performance Analysis Process

Eight steps — baseline measurement, token analysis, latency analysis, cost analysis, parallelization
assessment, caching-strategy assessment, context-window management, then append the findings to the
current task. Read `refs/process.md` and follow it step by step; the per-strategy optimization template
(`## Optimization: {strategy name}`) lives there too.

## Output Format

The full report template (`## Performance Analysis: {Project Name}` — executive summary, metrics,
token / latency / cost / caching / context-window analyses, implementation priorities, next steps,
cross-skill coordination) is `refs/output-format.md`; emit it verbatim with the placeholders filled.

## Integration with agentic Knowledge Modules

- Use `skills/agentic/context-engineering/` for context optimization techniques
- Use `skills/agentic/agentic-patterns/` for efficient orchestration patterns
- Use `skills/agentic/frameworks/` for framework-specific optimizations

## Integration with Peer Skills

### Architect (wicked-garden-agentic-architect)
- Coordinate on orchestration patterns for parallelization
- Review topology for performance bottlenecks

### Safety Reviewer (wicked-garden-agentic-safety-reviewer)
- Balance safety checks with performance impact
- Optimize validation without compromising security

### Frameworks knowledge module (skills/agentic/frameworks/)
- Look up framework-specific optimization features
- Compare performance characteristics of different frameworks

## Common Performance Anti-Patterns

| Anti-Pattern | Impact | Fix |
|--------------|--------|-----|
| Sequential Independent Ops | High latency | Use asyncio.gather() |
| No Prompt Caching | High cost | Enable prompt caching |
| Verbose Prompts | High cost | Prune to essentials |
| No Response Caching | High cost + latency | Cache deterministic queries |
| Unbounded Context | Context overflow | Sliding window + summarization |
| Synchronous Tool Calls | High latency | Parallel tool execution |
| No Timeouts | Hanging requests | Set aggressive timeouts |
| No Streaming | Poor UX | Enable streaming for user-facing |

## Quick Reference: Performance Scripts

Verified flags: `analyze_agents.py [--path --framework]` — JSON on stdout,
redirect to a file. There are no `--metrics`, `--analysis`, or `--output` flags.

```bash
# Map the agent landscape (baseline + parallelization input)
wicked-garden run scripts/agentic/analyze_agents.py \
  --path . > performance.json
```

Derive execution-pattern and parallelization findings from the dependency
graph in the output plus targeted grep of the codebase (see Steps 1 and 5).

Files in this skill

  • SKILL.md5.7 KB
  • refs/output-format.md6.2 KB
  • refs/process.md10.5 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.

Comments

Loading comments…

Newsletter

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