llm-prompt-optimizer

Optimize LLM prompts with RSCIT, chain-of-thought, and few-shot patterns.

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/BoraPerusic/agents --skill llm-prompt-optimizer-boraperusic
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: llm-prompt-optimizer
Source: https://github.com/BoraPerusic/agents/tree/main/skills/to%20try/llm-prompt-optimizer
Command: npx skills add https://github.com/BoraPerusic/agents --skill llm-prompt-optimizer-boraperusic

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prompts often yield inconsistent, vague, or hallucinated results. This skill provides a structured approach to optimize prompts across models to improve reliability and output quality.

Core Features & Use Cases

  • RSCIT-based prompt design to define role, situation, constraints, instructions, and template.
  • Chain-of-Thought patterns for step-by-step reasoning on complex tasks.
  • Few-shot examples to establish pattern and reliability across model variations.
  • Structured output guidance (JSON, markdown, plain text) to ensure predictable results.
  • Reduction of token usage without sacrificing quality; cross-model portability.

Quick Start

Refine a vague prompt by defining role, context, constraints, and a clear output format, then specify the exact task for the model.

Frequently Asked Questions about llm-prompt-optimizer

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

FAQPage Schema
How do I improve prompt quality and reduce LLM hallucinations?

To improve prompt quality and reduce LLM hallucinations, apply structured patterns like RSCIT-based design to define role, situation, constraints, instructions, and template, ensuring explicit output formats and step-by-step reasoning.

What is the best way to structure chain-of-thought prompts for complex tasks?

Chain-of-thought prompts structure complex tasks by enforcing step-by-step reasoning patterns, guiding the model through logical sequences before producing the final output, which significantly improves reliability on multi-layered instructions.

How do I use few-shot examples to get consistent LLM outputs?

Few-shot examples establish pattern and reliability across model variations by providing explicit input-output pairs within the prompt, ensuring the LLM replicates the desired behavior and formatting for subsequent queries.

Can I enforce structured output formats like JSON in LLM prompts?

You can enforce structured output formats like JSON in LLM prompts by providing explicit output formatting instructions and templates, ensuring predictable results that match your exact schema requirements.

Does prompt optimization work across different LLM models?

Prompt optimization supports cross-model portability, allowing refined prompts using role definition and token-efficient design to perform consistently across various LLM architectures without requiring model-specific rewrites.

Why do my zero-shot prompts yield vague or inconsistent results?

Zero-shot prompts yield vague or inconsistent results when they lack defined constraints, clear roles, and explicit output formats, problems solved by applying structured design principles like RSCIT to specify exact task requirements.