← ClaudeAtlas

ai-llm-orchestrationlisted

AI system and LLM Council management for {{PROJECT_NAME}}. Covers the 3-model council architecture (Claude + Gemini + GPT), snapshot construction and minimization, prompt engineering for market analysis, usage throttling (100K tokens/day budget), input injection prevention, proprietary data protection, signal quality assessment, confidence thresholds, fallback chains, and cost optimization. Use when working on any code in src/ai/, reviewing AI prompts, implementing new AI features, debugging AI signal quality, managing LLM costs, or reviewing AI security (injection attacks, data leakage). 18 files, ~9.3K lines. Also use when the user mentions "AI council", "LLM", "market analysis AI", "AI signals", or "prediction confidence".
Canhada-Labs/ceo-orchestration · ★ 2 · AI & Automation · score 74
Install: claude install-skill Canhada-Labs/ceo-orchestration
# AI & LLM Orchestration ## Fail-Fast Rule If an AI response cannot be parsed, validated, or is below confidence threshold, **discard it entirely**. Never use an AI signal you cannot validate. Never expose raw LLM output to users without sanitization. Never send proprietary market data to LLMs without minimization. ## Architecture ``` Market Snapshot (engine state) → Snapshot Minimizer (reduce to essential data) → AI Council (3 models in parallel) ├── Claude (Anthropic) ├── Gemini (Google) └── GPT (OpenAI) → Response Aggregator (voting, confidence) → Signal (BUY/SELL/HOLD with confidence) → Usage Limiter (daily budget check) ``` ### Key modules (archetype — adapt filenames to your stack) Every project adopting the AI Council pattern should own these responsibilities, usually one module per responsibility: - **AI orchestration service** — main entry point; receives a task, decides which model(s) to call, applies rate limits, returns the aggregated response. - **AI council** — multi-model voting and aggregation logic; decides how to combine outputs from 2+ models (majority vote, confidence-weighted, quorum). - **AI client adapters** — one per provider (Anthropic, OpenAI, Google, etc.). Wraps the SDK, handles retries, normalizes errors. - **Snapshot builder** — constructs the minimized context payload the LLM will see. Strips PII, aggregates raw data, caps size. - **Minimizer** — strategy layer on top of the snapshot builder. Impl