mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 21:01:08 +02:00
Optimize CLAUDE.md based on industry best practices from HN and HumanLayer:
Changes:
- Trim CLAUDE.md from 678 to 176 lines (74% reduction, 5.7KB)
- Add "Critical Gotchas" section for common AI mistakes
- Add verification signature (🏗️ ManaCore Monorepo)
- Create docs/README.md navigation hub with "I want to..." index
- Delete 5 outdated audit files (ENV_AUDIT_*, DEPENDENCY_ALIGNMENT)
- Archive 7 analysis/historical docs to docs/archive/
- Keep authentication docs separate per request (.claude/guidelines/)
Benefits:
- Better AI instruction adherence (within ~150-200 line budget)
- Progressive disclosure via signposting to detailed docs
- Cleaner navigation with topic-based organization
- Reduced maintenance burden (stale docs archived)
Backup: CLAUDE.md.backup preserves original 678-line version
Change log: docs/archive/RESTRUCTURE_2025-12-16.md
4.1 KiB
4.1 KiB
Manacore Monorepo Documentation
Welcome to the Manacore monorepo documentation. This guide helps you find exactly what you need.
🚀 Quick Navigation
| I want to... | Go here |
|---|---|
| Start developing locally | Local Development |
| Set up environment variables | Environment Setup |
| Understand the architecture | Deployment Architecture |
| Work with databases | Database Migrations |
| Deploy to staging | Staging Setup |
| Deploy to production | Deployment Runbooks |
| Use Docker locally | Docker Guide |
| Debug an issue | Staging Issues |
| Learn code patterns | Guidelines |
| Configure CI/CD | CI/CD Setup |
| Work with runtime config | Runtime Config |
| Self-host the platform | Self-Hosting Guide |
📁 Documentation Structure
Getting Started
First-time setup, environment configuration, and basic workflows.
- Local Development - Complete local development setup
- Setup Templates - Templates for new projects
Architecture & Design
System design, technology choices, and architectural patterns.
- Deployment Architecture - Complete infrastructure overview
- Deployment Diagrams - Visual architecture diagrams
Development Workflows
Day-to-day development, migrations, and Docker.
- Database Migrations - Migration best practices
- Docker Guide - Local Docker setup
- Git Workflow - Git branching and commit conventions
- Development Scripts - Helper scripts
Deployment & Operations
CI/CD, staging, production deployment, and operational procedures.
- Deployment Overview - Deployment strategy overview
- Deployment Runbooks - Step-by-step deployment procedures
- Staging Setup - Hetzner staging environment
- Staging Issues - Known issues and solutions
- Hetzner Production Guide - Production deployment
- CI/CD Setup - GitHub Actions configuration
- Runtime Config - Dynamic configuration injection
Specialized Topics
- PWA Guide - Progressive Web App setup
- I18N - Internationalization
- User Settings - User settings architecture
- Self-Hosting Guide - Self-hosting instructions
- Testing Guide - Testing strategies
Project-Specific
- ManaDeck Postgres Migration - ManaDeck database migration
- Uload Deployment - Uload-specific deployment
Archived Documentation
Historical documentation and analysis reports moved to archive/.
🎯 Documentation Philosophy
This documentation follows these principles:
- Progressive Disclosure - Start with essentials, link to deep dives
- Single Source of Truth - Each topic has one authoritative document
- Task-Oriented - Organized by what you're trying to accomplish
- Keep Current - Archive or delete outdated docs instead of letting them linger
📝 For AI Assistants
If you're Claude or another AI assistant:
- Start with CLAUDE.md for essential patterns
- Reference Guidelines for detailed coding patterns
- Use this README to find specific documentation topics
- Always check file modification dates to ensure information is current
🔄 Maintenance
When updating documentation:
- Update this README if you add/move/remove major docs
- Archive outdated docs to
archive/rather than deleting - Keep cross-references up to date
- Update the modification date in this file
Last Updated: 2025-12-16