ai-orchestration
Multi-agent AI orchestration patterns inspired by Ruflo. Use when building agent workflows, task routing, multi-model pipelines, credit-aware AI calls, or research-augmented generation. Triggers on orchestration, multi-agent, agent swarm, pipeline, or AI routing keywords.
- License 许可
- MIT
- 最近更新
- 2026-05-18
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- ai-orchestration
- description
- Multi-agent AI orchestration patterns inspired by Ruflo. Use when building agent workflows, task routing, multi-model pipelines, credit-aware AI calls, or research-augmented generation. Triggers on orchestration, multi-agent, agent swarm, pipeline, or AI routing keywords.
03 SKILL.md 正文
AI Orchestration Patterns for Aurion Studio
Multi-Model Pipeline
User Request → Router → Model Selection → Execution → Post-processing → Response
Model Routing (OpenRouter)
- Fast tasks (chat, inline edit):
google/gemini-flash-1.5ordeepseek/deepseek-chat - Complex tasks (code gen, architecture):
anthropic/claude-sonnet-4oropenai/gpt-4o - Creative tasks (writing, design):
anthropic/claude-sonnet-4 - Research: Google Gemini Flash for synthesis
- Fallback chain: OpenRouter → Google Gemini → Ollama Cloud
Credit-Aware Execution
- Estimate token cost BEFORE sending request
- Check
user_credits.balance >= estimated_cost - Deduct estimated cost with
deduct_credits() - Execute AI request
- Reconcile actual vs estimated with
reconcile_credits() - Return 402 if insufficient (never fail silently)
Research-Augmented Generation (RAG)
User Query → shouldResearch() → quickResearch(Tavily) → injectResearch() → LLM
Research Detection
shouldResearch(): Detects questions about current events, docs, APIs- Keywords: "how to", "latest", "best practices", "documentation"
- Auto-enabled in: IDE, Text Editor, UIForge, 1Code, Code Editor, Cowork, Studio
Research Pipeline
- Tavily (primary): 8s timeout, 5 results, search + extract
- Exa AI (fallback): semantic + neural search
- Brave (fallback): web search
- DuckDuckGo (last resort): free, no API key
Deep Research
POST /api/deep-research: Multi-source synthesisresearchFirst: truein/api/ai-proxy: Auto-enrichment- Chat MCP tool:
research_synthesize
Task Decomposition Pattern
Complex Task → Analyze → Decompose → Route → Execute → Aggregate → Verify
- Analyze: Understand scope and requirements
- Decompose: Break into 3-7 atomic subtasks
- Route: Assign each to best-fit agent/model
- Execute: Run subtasks (parallel when independent)
- Aggregate: Combine results coherently
- Verify: Validate output meets requirements
Streaming Patterns (SSE)
- Chat uses Server-Sent Events for real-time streaming
- Pattern:
text/event-streamcontent type - Send
data: [chunk]\n\nfor each token - Send
data: [DONE]\n\nat the end - Client:
EventSourceAPI or fetch with reader
MCP Tools (18 tools in Chat)
- Tools invoke server-side functions
- Each tool: name, description, input schema, handler
- Tools can call external APIs (Tavily, GitHub, etc.)
- Credit deduction per tool invocation
04 同仓库更多 Skills
webapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
web-design-guidelines
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
vercel-react-view-transitions
Guide for implementing smooth, native-feeling animations using React's View Transition API (`<ViewTransition>` component, `addTransitionType`, and CSS view transition pseudo-elements). Use this skill whenever the user wants to add page transitions, animate route changes, create shared element animations, animate enter/exit of components, animate list reorder, implement directional (forward/back) navigation animations, or integrate view transitions in Next.js. Also use when the user mentions view transitions, `startViewTransition`, `ViewTransition`, transition types, or asks about animating between UI states in React without third-party animation libraries.
vercel-react-best-practices
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
vercel-composition-patterns
React composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs. Triggers on tasks involving compound components, render props, context providers, or component architecture. Includes React 19 API changes.
vercel-cli-with-tokens
Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".