get_project_main
Retrieve project-specific guidelines and configurations from a centralized repository. Use to ensure consistent adherence to project instructions, replace outdated local files, and parse structured content for clarity.
Instructions
Retrieve main.md content for a project's central instructions and configuration.
When to use this tool:
Starting work on any project (ALWAYS use FIRST)
Refreshing your understanding of project guidelines
Checking for updates to project instructions
Migrating from local CLAUDE.md files to centralized storage
Key features:
Replaces need for local CLAUDE.md files completely
Auto-detects project from git repository or directory name
Returns structured content with sections for easy parsing
Provides project-specific instructions and context
You should:
ALWAYS call this first when starting work on a project
Use the returned content as your primary behavioral guide
Check if project exists before assuming it doesn't
Migrate local CLAUDE.md files immediately if project not found
Parse sections to understand project structure and requirements
Treat this as your source of truth over any local files
Remember project_id for subsequent operations
DO NOT use when:
You already have the project content loaded in current session
Working with temporary or test projects
Returns: {exists: bool, content: str, error?: str}
Input Schema
Name | Required | Description | Default |
---|---|---|---|
project_id | Yes | The project identifier |