Optimizing Prompts

This skill empowers Claude to refine prompts for optimal LLM performance. It streamlines prompts to minimize token count, thereby reducing costs and enhancing response speed, all while maintaining or improving output quality.

AI, LLMs & Agents Plugin marketplace

Install

Claude Code plugin
/plugin marketplace add jeremylongshore/claude-code-plugins-plus-skills
/plugin install ai-ml-engineering-pack@claude-code-plugins-plus

Run these inside Claude Code. The skill comes with its plugin.

What this skill does

This skill optimizes prompts for Large Language Models (LLMs) to reduce token usage, lower costs, and improve performance. It analyzes the prompt, identifies areas for simplification and redundancy removal, and rewrites the prompt to be more concise and effective. It is used when the user wants to reduce LLM costs, improve response speed, or enhance the quality of LLM outputs by optimizing the prompt. Trigger terms include "optimize prompt", "reduce LLM cost", "improve prompt performance", "rewrite prompt", "prompt optimization".

Trigger phrases

Claude loads this skill automatically when you say things like:

“optimize prompt”“reduce LLM cost”“improve prompt performance”“rewrite prompt”“prompt optimization”

How it works

  1. Rewriting Prompt: It rewrites the prompt using techniques like concise language, targeted instructions, and efficient phrasing.
  2. Suggesting Alternatives: The skill provides the optimized prompt along with an explanation of the changes made and their expected impact.

When to use it

  • Reduce the cost of using an LLM.
  • Improve the speed of LLM responses.
  • Enhance the quality or clarity of LLM outputs by refining the prompt.

Best practices

  • Context: Provide sufficient context to the skill so it can understand the prompt's purpose.
  • Iteration: Iterate on the optimized prompt based on the LLM's output to fine-tune performance.

Details

Skill name
optimizing-prompts
Plugin
ai-ml-engineering-pack

FAQ

What does the Optimizing Prompts skill do?

This skill optimizes prompts for Large Language Models (LLMs) to reduce token usage, lower costs, and improve performance. It analyzes the prompt, identifies areas for simplification and redundancy removal, and rewrites the prompt to be more concise and effective. It is used when the user wants to reduce LLM costs, improve response speed, or enhance the quality of LLM outputs by optimizing the prompt. Trigger terms include "optimize prompt", "reduce LLM cost", "improve prompt performance", "rewrite prompt", "prompt optimization".

How do I install the Optimizing Prompts skill?

Claude Code plugin: /plugin marketplace add jeremylongshore/claude-code-plugins-plus-skills then /plugin install ai-ml-engineering-pack@claude-code-plugins-plus. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Related skills

000 Jeremy Content Consistency Validator

jeremylongshore/claude-code-plugins-plus-skills

Validates messaging consistency across website, GitHub repositories, and local documentation. Generates comprehensive read-only discrepancy reports showing where messaging conflicts or inconsistencies exist. Activates when user mentions "consistency check", "validate documentation", "check for mixed messaging", "audit content consistency", or before updating internal paperwork.

Writing & Content

001 Jeremy Taskwarrior Integration

jeremylongshore/claude-code-plugins-plus-skills

Enforces complete Taskwarrior integration protocol for ALL coding tasks. Activates automatically when user mentions "taskwarrior", "task warrior", "tw", or discusses task management. Decomposes all coding work into properly tracked Taskwarrior tasks with full lifecycle: task add → task start → implementation → task done. Integrates with Timewarrior for automatic time tracking.

Productivity & Notes

Adapting Transfer Learning Models

jeremylongshore/claude-code-plugins-plus-skills

This skill automates the adaptation of pre-trained machine learning models using transfer learning techniques. It is triggered when the user requests assistance with fine-tuning a model, adapting a pre-trained model to a new dataset, or performing transfer learning. It analyzes the user's requirements, generates code for adapting the model, includes data validation and error handling, provides performance metrics, and saves artifacts with documentation. Use this skill when you need to leverage existing models for new tasks or datasets, optimizing for performance and efficiency.

Learning & Education

Orchestrating Multi Agent Systems

jeremylongshore/claude-code-plugins-plus-skills

This skill enables Claude to orchestrate multi-agent systems using the AI SDK v5. It allows Claude to set up agent handoffs, intelligent routing, and coordinated workflows across different AI providers like OpenAI, Anthropic, and Google. Use this skill when the user asks to create multi-agent systems, needs help with agent coordination, task routing, or wants to build complex workflows involving specialized agents. It is triggered by phrases like "multi-agent system", "agent orchestration", "agent handoff", "intelligent routing", or "coordinate agents".

AI, LLMs & Agents

Optimizing Cache Performance

jeremylongshore/claude-code-plugins-plus-skills

This skill enables Claude to analyze and improve application caching strategies. It optimizes cache hit rates, TTL configurations, cache key design, and invalidation strategies. Use this skill when the user requests to "optimize cache performance", "improve caching strategy", "analyze cache hit rate", or needs assistance with "cache key design", "TTL optimization", or "cache invalidation". The skill identifies potential bottlenecks and recommends adjustments for improved performance and efficiency of caching mechanisms like Redis.

AI, LLMs & Agents

Performing Regression Analysis

jeremylongshore/claude-code-plugins-plus-skills

This skill empowers Claude to perform regression analysis and modeling using the regression-analysis-tool plugin. It analyzes datasets, generates appropriate regression models (linear, polynomial, etc.), validates the models, and provides performance metrics. Use this skill when the user explicitly requests regression analysis, prediction based on data, or mentions terms like "linear regression," "polynomial regression," "regression model," or "predictive modeling." This skill is also helpful when the user needs to understand the relationship between variables in a dataset.

AI, LLMs & Agents

Browse the most popular Claude skills, all ai, llms & agents skills, or write your own with the skills generator.