# Optimize

> Improve performance or resource usage with evidence and clear trade-offs.

- Skill: `majiayu000/optimize` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/optimize`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/optimize/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/optimize

---


# Optimize

## Objective
- Reduce latency, resource consumption, or cost.
- Provide evidence and clarify trade-offs.

## When to use
- Performance/cost is a requirement or pain point.
- There is baseline behavior to compare against.

## Inputs
- User goal (what to optimize and target).
- AGENTS.md, rules, and relevant code/tests.
- Baseline metrics or observations; if missing, note it.

## Process
1) Restate the optimization goal and constraints.
2) Identify likely hotspots and quick wins.
3) Propose minimal changes; avoid behavior drift.
4) Measure or reason about impact; note assumptions if unmeasured.
5) Report trade-offs and follow-ups.

## Outputs
- Changes made and why.
- Evidence (metrics or reasoned estimates) and assumptions.
- Trade-offs and next steps.

## Edge cases
- If no baseline exists, state that and avoid speculative claims.
- Do not sacrifice correctness for micro-optimizations without approval.

