optimize

Identify and optimize runtime performance issues in codebases with before/after code examples.

2|Updated May 1, 2026
One-click install
npx skills add https://github.com/nikkogibler/MarsFounderIO --skill optimize-nikkogibler
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: optimize
Source: https://github.com/nikkogibler/MarsFounderIO/tree/main/my-instructions/skills/optimize
Command: npx skills add https://github.com/nikkogibler/MarsFounderIO --skill optimize-nikkogibler

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers identify and fix performance issues in codebases, reducing runtime and resource use.

Core Features & Use Cases

  • Performance bottleneck detection: identify slow loops, O(n^2) operations, and expensive API calls.
  • Memory management & leaks: detect unreleased resources, circular references, and memory growth patterns.
  • Algorithm improvements & caching: suggest better data structures, search/sort improvements, and caching opportunities to avoid repeated work.
  • Concurrency issues: spot race conditions, deadlocks, and threading pitfalls across multi-threaded or async code.
  • Real-world use case: optimize a data processing task by replacing quadratic loops with linear or near-linear approaches and introducing memoization.

Quick Start

Provide a review of the attached codebase to identify the top three performance issues and propose concrete fixes with code snippets.

Frequently Asked Questions about optimize

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify runtime performance bottlenecks in my codebase?

Identify runtime performance bottlenecks by analyzing codebases for slow loops, O(n^2) operations, and expensive API calls. This skill detects these issues and provides before/after code examples with measurable impact.

How do I find and fix memory leaks and unreleased resources in my application?

Find memory leaks by detecting unreleased resources, circular references, and memory growth patterns in your application. The analysis provides concrete recommendations to fix these issues with code examples.

What is the best way to resolve race conditions and deadlocks in async code?

Resolve race conditions and deadlocks by spotting concurrency issues and threading pitfalls across multi-threaded or async code. The analysis provides actionable fixes with before/after code examples.

Can I use this to improve slow data processing tasks caused by quadratic loops?

You can improve slow data processing tasks by replacing quadratic loops with linear or near-linear approaches. The skill suggests better data structures, search/sort improvements, and caching opportunities to avoid repeated work.

How do I start optimizing frontend, backend, and heavy compute libraries?

Start optimizing frontend, backend, and heavy compute libraries by providing a review of the attached codebase. The analysis identifies the top performance issues and proposes concrete fixes with code snippets.