Agent skill · writing content · jeremylongshore

optimizing-prompts

Execute this skill optimizes prompts for large language models (llms)

Why this skill is useful

Provides domain-specific techniques for optimizing LLM prompts that enhance performance and reduce costs, which the AI may not generate on its own.

What it needs

About 2k tokens when loaded. Last updated 2026-08-07. 2,604 stars on the source repository.

What this skill does

Ai Ml Engineering Pack Optimize LLM prompts for reduced token usage, lower costs, and improved output quality by identifying redundancies, simplifying instructions, and restructuring for clarity. Overview 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. How It Works 1. Analyzing Prompt: The skill analyzes the input prompt to identify areas of redundancy, verbosity, and potential for simplification. 2. Rewriting Prompt: It rewrites the prompt using techniques like concise language, targeted instructions, and efficient phrasing. 3. Suggesting Alternatives: The skill provides the optimized prompt along with an explanation of the changes made and their expected impact. When to Use This Skill This skill activates when you need to: 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. Examples Example 1: Reducing LLM Costs User request: "Optimize this prompt for cost and quality: 'I would like you to create a detailed product description for a new ergonomic office chair, highlighting its features, benefits, and target audience, and also include information about its warranty and return policy.'" The skill will: 1. Analyze the prompt for redundancies and areas for simplification. 2. Rewrite the prompt to be more concise: "Create a product description for an ergonomic office chair. Include features, benefits, target audience, warranty, and return policy." 3. Provide the optimized prompt and explain the token reduction achieved. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills jeremylongshore/optimizing-prompts

View the source on GitHub

Browse the @skills marketplace