cfn-loop-validation

Replace Bash CFN Loop validation scripts with a TypeScript module.

14|2|Updated Sep 23, 2025
One-click install
npx skills add https://github.com/masharratt/claude-flow-novice --skill cfn-loop-validation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cfn-loop-validation
Source: https://github.com/masharratt/claude-flow-novice/tree/main/.claude/skills/cfn-loop-validation
Command: npx skills add https://github.com/masharratt/claude-flow-novice --skill cfn-loop-validation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires Bash, Node.js, jq, Redis, SQLite, Grep, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill ensures the reliability and quality of AI agent workflows by automatically validating outputs and intelligently retrying tasks that don't meet predefined thresholds. It prevents manual oversight and reduces the risk of errors in complex multi-agent systems, allowing you to trust your AI's work.

Core Features & Use Cases

  • Multi-Mode Validation: Supports MVP, Standard, and Enterprise validation modes with configurable gate and consensus thresholds, adapting to your project's quality needs.
  • Intelligent Auto-Retry: Automatically re-executes tasks with progressive complexity and exponential backoff until validation criteria are met or maximum iterations are reached, minimizing manual intervention.
  • Evidence Chain Memory: Logs all validation attempts, scores, and outcomes to an SQLite database, providing a transparent audit trail for every decision.
  • Use Case: Automatically validate code generated by a team of AI developers. If the initial code fails a quality gate, the system intelligently retries the development task, potentially with more validators or stricter criteria, until the code passes, ensuring high-quality deliverables.

Quick Start

Invoke validation for a task in standard mode

./cfn-loop-validation.sh "task-auth-system" standard

Frequently Asked Questions about cfn-loop-validation

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

FAQPage Schema
How do I automatically validate AI agent workflow outputs and retry failed tasks?

This Skill performs multi-layer validation of AI-generated deliverables and automatically retries tasks using progressive complexity and exponential backoff until they meet predefined quality thresholds or reach maximum iterations, eliminating manual oversight in multi-agent systems.

What validation modes does the system support for different project scales?

The Skill supports MVP, Standard, and Enterprise validation modes with configurable gate and consensus thresholds, allowing you to adapt validation strictness to your project's quality requirements and scale.

How can I integrate validation into distributed AI orchestrator pipelines?

The Skill exposes Redis-ready hooks and CLI wrappers that integrate into orchestrator pipelines, enabling distributed coordination of validation and retry logic across multiple agents and systems.

Does the validation system provide an audit trail of validation attempts?

Yes, the Skill logs all validation attempts, scores, and outcomes to an SQLite database, creating a transparent evidence chain that documents every validation decision and retry cycle.

Can I use this validation system with existing Bash-based CFN workflow scripts?

The Skill replaces Bash-based CFN Loop validation scripts with a TypeScript module, providing strict typing, unified ValidationResult interfaces, and core components—validator, types, CLI tools, tests, and documentation—for seamless pipeline integration.

What happens when AI-generated code fails initial quality gates?

The system intelligently retries the development task with potentially more validators or stricter criteria until outputs pass, ensuring high-quality deliverables without manual intervention in multi-agent workflows.