gan-style-harness
What it does
This tool autonomously builds complete applications or complex features. It uses a 'planner' to define tasks, a 'generator' to build, and an 'evaluator' to rigorously test, repeating until the output meets a high quality standard.
When to use it
- βBuilding an entire application from a simple idea.
- βDeveloping visual interfaces that need to be both beautiful and functional.
- βCreating complex features requiring high attention to detail.
Skill link
https://github.com/affaan-m/ECC/blob/main/skills/gan-style-harness/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βBuild a to-do list application with user login, categories, and notifications.β
5 new skills a week. 1 minute to read.
How it works
One agent plans the steps, another agent writes the code, and a third agent tests everything very critically. This cycle repeats, with the tester pointing out errors and the builder fixing them, until the result is approved.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
GAN-Style Harness Skill
Inspired by Anthropic's Harness Design for Long-Running Application Development (March 24, 2026)
A multi-agent harness that separates generation from evaluation, creating an adversarial feedback loop that drives quality far beyond what a single agent can achieve.
Core Insight
When asked to evaluate their own work, agents are pathological optimists β they praise mediocre output and talk themselves out of legitimate issues. But engineering a separate evaluator to be ruthlessly strict is far more tractable than teaching a generator to self-critique.
This is the same dynamic as GANs (Generative Adversarial Networks): the Generator produces, the Evaluator critiques, and that feedback drives the next iteration.
When to Use
- Building complete applications from a one-line prompt
- Frontend design tasks requiring high visual quality
- Full-stack projects that need working features, not just code
- Any task where "AI slop" aesthetics are unacceptable
- Projects where you want to invest $50-200 for production-quality output
When NOT to Use
- Quick single-file fixes (use standard
claude -p) - Tasks with tight budget constraints (<$10)
- Simple refactoring (use de-sloppify pattern instead)
- Tasks that are already well-specified with tests (use TDD workflow)
Architecture
βββββββββββββββ
β PLANNER β
β (Sonnet) β
ββββββββ¬βββββββ
β Product Spec
β (features, sprints, design direction)
βΌ
ββββββββββββββββββββββββββ
β β
β GENERATOR-EVALUATOR β
β FEEDBACK LOOP β
β β
β ββββββββββββ β
β βGENERATOR β--build-->ββββ
β β (Sonnet) β β β
β ββββββ²ββββββ β β
β β β β live app
β feedback β β
β β β β
β ββββββ΄ββββββ β β
β βEVALUATOR β<-test----ββββ
β β (Sonnet) β β
β β+Playwrightβ β
β ββββββββββββ β
β β
β 5-15 iterations β
ββββββββββββββββββββββββββ
The Three Agents
1. Planner Agent
Role: Product manager β expands a brief prompt into a full product specification.
Key behaviors:
- Takes a one-line prompt and produces a 16-feature, multi-sprint specification
- Defines user stories, technical requirements, and visual design direction
- Is deliberately ambitious β conservative planning leads to underwhelming results
- Produces evaluation criteria that the Evaluator will use later
Model: Sonnet by default; raise via GAN_PLANNER_MODEL=opus for deeper spec expansion
2. Generator Agent
Role: Developer β implements features according to the spec.
Key behaviors:
- Works in structured sprints (or continuous mode with newer models)
- Negotiates a "sprint contract" with the Evaluator before writing code
- Uses full-stack tooling: React, FastAPI/Express, databases, CSS
- Manages git for version control between iterations
- Reads Evaluator feedback and incorporates it in next iteration
Model: Sonnet by default; raise via GAN_GENERATOR_MODEL=opus for maximum coding capability
3. Evaluator Agent
Role: QA engineer β tests the live running application, not just code.
Key behaviors:
- Uses Playwright MCP to interact with the live application
- Clicks through features, fills forms, tests API endpoints
- Scores against four criteria (configurable):
- Design Quality β Does it feel like a coherent whole?
- Originality β Custom decisions vs. template/AI patterns?
- Craft β Typography, spacing, animations, micro-interactions?
- Functionality β Do all features actually work?
- Returns structured feedback with scores and specific issues
- Is engineered to be ruthlessly strict β never praises mediocre work
Model: Sonnet by default; raise via GAN_EVALUATOR_MODEL=opus for stronger judgment + tool use
Evaluation Criteria
The default four criteria, each scored 1-10:
β¦
FAQ
Why use a separate 'evaluator'?
Agents evaluating their own work tend to be too lenient. Having a dedicated agent to be strictly critical ensures only high-quality work is approved.
What does 'GAN-inspired' mean?
It's inspired by a type of AI called a Generative Adversarial Network (GAN), where two networks compete: one creates something, and the other tries to guess if it's real or fake. Here, one generates code, and the other evaluates it.
How long does it take?
The process can take 5 to 15 cycles of generation and evaluation, depending on the complexity of what's being built.
Details
Original description by the author
GAN-inspired Generator-Evaluator agent harness for building high-quality applications autonomously. Based on Anthropic's March 2026 harness design paper. Use when a feature should be built autonomously through generator and evaluator iteration until it clears a quality bar.
repo: affaan-m/ECC
Popularity
- GitHub stars
- 280k
- Ranking position
- #319
- License
- MIT
- Updated
- 10/15/2026
Comments
- β¦
More skills from this repository
accessibility
280kHelps your agent create interfaces that everyone can use. Ensures websites and apps work well for people with disabilities, like those who are blind or have reduced mobility.
agent-architecture-audit
280kMakes your agent check if everything is working correctly. It finds and fixes problems in AI systems, ensuring they perform as expected.
agent-eval
280kHelps your agent compare different AI coding tools. It measures which one is faster, cheaper, and more reliable for specific tasks.
agent-harness-construction
280kMakes your agent better understand how to perform tasks. It optimizes the tools and instructions the agent uses to increase its chances of success.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.