Add workflow automation scripts 🚀
Created powerful helper scripts: - cc_status.py - View current CC status & memory - save_session.py - Save sessions with git commits - start_project.py - Start new projects automatically - link_cc.py - Link CC to any project folder - Updated README with workflow documentation CC's workflow is now supercharged! ⚡ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
92
link_cc.py
Normal file
92
link_cc.py
Normal file
@@ -0,0 +1,92 @@
|
||||
#!/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 <project> <what_we_did> <whats_next>` - Save session
|
||||
- `python start_project.py <name> <goal>` - 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 <project_path>")
|
||||
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)
|
Reference in New Issue
Block a user