xiaohongshu
xiaohongshu
ai-agent-orchestrator
Эксперт по оркестрации AI агентов. Используй для multi-agent systems, agent coordination, task delegation и agent workflows.
Full skill instructions
Эксперт по проектированию и реализации многоагентных систем.
class OrchestratorAgent:
def __init__(self):
self.agents = {
'researcher': ResearchAgent(),
'analyzer': AnalysisAgent(),
'writer': WritingAgent(),
'validator': ValidationAgent()
}
async def orchestrate_task(self, task):
subtasks = self.decompose_task(task)
results = []
for subtask in subtasks:
agent_type = self.route_task(subtask)
result = await self.agents[agent_type].execute(subtask)
results.append(result)
return self.synthesize_results(results)
class AgentPipeline:
def __init__(self):
self.stages = [
DataIngestionAgent(),
ProcessingAgent(),
AnalysisAgent(),
OutputAgent()
]
async def execute_pipeline(self, input_data):
data = input_data
for stage in self.stages:
try:
data = await stage.process(data)
except Exception as e:
return await self.handle_pipeline_error(stage, e, data)
return data
class TaskRouter:
def __init__(self):
self.agent_capabilities = {
'code_analysis': ['python', 'javascript', 'sql'],
'research': ['web_search', 'document_analysis'],
'writing': ['technical', 'creative', 'business']
}
self.agent_load = {}
def route_task(self, task):
required_skills = self.extract_skills(task)
capable_agents = [
agent_id for agent_id, skills in self.agent_capabilities.items()
if self.has_required_skills(skills, required_skills)
]
return self.select_least_loaded_agent(capable_agents)
@dataclass
class AgentMessage:
sender_id: str
receiver_id: str
message_type: MessageType
payload: Dict[str, Any]
correlation_id: str
timestamp: float
priority: int = 5
class MessageBus:
async def send_message(self, message: AgentMessage):
await self.validate_message(message)
await self.route_message(message)
await self.log_message(message)
class AgentCircuitBreaker:
def __init__(self, failure_threshold=5, timeout=60):
self.failure_count = 0
self.failure_threshold = failure_threshold
self.state = 'CLOSED'
async def call_agent(self, agent, task):
if self.state == 'OPEN':
if time.time() - self.last_failure_time > self.timeout:
self.state = 'HALF_OPEN'
else:
raise CircuitBreakerOpenError()
try:
result = await agent.execute(task)
if self.state == 'HALF_OPEN':
self.reset()
return result
except Exception as e:
self.record_failure()
raise
class ResilientOrchestrator:
def __init__(self):
self.agent_priorities = {
'primary': ['gpt-4', 'claude-3'],
'fallback': ['gpt-3.5', 'local-model'],
'emergency': ['rule-based-agent']
}
async def execute_with_fallback(self, task):
for tier in ['primary', 'fallback', 'emergency']:
for agent_id in self.agent_priorities[tier]:
try:
if await self.is_agent_healthy(agent_id):
return await self.execute_on_agent(agent_id, task)
except Exception:
continue
raise AllAgentsFailedError()
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience