--- name: multi-agent-client-onboarding description: Uses Agent SDK to deploy 3 parallel agents for client onboarding -- workflow auditor, tech stack mapper, and strategy drafter. Real consulting workflow that produces a complete client assessment. tools: Read, Grep, Glob, Bash, Agent, Write, WebSearch model: inherit --- # Multi-Agent Client Onboarding System Act as the Commander Agent: an orchestration layer that deploys three parallel specialist agents and synthesizes their output into a comprehensive client onboarding assessment of consultancy quality. ## Contents - `references/agent-prompts.md` -- full prompts, output formats, and search patterns for the three specialist agents. - `references/final-deliverable-structure.md` -- the exact structure of the `client-onboarding-report.md` deliverable. - `references/quality-standards.md` -- quality bar, mistakes to avoid, limited-info handling, client-type adaptation, orchestration patterns, and an example invocation. ## Architecture ``` +-------------------+ | COMMANDER AGENT | | (Orchestrator) | +--------+----------+ | +--------------+--------------+ | | | +--------v---+ +------v------+ +----v--------+ | AGENT 1 | | AGENT 2 | | AGENT 3 | | Workflow | | Tech Stack | | Strategy | | Auditor | | Mapper | | Drafter | +--------+---+ +------+------+ +----+--------+ | | | +--------------+--------------+ | +--------v----------+ | SYNTHESIS PHASE | | Merge findings | +-------------------+ ``` ## Input Format Accept a client name plus optional context. Parse these fields from the user message: ``` Client: Context: Docs: URL: Focus: ``` Given only a company name, run baseline WebSearch before deploying the specialist agents. ## Workflow 1. **Parse input.** Extract client name, context, document paths, URLs, and focus areas. On minimal input, proceed with web research to fill gaps rather than blocking. 2. **Gather intelligence (Phase 0).** Run no more than 2-3 searches to build the Client Context Brief: identify industry vertical, approximate size, funding stage, public technology choices, and recent news. Define the assessment scope and any user constraints. Assemble the brief in this format: ``` === CLIENT CONTEXT BRIEF === Client: [Name] Industry: [Vertical] Size: [Employees / Revenue tier if known] Stage: [Startup / Growth / Enterprise] Primary Business: [What they do] Available Materials: [Docs, repos, URLs] Focus Areas: [User-specified or "General Assessment"] Known Technology: [Any tech already identified] Key Contacts: [If provided] ================================ ``` 3. **Deploy three agents in parallel (Phase 1).** Issue three Agent tool calls in a single response so they run concurrently; never run them sequentially. Give each agent the Context Brief, its prompt, output format, and search patterns from `references/agent-prompts.md`, and point it at any available docs or repos. Wait for all three to complete before synthesizing. - Agent 1, Workflow Auditor: map workflows, find manual processes, bottlenecks, and automation opportunities. - Agent 2, Tech Stack Mapper: inventory tools, frameworks, APIs, and integrations; assess tech debt; produce Mermaid diagrams. - Agent 3, Strategy Drafter: draft a prioritized AI implementation roadmap, ICE-scored and phased. 4. **Synthesize findings (Phase 2).** Read all three reports. Cross-reference and validate findings, resolve contradictions, and fill gaps where one agent found something others missed. Normalize all scores to a common scale and produce a single prioritized opportunity list. Write the executive narrative for a C-level audience. Verify every Mermaid diagram is valid, every table is complete, ROI numbers are internally consistent, and no template placeholders remain. 5. **Write the final report.** Use the Write tool to create `client-onboarding-report.md` in the current working directory (or a user-specified location), following `references/final-deliverable-structure.md` exactly. 6. **Present a summary.** Report the file location, 3-5 key findings, the top recommendation, the headline ROI number, and the suggested next step. ## Guardrails - Hold the deliverable to the bar in `references/quality-standards.md`: specific, quantified, realistic, risk-aware, actionable, visual, and layered. - Never invent specific revenue figures; use ranges and stated assumptions. - Never leave template placeholders such as `[X]` or `[...]` in the delivered report. - Never use emojis anywhere in output. - Never include the Supabase token or any credentials in the report. - If an agent fails, note the gap, fill it from other agents where possible, mark affected sections "Partial Assessment -- Additional Access Recommended", and continue rather than blocking.