Skip to content

Claude Context Management ​

Overview ​

Claude can use predefined context files to understand your project structure, coding conventions, and team standards. This helps maintain consistency across development tasks.

Using CLAUDE.md Files ​

Claude automatically looks for CLAUDE.md files in your project to understand context and conventions.

Using Libaro CLAUDE.md Templates ​

Our team maintains CLAUDE.md templates in the same repository as cursor rules: https://bitbucket.org/libaro/cursor-rules

Setup Instructions ​

  1. Option A: Use Libaro template:

    bash
    # Clone the cursor-rules repository
    git clone https://bitbucket.org/libaro/cursor-rules.git
    
    # Copy the appropriate CLAUDE.md template to your project
    cp cursor-rules/CLAUDE.md ./CLAUDE.md
  2. Option B: Create from scratch:

    bash
    touch CLAUDE.md
  3. Customize the context including:

    • Project overview and architecture
    • Coding standards and conventions
    • File structure and organization
    • Key dependencies and frameworks
    • Testing approaches
    • Deployment processes
  4. Reference shared context:

    • Use the cursor-rules repository as a reference
    • Adapt the context for Claude's format
    • Include team-specific guidelines

CLAUDE.md Structure ​

markdown
# Project Name

## Overview
Brief description of the project and its purpose

## Architecture
- Tech stack
- Key components
- Data flow

## Coding Standards
- Language-specific conventions
- Naming patterns
- File organization

## Development Workflow
- Testing requirements
- Build processes
- Deployment steps

## Key Files and Directories
- Important entry points
- Configuration files
- Documentation locations

Best Practices ​

  • Keep it updated: Regularly update CLAUDE.md as the project evolves
  • Be specific: Include concrete examples of patterns and conventions
  • Team alignment: Ensure all team members contribute to and follow the guidelines
  • Version control: Commit CLAUDE.md to your repository
  • Project-specific: Customize for each project's unique requirements

Integration with Development ​

  • Place CLAUDE.md in your project root directory
  • Claude will automatically reference it during conversations
  • Update when adding new features or changing architecture
  • Include links to relevant documentation and resources

Benefits ​

  • Consistent code generation: Claude follows your established patterns
  • Reduced context switching: No need to repeatedly explain project structure
  • Team onboarding: New team members can reference the same guidelines
  • Maintainable codebase: Enforces consistent practices across the team