#!/usr/bin/env python3 """ CC Linker Link CC to any project by creating a quick reference file """ import shutil from pathlib import Path ZONE = Path(__file__).parent CLAUDE_MD = ZONE / "CLAUDE.md" def link_cc_to_project(project_path): """Link CC to a project""" project_dir = Path(project_path).resolve() if not project_dir.exists(): print(f"āŒ Project directory doesn't exist: {project_dir}") return # Create a CC_LINK.md file in the project link_file = project_dir / "CC_LINK.md" content = f"""# CC (Claudia Coding) - Quick Link šŸ’… This project is linked to CC's personality and memory system! ## šŸš€ How to Use CC in This Project **Start any conversation with:** ``` Read and follow C:\\Development\\ClaudeZone\\CLAUDE.md ``` Or simply: ``` Hey CC, let's work on this project! ``` ## 🧠 CC's Memory Location CC's global memory is stored at: ``` C:\\Development\\ClaudeZone\\ ``` - **Memory file:** `C:\\Development\\ClaudeZone\\memory.json` - **CLAUDE.md:** `C:\\Development\\ClaudeZone\\CLAUDE.md` ## šŸ’” What CC Knows CC will automatically: - Read her memory to remember your preferences - Check what projects you're working on - Pick up where you left off - Track progress in ClaudeZone ## šŸ”„ Quick Commands From ClaudeZone folder: - `python cc_status.py` - View CC's current status - `python save_session.py ` - Save session - `python start_project.py ` - Start new project --- **CC is ready to code with you! Just say "Hey CC!" šŸ’ŖāœØ** """ with open(link_file, 'w') as f: f.write(content) print(f"āœ… CC linked to project!") print(f"šŸ“‚ Project: {project_dir}") print(f"šŸ“ Created: {link_file}") print(f"\nšŸ’” To use CC in this project:") print(f' Say: "Read and follow C:\\Development\\ClaudeZone\\CLAUDE.md"') print(f' Or: "Hey CC, let\'s work on this!"') if __name__ == "__main__": import sys if len(sys.argv) < 2: print("Usage: python link_cc.py ") print("\nExample:") print(' python link_cc.py "C:\\Development\\MyProject"') print(' python link_cc.py .') sys.exit(1) project_path = sys.argv[1] link_cc_to_project(project_path)