# Performance

> หา bottleneck และ optimize ความเร็ว/หน่วยความจำ ใช้เมื่อผู้ใช้บอกว่าช้า กินแรม หรือขอให้ทำให้เร็วขึ้น

- **Type:** Skill
- **Install:** `agentstack add skill-apgamerinfo-boyser-ai-performance`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [apgamerinfo](https://agentstack.voostack.com/s/apgamerinfo)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [apgamerinfo](https://github.com/apgamerinfo)
- **Source:** https://github.com/apgamerinfo/boyser-ai/tree/main/skills/performance

## Install

```sh
agentstack add skill-apgamerinfo-boyser-ai-performance
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Skill: performance

1. **วัดก่อน อย่าเดา**: profile/จับเวลาจริง (`time`, `cProfile`, `console.time`, `EXPLAIN ANALYZE`) หาว่าช้าตรงไหนจริงๆ
2. กฎ 80/20: แก้ **hotspot ตัวจริง** ที่กินเวลาส่วนใหญ่ ไม่ใช่ทุกจุด
3. **Algorithm ก่อน micro-opt**: O(n²)→O(n log n) ชนะการจูนเล็กๆ ทุกอย่าง
4. จุดที่มักช้า: query ใน loop (N+1), งานซ้ำที่ cache ได้, data structure ผิด (list แทน set/dict), IO/network ใน loop ที่ batch ได้, regex/serialize ซ้ำ
5. **อย่า optimize ก่อนเวลา** — ถ้ายังไม่ใช่ปัญหาจริงอย่าทำให้โค้ดอ่านยากเพื่อความเร็วที่ไม่จำเป็น
6. **ยืนยันด้วยตัวเลข before/after** และเช็คว่าผลลัพธ์ยังถูกต้องเหมือนเดิม

## Source & license

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

- **Author:** [apgamerinfo](https://github.com/apgamerinfo)
- **Source:** [apgamerinfo/boyser-ai](https://github.com/apgamerinfo/boyser-ai)
- **License:** MIT

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

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-apgamerinfo-boyser-ai-performance
- Seller: https://agentstack.voostack.com/s/apgamerinfo
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
