README.md
October 25, 2025 ยท View on GitHub

A collection of CLAUDE.md templates for repository management, designed to work seamlessly with Claude Code CLI.
Overview
This repository provides pre-configured CLAUDE.md templates that give Claude Code context-aware instructions when working in different types of repository directories. Instead of a one-size-fits-all deployment script, this approach lets you selectively deploy templates using Claude Code's slash commands.
What are CLAUDE.md Files?
CLAUDE.md files are contextual documentation files that Claude Code reads when working in a directory. They provide:
- Purpose and description of the directory
- Common tasks and operations expected in that location
- Best practices and guidelines
- Typical directory structure
- Development workflows and patterns
When Claude Code starts in a directory with a CLAUDE.md file, it automatically reads and follows the instructions, making it context-aware for that specific workspace.
Available Templates
All templates are located in the template-claude-md/ directory.
Hugging Face Templates
- hf-spaces/: For Hugging Face Spaces directories (Gradio, Streamlit, Docker apps)
- hf-datasets/: For Hugging Face Datasets directories
- hf-models/: For Hugging Face Models directories
GitHub Repository Templates
- for-gh-repo-base/: For the base GitHub repositories directory
- for-gh-docs-base/: For documentation repositories
- for-gh-websites-base/: For website/web project repositories
- for-gh-forks-base/: For forked repositories
- for-gh-collaborative-base/: For collaborative GitHub projects
Work & Collaboration Templates
- for-work-repos-base/: For work-related repositories
- for-datasets-collaborative-base/: For collaborative dataset projects
- for-docs-collaborative-base/: For collaborative documentation projects
Project Templates
- for-cloned-projects.base/: For cloned third-party projects
Complete Template List
template-claude-md/for-cloned-projects.base/CLAUDE.md- Cloned third-party projectstemplate-claude-md/for-datasets-collaborative-base/CLAUDE.md- Collaborative datasetstemplate-claude-md/for-docs-collaborative-base/CLAUDE.md- Collaborative documentationtemplate-claude-md/for-gh-collaborative-base/CLAUDE.md- Collaborative GitHub repostemplate-claude-md/for-gh-docs-base/CLAUDE.md- GitHub documentation repostemplate-claude-md/for-gh-forks-base/CLAUDE.md- GitHub forkstemplate-claude-md/for-gh-repo-base/CLAUDE.md- GitHub repositories basetemplate-claude-md/for-gh-websites-base/CLAUDE.md- GitHub website projectstemplate-claude-md/for-work-repos-base/CLAUDE.md- Work repositoriestemplate-claude-md/hf-datasets/CLAUDE.md- Hugging Face datasetstemplate-claude-md/hf-models/CLAUDE.md- Hugging Face modelstemplate-claude-md/hf-spaces/CLAUDE.md- Hugging Face Spaces
Quick Start
Installation
- Clone this repository:
cd ~/repos/github
git clone https://github.com/danielrosehill/Claude-Code-Repo-Managers-ClaudeMD.git
- Set up slash commands (optional):
cd Claude-Code-Repo-Managers-ClaudeMD
./grab-slash-commands.sh
This syncs the slash commands from .claude/commands/ to slash-commands/ directory.
Usage with Claude Code
The recommended workflow is to use Claude Code interactively to deploy templates:
-
Start Claude Code in this repository:
cd ~/repos/github/Claude-Code-Repo-Managers-ClaudeMD claude-code -
Ask Claude to help you deploy templates:
- "Please show me the available templates"
- "I'd like to deploy the GitHub repos template to ~/repos/github"
- "Help me set up CLAUDE.md files for my Hugging Face workspace"
-
Claude Code will:
- Show you the available templates
- Ask you which ones you want to deploy
- Confirm the target directory paths
- Copy the templates to the appropriate locations
- Customize them if needed based on your setup
Available Slash Commands
- /set-stuff-up: Interactive setup wizard that guides you through deploying templates
- /depersonalise: Remove personal information from CLAUDE.md files before sharing
How It Works
Template Structure
Each template directory contains a CLAUDE.md file with:
- Purpose: What the directory is used for
- Directory Structure: Expected subdirectories and organization
- Common Tasks: Typical operations Claude might be asked to perform
- Best Practices: Guidelines for working in this context
- Workflows: Development patterns and procedures
- Examples: Code snippets and usage patterns
Syncing Slash Commands
The repository includes a pre-commit hook that automatically syncs slash commands:
./grab-slash-commands.sh
This ensures the slash-commands/ directory stays in sync with .claude/commands/.
Use Cases
For Hugging Face Developers
Deploy context-aware documentation to your Hugging Face workspace. When Claude Code works in ~/repos/hugging-face/spaces/, it will know:
- How to create Gradio/Streamlit apps
- Proper Space configuration patterns
- Hardware tier recommendations
- Best practices for Space development
For GitHub Repository Management
Provide Claude Code with context when managing large collections of repositories. When working in ~/repos/github/, Claude will understand:
- Batch operations across multiple repos
- Repository analysis and auditing patterns
- Maintenance workflows
- Best practices for organization
For Forked Repository Management
Give Claude Code guidance on working with forks. In ~/repos/forks/, Claude knows:
- How to handle upstream syncing
- Pull request workflows
- Contribution guidelines
- Fork maintenance practices
Customizing Templates
Since everyone organizes their repositories differently, you can:
- Browse the templates in
template-claude-md/ - Copy templates manually to your preferred locations
- Customize them to match your workflow
- Ask Claude Code to help - it can read the templates and adapt them to your needs
Contributing
Adding New Templates
- Create a new directory in
template-claude-md/with a descriptive name - Add a comprehensive
CLAUDE.mdfile - Test the template in your own workflow
- Submit a pull request
Template Guidelines
Good CLAUDE.md files should:
- Be comprehensive: Cover all common operations
- Include examples: Provide code snippets and patterns
- Stay focused: Be specific to the directory's purpose
- Be actionable: Give Claude clear guidance on what to do
- Include context: Explain why things are done a certain way
Adding Slash Commands
- Create a new
.mdfile in.claude/commands/ - Write the command prompt/instructions
- Run
./grab-slash-commands.shto sync - Test with Claude Code
- Submit a pull request
License
MIT License - See LICENSE file for details
Support
For issues, questions, or contributions:
- Issues: Open an issue on GitHub
- Pull Requests: Contributions welcome
- Discussions: Use GitHub Discussions for questions
Related Projects
- Claude Code: The official CLI for Claude AI
- Hugging Face: Platform for ML models, datasets, and spaces
- GitHub CLI: Command-line tool for GitHub
Changelog
v2.0.0 (Current)
- Migrated from Python deployment script to Claude Code-based approach
- Added slash commands for interactive deployment
- Added pre-commit hook for slash command syncing
- Reorganized templates into
template-claude-md/directory - Added new collaborative templates
- Simplified workflow using Claude Code's interactive capabilities
v1.0.0 (Initial Release - Deprecated)
- Python-based deployment utility (deprecated)
- 8 template types for HF and GitHub repositories
- Auto-detection with pattern matching (no longer maintained)