flow-nexus
Multi-model AI flow orchestration with neural routing, platform coordination, and swarm-based processing. Use when building multi-model pipelines, implementing model routing strategies, or orchestrating complex AI workflows across providers.
- License 许可
- MIT
- 最近更新
- 2026-05-18
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- flow-nexus
- description
- Multi-model AI flow orchestration with neural routing, platform coordination, and swarm-based processing. Use when building multi-model pipelines, implementing model routing strategies, or orchestrating complex AI workflows across providers.
03 SKILL.md 正文
Flow Nexus — Multi-Model AI Orchestration
Intelligent routing across multiple AI models with cost optimization, fallback chains, and quality-based selection.
Model Routing Strategies
Cost-Based Routing
Route to cheapest model that meets quality threshold:
Query complexity → Low: Flash → Medium: Haiku → High: Sonnet → Critical: Opus
Quality-Based Routing
Route based on task quality requirements:
- Creative writing → Claude Sonnet/Opus (high quality)
- Code generation → Claude Sonnet (good balance)
- Simple Q&A → Gemini Flash (fast, cheap)
- Research synthesis → Gemini Flash (large context)
Latency-Based Routing
Route to fastest available model:
- Real-time chat → fastest responder
- Background tasks → cheapest option
- Streaming → models with SSE support
Fallback Chains
Automatic failover when primary model is unavailable:
OpenRouter (multi-model)
→ Google Gemini (fallback)
→ Ollama Cloud (fallback)
→ Error with 503
Aurion AI Architecture
Current Provider Stack
- OpenRouter (primary) — Multi-model access, credit-based
- Google Gemini (fallback) — Flash for research synthesis
- Ollama Cloud (fallback) — Self-hosted option
Credit-Aware Routing
User credits check → deduct_credits() atomic
→ Sufficient: Route to selected model
→ Insufficient: Return 402 (no silent fallback)
→ Post-request: reconcile_credits() for actual vs estimated
Research-Augmented Generation
User query → shouldResearch() detection
→ Yes: quickResearch(Tavily, 8s timeout, 5 results)
→ injectResearch() into LLM context
→ No: Direct to LLM
→ LLM processes with enriched context
Credit Costs by Model
- Free tier: 50K credits/month
- Creator: 2M credits/month
- Pro: 10M credits/month
- Enterprise: 50M credits/month
Pipeline Patterns
Sequential Pipeline
Input → Model A (analyze) → Model B (generate) → Model C (review) → Output
Parallel Pipeline
Input → [Model A (summary), Model B (code), Model C (review)] → Merge → Output
Adaptive Pipeline
Input → Complexity analysis → Route to appropriate pipeline → Output
Tool-Specific AI Integration
Chat Tool (SSE Streaming)
- 18 MCP tools available
- Streaming via Server-Sent Events
- Model selection by user preference
- Context window management (truncation strategy)
IDE / 1Code (Code Generation)
- Monaco editor integration
- WebContainer for execution
- Code completion and inline suggestions
- Error explanation and fix suggestions
Agent Builder (ReactFlow)
- 204 connectors
- Custom agent creation
- Visual flow programming
- Multi-model agent chains
AI Marketing (Fabric.js)
- Image generation integration
- Copy generation
- Canvas-based design
- Brand-aware content generation
Quality Monitoring
Per-Model Metrics
- Response latency (p50, p95, p99)
- Error rate and retry frequency
- Token usage and cost
- Quality score (user feedback)
Routing Effectiveness
- Cost savings vs single-model
- Quality maintenance across models
- Fallback trigger frequency
- User satisfaction correlation
Best Practices
- Always implement fallback chains — no single point of failure
- Use credit-aware routing — respect user plan limits
- Monitor per-model quality — route away from degraded models
- Cache research results — don't re-fetch for same queries
- Set timeouts on all external calls — 8s for research, 30s for generation
- Use streaming for user-facing responses — better perceived performance
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".