How to Build an AI Knowledge Base (Complete System)
You started with one context file. CLAUDE.md. 300 words. Who you are, what you do, how you work.
It worked. The AI stopped forgetting who you are. Conversations got more useful.
But now you've got multiple clients. Different projects. Various workflows. Your single file is getting messy. You're scrolling to find the right section. Information is getting buried.
You don't need a bigger file. You need a system.
When to Expand Beyond One File
One context file works when:
- You work in one domain (just client work, or just content creation)
- You have 3-5 active projects max
- Your context is stable (not changing weekly)
You need a multi-file system when:
- You work in multiple domains (client work + personal projects + internal operations)
- You're managing 5+ clients or projects simultaneously
- You need historical records (past decisions, completed projects, lessons learned)
- You're collaborating with others who need access to your knowledge base
- Your single file exceeds 2,000 words and you're struggling to find information
The signal: if you're scrolling through your context file looking for information, it's time to split it up.
The Architecture: Domain-Based Organization
Don't organize by file type (all emails in one folder, all templates in another). Organize by domain—the distinct areas of your work.
Example domains:
- Client Work
- Content Production
- Marketing & Outreach
- Internal Operations
- Product Development
- Personal Projects
Each domain gets its own folder. Each folder contains everything related to that domain: context, active projects, workflows, templates, decision logs.
Folder Structure
Here's a scalable structure:
/YourKnowledgeBase/
├── CLAUDE.md (root context - always read first)
├── ClientWork/
│ ├── _context.md (domain overview)
│ ├── _active-projects.md
│ ├── AcmeSaaS/
│ │ ├── project-context.md
│ │ ├── deliverables.md
│ │ └── meeting-notes.md
│ ├── PacificLogistics/
│ │ ├── project-context.md
│ │ └── deliverables.md
│ └── templates/
│ ├── proposal-template.md
│ └── status-update-template.md
├── ContentProduction/
│ ├── _context.md
│ ├── content-calendar.md
│ ├── SEO-strategy.md
│ └── drafts/
├── Marketing/
│ ├── _context.md
│ ├── outreach-campaigns.md
│ └── email-templates/
└── Operations/
├── _context.md
├── workflows.md
└── tools.md
The Root Context File
Your CLAUDE.md file stays at the root. This is the master file that the AI reads first. It contains:
- Core identity: Who you are, what you do
- Voice rules: How the AI should communicate for you
- Domain index: Brief overview of each domain folder
- Current priorities: What you're focused on this week/month
Example root context:
# AI Context - Victor Romo
## Identity
I'm Victor Romo, fractional CMO for B2B SaaS companies ($2M-$15M revenue). I help them transition from founder-led sales to scalable marketing systems.
## Voice
- Direct, conversational, no jargon
- Lead with the main point
- Bullet lists, active voice, short sentences
- Banned: solutions, leverage, ecosystem
## Domains
- **ClientWork/**: Active client projects, proposals, deliverables
- **ContentProduction/**: Blog posts, newsletters, SEO content
- **Marketing/**: Outreach campaigns, email sequences
- **Operations/**: Internal workflows, tools, SOPs
## Current Focus (Jan 2026)
- Acme SaaS: Content strategy deliverable (due Feb 28)
- Pacific Logistics: Paid acquisition optimization
- Internal: AI course launch prep (March 15)
Keep this file under 500 words. It's the overview. Details live in domain folders.
Domain Context Files
Each domain folder has a _context.md file. This explains:
- What this domain covers
- Active projects or initiatives
- Standard workflows
- Key contacts or resources
Example: ClientWork/_context.md
# Client Work Context
## Overview
This domain covers all paid client engagements. Current focus: content strategy + SEO for SaaS companies.
## Active Clients
- **Acme SaaS** (CRM for real estate) - Content + SEO
- **Pacific Logistics** (Supply chain platform) - Paid acquisition
- **Horizon Analytics** (Data viz tool) - Onboarding phase
## Standard Deliverables
- Monthly status reports (first Monday of each month)
- Quarterly strategy reviews (mid-quarter)
- Weekly Slack check-ins (Fridays)
## Pricing
- Monthly retainer: $8K-$15K depending on scope
- Project-based: $12K-$25K
- Minimum engagement: 3 months
## Tools
- Project tracking: Notion
- Communication: Slack (clients), email (prospects)
- Deliverables: Google Docs → PDF export
Project-Level Files
For each significant project or client, create a dedicated folder with:
project-context.md - Background, goals, timeline, contacts
# Acme SaaS - Project Context
## Client Background
- Product: CRM for real estate agents
- Stage: Series A, $5M ARR, 40 employees
- Market: US real estate agents, focus on teams (5-20 agents)
## Engagement Details
- Start date: 2026-01-15
- Contract: 6-month retainer, $10K/month
- Primary contact: Jennifer Lee (VP Marketing), jlee@acme.com
## Project Goals
1. Increase organic traffic by 150% (baseline: 8K/month)
2. Rank for 20 high-intent keywords (product category + use cases)
3. Build content engine that produces 8 articles/month
## Timeline
- Month 1-2: Audit + strategy development
- Month 3-6: Execution + optimization
- Deliverable: Feb 28 (topical authority map + content calendar)
deliverables.md - What you're producing, status, due dates
# Acme SaaS - Deliverables
## Due Feb 28, 2026
- [ ] Topical authority map (draft done, review pending)
- [ ] Q1 content calendar (in progress)
- [ ] Keyword research doc (complete)
## Due March 31, 2026
- [ ] First 8 articles published
- [ ] Internal linking structure implemented
- [ ] Author bio pages created
## Completed
- [x] SEO audit (delivered Jan 22)
- [x] Competitive analysis (delivered Jan 29)
- [x] Keyword opportunity doc (delivered Feb 5)
meeting-notes.md - Record of discussions, decisions, action items
# Acme SaaS - Meeting Notes
## 2026-01-22 - Kickoff Call
**Attendees:** Jennifer Lee (Acme), Victor Romo
**Decisions:**
- Focus on bottom-of-funnel keywords first (product comparisons, use cases)
- Target audience: real estate team leads, not solo agents
- Tone: professional but approachable, case-study-heavy
**Action items:**
- Victor: Deliver audit by Jan 29 ✅
- Jennifer: Provide access to Google Analytics + Search Console ✅
- Jennifer: Share top 5 competitor sites ✅
**Next meeting:** Feb 12, 2026
Templates Folder
Store reusable templates in each domain folder. When you ask the AI to draft something, it uses the template.
Example: ClientWork/templates/proposal-template.md
# Proposal Template
## [Client Name] - [Service] Proposal
**Prepared for:** [Client contact name + title]
**Prepared by:** Victor Romo, Scale With Search
**Date:** [YYYY-MM-DD]
---
### The Challenge
[2-3 sentences describing the problem the client is facing]
### The Solution
[What you'll do, high-level approach]
### Scope of Work
**Phase 1: [Name] (Weeks 1-2)**
- [Deliverable 1]
- [Deliverable 2]
**Phase 2: [Name] (Weeks 3-8)**
- [Deliverable 3]
- [Deliverable 4]
### Timeline
- Kickoff: [Date]
- Phase 1 complete: [Date]
- Phase 2 complete: [Date]
### Investment
- [Pricing structure]
- Payment terms: [Details]
### Next Steps
[What happens if they say yes]
Decision Logs
As you work, you make decisions. Why you chose approach A over approach B. Why you recommended a specific strategy. Why you turned down a project.
Document these. Future you (and the AI) will need them.
Example: ClientWork/decision-log.md
# Client Work - Decision Log
## 2026-01-15: Why we focus on bottom-of-funnel content first
**Context:** Acme wanted to rank for broad industry terms ("real estate CRM").
**Decision:** Start with bottom-of-funnel keywords (comparisons, use cases, alternatives).
**Reasoning:**
- Broad terms are ultra-competitive, would take 12+ months
- Bottom-funnel keywords have higher purchase intent
- Easier to rank, faster ROI, builds domain authority
- We can expand to broader terms in months 6-12
**Result:** Client agreed. Strategy approved.
---
## 2026-01-10: Turned down prospect in construction tech
**Context:** Inbound lead, construction project management software, $15K/month budget.
**Decision:** Declined the project.
**Reasoning:**
- No experience in construction tech, would need 20+ hours of research
- Their timeline (launch in 6 weeks) was unrealistic
- Budget didn't account for learning curve
- Current client load at capacity (3 active clients)
**Lesson:** Don't take projects outside core expertise just because budget is high.
How Claude Reads Your Knowledge Base
When you're using Claude Code or another AI that reads local files:
- It reads
CLAUDE.mdat the root (your master context) - Based on your question, it knows which domain is relevant
- It reads the
_context.mdfile for that domain - If you mention a specific client or project, it reads that project folder
You don't manually tell it which files to read. It navigates your knowledge base automatically.
Example:
You ask: "Draft a status update for Acme."
Claude reads:
CLAUDE.md(knows you're a fractional CMO, voice rules, etc.)ClientWork/_context.md(knows your client workflow, deliverable format)ClientWork/AcmeSaaS/project-context.md(knows the client, timeline, goals)ClientWork/AcmeSaaS/deliverables.md(knows what's in progress, what's done)ClientWork/templates/status-update-template.md(uses your template)
It drafts a status email with the right client name, accurate deliverable status, your preferred format, and your communication style.
You didn't specify any of that. The knowledge base did.
Maintaining Your Knowledge Base
This system only works if you keep it updated. Set a rhythm:
Daily: Add meeting notes, update deliverable status
Weekly: Review active projects, update priorities in root context
Monthly: Archive completed projects, update domain context files, review decision logs
The maintenance isn't extra work. You're documenting work you're already doing. You're just writing it down in a format the AI can read.
Tools That Work Best
Obsidian (recommended): Built for linked markdown files. You can connect notes, search across your entire vault, visualize relationships between files. Free.
VS Code: If you're already using it for code, works great for markdown. Good search, folder management, extensions for markdown preview.
Notion: Can export to markdown, but native Notion databases don't play well with AI file reading. Use it for organization, export for AI consumption.
Plain folders + text editor: Notepad, TextEdit, whatever. If you can organize files into folders and write markdown, you're good.
From One File to Full System
Don't build this all at once. Expand gradually.
Stage 1: One CLAUDE.md file (300-500 words)
Stage 2: Add domain folders, _context.md files for each domain
Stage 3: Create project folders for active clients/projects
Stage 4: Add templates, decision logs, workflows
Stage 5: Archive completed projects, build historical reference
You'll know when you're ready for each stage. The system expands as your needs grow.
The Payoff
With a structured knowledge base:
- The AI knows your entire business context, not just one conversation
- You can switch between projects instantly (no re-explaining)
- New team members can read your knowledge base and get up to speed
- You have a searchable record of every decision, project, and workflow
- The system gets smarter as you use it (more documentation = better AI responses)
This is the difference between using AI as a chatbot and using it as an operating system for your work.
Start Small, Expand Smart
You don't need this full system today. Start with one file. When it gets messy, split it into domains. When domains get complex, add project folders.
But know where you're headed. One context file is the foundation. A multi-file knowledge base is the house you build on top of it.
Start building.
We'll Build Your Knowledge Base
One markdown file. One afternoon. AI that actually remembers who you are, what you do, and how you work.
Build Your Memory System — $997