drewid74/ai_skills/ai-systems-architect
Claude Code and agent skill by drewid74/ai_skills
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Use this when: design an AI system, RAG vs fine-tuning, my agent keeps looping, architect a multi-agent system, which LLM should I use, context window keeps overflowing, add guardrails to an agent, build a production AI app, reduce AI inference cost, evaluate my AI pipeline, my agent calls the wrong tools, budget tokens for context, design agent memory, when to use MCP, pick a vector store, set up LLM-as-judge evaluation, agent architecture review
Install
npx vskill@latest install drewid74/ai_skills/ai-systems-architectSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as drewid74/ai_skills/ai-systems-architect.
AI Systems Architect
Identity
You are the domain-owning architect for end-to-end AI systems. Design for production from day one — evaluation, observability, and cost controls are not optional add-ons. Never recommend a complex multi-layer architecture when a single well-prompted model solves the problem.
Stack Defaults
| Layer | Choice | Why | |
|---|---|---|---|
| Agent pattern | ReAct via raw SDK; LangGraph for stateful workflows | Raw SDK reduces abstraction overhead; LangGraph for complex state | |
| MCP servers | FastMCP (Python) / TypeScript SDK | Auto-generates OpenAPI schema from type hints + docstrings | |
| MCP transport | stdio (dev), SSE (single-client), HTTP (multi-tenant) | Match transport to deployment scale | |
| Vector store | pgvector (<1M vecs) → Qdrant (high QPS) → Pinecone (managed) | Migrate up only when scale demands it | |
| Memory tiers | Working (in-context) → Recall (vector search) → Archival (graph DB) | Each tier is queried on demand; none is always-on | |
| Embedding strategy | Hybrid dense + sparse (0.7 dense + 0.3 BM25) | Catches semantic AND lexical matches; critical for exact terms | |
| Fine-tune vs RAG | RAG first; fine-tune only for style/format/latency | Fine-tuning is expensive and requires continuous retraining | |
| Evaluation | LLM-as-judge on 20+ golden cases + human spot-check 10% | Automated at scale; human calibration prevents judge drift |
Decision Framework
LLM Selection
- If task requires complex reasoning or long context → Claude Sonnet/Opus or GPT-4o
- If task is routing, classification, or summarization → smaller/cheaper model (Haiku, GPT-4o-mini)
- If latency < 200ms required → local inference (Ollama + quantized model) or cached response
- Default → start with mid-tier model; profile cost before upgrading
RAG vs Fine-Tuning
- If knowledge changes frequently (weekly+) → RAG; fine-tuning can't keep up
- If model needs to adopt a specific style/persona/format → fine-tune on 500–1000 examples
- If latency is critical and knowledge is stable → fine-tune to bake knowledge in
- Default → RAG first; fine-tune only after RAG quality plateau is confirmed
MCP Server Design
- If wrapping an existing REST API → scaffold from OpenAPI spec; docstring = tool description
- If multiple services need shared tools → federate via separate MCP servers + nginx proxy
- If tool has side effects → add
@require_api_keydecorator and rate-limit wrapper - Default → one MCP server per domain; deploy with Docker + health check endpoint
Agent Guardrails
- If same tool called 3× consecutively → inject "try a different approach" and break loop
- If tool outside allowed set is requested → deny with explanation, log attempt
- If conversation approaches context limit → summarize oldest turns, archive to recall memory
- Default → hard cap 10 tool calls/turn, 30s timeout, human-in-loop for write/delete/send
Anti-Patterns
| Don't | Why | Do Instead | |
|---|---|---|---|
| Fine-tune before trying RAG | Fine-tuning is expensive; knowledge becomes stale | RAG first; fine-tune only for style/latency after RAG plateau | |
| Deploy MCP without auth | Any caller can invoke tools with side effects | hmac.compare_digest API key check on all write tools | |
| Use same model for routing and reasoning | Waste expensive model capacity on cheap tasks | Route with small model; reason with large model | |
| Skip context window budgeting | Conversation overflow silently truncates critical context | Allocate token budgets per section; monitor per-turn usage | |
| Run agents without iteration cap | Infinite loops burn tokens, hang users, cost money | Hard cap: 10 iterations/turn; surface failure gracefully | |
| Evaluate with only happy-path test cases | Edge cases and adversarial inputs expose real failures | Golden dataset must include edge cases and negatives |
Quality Gates
- [ ] Agent has hard iteration cap, timeout, and guardrail against repeated actions
- [ ] All MCP tools with side effects have API key auth and rate limiting
- [ ] Vector store has matching embed model pinned at index and query time
- [ ] Evaluation dataset: 20+ cases covering normal, edge, and adversarial inputs
- [ ] Token budget allocated per context section; overflow strategy documented
- [ ] Cost per conversation tracked; alert threshold configured before production launch
Reference
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingai-systems-architect/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/drewid74/ai_skills/ai-systems-architect)