- Home
- Skills
- Agents & Orchestration
- quality loops
quality loops
Iterative quality enforcement for LLM outputs using structured critique-rewrite patterns and numeric scoring gates.
Free
Works with the AI Agents you already use
quality loops
Example session with this skill installed
This incident report is for the CEO. Critique and improve it using a Generate-Critique-Rewrite loop. Ensure it scores at least an 8/10 for clarity and professional tone.
- Read your context and instructions
- Compiled the quality loops
I have initiated a quality loop to refine the incident report. The process will iterate until the clarity and tone scores meet your requirement of 8/10, using a maximum of 4 passes to ensure efficiency.
Quality Loop: Incident Report Refinement
| Iteration | Clarity Score | Tone Score | Critic Feedback | Status |
|---|---|---|---|---|
| 1 | 5/10 | 6/10 | Technical jargon is too dense; opening paragraph lacks a clear impact summary. | Iterating |
| 2 | 7/10 | 8/10 | Impact summary added. Paragraph 3 still contains circular reasoning regarding the database failover. | Iterating |
| 3 | 9/10 | 9/10 | Technical explanations are now accessible. Professional tone is consistent. No issues found. | Target Reached |
Refined Incident Report
Summary: On October 14, at 14:02 UTC, a database connection pool exhaustion caused a 12-minute outage for 15% of users. The issue was resolved by manually scaling the connection limit and implementing an automated cleanup script.
Root Cause: The recently deployed analytics module failed to release connections back to the pool under high load.
Resolution:
- Scaled RDS connection limits immediately.
- Reverted the analytics module to v2.1.
- Implemented
connection.close()in the cleanup middleware.
Next steps
- Review the final report for any sensitive internal naming conventions.
- Submit the report to the executive communications channel.
- Archive the loop ledger logs for the compliance audit trail.
Connects securely to your tools. The creator never sees your data.
About this skill
This skill implements structured iteration loops for high-stakes outputs where a model's first draft is insufficient. It enforces a strict separation between the generator and the critic, ensuring work is not shipped until it clears a measurable, numeric quality bar. By using defined patterns like Multi-Critic and Adversarial Critique, it prevents circular arguments, hallmarked errors, and superficial "looks good to me" approvals.
What it does
- Enforced Scoring requires every iteration to have a numeric progress metric rather than vague prose feedback.
- Generator-Critic Separation ensures the model that writes the content is not the same instance that approves it.
- Multi-Dimension Auditing tracks independent scores for correctness, style, and safety without letting one high score mask a failure in another.
- Adversarial Stress-Testing identifies edge cases and security exploits by actively attacking the draft until no unrebutted objections remain.
- Stall Detection monitors for repeated failed rewrites, triggering escalation rather than infinite, unproductive loops.
How it works
- Pattern Selection Choose between Generate-Critique-Rewrite, Score-and-Retry, Multi-Critic, Adversarial Critique, or Judge Ensemble based on the complexity of the task.
- Loop Initialization Define a specific numeric target value and a maximum iteration budget using the
loop-ledgertool. - Critic Pass Run independent critics or automated scorers to identify specific issues and generate a progress score.
- Targeted Rewriting The generator iterates on the draft, specifically addressing the issues list provided by the critic.
- Gate Exit The process terminates only when the numeric threshold is cleared, the budget is exhausted, or the
critique-gateplugin halts the session.
Frameworks & tools
Built for use with loop-ledger and the critique-gate plugin. It utilizes standard GitHub-flavored Markdown for reporting and works across LLM providers supporting tool-calling and system prompt overrides.
Why this beats prompting it yourself
Generic "critique this" prompts often result in polite, superficial feedback that fails to improve the actual content. This skill forces numeric accountability and prevents the model from closing a task before the quality bar is demonstrably met.
Use cases
- Technical Postmortems refining incident reports until they meet clarity and completeness scores.
- Security Audits running adversarial loops to find exploits in design documents or code.
- PR Reviews scoring code changes independently for style, logic, and performance before merging.
- Legal/Policy Drafting ensuring documents survive a judge ensemble where multiple critics must reach consensus.
Known limitations
Requires a numeric metric to function; it cannot iterate on purely subjective tasks that lack a scorable dimension. It is not intended for exploring multiple design variations.
How to use
Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free forever
No account required to browse
Trust & safety
Security scanned
Verified clean today
- Free to download with an account