request-optimizer

Analyze incoming requests to optimize context efficiency and minimize token waste.

4|Updated Nov 7, 2025
One-click install
npx skills add https://github.com/matheusallvarenga/claude-code-skills --skill request-optimizer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: request-optimizer
Source: https://github.com/matheusallvarenga/claude-code-skills/tree/main/skills/request-optimizer
Command: npx skills add https://github.com/matheusallvarenga/claude-code-skills --skill request-optimizer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill addresses the common issues of inefficient AI interactions: wasted tokens, unclear execution paths, and suboptimal model choices. It acts as an intelligent intermediary, ensuring every request is analyzed and executed strategically, saving time and resources.

Core Features & Use Cases

  • 5-Point Analysis: Automatically assesses request specificity, exploration needs, subtask decomposition, tool coordination, and optimal model choice (Haiku/Sonnet/Opus).
  • Strategic Recommendations: Provides a clear, actionable strategy before execution, including suggested tools (MCPs, Agents, other Skills) and context optimization.
  • Approval Gates: Prevents costly or unintended operations by requiring user approval for heavy tasks like codebase exploration or model upgrades.
  • Use Case: You send a vague request like "Continue implementing the project." This skill will analyze it, recommend using an Explore Agent, suggest breaking it into phases, and ask for your approval before spending tokens, ensuring a focused and efficient workflow.

Quick Start

Use the request-optimizer skill to analyze my request to "refactor the user authentication module".

Frequently Asked Questions about request-optimizer

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

FAQPage Schema
How do I reduce token waste when making AI requests?

Token efficiency starts with analyzing your request before execution. Request-optimizer automatically assesses request specificity, exploration needs, and task decomposition to recommend the right strategy and model choice (Haiku, Sonnet, or Opus), eliminating wasted context and unnecessary processing.

What's the best way to break down complex AI tasks into subtasks?

Request-optimizer uses a 5-point analysis framework to automatically decompose complex requests into manageable subtasks, coordinate tool usage, and suggest whether to use exploration agents or specialized tools. It recommends concrete execution steps before you commit resources.

How can I avoid costly model upgrades and unnecessary operations?

Approval gates in request-optimizer prevent unintended expensive operations by requiring your sign-off on heavy tasks like codebase exploration or model upgrades. You review the recommended strategy first, then approve only what you need.

Can I use request-optimizer to optimize vague or exploratory requests?

Yes. Request-optimizer handles vague requests by analyzing what exploration is actually needed, recommending whether to use an Explore Agent, suggesting task phases, and delivering a focused strategy. It turns unclear requests into concrete, efficient execution plans.

What model should I choose for different types of AI tasks?

Request-optimizer's 5-point analysis includes automatic model selection, recommending Haiku for lightweight tasks, Sonnet for balanced workloads, or Opus for complex reasoning. The recommendation is based on your request's actual requirements, not default assumptions.

How does request-optimizer coordinate with other tools and agents?

Request-optimizer integrates with Explore Agent, TodoWrite, and MCPs to deliver a complete strategy. It analyzes your request, recommends which tools fit best, and prepares coordination steps so all components work together efficiently.