Claude Code Integration
What We Did
Section titled “What We Did”Initialized Claude Code in the repository and created a CLAUDE.md file to provide context for future AI interactions.
Why Claude Code
Section titled “Why Claude Code”Claude Code is the foundation for this application because:
- AI-native development workflow from the start
- Reduces boilerplate and accelerates development
- Consistent code quality through AI assistance
- Built-in best practices and pattern recognition
- Excellent for maintaining documentation (like these guides!)
Key Benefits:
- Context-aware code generation
- Intelligent refactoring suggestions
- Automated documentation generation
- Code review and analysis
- Integration with existing tools (git, testing, etc.)
Commands Used
Section titled “Commands Used”Initialize Claude Code
Section titled “Initialize Claude Code”Within the Claude Code CLI, the /init command was run:
/initThis command:
- Analyzed the entire codebase
- Identified key patterns and architecture
- Generated a comprehensive
CLAUDE.mdfile
What Was Created
Section titled “What Was Created”CLAUDE.md
Section titled “CLAUDE.md”Location: /CLAUDE.md (root of repository)
This file provides:
- Repository Overview: High-level description of the monorepo structure
- Essential Commands: Development, build, and quality commands
- Architecture Notes:
- TurboRepo task dependencies
- Package export patterns
- Next.js App Router setup
- Astro/Starlight documentation structure
- Shared Dependencies: Version information for all packages
Purpose of CLAUDE.md
Section titled “Purpose of CLAUDE.md”- Gives future Claude instances context about the codebase
- Documents non-obvious architectural decisions
- Provides quick reference for common commands
- Explains package relationships and dependencies
Integration with Development Workflow
Section titled “Integration with Development Workflow”For Developers
Section titled “For Developers”- Read
CLAUDE.mdbefore starting work - Update it when making architectural changes
- Use it as a reference for commands and patterns
For AI Assistants
Section titled “For AI Assistants”- Loaded automatically by Claude Code
- Provides essential context for code generation
- Informs architectural decisions
- Guides consistent coding patterns
Key Sections in CLAUDE.md
Section titled “Key Sections in CLAUDE.md”Repository Overview
Section titled “Repository Overview”Lists apps and packages with brief descriptions:
web: Next.js appdocs: Astro documentation site@repo/ui,@repo/eslint-config,@repo/typescript-config
Essential Commands
Section titled “Essential Commands”Organized by task type:
- Development (dev, build)
- Code quality (lint, check-types, format)
- Package-specific operations
Architecture Notes
Section titled “Architecture Notes”Documents:
- TurboRepo task pipelines
- Package export patterns (especially
@repo/uiwildcards) - Framework-specific configurations
- Dependency versions
Context for AI
Section titled “Context for AI”When working with Claude Code:
- Always check
CLAUDE.mdfirst for project context - Update
CLAUDE.mdwhen adding new patterns or conventions - Use Claude Code for repetitive tasks and boilerplate
- Leverage AI for documentation generation and maintenance
- Ask Claude to explain unfamiliar code patterns
Best Practices for AI-Assisted Development
Section titled “Best Practices for AI-Assisted Development”- Provide Clear Context: Reference relevant files and explain goals
- Iterative Refinement: Review AI suggestions and request improvements
- Document Decisions: Use Claude to help maintain these guides
- Consistency: Follow patterns established in
CLAUDE.md - Verification: Always review and test AI-generated code
Living Documentation
Section titled “Living Documentation”This documentation system itself demonstrates Claude Code in action:
- Structure proposed by AI
- Content generated with AI assistance
- Maintained collaboratively between human and AI
- Evolves with the project
Next Steps
Section titled “Next Steps”As the project grows:
- Keep
CLAUDE.mdupdated with new patterns - Add new guides to this documentation site
- Use Claude Code for feature development
- Document major decisions in new guide files