recursive-meta-prompting

Refine prompts iteratively using recursive meta-prompting with quality thresholds.

1|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/HermeticOrmus/hermetic-claude --skill recursive-meta-prompting-hermeticormus
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: recursive-meta-prompting
Source: https://github.com/HermeticOrmus/hermetic-claude/tree/main/claude/skills/recursive-meta-prompting
Command: npx skills add https://github.com/HermeticOrmus/hermetic-claude --skill recursive-meta-prompting-hermeticormus

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of consistently generating high-quality AI prompts by implementing a structured, iterative refinement process that guarantees convergence to a desired quality threshold.

Core Features & Use Cases

  • Iterative Prompt Improvement: Automatically refines prompts based on quality metrics until a target is met.
  • Categorical Syntax: Integrates with a unified framework using Kleisli composition and comonadic context extraction.
  • Quality Gating: Ensures generated outputs meet specific correctness, clarity, completeness, and efficiency standards.
  • Use Case: When developing a complex prompt for code generation, use this Skill to iteratively improve it, ensuring the final prompt consistently produces efficient and correct code.

Quick Start

Use the recursive meta-prompting skill with a quality threshold of 0.85 to refine the prompt for implementing a binary search algorithm.

Frequently Asked Questions about recursive-meta-prompting

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

FAQPage Schema
How do I iteratively refine LLM prompts to meet a specific quality threshold?

Iterative prompt refinement uses recursive meta-prompting to automatically improve LLM prompts based on quality metrics until a target threshold is met. This structured process guarantees convergence for prompt engineering tasks.

What is recursive meta-prompting and how does it improve AI development?

Recursive meta-prompting is a technique for iterative prompt improvement that uses unified categorical syntax. It improves AI development by applying quality gating to ensure outputs meet correctness, clarity, and efficiency standards.

Can I use categorical semantics and Kleisli composition for prompt engineering?

Yes, recursive meta-prompting integrates categorical semantics through Kleisli composition and comonadic context extraction. This unified framework structures the iterative refinement process to guarantee output convergence.

What's the best way to automate quality assurance for complex code generation prompts?

Automating quality assurance for code generation prompts is best achieved through iterative refinement with quality gating. This approach refines the prompt until it consistently produces efficient and correct code.

When should I use an iterative refinement process for LLM optimization?

You should use iterative refinement for LLM optimization when developing complex prompts that require guaranteed convergence to specific correctness and efficiency standards. It ensures the final prompt consistently meets desired quality thresholds.