awni/mlx-skills/fast-mlx

Claude Code and agent skill by awni/mlx-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Optimize MLX code for performance and memory. Use when asked to implement or speed up MLX models or algorithms, reduce latency/throughput bottlenecks, tune lazy evaluation, type promotion, fast ops, compilation, memory use, or profiling.

Install

npx vskill@latest install awni/mlx-skills/fast-mlx

SKILL.md

Fast MLX

Workflow

  • Looks for opportunities to compile functions of mostly elementwise operations.
  • For models with fixed shape inputs or where the shapes don't change much, compile the entire graph
  • Replace slow implementations with MLX fast ops
  • Identify evaluation boundaries and unintended sync points (mx.eval, item(), NumPy conversions).
  • Check dtype promotion and scalar usage; keep precision consistent with intent.
  • Review compilation strategy; avoid unnecessary recompiles and closure captures.
  • Reduce peak memory via lazy loading order and releasing temporaries before mx.eval.
  • Suggest profiling steps if the bottleneck is unclear.

References

  • Read references/fast-mlx-guide.md for detailed tips and examples. Use it as the source of truth.

Output expectations

  • Provide concrete code changes with brief rationale
  • Call out changes that need user confirmation (e.g., enabling async eval or shapeless compile).

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
76
Repository forks
4
7-day trend score
22

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 19 Mar 2026, 7 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/awni/mlx-skills/fast-mlx/badge)](https://verified-skill.com/skills/awni/mlx-skills/fast-mlx)

Something wrong with this skill or its page? Tell us.