gan-style-harness

Orchestrates a generator-evaluator multi-agent loop to build and critique full-stack applications.

Updated Mar 18, 2026
One-click install
npx skills add https://github.com/freedom909/real-estate-saas --skill gan-style-harness-freedom909
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gan-style-harness
Source: https://github.com/freedom909/real-estate-saas/tree/main/.trae/skills/gan-style-harness
Command: npx skills add https://github.com/freedom909/real-estate-saas --skill gan-style-harness-freedom909

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Single AI agents tend to praise their own mediocre output, producing generic-looking applications with broken features. This Skill separates generation from evaluation into an adversarial feedback loop, so applications are iteratively tested and improved against a strict scoring rubric until they meet a quality threshold. ## Core Features & Use Cases - Three-Agent Architecture: A Planner expands a one-line prompt into a full product spec, a Generator implements features in sprints, and an Evaluator tests the live app with Playwright. - Structured Evaluation Rubric: Scores Design Quality, Originality, Craft, and Functionality on a weighted 1-10 scale with a configurable pass threshold and iteration cap. - Configurable Harness: Environment variables control models, iteration limits, evaluation criteria, dev server command, and evaluation modes (playwright, screenshot, code-only). - Use Case: Give a one-line brief like "Build a project management app with Kanban boards and dark mode" and let the loop run 5-15 iterations until the live application passes the rubric. ## Quick Start Ask the agent to run the GAN-style harness to build a recipe sharing platform, starting with a planning pass and then iterating generation and Playwright-based evaluation until the weighted score reaches 7.0.

Frequently Asked Questions about gan-style-harness

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

FAQPage Schema
How do I build an app with a generator-evaluator agent loop?▼

Run the harness with a one-line brief: a Planner agent expands it into a product spec, a Generator implements it in sprints, and an Evaluator tests the live app with Playwright. The loop repeats for 5-15 iterations until the weighted score passes the threshold.

What evaluation criteria does the GAN-style harness use?▼

The default rubric scores four criteria on a 1-10 scale: Design Quality (0.3), Originality (0.2), Craft (0.3), and Functionality (0.2). The weighted score must reach 7.0 to pass, and criteria are configurable via GAN_EVAL_CRITERIA.

When should I not use a multi-agent harness for coding?▼

Avoid it for quick single-file fixes, tasks under a $10 budget, simple refactoring, or well-specified tasks with existing tests. The harness costs roughly $125-200 and takes 4-6 hours, so it suits projects where output quality justifies the investment.

Can the evaluator test apps without a browser UI?▼

Yes. Set GAN_EVAL_MODE to screenshot for static sites and design-only work, or code-only for APIs, libraries, and CLI tools where evaluation relies on tests, linting, and builds instead of Playwright browser interaction.

Why does the evaluator pass everything on the first iteration?▼

A lenient first-pass result means the rubric is too generous. Tighten the scoring criteria, add explicit penalties for common AI design patterns, and ensure the evaluator only critiques while the generator applies fixes.

How do I prevent infinite generator-evaluator loops?▼

Always set GAN_MAX_ITERATIONS (default 15). If scores plateau for three consecutive iterations without improvement, stop the loop and flag the project for human review rather than continuing to spend budget.