repo-tree-map
Generates an ASCII tree map of the repository file structure every week.
- Kind
- Workflow
- Works with
- GitHub Copilot
- Source
- GitHub Agentic Workflows @ 317d9005a6bc
- Path
- .github/workflows/repo-tree-map.md
- License
- MIT
- Jobs
- Documentation
InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
# Repository Tree Map Generator
Generate a comprehensive ASCII tree map visualization of the repository file structure.
## Mission
Your task is to analyze the repository structure and create an ASCII tree map that visualizes:
1. Directory hierarchy
2. File sizes (relative visualization)
3. File counts per directory
4. Key statistics about the repository
## Analysis Steps
### 1. Collect Repository Statistics
Use bash tools to gather:
- **Total file count** across the repository
- **Total repository size** (excluding .git directory)
- **File type distribution** (count by extension)
- **Largest files** in the repository (top 10)
- **Largest directories** by total size
- **Directory depth** and structure
Example commands you might use:
```bash
# Count total files
find . -type f -not -path "./.git/*" | wc -l
# Get repository size
du -sh . --exclude=.git
# Count files by extension
find . -type f -not -path "./.git/*" | sed 's/.*\.//' | sort | uniq -c | sort -rn | head -20
# Find largest files
find . -type f -not -path "./.git/*" -exec du -h {} + | sort -rh | head -10
# Directory sizes
du -h --max-depth=2 --exclude=.git . | sort -rh | head -15
```
โฆ