agent-quality-patterns

Implement self-critique loops and LLM-as-judge scoring for AI agents.

Updated Mar 15, 2026
One-click install
npx skills add https://github.com/a53ali/ai-dev --skill agent-quality-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-quality-patterns
Source: https://github.com/a53ali/ai-dev/tree/main/skills/cross-cutting/agent-quality-patterns
Command: npx skills add https://github.com/a53ali/ai-dev --skill agent-quality-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps engineers and managers improve the quality of AI agents and LLM-powered features, bridging the gap between prototype and production.

Core Features & Use Cases

  • Self-Critique Loop: Implement self-critique to improve output quality.
  • Evaluator-Optimizer Pipeline: Score and refine AI outputs for higher accuracy.
  • LLM-as-Judge: Use a separate LLM for consistent quality evaluation.
  • Golden Dataset Evals: Test AI agents against a curated set of inputs.
  • Use Case: When preparing an AI agent for production, use this Skill to establish a robust evaluation process, ensuring reliability and correctness.

Quick Start

Analyze the quality of your AI agent using the agent-quality-patterns skill.

Frequently Asked Questions about agent-quality-patterns

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

FAQPage Schema
How do I evaluate AI agent quality for production readiness?

Evaluating AI agent quality requires implementing self-critique loops and LLM-as-judge scoring to measure correctness. This establishes a robust evaluation process, ensuring reliability before deployment.

What is the LLM-as-judge pattern for evaluating AI outputs?

The LLM-as-judge pattern uses a separate LLM to consistently evaluate and score output quality. It acts as an automated evaluator within an evaluator-optimizer pipeline to refine AI accuracy.

How do I set up golden dataset evaluation for an LLM agent?

Setting up golden dataset evaluation involves testing your AI agent against a curated set of inputs. This validates agent correctness and ensures production-ready performance across known scenarios.

How does a self-critique loop improve LLM output quality?

A self-critique loop improves LLM output quality by having the agent evaluate its own responses and refine them iteratively. This process catches errors and enhances accuracy before final output.

What is the best way to measure correctness of LLM-powered features?

The best way to measure correctness of LLM-powered features is combining evaluator-optimizer pipelines with golden dataset evals. This provides measurable, consistent scoring to bridge the gap between prototype and production.

Can I use self-critique loops for any AI agent prototype?

You can use self-critique loops for AI agent prototypes to enhance output quality. This technique fits any LLM-powered feature needing refinement, though it requires an evaluator mechanism to function effectively.