AGENT SKILL

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.5 or deepseek/deepseek-chat
  • Complex tasks (code gen, architecture): anthropic/claude-sonnet-4 or openai/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

  1. Estimate token cost BEFORE sending request
  2. Check user_credits.balance >= estimated_cost
  3. Deduct estimated cost with deduct_credits()
  4. Execute AI request
  5. Reconcile actual vs estimated with reconcile_credits()
  6. 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

  1. Tavily (primary): 8s timeout, 5 results, search + extract
  2. Exa AI (fallback): semantic + neural search
  3. Brave (fallback): web search
  4. DuckDuckGo (last resort): free, no API key

Deep Research

  • POST /api/deep-research: Multi-source synthesis
  • researchFirst: true in /api/ai-proxy: Auto-enrichment
  • Chat MCP tool: research_synthesize

Task Decomposition Pattern

Complex Task → Analyze → Decompose → Route → Execute → Aggregate → Verify
  1. Analyze: Understand scope and requirements
  2. Decompose: Break into 3-7 atomic subtasks
  3. Route: Assign each to best-fit agent/model
  4. Execute: Run subtasks (parallel when independent)
  5. Aggregate: Combine results coherently
  6. Verify: Validate output meets requirements

Streaming Patterns (SSE)

  • Chat uses Server-Sent Events for real-time streaming
  • Pattern: text/event-stream content type
  • Send data: [chunk]\n\n for each token
  • Send data: [DONE]\n\n at the end
  • Client: EventSource API 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

aicreator350
aicreator350/aurionOFFICIELLE

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.

★ 0
aicreator350
aicreator350/aurionOFFICIELLE

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".

★ 0
aicreator350
aicreator350/aurionOFFICIELLE

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.

★ 0
aicreator350
aicreator350/aurionOFFICIELLE

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.

★ 0
aicreator350
aicreator350/aurionOFFICIELLE

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.

★ 0
aicreator350
aicreator350/aurionOFFICIELLE

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".

★ 0