{"aiPlatform":"claude","category":"development","commandName":"/ask-the-architect","content":"---\nname: ask-the-architect  \ntitle: Get expert technical analysis with o3\nbriefDescription: Submit complex engineering problems and get comprehensive solutions\naiPlatform: claude-code\ncategory: development\nvisibility: public\nprice: free\nmcpRequirements:\n  - serverId: chief-architect\n    tier: required\n  - serverId: context7\n    tier: required\n---\n\n# /ask-the-architect Command\n\n# You're Stuck. Let's Get You Unstuck.\n\nYou've hit a wall on a technical problem. The Chief Architect MCP orchestrates multiple specialized AI models to analyze your problem from different angles and deliver the best solution.\n\n## Right Now, Do This:\n\n1. **Claude will extract and submit the key parts of your problem**:\n   - Analyzes your entire codebase to understand context\n   - Extracts only the relevant code snippets (not entire files)\n   - Focuses on the specific error or blocking issue\n   - Keeps submission under 4,000 tokens for optimal analysis\n\n2. **Submit the problem** - Our intelligent router will:\n   - Analyze your problem to determine the best approach\n   - Route it to specialized models based on the domain\n   - Negotiate between different solutions\n   - Synthesize the best answer from multiple perspectives\n\n3. **Wait 1-2 minutes** while multiple AI models collaborate on your problem\n\n4. **Get your solution** with a confidence score from our consensus system\n\n## How Claude Prepares Your Problem:\n\nClaude will automatically:\n1. **Search relevant documentation** using context7 to find potential solutions\n2. **Read your entire codebase** to understand the full context\n3. **Extract only the essential parts**:\n   - The specific function/class with the issue\n   - Related type definitions or interfaces\n   - Relevant configuration that affects the problem\n   - Actual error messages or stack traces\n   - **Key documentation snippets** that relate to your problem\n4. **Structure it clearly** with problem statement, code snippets, docs references, and what's been tried\n5. **Keep it focused** - under 4,000 tokens for faster, more accurate analysis\n\nIf documentation alone solves your problem, Claude will provide the solution immediately. Otherwise, the Chief Architect receives both your code context AND relevant documentation for the most informed analysis possible.\n\n## Example: Real Stuck Moment\n\n```\nI'm stuck on: TypeScript generic type won't compile\n\nI was trying to: Create a type-safe event emitter with typed events\n\nBut instead: Getting \"Type 'T' is not assignable to type 'Events[K]'\"\n\nHere's my code:\n```typescript\ntype Events = {\n  user: { id: string; name: string };\n  message: { text: string; timestamp: Date };\n}\n\nclass TypedEmitter<T extends Events> {\n  emit<K extends keyof T>(event: K, data: T[K]) {\n    // Type 'T[K]' is not assignable to type 'Events[K]'\n  }\n}\n```\n\nWhat I've tried:\n- Added type constraints\n- Used conditional types\n- Tried mapped types\n- Added covariance annotations\n```\n\nThat's it. The architect will analyze why your specific approach isn't working and provide a solution.\n\n## Common \"I'm Stuck\" Scenarios\n\n- **Won't compile**: \"TypeScript/Rust/C++ compiler errors I can't resolve\"\n- **Performance**: \"This query takes 30 seconds but should take milliseconds\"  \n- **Integration**: \"Can't get these two systems to talk to each other\"\n- **Scaling**: \"Works with 10 users, breaks with 100\"\n- **Testing**: \"Tests are flaky, tried everything\"\n- **Build issues**: \"Build suddenly takes forever\"\n- **Production only**: \"Works locally, fails in production\"\n\n## What You'll Get Back\n\n**Solution**: A comprehensive technical analysis that includes:\n- Root cause analysis of your problem\n- Step-by-step solution with code examples\n- Alternative approaches when applicable\n- Best practices and pitfalls to avoid\n\n**Additional Info**:\n- Processing time (typically 15 seconds to 2 minutes)\n- Token usage for tracking\n\n## Why This Works\n\nUnlike single-model solutions, the Chief Architect:\n- **Routes to specialists**: Database problems go to DB-optimized models, frontend to UI specialists\n- **Cross-validates**: Multiple models check each other's work\n- **Negotiates solutions**: When models disagree, we find the synthesis\n- **Learns patterns**: Common problems get faster, more accurate responses\n\n## Remember\n\nThis is for when you're genuinely stuck after trying multiple approaches. The Chief Architect excels at:\n- Complex architectural decisions\n- Performance bottlenecks that need deep analysis\n- Integration challenges between different systems\n- Problems that cross multiple domains","contentHash":"52c902892d313e5976b586c090608c3883b54133645895a89a6573c2438b7c6a","copies":2,"createdAt":"2025-07-25T02:11:28.858Z","description":"Submit complex engineering problems and get comprehensive solutions from multiple specialized AI models working together. First searches current documentation for solutions, then if needed, our intelligent routing system analyzes your problem with both code context and relevant docs for the most accurate analysis possible.","downloads":8,"github":{"repoUrl":"https://github.com/Commands-com/chief-architect","lastSyncDirection":"from-github","metadata":{"importedFrom":"github_repository","repoPrivate":true,"repoDefaultBranch":"main","connectedAt":"2025-07-25T02:11:28.858Z"},"importedAt":"2025-07-25T02:11:28.858Z","lastSyncAt":"2025-07-25T02:17:11.796Z","fileMapping":{"license":"LICENSE","readme":"command-docs/README.md","assets":[],"mainFile":"command-docs/ask-the-architect.md"},"fileShas":{"mainFile":"e6799576653e1006e847b37b7092151cbb7d4d43","readme":"963a859a06fcde52692db54b80df55130de7bb3c"},"branch":"main","connectionType":"combined","connected":true,"lastSyncCommit":"28be77fe0659807d79dbbd82dd0194b2f3cf89da","importSource":"repository_import","installationId":"69232615","syncStatus":"synced"},"githubRepoUrl":"https://github.com/Commands-com/chief-architect","id":"f3d4a4bf-0f1a-4769-8102-c9615e330419","inputParameters":[{"name":"problem","description":"Describe your technical problem or architecture question in detail","label":"problem","type":"textarea","required":true,"defaultValue":""},{"name":"context","description":"Any additional context, constraints, or requirements","label":"context","type":"textarea","required":false,"defaultValue":""},{"defaultValue":"yes","name":"wait_for_result","options":["yes","no"],"description":"Whether to wait for the analysis to complete (may take 1-2 minutes)","label":"wait_for_result","type":"select","required":false}],"instructions":"# Ask the Chief Architect Command\n\nA powerful AI command that orchestrates multiple specialized models to solve complex technical problems.\n\n## Overview\n\nThe Chief Architect command provides deep technical analysis for challenging engineering problems. When you submit a problem, our intelligent routing system:\n\n- Analyzes your problem domain\n- Routes to specialized AI models\n- Cross-validates solutions\n- Synthesizes the best approach\n\n## Features\n\n- **Documentation-First Approach**: Searches current docs before expensive AI analysis\n- **Multi-Model Analysis**: Different models tackle different aspects of your problem\n- **Domain Specialization**: Database problems go to DB specialists, frontend to UI experts\n- **Comprehensive Solutions**: Get root cause analysis, step-by-step fixes, and best practices\n- **Fast Processing**: Typically 15 seconds to 2 minutes\n- **Smart Context Extraction**: Claude analyzes your entire codebase and extracts just the relevant parts\n\n## Use Cases\n\nPerfect for:\n- Architecture design decisions\n- Performance bottlenecks requiring deep analysis\n- Integration challenges between systems\n- Complex debugging scenarios\n- Security vulnerability analysis\n- Scaling and optimization problems\n\n## How It Works\n\n1. Submit your technical problem with full context\n2. Context7 searches relevant documentation for existing solutions\n3. If not solved by docs, the system prepares a focused query with code + docs\n4. Multiple AI models analyze different aspects of your problem\n5. Solutions are synthesized and validated\n6. You receive a comprehensive technical analysis\n\n## Getting Started\n\nInstall the command through Commands.com and use `/ask-the-architect` in your AI assistant.\n\n## License\n\nMIT","lastCopied":"2026-01-22T14:47:17.910Z","lastDownloaded":"2025-08-31T23:36:18.890Z","lastStarred":"2025-08-12T16:14:54.169Z","likes":0,"mcpRequirements":[{"tier":"required","serverId":"commands-com/chief-architect","version":"1.0.0"},{"tier":"required","serverId":"docker-context7"}],"mcp_search_content":"commands-com/chief-architect docker-context7","organizationUsername":"commands-com","price":"free","processedGalleryItems":[{"s3KeyThumbnail":"processed/f3d4a4bf-0f1a-4769-8102-c9615e330419/1753409490029_preview_thumb.webp","s3KeyLarge":"processed/f3d4a4bf-0f1a-4769-8102-c9615e330419/1753409490029_preview.webp","name":"1753409490029_preview.webp","originalKey":"temp-uploads/f3d4a4bf-0f1a-4769-8102-c9615e330419/1753409490029_preview.png","pathLarge":"f3d4a4bf-0f1a-4769-8102-c9615e330419/1753409490029_preview.webp","type":"image/webp","pathThumbnail":"f3d4a4bf-0f1a-4769-8102-c9615e330419/1753409490029_preview_thumb.webp"}],"search_content":"ask the chief architect submit complex engineering problems and get comprehensive solutions from multiple specialized ai models working together. first searches current documentation for solutions, then if needed, our intelligent routing system analyzes your problem with both code context and relevant docs for the most accurate analysis possible. /ask-the-architect development claude","stars":1,"title":"Ask the Chief Architect","type":"command","updatedAt":"2025-07-25T02:37:19.778Z","userId":"W0V8NAw5AhWRwcuwSoFLOi1Yem83","visibility":"public","name":"ask-the-architect","userInteraction":{"userHasStarred":false}}