AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Optimize

skill-v0idos-performance-deity-optimize · by v0idOS

Benchmark, analyze, and optimize a function's execution time. Produces a before/after performance table with real numbers. Never presents a change without proving it is faster.

No reviews yet
0 installs
37 views
0.0% view→install

Install

$ agentstack add skill-v0idos-performance-deity-optimize

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-v0idos-performance-deity-optimize)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
4mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Optimize? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Execute all four phases in order. Do not skip any phase.

Phase 1 — Establish Baseline

  1. Identify the exact code to optimize.
  2. Run a micro-benchmark:
  • Write a temporary micro-benchmark script in the user's workspace.
  • The script MUST contain a warm-up phase (discard ≥10 iterations).
  • The script MUST run ≥100 iterations and output the Average and P95 execution time.
  • Run the script using the terminal.
  • Delete the temporary script after recording the results.
  • Note: If the script fails due to missing imports or dependencies, skip it and use the bash time command as a fallback.
  1. Record P95 and Average. Do not proceed until the benchmark runs without error.
  2. Report baseline numbers before writing any new code.

Phase 2 — Algorithmic Analysis

  1. State the current Time Complexity (Big-O) explicitly.
  2. State the current Space Complexity and identify the primary allocation sites.
  3. Name the bottleneck precisely:
  • "Nested loops causing O(n²) scaling"
  • "Repeated string concatenation causing N heap allocations per call"
  • "Full table scan caused by missing index on user_id"

Phase 3 — Refactoring

  1. Rewrite using a more efficient algorithm or data structure (apply in priority order):
  • Replace Array/List lookups with Hash Sets/Dictionaries: O(N) → O(1)
  • Vectorization or batching instead of per-item iteration
  • Caching/memoization of expensive pure computations
  • Zero-allocation patterns and buffer reuse to reduce GC pressure
  • Bitwise operations where mathematically equivalent
  1. Run the benchmark on the new code.
  2. If the new code is not measurably faster: discard it, select a different approach, repeat.

Phase 4 — Report

Present a Performance Report table:

| Metric | Baseline | Optimized | Δ | |---|---|---|---| | Average | Xms | Yms | -Z% | | P95 | Xms | Yms | -Z% |

Follow with a one-paragraph explanation grounded in CPU/memory theory.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.