DOCUMENTATION_CLEANUP_PLAN.md•10 kB
# Documentation Cleanup Plan
**Date**: 2025-08-23
**Phase**: Repository Documentation Consolidation
**Goal**: Remove 75+ redundant files, keep essential docs, improve maintainability
## 📊 Summary
**Before Cleanup:**
- **87 markdown files** (1MB+ documentation)
- **Massive redundancy** - 6 installation guides, 5 Claude integration files
- **Poor user experience** - overwhelming choice, unclear paths
- **High maintenance burden** - updating requires changing 6+ files
**After Cleanup:**
- **4 essential repository files** (README, CLAUDE, CHANGELOG, CONTRIBUTING)
- **Comprehensive wiki** with consolidated guides
- **Single source of truth** for each topic
- **90% reduction** in repository documentation
## 🚀 Files to Keep in Repository
### ✅ Essential Repository Files (Keep)
- `README.md` ✅ **DONE** - Streamlined with wiki links
- `CLAUDE.md` ✅ **KEEP** - Claude Code development guidance
- `CHANGELOG.md` ✅ **KEEP** - Version history
- `CONTRIBUTING.md` ✅ **KEEP** - Development guidelines (if exists)
### ✅ Wiki Files Created (Consolidated)
- `Installation-Guide.md` ✅ **DONE** - Consolidated from 6+ installation files
- `Platform-Setup-Guide.md` ✅ **DONE** - Merged platform-specific guides
- `Integration-Guide.md` ✅ **DONE** - Combined all Claude/IDE integration docs
- `Home.md` ✅ **UPDATED** - Added links to new consolidated guides
## 🗂️ Files to Remove (Safe to Delete)
### 📦 Installation Guide Redundancy (6 files → 1 wiki page)
```bash
# These are now consolidated in Installation-Guide.md
docs/guides/service-installation.md # 10KB - service installation
docs/installation/complete-setup-guide.md # 7.7KB - complete setup
docs/installation/master-guide.md # 5KB - hardware-specific
docs/installation/distributed-sync.md # 11KB - installation + sync
docs/guides/claude-desktop-setup.md # 3.4KB - Claude Desktop setup
```
### 🖥️ Platform Setup Redundancy (4 files → 1 wiki page)
```bash
# These are now consolidated in Platform-Setup-Guide.md
docs/platforms/windows.md # 11KB - Windows setup
docs/guides/windows-setup.md # 3.9KB - Windows (shorter)
docs/platforms/ubuntu.md # 12.8KB - Linux setup
docs/guides/UBUNTU_SETUP.md # 5.9KB - Linux (different)
docs/platforms/macos-intel.md # 9.8KB - macOS Intel
```
### 🔗 Integration Guide Redundancy (5 files → 1 wiki page)
```bash
# These are now consolidated in Integration-Guide.md
docs/guides/claude-code-integration.md # 10.6KB - Claude Code
docs/guides/claude-code-quickstart.md # 3.9KB - Quick start
docs/guides/claude-code-compatibility.md # 3.8KB - Compatibility
docs/guides/claude_integration.md # 2.5KB - Basic integration
docs/guides/mcp-client-configuration.md # 10KB - MCP client config
```
### 🏗️ Development Artifacts (Should be archived, not in user docs)
```bash
# Development session files - move to archive or delete
docs/sessions/MCP_ENHANCEMENT_SESSION_MEMORY_v4.1.0.md # 12KB
docs/development/CLEANUP_PLAN.md # 6KB
docs/development/CLEANUP_SUMMARY.md # 3.6KB
docs/development/CLEANUP_README.md # 1KB
docs/development/TIMESTAMP_FIX_SUMMARY.md # 3.4KB
docs/development/test-results.md # 4.2KB
docs/development/mcp-milestone.md # 2.9KB
SESSION_MEMORY_2025-08-11.md # 4.7KB (root)
CLAUDE_PERSONALIZED.md # 10.7KB (root)
```
### 📚 Root Documentation Redundancy (Move to wiki or delete)
```bash
# These can be moved to wiki or deleted as they're covered elsewhere
AWESOME_LIST_SUBMISSION.md # 5.6KB - submission doc
CLOUDFLARE_IMPLEMENTATION.md # 5.7KB - now in wiki
LITESTREAM_SETUP_GUIDE.md # 6.5KB - can move to wiki
PYTORCH_DOWNLOAD_FIX.md # 2.7KB - troubleshooting
ROADMAP.md # 5.8KB - can move to wiki
SPONSORS.md # 4.9KB - can keep or move
```
### 🔧 Duplicate Technical Docs (Consolidate or remove)
```bash
# These have overlapping content with wiki pages
docs/guides/authentication.md # 13KB - auth guide
docs/guides/distributed-sync.md # 14KB - sync setup
docs/guides/mdns-service-discovery.md # 9.9KB - mDNS setup
docs/guides/migration.md # 10.6KB - migration guide
docs/deployment/database-synchronization.md # 12.9KB - DB sync
docs/deployment/multi-client-server.md # 23.3KB - multi-client
```
### 📁 Miscellaneous Cleanup
```bash
# Various guides that can be consolidated or removed
docs/guides/commands-vs-mcp-server.md # 6.9KB - covered in wiki
docs/guides/invocation_guide.md # 12.9KB - usage guide
docs/guides/scripts.md # 2KB - script docs
docs/LM_STUDIO_COMPATIBILITY.md # 4.6KB - compatibility
docs/ide-compatability.md # 5KB - IDE compatibility
docs/integrations.md # 1.8KB - integrations
docs/architecture.md # 9.9KB - can move to wiki
```
## 📋 Safe Cleanup Commands
### Phase 1: Create Archive Directory
```bash
mkdir -p archive/docs-removed-2025-08-23
```
### Phase 2: Move (Don't Delete) Redundant Files
```bash
# Installation redundancy
mv docs/guides/service-installation.md archive/docs-removed-2025-08-23/
mv docs/installation/complete-setup-guide.md archive/docs-removed-2025-08-23/
mv docs/installation/master-guide.md archive/docs-removed-2025-08-23/
mv docs/installation/distributed-sync.md archive/docs-removed-2025-08-23/
mv docs/guides/claude-desktop-setup.md archive/docs-removed-2025-08-23/
# Platform redundancy
mv docs/platforms/windows.md archive/docs-removed-2025-08-23/
mv docs/guides/windows-setup.md archive/docs-removed-2025-08-23/
mv docs/platforms/ubuntu.md archive/docs-removed-2025-08-23/
mv docs/guides/UBUNTU_SETUP.md archive/docs-removed-2025-08-23/
mv docs/platforms/macos-intel.md archive/docs-removed-2025-08-23/
# Integration redundancy
mv docs/guides/claude-code-integration.md archive/docs-removed-2025-08-23/
mv docs/guides/claude-code-quickstart.md archive/docs-removed-2025-08-23/
mv docs/guides/claude-code-compatibility.md archive/docs-removed-2025-08-23/
mv docs/guides/claude_integration.md archive/docs-removed-2025-08-23/
mv docs/guides/mcp-client-configuration.md archive/docs-removed-2025-08-23/
# Development artifacts
mv docs/sessions/ archive/docs-removed-2025-08-23/
mv docs/development/ archive/docs-removed-2025-08-23/
mv SESSION_MEMORY_2025-08-11.md archive/docs-removed-2025-08-23/
mv CLAUDE_PERSONALIZED.md archive/docs-removed-2025-08-23/
```
### Phase 3: Remove Empty Directories
```bash
# Remove empty directories
find docs/ -type d -empty -delete
```
### Phase 4: Update README-ORIGINAL-BACKUP
```bash
# Keep backup for reference but add note
echo "\n\n---\n**NOTE**: This file was replaced with streamlined version on 2025-08-23. See README.md for current version and wiki for comprehensive documentation." >> README-ORIGINAL-BACKUP.md
```
## 🔍 Verification Steps
### Before Cleanup
```bash
# Count files before
find docs/ -name "*.md" | wc -l
find . -maxdepth 1 -name "*.md" | wc -l
```
### After Cleanup
```bash
# Verify counts after
find docs/ -name "*.md" | wc -l # Should be much smaller
find . -maxdepth 1 -name "*.md" | wc -l # Should be ~4 essential files
# Verify wiki links work
# Check that wiki pages exist and have content
ls -la ../mcp-memory-service.wiki/Installation-Guide.md
ls -la ../mcp-memory-service.wiki/Platform-Setup-Guide.md
ls -la ../mcp-memory-service.wiki/Integration-Guide.md
```
### Test User Experience
```bash
# Test that essential info is still accessible
# 1. README.md should have clear quick start
# 2. Wiki links should work
# 3. Installation should be straightforward
# 4. No broken internal links
```
## 🎯 Expected Results
### Quantitative Improvements
- **File count**: 87 → ~15 markdown files (83% reduction)
- **Repository size**: ~1MB docs → ~100KB essential docs
- **Maintenance burden**: 6 installation guides → 1 wiki page
- **User confusion**: Multiple paths → Clear single source
### Qualitative Improvements
- **Better discoverability**: Clear wiki structure vs scattered files
- **Easier maintenance**: Update once vs updating 6+ files
- **Improved UX**: Single path vs choice paralysis
- **Cleaner repository**: Focus on code vs documentation chaos
- **Professional appearance**: Organized vs overwhelming
## 🛡️ Safety Measures
### Backup Strategy
- ✅ All removed files moved to `archive/` directory (not deleted)
- ✅ Original README preserved as `README-ORIGINAL-BACKUP.md`
- ✅ Git history preserves all removed content
- ✅ Wiki contains consolidated content from all removed files
### Rollback Plan
If any issues arise:
1. **Individual files**: `mv archive/docs-removed-2025-08-23/filename.md docs/path/`
2. **Full rollback**: `mv README.md README-streamlined.md && mv README-ORIGINAL-BACKUP.md README.md`
3. **Git rollback**: `git checkout HEAD~1 -- docs/` (if committed)
### Testing Plan
1. **Link verification**: All wiki links functional
2. **Content verification**: No essential information lost
3. **User journey testing**: Installation → integration → usage
4. **Community feedback**: Monitor for missing information requests
## ✅ Success Criteria
- [ ] Repository has 4 essential markdown files (README, CLAUDE, CHANGELOG, CONTRIBUTING)
- [ ] Wiki contains 3 comprehensive consolidated guides
- [ ] No essential information is lost or inaccessible
- [ ] All links function correctly
- [ ] User feedback is positive (reduced confusion)
- [ ] Maintenance burden significantly reduced
---
**This plan ensures safe, systematic cleanup while preserving all information and providing better user experience.**