ai-solution-architect
/ai-solution-architect
Design an AI system architecture: model selection, inference pipeline, context management, evaluation strategy, and cost/latency trade-offs. Use when working on prompt engineering, AI workflows, agents, context design, or LLM optimization.
- Author
- patonkikh ↗
- Repository
- APES ↗
- Licence
- MIT
- Last repository change
- 03.07.2026
Assessment and security
- Files in this package
- 3
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 03.07.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Design an AI system architecture: model selection, inference pipeline, context management, evaluation strategy, and cost/latency trade-offs. Use when working on prompt engineering, AI workflows, agents, context design, or LLM optimization.
Original author description
Design an AI system architecture: model selection, inference pipeline, context management, evaluation strategy, and cost/latency trade-offs. Use when working on prompt engineering, AI workflows, agents, context design, or LLM optimization.
How it works
- Step 1: Classify the AI use case
- Step 2: Define quality requirements
- Step 3: Design inference pipeline
- Step 4: Select model strategy
- Step 5: Plan context and memory
- Step 6: Define evaluation and guardrails
- Step 7: Validate
SKILL.md preview
--- name: ai-solution-architect description: > Design an AI system architecture: model selection, inference pipeline, context management, evaluation strategy, and cost/latency trade-offs. Use when working on prompt engineering, AI workflows, agents, context design, or LLM optimization. metadata: apes-version: "1.1" category: ai --- # AI Solution Architect # Purpose Design an AI system architecture: model selection, inference pipeline, context management, evaluation strategy, and cost/latency trade-offs. **Input:** Use case description, PRD/NFRs, data sources, constraints (budget, latency, privacy) **Output:** AI Architecture document with component diagram, model strategy, and quality gates **Examples:** See [examples.md](examples.md) for worked input/output. --- # Workflow ## Step 1: Classify the AI use case Categorize: | Dimension | Classification | |-----------|----------------| | Interaction | Batch / real-time / streaming | | Task type | Generation / classification / retrieval / agentic | | User-facing | Yes / internal tool | | Risk level | Low / medium / high (customer-facing, regulated) | ## Step 2: Define quality requirements | Metric | Target | Measurement | |--------|--------|-------------| Include: accuracy, latency (p50/p95), cost per request, hallucination tolerance, human-in-the-loop needs. ## Step 3: Design inference pipeline Document stages: ```text Input → Preprocessing → Context assembly → Model inference → Post-processing → Output ``` For each stage: technology, responsibility, failure mode. ## Step 4: Select model strategy Compare options: | Option | Model type | Pros | Cons | Cost estimate | |--------|------------|------|------|---------------| Options: frontier API, fine-tuned, open-weight self-hosted, ensemble, router. Recommend with rationale tied to quality requirements. ## Step 5: Plan context and memory - Context window budget allocation - RAG vs fine-tuning vs prompt-only decision - Session memory strategy - Tool/MCP integration points ## Step 6: Define evaluation and guardrails - Offline eval dataset requirements - Online monitoring metrics - Guardrails (input/output filters, HITL triggers) - Rollback criteria ## Step 7: Validate Run Validation checklist. --- # Decision Rules | Condition | Action | |-----------|--------| | Use case undefined | Stop; request problem statement or PRD | | High-risk customer-facing without HITL | Require human-in-the-loop in architecture | | Latency < 1s with RAG + large context | Flag latency risk; recommend caching or smaller model | | PII in prompts | Require data minimization and redaction layer | | No eval strategy | Block proceed; eval is mandatory for production | --- # Validation - [ ] Use case classified with risk level - [ ] Quality metrics with targets defined - [ ] Inference pipeline documented end-to-end - [ ] ≥2 model options compared with trade-offs - [ ] Context/memory strategy defined - [ ] Eval plan with offline and online components - [ ] Guardrails specified for risk level - [ ] Cost estimate order-of-magnitude provided --- # Anti-patterns - **Model-first design** — choosing GPT-4 before defining requirements. - **No eval** — shipping without measurement strategy. - **RAG as default** — applying RAG without retrieval need analysis. - **Ignoring cost** — architecture without cost per request estimate. - **Unbounded context** — stuffing full documents without budget. --- # Best Practices - Start with simplest architecture that meets quality bar. - Separate retrieval, reasoning, and generation stages. - Plan for model fallback and degradation. - Align with architecture/scalability-advisor for infra scaling. - Document AI-specific ADRs for model and RAG decisions. --- # Output Structure ```markdown # AI Architecture: [System Name] ## Use Case Classification | Dimension | Value | |-----------|-------| ## Quality Requirements | Metric | Target | Method | |--------|--------|--------| ## Inference Pipeline [Stage diagram and descriptions] ## Model Strategy | Recommended | Rationale | Alternatives | |-------------|-----------|--------------| ## Context & Memory [Strategy] ## Evaluation Plan | Type | Dataset | Metrics | Frequency | |------|---------|---------|-----------| ## Guardrails | Layer | Control | Trigger | |-------|---------|---------| ## Cost Estimate [Per-request and monthly at projected volume] ## Open Decisions - [ ] [ADR needed] ``` --- # Next Skills | Outcome | Recommended Skill | |---------|-------------------| | Design prompts | `ai/prompt-engineer` | | Plan context strategy | `ai/context-engineering` | | RAG architecture needed | `rag/rag-architecture-designer` | | Review prompts | `ai/prompt-reviewer` | | System architecture | `architecture/solution-architecture` |
Files in this package (3)
- README.md 1 KB
- examples.md 2 KB
- skill.md 5 KB
Versions
The database has no other skills named ai-solution-architect.
Database snapshot: 13.11.2026 · package version 18839e5cc678 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100ai-latency-optimizer
Reduce AI inference latency: pipeline profiling, parallelization, caching, model selection, and streaming strategies to meet SLA targets. Use when working on prompt engineering, AI workflows, agents, context design, or LLM optimization. - 100ai-cost-optimizer
Optimize LLM inference costs: token budget allocation, model routing, caching strategy, and batching without breaching quality thresholds. Use when working on prompt engineering, AI workflows, agents, context design, or LLM optimization. - 95wicked-garden-engineering-solution-architect
Design end-to-end solutions with appropriate patterns, technology choices, and architectural trade-offs — ADRs, system diagrams, cross-cutting concerns. Use when: system design, greenfield architecture, structural trade-offs, technology/pattern selection, "design the solution… - 100performant-ai
Strategies for high-performance AI/LLM systems (Context Management, Prompt Engineering, RAG, Inference Tuning). Use when: ai, llm, performance, context window, tokens, prompt engineering, rag, inference, latency. - 100llm-cost-and-latency-optimization
Guides reducing token cost and response latency of LLM-based agents without degrading quality. Use when a user asks to "reduce our LLM API bill," "make the agent respond faster," "our token usage is too high," "should we use a smaller/cheaper model here," decide where to apply… - 91context-architect
Context engineering tool for building AI agent systems. Use when developers need to design agent context strategies — system prompts, tool sets, examples, and runtime context management. Guides through modular design with built-in patterns and dynamic research.