Feature Request: Support remote repository access for organizational templates and documentation
Summary
Add support for accessing remote repositories via environment variables, enabling organizations to centrally manage Claude Code templates, coding standards, and documentation.
Business Use Cases
Enterprise Template Management
- Organizations can maintain centralized CLAUDE.md templates with company coding standards
- Teams can enforce consistent AI assistance across all projects
- Compliance and security guidelines can be distributed automatically
Team Standardization
- Shared linting rules, pre-commit hooks, and CI/CD templates
- Framework-specific best practices (React, Angular, Python, etc.)
- Consistent code review and testing standards
Governance & Compliance
- Centralized security policies and coding standards
- Audit trails for template changes
- Role-based access to different template sets
Proposed Solution
Add environment variable support for remote repositories:
export CLAUDE_REMOTE_REPOS="https://github.com/company/dev-templates,https://github.com/team/project-standards"
Claude Code would:
- Fetch files from organizational repositories on-demand
- Cache locally for performance
- Support private repositories with authentication
- Auto-update to ensure latest standards are always available
Current Pain Points
For Organizations:
- Developers manually clone/update template repositories
- Inconsistent AI assistance across team members
- Difficult to enforce coding standards globally
- Template versioning issues across projects
For Individual Developers:
- Need to remember to update local templates
- Risk of using outdated organizational standards
- Manual maintenance overhead
Implementation Benefits
- Zero Configuration: New team members get latest standards automatically
- Always Current: Templates update without developer intervention
- Access Control: Private repos ensure proprietary standards stay secure
- Scalability: Works across any number of projects and team members
Example Scenarios
Startup: https://github.com/company/ai-coding-standards
Enterprise: https://github.com/corp/secure-development-templates
Open Source: https://github.com/community/framework-best-practices
Technical Approach
This would extend the existing CLAUDE_ADDITIONAL_DIRS concept to support remote sources, leveraging Claude Code's existing WebFetch capabilities.
Simple proof-of-concept example: https://github.com/tehw0lf/claude-templates
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗