architecture · takagoto — Claude Code skill: what it does, how to install
This skill guides RAG system design for a specific use case, from requirements and component choices to an architecture diagram and build plan.
npx skills add TakaGoto/rag-learning-academy --skill architecture -a claude-codeWhat architecture does
The agent starts by asking about the documents, expected questions, accuracy and latency needs, corpus updates, scale, and budget. It then walks through decisions for document processing, chunking, embeddings, vector storage, retrieval, and answer generation. Each choice is tied to the use case, with trade-offs explained.
The result includes a tailored ASCII pipeline diagram and a decision document at projects/[project-name]/architecture.md. That file covers requirements, chosen components and alternatives, an implementation plan, and risks. The skill also divides the work into stages from MVP through production, suggests /build exercises, and updates progress/module-tracker.md. The architecture is meant to be revisited as the system develops, so the document is part of an iterative design process.
What it helps with
- gather requirements for a RAG use case
- choose document chunking and retrieval approaches
- compare vector databases and embedding models
- map ingestion and query flows in an architecture diagram
- plan RAG implementation in buildable stages
Example prompts for the agent
- Design a RAG system for searching our internal team documentation.
- Compare vector database and retrieval options for this document corpus.
- Create an architecture diagram and implementation plan for my RAG project.
How to install architecture
1Skills CLI (Vercel)
npx skills add TakaGoto/rag-learning-academy --skill architecture -a claude-code2Manually: put the files in place
~/.claude/skills/architecture/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/architecture/
1Skills CLI (Vercel)
npx skills add TakaGoto/rag-learning-academy --skill architecture -a codex2Manually: put the files in place
.agents/skills/architecture/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add TakaGoto/rag-learning-academy --skill architecture -a cursor2Manually: put the files in place
.cursor/skills/architecture/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install TakaGoto/rag-learning-academy architecture2Manually: put the files in place
.github/skills/architecture/SKILL.md1Skills CLI (Vercel)
npx skills add TakaGoto/rag-learning-academy --skill architecture -a gemini-cli2Platform CLI
gemini skills install https://github.com/TakaGoto/rag-learning-academy --path .claude/skills/architectureManually: put the files in place
.devin/skills/architecture/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add TakaGoto/rag-learning-academy --skill architecture -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about architecture
How do I install architecture in Claude Code?
Run npx skills add TakaGoto/rag-learning-academy --skill architecture -a claude-code. The skill file is placed at ~/.claude/skills/architecture/SKILL.md.
What does the architecture skill do?
It helps define requirements for a RAG use case, select system components, and document the design with a diagram. It also lays out implementation stages and relevant exercises.
Where does the architecture document go?
It is saved to projects/[project-name]/architecture.md and includes requirements, design choices and alternatives, a diagram, an implementation plan, and risks.
Source text
SKILL.md · MIT
---
name: architecture
description: "Design a RAG architecture for a specific use case"
---
# Architecture: Design a RAG System for Your Use Case
Guide the learner through the process of designing a complete RAG architecture tailored to a specific use case. This skill builds system design thinking.
## Step 1: Understand the Use Case
Ask the learner to describe their use case. If they do not have one, offer example scenarios:
- Customer support chatbot over product documentation
- Legal document Q&A for a law firm
- Internal knowledge base for a software team
- Research paper search and synthesis
- Multilingual FAQ system for an e-commerce platform
- Code documentation assistant
For their use case, gather the following requirements:
1. **Document types**: What kinds of documents? (PDFs, HTML, code, structured data)
2. **Corpus size**: How many documents? Total size?
3. **Query patterns**: What kinds of questions will users ask?
4. **Accuracy requirements**: How critical is correctness? (casual chatbot vs. medical advice)
5. **Latency requirements**: What response time is acceptable?
6. **Scale**: How many queries per day? How often does the corpus update?
7. **Budget constraints**: Open-source only, or can you use paid APIs?
## Step 2: Walk Through Architecture Decisions
For each component, explain the options and help the learner choose:
### Document Processing
- File format handling and extraction
- Cleaning and preprocessing steps
- Metadata extraction strategy
### Chunking Strategy
- Fixed-size, semantic, document-structure, or hybrid
- Chunk size and overlap recommendations for their document types
- Metadata to attach to each chunk
### Embedding Model
- Open-source vs. API-based
- Model size vs. quality trade-off
- Domain-specific considerations (e.g., code embeddings, multilingual)
### Vector Database
- In-memory (FAISS, Chroma) vs. hosted (Pinecone, Weaviate) vs. self-hosted (Qdrant, Milvus)
- Filtering and metadata requirements
- Scale and cost considerations
### Retrieval Strategy
- Dense, sparse, or hybrid search
- Top-k selection and re-ranking
- Multi-stage retrieval if needed
### Generation Model
- Model selection (GPT-4, Claude, open-source)
- Prompt design for their use case
- Output format and guardrails
## Step 3: Produce the Architecture Diagram
Create an ASCII architecture diagram showing the full pipeline:
```
Documents Ingestion Pipeline Query Pipeline
--------- ------------------ --------------
[PDFs] ---> [ Loader ] --> [ Chunker ] [ User Query ]
[HTML] ---> [ Cleaner ] -> [ Embedder ] |
[Docs] ---> [ Metadata ] | [ Embedder ]
v |
[ Vector DB ] <--- [ Retriever ]
|
[ Re-ranker ]
|
[ Generator ]
|
[ Answer ]
```
Customize the diagram to match their specific architecture decisions.
## Step 4: Create the Decision Document
Generate a structured architecture decision document saved to `projects/[project-name]/architecture.md`:
```markdown
# RAG Architecture: [Use Case Name]
## Requirements Summary
[bulleted list from Step 1]
## Architecture Decisions
[for each component: choice, rationale, alternatives considered]
## Architecture Diagram
[ASCII diagram from Step 3]
## Implementation Plan
[ordered list of components to build, with estimated effort]
## Risks and Mitigations
[key risks and how to address them]
```
## Step 5: Implementation Roadmap
Break the architecture into buildable stages:
1. **MVP**: Minimum viable pipeline (basic chunking + embeddings + simple retrieval)
2. **V1**: Add proper chunking, metadata, and prompt engineering
3. **V2**: Add evaluation, re-ranking, and hybrid search
4. **Production**: Add caching, monitoring, error handling, and scaling
For each stage, suggest which `/build` exercises to complete.
## Step 6: Review and Iterate
Ask the learner if anything does not feel right or if they have concerns. Architecture is iterative — encourage them to revisit this document as they build and learn. Update `progress/module-tracker.md` to note the architecture exercise.
Suggest 2-3 relevant next steps using slash commands:
- `/build` — start building the MVP stage of your architecture
- `/challenge` — take on a real-world challenge that puts your architecture to the test
- `/compare` — compare alternative approaches for any component you are uncertain about
## Guidelines
- There is no single correct architecture — help the learner understand trade-offs
- Start simple and add complexity only when needed
- Always consider cost, maintainability, and the learner's current skill level
- Connect architecture decisions back to curriculum concepts
© TakaGoto · MIT · TakaGoto/rag-learning-academy
Similar skills
All skills for AI and ML →architecture by other authors comes first.