| name | harness-creator |
| description | Generate customized .claude/ harness framework with Fusion Architecture (GAN-inspired + Domain Specialists). TRIGGER when user wants to set up AI-assisted development structure, create a new project harness, add structure to existing projects, or mentions 'harness', 'scaffold', 'framework setup'. Supports all domains through template + dynamic generation. |
| argument-hint | [target-directory] |
| user-invocable | true |
| allowed-tools | Read, Glob, Grep, Write, Edit, Bash, WebSearch, Agent |
Harness Creator
Generate a customized Claude Code harness framework for your project with Fusion Architecture: GAN-inspired multi-agent system + Domain Specialists.
Quick Start
/harness-creator [target-dir]
- With argument: Use specified directory
- Without argument: Ask for target directory
- New project (0โ1): Full brainstorm flow
- Existing project (1โN): Auto-analyze and quick setup
Fusion Architecture
Core Pattern: GAN-Inspired Multi-Agent
โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ
โ Planner โ โโโบ โ Generator โ โโโบ โ Evaluator โ
โ (Plans) โ โ (Implements)โ โ (Grades) โ
โโโโโโโโโโโโโโโ โโโโโโโโฌโโโโโโโ โโโโโโโโโโโโโโโ
โ
spawns specialists
โ
โโโโโโโโโโโโโโผโโโโโโโโโโโโโ
โผ โผ โผ
โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ
โ frontend โ โ api โ โ database โ
โ -dev โ โ -dev โ โ -dev โ
โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ
Why separate agents? Models cannot reliably evaluate their own work. They praise mediocre output and skip edge cases. Separation enables objective quality assessment.
Three Layers
| Layer | Agents | Responsibility |
|---|
| Decision | Planner, architect-lead | Product & Architecture decisions |
| Execution | Generator, [domain]-dev | Implement features |
| Evaluation | Evaluator | Test and grade implementation |
Key Components
| Component | Purpose |
|---|
| Sprint Contract | Negotiate "done" criteria before implementation |
| Domain Specialists | Specialized implementation agents per domain |
| Evaluation Criteria | Convert subjective judgments to gradable standards |
| Context Reset | Structured handoffs for long-running tasks |
Workflow
1. Parse Arguments
2. Analyze Target Directory
Auto-detect:
- Project type:
package.json โ Node.js, pyproject.toml โ Python
- Architecture:
services/ โ microservices, apps/ + packages/ โ monorepo
- Tech stack: Read dependencies from config files
- Module boundaries: Detect
src/, apps/, packages/
- Domain type: Match against domain templates
Generate analysis report โ User confirms or adjusts
3. Domain Detection (NEW in v2.0)
Analyze project structure
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Match against domain templates: โ
โ โ
โ โข web-development (frontend+api+db)โ
โ โข game-development (gameplay+gfx+audio)โ
โ โข data-science (ml+data+analysis)โ
โ โข mobile-app (ios+android)โ
โ โข ... โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโ
โผ โผ โผ
Matchfound No match User specifies
โ โ โ
โผ โผ โผ
Use template Dynamic gen Custom config
4. Specialist Selection
ๆฃๆตๅฐ้กน็ฎ็ฑปๅ: Game Development (Unity)
ๆจ่็้
็ฝฎ:
ๆ ธๅฟ Agents (ๅบๅฎ):
Planner - ไบงๅ่งๅ
Generator - ๅ่ฐๆง่ก (+Agentๅทฅๅ
ท)
Evaluator - ่ฏไผฐๅฎ็ฐ
architect-lead - ๆถๆๅณ็ญ
Specialists (ๅฏ่ฐๆด):
[โ] gameplay-dev ๆธธๆ้ป่พใๆบๅถใAI
[โ] graphics-dev ๆธฒๆใshaderใ็นๆ
[โ] audio-dev ้ณๆใ้ณไน็ณป็ป
[ ] physics-dev ็ฉ็ๆจกๆใ็ขฐๆๆฃๆต
[โ] ui-dev ๆธธๆUIใHUDใ่ๅ
ๆไฝ:
A) ็ดๆฅไฝฟ็จๆจ่
B) ่ฐๆด้ๆฉ
C) ๆทปๅ ่ชๅฎไน specialist
D) ๆฅ็่ฏฆๆ
5. Generate Harness (Parallel Execution)
Use subagents to generate components in parallel for speed:
User confirms generationโ
โโโบ Subagent 1: Core agents (planner, generator, evaluator, architect-lead)
โ
โโโบ Subagent 2: Domain specialists (from template or dynamic)
โ
โโโบ Subagent 3: Evaluation system (skills, templates, docs)
โ
โโโบ Subagent 4: Progress system (skills, hooks, templates)
โ
โโโบ Subagent 5: Safety system (hooks, rules, docs)
โ
โโโบ Subagent 6: Domain-specific skills and rules
โ
โโโบ Main thread: Integrate results + generate settings.json
6. Post-Generation Guidance
โ
Harness generated at [target-dir]/.claude/
Next steps:
1. cd [target-dir]
2. claude
3. Run /start
Domain Template System
Template Location
domain-templates/
โโโ web-development/ # Webๅบ็จๆจกๆฟโ โโโ template.yaml
โ โโโ specialists/
โ โโโ frontend-dev.yaml
โ โโโ api-dev.yaml
โ โโโ database-dev.yaml
โ โโโ devops-dev.yaml
โ
โโโ game-development/ # ๆธธๆๅผๅๆจกๆฟ
โ โโโ template.yaml
โ โโโ specialists/
โ โโโ gameplay-dev.yaml
โ โโโ graphics-dev.yaml
โ โโโ audio-dev.yaml
โ โโโ ui-dev.yaml
โ
โโโ data-science/ # ๆฐๆฎ็งๅญฆๆจกๆฟโ โโโ ...
โ
โโโ _dynamic/ # ๅจๆ็ๆโ โโโ specialist-template.yaml
โโโ detection-rules.yaml
Template Structure (template.yaml)
template:
name: game-development
version: 1.0.0
detection:
files: ["*.unity", "*.gd"]
directories: ["Assets/", "Scripts/"]
keywords: ["game", "unity"]
core_agents:
- planner
- generator
- evaluator
- architect-lead
specialists:
- name: gameplay-dev
source: ./specialists/gameplay-dev.yaml
- name: graphics-dev
source: ./specialists/graphics-dev.yaml
Specialist Definition
name: gameplay-dev
description: "Specialist for gameplay logic"
delegation:
mode: spawned_by_generator
contract_required: true
domain_scope:
directories:
- "Scripts/Gameplay/"
- "Scripts/AI/"responsibilities:
- Implement game mechanics
- Create state machines
- Implement AI behavior
anti_patterns:
- "Don't put rendering code in gameplay scripts"
Generated Harness Structure
<target-dir>/
โโโ .claude/
โ โโโ settings.json
โ โโโ agents/
โ โ โโโ planner.md
โ โ โโโ generator.md # + Agent ๅทฅๅ
ท
โ โ โโโ evaluator.md
โ โ โโโ architect-lead.md
โ โ โโโ [domain]-dev.md # ้ขๅ specialist
โ โโโ skills/
โ โ โโโ start/
โ โ โโโ checkpoint/
โ โ โโโ resume/
โ โ โโโ sprint-contract/
โ โ โโโ [domain-specific]/ # ้ขๅ็นๅฎ skills
โ โโโ hooks/
โ โโโ rules/
โ โโโ evaluation/
โ โโโ docs/
โโโ production/
โ โโโ session-state/
โ โโโ session-logs/
โโโ CLAUDE.md
Key Principles
- Generator-Evaluator Separation: Never the same agent
- Sprint Contract First: Negotiate "done" before building
- Domain Specialists: Delegated by Generator, specialized implementation
- Context Reset: Use handoff artifacts for long tasks
- Concrete Criteria: Convert subjective to gradable
Reference
Design based on Anthropic: Harness Design for Long-Running Apps