Home
cd ../playbooks
Academic ResearchIntermediate

Knowledge Base Builder

Build a structured knowledge base for your domain with notation registries, application databases, design principles, and anti-patterns.

20 minutes
By communitySource
#knowledge-base#documentation#notation#patterns#domain-knowledge

Your project's tribal knowledge lives in Slack threads, meeting notes, and one person's head. When they leave or you onboard someone new, months of context walks out the door or takes weeks to transfer.

Who it's for: teams documenting domain knowledge before it's lost, researchers building reference databases for their field, engineering teams codifying design principles and anti-patterns, organizations creating onboarding knowledge bases, anyone who wants Claude to have persistent context about their domain

Example

"Build a knowledge base for our ML infrastructure" → Structured KB with terminology registry, design principles (validated and rejected), anti-pattern catalog with examples, and application database — Claude can reference it for consistent, domain-aware assistance

CLAUDE.md Template

New here? 3-minute setup guide → | Already set up? Copy the template below.

Or install from your terminal:
npx ccplaybooks add knowledge-base-builder
# Knowledge Base

## Notation Registry

Track terminology, symbols, and naming conventions:

| Term/Symbol | Meaning | First Introduced | Anti-Pattern |
|-------------|---------|------------------|--------------|
| [term] | [definition] | [where] | [what NOT to do] |

### Example (Software Project):
| Term | Meaning | Introduced | Anti-Pattern |

Get new playbooks like this one

One email a week with new Claude Code workflows. Free, like everything here.

No spam. Unsubscribe anytime.

README.md

What This Does

This playbook helps you build a structured knowledge base for your project or domain. It includes registries for notation/terminology, databases of examples/applications, validated design principles, and documented anti-patterns. Claude can then reference this knowledge base for consistent, informed assistance.

Prerequisites

  • Claude Code installed and configured
  • A domain or project you want to document

Step-by-Step Setup

Step 1: Create knowledge base file

touch KNOWLEDGE_BASE.md

Step 2: Start with notation registry

Document your most important terminology:

# Knowledge Base

## Notation Registry

| Term | Meaning | Context | Anti-Pattern |
|------|---------|---------|--------------|
| `User` | Authenticated account | models/ | Not same as Visitor |
| `Product` | Purchasable item | catalog/ | Not a cart item |
| `Order` | Completed purchase | orders/ | Not a pending cart |

Step 3: Add as you learn

Update the knowledge base when you:

  • Introduce new terminology
  • Make design decisions
  • Discover anti-patterns
  • Validate principles

Step 4: Reference from CLAUDE.md

Add to your CLAUDE.md:

## Knowledge Base

Read KNOWLEDGE_BASE.md before any task involving domain concepts.
Use terminology consistently with the notation registry.
Avoid documented anti-patterns.

Example Usage

User:

"Create a new data model for handling subscriptions"

Claude (referencing knowledge base):

Before creating the subscription model, I've reviewed our knowledge base:

Terminology alignment:

  • Will use Subscription (not Plan or Membership — different meanings in our registry)
  • User reference uses userId (not user_id — per convention)

Anti-patterns to avoid:

  • Won't couple subscription status with auth (listed as anti-pattern)
  • Won't store derived data (principle: compute don't store)

Here's the proposed model:

interface Subscription {
  id: string;
  userId: string;          // References User model
  plan: PlanType;          // Defined in types
  status: SubscriptionStatus;
  startedAt: Date;         // UTC per our convention
  renewsAt: Date;          // UTC
}

User:

"Add 'PlanType' to the knowledge base"

Claude:

Added to Notation Registry:

Term Meaning Context Anti-Pattern
PlanType Subscription tier enum subscriptions/ Don't use 'Plan' alone (ambiguous with future pricing plans)

Tips

  • Start small: Begin with 5-10 entries. Add more as you encounter them.
  • Update proactively: When you make a decision, document it immediately.
  • Review periodically: Some entries become outdated. Clean up quarterly.
  • Make it specific: "Use consistent naming" is useless. "Use camelCase for JS, snake_case for DB" is useful.

Troubleshooting

Problem: Claude doesn't reference the knowledge base

Solution: Add explicit instruction: "Check the knowledge base before starting any task."

Problem: Knowledge base is too large

Solution: Split into sections (core/advanced) or by domain area. Only load relevant sections.

Problem: Entries conflict

Solution: Review conflicts are valuable — they surface inconsistencies in your actual design. Resolve the conflict, then update the entry.

$Related Playbooks

Academic Research

Literature Review Synthesis

Systematically search, analyze, and synthesize research literature. Extract key findings, identify gaps, and produce structured literature reviews.

10 minutes
Intermediate
Academic Research

Manuscript Referee Review

Get a thorough pre-submission review with referee-style objections. Identify weaknesses before reviewers do, and strengthen your paper proactively.

10 minutes
Intermediate
Academic Research

ML Paper Writing for Top Conferences

Write publication-ready ML/AI papers for NeurIPS, ICML, ICLR, ACL, AAAI, and COLM — a non-negotiable citation-verification workflow against the ~40% hallucination rate in AI-generated references, a claim-ledger gate that stops unsupported claims from reaching manuscript prose, and sentence-level writing principles synthesized from named researchers (Nanda, Farquhar, Gopen & Swan, Lipton, Steinhardt, Perez) who've published extensively at top venues.

10 minutes
Advanced
Academic Research

ML Research Paper Pipeline: Design to Submission

An end-to-end pipeline for ML/AI research papers targeting NeurIPS, ICML, ICLR, ACL, AAAI, and COLM — experiment design tied to claims, incremental-safe execution with an experiment journal, negative-result handling, ensemble self-review with a meta-reviewer, and anonymization-safe submission prep.

15 minutes
Advanced
Academic Research

Multi-Agent Parallel Review

Run multiple specialized review agents in parallel — proofreader, code reviewer, security auditor, etc. Each agent focuses on one dimension with full attention.

15 minutes
Intermediate
Academic Research

Research Paper Structure Editor

Improve the structural clarity of ML/CV/NLP research papers before submission — a reverse-outlining check that maps every paragraph's topic sentence back to the section thesis, section-by-section guidance for Abstract through Conclusion, a five-dimension adversarial self-review, and a claim-evidence map that catches unsupported claims in the Abstract and Introduction before a reviewer does.

5 minutes
Intermediate
Academic Research

Paper Figures to PowerPoint

Extract all figures, tables, and equations from a research paper PDF and generate a polished PowerPoint deck automatically.

10 minutes
Intermediate
Academic Research

Parallel Task Agents

Spawn multiple Claude agents simultaneously to handle independent subtasks. Review 3 papers at once, analyze multiple files in parallel, or run concurrent simulations.

5 minutes
Intermediate
Academic Research

Replication-First Coding

When working with existing code or papers, match the original exactly before extending. Verify against gold standard numbers to catch silent bugs.

10 minutes
Intermediate
Academic Research

Research Exploration Sandbox

Create a structured explorations/ folder for experimental work. Fast-track experiments without full rigor, then graduate successful ones to production code.

5 minutes
Beginner
Academic Research

Research Ideation Generator

Generate research questions, hypotheses, and empirical strategies. Brainstorm ideas systematically with structured prompts that push beyond obvious approaches.

5 minutes
Beginner
Academic Research

Plan-First Workflow

Get Claude to plan before executing complex tasks. Prevents wasted effort by getting user approval on approach before writing code or making changes.

5 minutes
Beginner

Browse all Academic Research playbooks →