architecture · takagoto — скилл для Claude Code: что делает и как установить
Скилл помогает спроектировать RAG-систему под конкретную задачу: от требований и выбора компонентов до схемы и плана реализации.
npx skills add TakaGoto/rag-learning-academy --skill architecture -a claude-codeЧто делает architecture
Сначала агент выясняет, с какими документами и запросами предстоит работать, какой нужна точность и допустимая задержка, как часто обновляется корпус и есть ли ограничения по бюджету. Затем разбирает варианты обработки документов, нарезки на фрагменты, эмбеддингов, векторной базы, поиска и генерации ответов. Выборы связывает с требованиями проекта и объясняет компромиссы.
Результат — ASCII-схема конвейера и документ с решениями, альтернативами, планом реализации и рисками. Файл сохраняется в projects/[project-name]/architecture.md. Скилл также раскладывает работу на этапы от MVP до production, предлагает упражнения /build и обновляет progress/module-tracker.md. Итоговый файл нужно будет пересматривать по мере разработки — скилл предлагает вернуться к решениям после проверки архитектуры на практике.
Какие задачи решает
- собрать требования к RAG-системе для конкретного сценария
- выбрать стратегию нарезки документов и поиска
- сравнить варианты векторной базы и модели эмбеддингов
- нарисовать схему обработки документов и запросов
- разбить реализацию RAG на последовательные этапы
Примеры запросов агенту
- Спроектируй RAG-систему для поиска по внутренней документации команды.
- Сравни варианты векторной базы и поиска для моего корпуса документов.
- Подготовь схему архитектуры и план работ для RAG-проекта.
Как установить architecture
1Через Skills CLI (Vercel)
npx skills add TakaGoto/rag-learning-academy --skill architecture -a claude-code2Вручную: положить файлы
~/.claude/skills/architecture/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/architecture/
1Через Skills CLI (Vercel)
npx skills add TakaGoto/rag-learning-academy --skill architecture -a codex2Вручную: положить файлы
.agents/skills/architecture/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add TakaGoto/rag-learning-academy --skill architecture -a cursor2Вручную: положить файлы
.cursor/skills/architecture/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install TakaGoto/rag-learning-academy architecture2Вручную: положить файлы
.github/skills/architecture/SKILL.md1Через Skills CLI (Vercel)
npx skills add TakaGoto/rag-learning-academy --skill architecture -a gemini-cli2Командой платформы
gemini skills install https://github.com/TakaGoto/rag-learning-academy --path .claude/skills/architectureВручную: положить файлы
.devin/skills/architecture/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add TakaGoto/rag-learning-academy --skill architecture -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о architecture
Как установить architecture в Claude Code?
Выполните npx skills add TakaGoto/rag-learning-academy --skill architecture -a claude-code. Файл скилла появится по пути ~/.claude/skills/architecture/SKILL.md.
Что делает скилл architecture?
Он помогает собрать требования к RAG-сценарию, выбрать компоненты и оформить архитектуру в виде схемы и документа с решениями. Также предлагает этапы реализации и следующие упражнения.
Где сохраняется документ архитектуры?
В projects/[project-name]/architecture.md. В документ входят сводка требований, решения и альтернативы, ASCII-схема, план реализации и риски.
Исходный текст
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
Похожие скиллы
Все скиллы по теме «ИИ и ML» →Сначала — architecture от других авторов.