The CLAUDE.md file has been refactored from a single 41KB, 998-line monolithic file into a structured documentation set with better organization and maintainability.
- CLAUDE.md: 41KB, 998 lines - single comprehensive file covering all platforms
| File | Size | Lines | Purpose |
|---|---|---|---|
| CLAUDE.md | 14KB | 306 | Main overview and architecture |
| CLAUDE_DESKTOP.md | 17KB | 467 | Desktop Java implementation |
| CLAUDE_ANDROID.md | 17KB | 586 | Android Kotlin/Compose implementation |
| CLAUDE_IOS.md | 25KB | 827 | iOS/macOS Swift implementation |
| DEVELOPMENT_GUIDE.md | 15KB | 609 | Common dev tasks and conventions |
| Total | 88KB | 2795 | (includes some duplication for clarity) |
- Project overview
- Multi-platform architecture summary
- Documentation structure (links to platform docs)
- Key architectural decisions
- Core design patterns
- Shared features (metadata, search, statistics)
- Common implementation details
- Known limitations and security
- Cross-references to other docs
- Desktop technology stack (Java 21, Maven)
- 4 UI implementations (CLI, Swing, AWT, Terminal)
- NexusClient.java (java.net.http)
- Credentials.java (file-based properties)
- Configuration and profiles
- Desktop-specific testing
- Build and deployment
- Android technology stack (Kotlin, Gradle)
- Jetpack Compose UI screens
- NexusClientOkHttp.java (OkHttp)
- CredentialsAndroid.java (EncryptedSharedPreferences)
- Material Design 3 patterns
- Android-specific testing
- APK build and deployment
- iOS/macOS technology stack (Swift, Xcode)
- SwiftUI screens (95% shared code)
- NexusClientURLSession.swift (URLSession)
- CredentialsKeychain.swift (Keychain Services)
- Platform differences (iOS vs macOS)
- iOS/macOS-specific testing
- App Store distribution
- Development environment setup (all platforms)
- Code conventions (Java, Kotlin, Swift)
- Common development tasks
- Debugging techniques (all platforms)
- Testing guidelines
- Git workflow and commit messages
- Code review checklist
- Resources and community links
- Easier Navigation: Find platform-specific information quickly
- Reduced Cognitive Load: Smaller, focused files instead of one large file
- Better Maintainability: Update one platform without affecting others
- Clear Separation: Platform-specific vs. shared architecture
- Improved Onboarding: Developers can read only what they need
- Cross-Referencing: Links between related documentation
- Start with CLAUDE.md for project overview
- Read platform-specific doc for implementation details:
- Desktop work → CLAUDE_DESKTOP.md
- Android work → CLAUDE_ANDROID.md
- iOS/macOS work → CLAUDE_IOS.md
- Consult DEVELOPMENT_GUIDE.md for common tasks
- README.md now includes Documentation section with all links
- Each platform doc is self-contained but links back to CLAUDE.md
- DEVELOPMENT_GUIDE.md covers cross-platform development tasks
CLAUDE_DESKTOP.md(new)CLAUDE_ANDROID.md(new)CLAUDE_IOS.md(new)DEVELOPMENT_GUIDE.md(new)DOCUMENTATION_REFACTOR.md(this file)
CLAUDE.md(refactored, reduced from 998 to 306 lines)README.md(added Documentation section)
- All other documentation files (TEST_COVERAGE.md, CI-CD.md, SECURITY.md, etc.)
- Source code (no code changes)
- Review the new structure for completeness
- Test links between documents
- Update CHANGELOG.md with documentation improvement
- Consider this pattern for other large docs
- Add diagrams for architecture (PlantUML or Mermaid)
- Create quick-start guides per platform
- Add troubleshooting guides
- Consider splitting iOS and macOS into separate docs if they diverge
The documentation is now more modular, maintainable, and user-friendly. Each file focuses on a specific aspect of the project, making it easier for both AI assistants and human developers to find the information they need.
Date: 2026-06-03
Author: Claude (AI Assistant)
Issue: Documentation refactoring to reduce CLAUDE.md size