# 1. Navigate to the directory
cd /home/coder/projects/repo_map
# 2. Run installer
./installer.sh
# 3. Set your Claude API key
export ANTHROPIC_API_KEY='your-anthropic-api-key-here'./run.sh# Activate environment
source activate.sh
# Step 1: Fetch repos from GitHub
./repo_mapper.sh
# Step 2: Analyze with AI
python3 analyze_repos.py
# Step 3: Generate outputs
python3 generate_xmind.py- XMind: Import
output/repo_map.xmind.jsoninto XMind app - Markdown: Open
output/repo_map.mdin any text editor - Stats: View
output/repo_statistics.json
- Push this repo to GitHub
- Add
ANTHROPIC_API_KEYsecret in Settings → Secrets - Runs automatically every Monday at 9 AM UTC
crontab -e
# Add this line:
0 9 * * 1 cd /home/coder/projects/repo_map && ./run.sh| Issue | Solution |
|---|---|
gh: command not found |
Install GitHub CLI: https://cli.github.com/ |
gh is not authenticated |
Run: gh auth login |
ANTHROPIC_API_KEY not set |
Export your key: export ANTHROPIC_API_KEY='...' |
Virtual environment not found |
Run: ./installer.sh again |
Edit config.yaml to customize:
- Analysis frequency (default: 7 days)
- AI model selection
- Repository filters
- Output formats
- And more!
| File | Purpose |
|---|---|
installer.sh |
Sets up environment and dependencies |
run.sh |
Runs complete pipeline |
activate.sh |
Activates virtual environment |
repo_mapper.sh |
Fetches GitHub repos and READMEs |
analyze_repos.py |
AI-powered categorization |
generate_xmind.py |
Creates visualizations |
config.yaml |
Configuration options |
.github/workflows/weekly-update.yml |
GitHub Actions automation |
- Discovers all your GitHub orgs and repos
- Reads every README file
- Analyzes each project with Claude AI
- Categorizes by cybersecurity domain
- Visualizes as an XMind mind map
- Updates weekly automatically
The system maps your repos to:
- 14 Cybersecurity Categories (Offensive, Defensive, AppSec, NetSec, CloudSec, etc.)
- 4 General Categories (Development, Data Science, Infrastructure, Other)
Each repo gets:
- Primary category
- Specific subcategory
- Confidence level (high/medium/low)
- Cybersecurity relevance (direct/indirect/none)
- Relevant tags
Need more details? Check the full README.md