Install
$ agentstack add skill-hsienw-ai-agent-engineering-playbook-performance-optimization ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo 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.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
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 →About
Performance Optimization
Skill Interface
- Name: performance-optimization.
- Description: Optimize application performance with evidence when latency, throughput, memory, bundle size, rendering speed, Core Web Vitals, query time, startup time, or resource usage matters.
- Parameters: Target metric, acceptable threshold, slow path reproduction, realistic input, baseline measurement, profiling or tracing data, constraints, and correctness or regression tests.
- Instructions: Use this skill before performance changes. Measure first, locate the real bottleneck, make the smallest targeted change, compare before and after with the same method, and report residual validation risk.
Measure before optimizing. Optimize the bottleneck that affects users or system capacity, then measure again.
Workflow
- Define the target metric and acceptable threshold.
- Reproduce the slow path with realistic input.
- Capture a baseline measurement.
- Locate the bottleneck with profiling, tracing, logs, database explain output,
bundle analysis, or runtime metrics.
- Make the smallest change that addresses the bottleneck.
- Compare before and after using the same measurement method.
- Check correctness and regression risk.
Common Areas
- Network waterfalls and unnecessary sequential awaits.
- Large bundles and eager imports.
- Expensive rendering, avoidable re-renders, and unstable props.
- Repeated parsing, sorting, filtering, or serialization.
- Inefficient queries, missing indexes, and excessive round trips.
- Unbounded concurrency or memory growth.
- Cache misses, cache stampedes, and stale invalidation rules.
Rules
- Do not trade correctness or security for speed.
- Do not add caching without ownership, invalidation, and memory bounds.
- Do not optimize rare paths while the primary bottleneck is unknown.
- Do not rely on microbenchmarks for user-visible flows without validation.
- Keep performance changes local and reversible.
Verification
Report:
- Baseline.
- Change made.
- New measurement.
- Test commands actually executed.
- Residual risk, such as missing production traffic validation.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: HsienW
- Source: HsienW/ai-agent-engineering-playbook
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.