brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
workflow-patternsChoose and implement mcp-agent workflow patterns including routers, intent classifiers, parallel fan-out/fan-in, orchestrators, evaluators, swarms, and structured outputs.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when a task asks you to choose, compose, or implement an mcp-agent workflow pattern beyond basic Agent/AugmentedLLM setup. It covers routers, embedding routers, intent classifiers, parallel map-reduce/fan-out/fan-in, orchestrator/deep orchestrator flows, evaluator-optimizer loops, swarm handoffs, planner-style compositions, and structured outputs.
For basic MCPApp, Agent, server connections, and LLM setup, use the sibling ../core-sdk/SKILL.md. For Temporal or durable execution semantics, use ../durable-execution/SKILL.md. This sub-skill focuses on in-process pattern selection and code structure.
LLMRouter or create_router_llm(...) when a request must be dispatched to the best agent, MCP server, or callable based on candidate descriptions and reasoning.EmbeddingRouter or create_router_embedding(...) when categories are stable and semantic-similarity scoring is preferable to another LLM call.LLMIntentClassifier or embedding intent classifiers when you need a fixed intent taxonomy, confidence, and optional extracted entities before routing.ParallelLLM or create_parallel_llm(...) when independent specialists can process the same input concurrently and a fan-in step can aggregate their outputs.Orchestrator or create_orchestrator(...) when the system must plan sequential steps and delegate tasks to workers dynamically.DeepOrchestrator or create_deep_orchestrator(...) for long-horizon research with budgets, memory, policy-driven replanning, and knowledge extraction.EvaluatorOptimizerLLM or create_evaluator_optimizer_llm(...) when a clear quality rubric can drive bounded refinement.SwarmAgent plus OpenAISwarm, AnthropicSwarm, or create_swarm(...) when a conversation should hand off between agents while preserving context variables.async with app.run() as running_app: and pass context=running_app.context to factory helpers so server registry, executor, secrets, tracing, and token tracking are shared.AgentSpec, Agent, existing AugmentedLLM, or deterministic callables depending on the helper. Keep agent names unique and instructions capability-specific.mcp_agent.workflows.factory for ordinary application code; drop to provider-specific classes only when you need direct constructor control.LLMRouter, not RouterLLM. Prefer route_to_agent, route_to_server, or route_to_function when the destination type is known.QualityRating threshold and a small max_refinements cap.generate_structured(..., response_model=YourModel, request_params=RequestParams(strict=True)) where the provider supports strict mode.await workflow.get_token_node() after nested runs when budget matters.scripts/pattern_skeletons.py from this skill to print safe starting templates.references/pattern-selection.mdreferences/api-reference.mdreferences/workflows.mdreferences/troubleshooting.mdscripts/check_workflow_imports.pyscripts/pattern_skeletons.pytop_k, many fan-out agents, or high refinement counts.