{
  "version": "1.0.0",
  "name": "Claude Multi-Agent System",
  "description": "Orchestration system for specialized development agents",
  
  "agents": {
    "frontend-architect": {
      "file": "agents/frontend-architect.md",
      "contract": "contracts/frontend-architect.contract",
      "domains": ["architecture", "frontend", "nextjs", "react", "routing"],
      "priority": 1
    },
    "backend-architect": {
      "file": "agents/backend-architect.md",
      "contract": "contracts/backend-architect.contract",
      "domains": ["architecture", "backend", "api", "services"],
      "priority": 1
    },
    "python-expert": {
      "file": "agents/python-expert.md",
      "contract": "contracts/python-expert.contract",
      "domains": ["python", "scripting", "automation", "cli"],
      "priority": 2
    },
    "database-architect": {
      "file": "agents/database-architect.md",
      "contract": "contracts/database-architect.contract",
      "domains": ["database", "schema", "sql", "migrations"],
      "priority": 1
    },
    "ui-components-expert": {
      "file": "agents/ui-components-expert.md",
      "contract": "contracts/ui-components-expert.contract",
      "domains": ["components", "react", "typescript", "design-system"],
      "priority": 2
    },
    "seo-performance-expert": {
      "file": "agents/seo-performance-expert.md",
      "contract": "contracts/seo-performance-expert.contract",
      "domains": ["seo", "performance", "core-web-vitals", "optimization", "structured-data", "lighthouse"],
      "priority": 2
    },
    "deployment-integration-expert": {
      "file": "agents/deployment-integration-expert.md",
      "contract": "contracts/deployment-integration-expert.contract",
      "domains": ["deployment", "ci-cd", "vercel", "configuration"],
      "priority": 3
    },
    "devops-architect": {
      "file": "agents/devops-architect.md",
      "contract": "contracts/devops-architect.contract",
      "domains": ["infrastructure", "docker", "kubernetes", "iac"],
      "priority": 2
    },
    "google-cloud-expert": {
      "file": "agents/google-cloud-expert.md",
      "contract": "contracts/google-cloud-expert.contract",
      "domains": ["gcp", "cloud-run", "firestore", "cloud-functions"],
      "priority": 2
    },
    "qc-automation-expert": {
      "file": "agents/qc-automation-expert.md",
      "contract": "contracts/qc-automation-expert.contract",
      "domains": ["testing", "qa", "playwright", "jest", "automation"],
      "priority": 3
    },
    "document-writer-expert": {
      "file": "agents/document-writer-expert.md",
      "contract": "contracts/document-writer-expert.contract",
      "domains": ["documentation", "technical-writing", "markdown"],
      "priority": 3
    },
    "api-documenter": {
      "file": "agents/api-documenter.md",
      "contract": "contracts/api-documenter.contract",
      "domains": ["api-docs", "openapi", "swagger", "documentation"],
      "priority": 3
    },
    "frontend-developer": {
      "file": "agents/frontend-developer.md",
      "contract": "contracts/frontend-developer.contract",
      "domains": ["implementation", "frontend", "features", "react"],
      "priority": 2
    },
    "code-reviewer": {
      "file": "agents/code-reviewer.md",
      "contract": "contracts/code-reviewer.contract",
      "domains": ["code-quality", "security", "performance", "testing", "best-practices"],
      "priority": 1
    },
    "security-specialist": {
      "file": "agents/security-specialist.md",
      "contract": "contracts/security-specialist.contract",
      "domains": ["security", "owasp", "authentication", "cryptography", "compliance", "threat-modeling"],
      "priority": 1
    },
    "bug-investigator": {
      "file": "agents/bug-investigator.md",
      "contract": "contracts/bug-investigator.contract",
      "domains": ["debugging", "root-cause-analysis", "incident-response", "diagnostics"],
      "priority": 1
    },
    "ai-engineer": {
      "file": "agents/ai-engineer.md",
      "contract": "contracts/ai-engineer.contract",
      "domains": ["ai", "ml", "llm", "rag", "embeddings", "pytorch", "transformers"],
      "priority": 2
    },
    "prompt-engineer": {
      "file": "agents/prompt-engineer.md",
      "contract": "contracts/prompt-engineer.contract",
      "domains": ["prompt-engineering", "llm", "claude", "openai", "function-calling"],
      "priority": 2
    },
    "claude-code-expert": {
      "file": "agents/claude-code-expert.md",
      "contract": "contracts/claude-code-expert.contract",
      "domains": ["claude-code", "orchestration", "agents", "workflows", "governance", "mcp"],
      "priority": 1
    },
    "data-engineer": {
      "file": "agents/data-engineer.md",
      "contract": "contracts/data-engineer.contract",
      "domains": ["data-engineering", "etl", "pipelines", "airflow", "spark", "data-warehousing"],
      "priority": 2
    },
    "crypto-trading-architect": {
      "file": "agents/crypto-trading-architect.md",
      "contract": "contracts/crypto-trading-architect.contract",
      "domains": ["crypto", "trading", "architecture", "system-design", "multi-database"],
      "priority": 1
    },
    "trading-strategy-expert": {
      "file": "agents/trading-strategy-expert.md",
      "contract": "contracts/trading-strategy-expert.contract",
      "domains": ["trading-strategies", "arbitrage", "backtesting", "quantitative-finance"],
      "priority": 1
    },
    "crypto-data-engineer": {
      "file": "agents/crypto-data-engineer.md",
      "contract": "contracts/crypto-data-engineer.contract",
      "domains": ["crypto-data", "timeseries", "questdb", "clickhouse", "data-pipelines"],
      "priority": 1
    },
    "telegram-bot-specialist": {
      "file": "agents/telegram-bot-specialist.md",
      "contract": "contracts/telegram-bot-specialist.contract",
      "domains": ["telegram", "bot", "notifications", "commands", "user-interface"],
      "priority": 2
    },
    "crypto-security-auditor": {
      "file": "agents/crypto-security-auditor.md",
      "contract": "contracts/crypto-security-auditor.contract",
      "domains": ["crypto-security", "wallet", "api-keys", "secrets-management", "compliance"],
      "priority": 1
    },
    "risk-engine-architect": {
      "file": "agents/risk-engine-architect.md",
      "contract": "contracts/risk-engine-architect.contract",
      "domains": ["risk-management", "pre-trade-validation", "circuit-breakers", "position-limits"],
      "priority": 1
    },
    "exchange-integration-specialist": {
      "file": "agents/exchange-integration-specialist.md",
      "contract": "contracts/exchange-integration-specialist.contract",
      "domains": ["exchange-api", "ccxt", "websocket", "rate-limiting", "order-management"],
      "priority": 1
    },
    "execution-optimization-expert": {
      "file": "agents/execution-optimization-expert.md",
      "contract": "contracts/execution-optimization-expert.contract",
      "domains": ["execution-algorithms", "twap", "vwap", "slippage-reduction", "smart-routing"],
      "priority": 1
    },
    "liquidation-monitor": {
      "file": "agents/liquidation-monitor.md",
      "contract": "contracts/liquidation-monitor.contract",
      "domains": ["margin-monitoring", "liquidation-prevention", "leverage-management", "alerts"],
      "priority": 1
    },
    "infrastructure-reliability-expert": {
      "file": "agents/infrastructure-reliability-expert.md",
      "contract": "contracts/infrastructure-reliability-expert.contract",
      "domains": ["high-availability", "failover", "leader-election", "disaster-recovery"],
      "priority": 1
    }
  },
  
  "workflows": {
    "full-stack-feature": [
      "frontend-architect",
      "database-architect",
      "backend-architect",
      "security-specialist",
      "python-expert",
      "ui-components-expert",
      "seo-performance-expert",
      "frontend-developer",
      "qc-automation-expert",
      "code-reviewer",
      "deployment-integration-expert"
    ],
    "frontend-only": [
      "frontend-architect",
      "ui-components-expert",
      "seo-performance-expert",
      "frontend-developer",
      "qc-automation-expert",
      "code-reviewer"
    ],
    "backend-only": [
      "backend-architect",
      "database-architect",
      "security-specialist",
      "python-expert",
      "qc-automation-expert",
      "code-reviewer"
    ],
    "infrastructure": [
      "devops-architect",
      "google-cloud-expert",
      "deployment-integration-expert",
      "security-specialist"
    ],
    "bug-fix": [
      "bug-investigator",
      "code-reviewer",
      "qc-automation-expert"
    ],
    "documentation": [
      "document-writer-expert",
      "api-documenter"
    ],
    "ai-ml-development": [
      "ai-engineer",
      "prompt-engineer",
      "data-engineer",
      "python-expert",
      "code-reviewer"
    ],
    "data-pipeline": [
      "data-engineer",
      "database-architect",
      "python-expert",
      "code-reviewer"
    ],
    "llm-integration": [
      "prompt-engineer",
      "ai-engineer",
      "backend-architect",
      "security-specialist",
      "code-reviewer"
    ],
    "claude-code-system": [
      "claude-code-expert",
      "python-expert",
      "document-writer-expert"
    ],
    "crypto-trading-bot": [
      "crypto-trading-architect",
      "database-architect",
      "crypto-security-auditor",
      "risk-engine-architect",
      "crypto-data-engineer",
      "exchange-integration-specialist",
      "trading-strategy-expert",
      "execution-optimization-expert",
      "liquidation-monitor",
      "infrastructure-reliability-expert",
      "telegram-bot-specialist",
      "python-expert",
      "qc-automation-expert",
      "code-reviewer"
    ]
  },
  
  "governance": {
    "hooks_enabled": true,
    "pre_run_required": true,
    "post_run_validation": true,
    "validators": [
      "scorecard-validator",
      "write-zone-guard",
      "secret-scan",
      "diff-discipline",
      "format-lint",
      "hierarchy-governance"
    ]
  },
  
  "skills_integration": {
    "enabled": true,
    "skills_path": "skills/",
    "available_skills": [
      "docx",
      "xlsx",
      "pptx",
      "pdf",
      "test-generation",
      "code-review",
      "api-design",
      "dockerfile",
      "git-workflow",
      "create-agent",
      "create-skill",
      "crypto-trading-patterns",
      "telegram-bot-patterns",
      "crypto-backtesting",
      "exchange-api-integration",
      "risk-management-framework",
      "high-availability-patterns",
      "order-execution-patterns",
      "state-management-patterns",
      "secrets-management-production",
      "seo-audit-checklist",
      "structured-data-generator",
      "performance-optimization-patterns",
      "lighthouse-ci-integration"
    ]
  },
  
  "paths": {
    "task": "task.md",
    "work": "work.md",
    "scorecard": "scorecard.md",
    "context": "tasks/context_session_1.md",
    "agents": "agents/",
    "contracts": "contracts/",
    "hooks": "hooks/",
    "macros": "macros/",
    "skills": "skills/"
  },
  
  "rules": {
    "task_md_readonly": true,
    "require_write_zone_update": true,
    "no_secrets_in_output": true,
    "minimal_diffs_only": true,
    "scorecard_must_pass": true
  }
}
