πΊοΈ Weekly Repository Map
May 8, 2026 Β· View on GitHub
For an overview of all available workflows, see the main README.
Visualize your repository's file structure and size distribution with a weekly ASCII tree map
The Weekly Repository Map workflow analyzes your repository's structure every week using standard bash tools, then creates a GitHub issue containing an ASCII tree map visualization showing directory hierarchy, file sizes, and key statistics.
Installation
Add the workflow to your repository:
gh aw add https://github.com/githubnext/agentics/blob/main/workflows/weekly-repo-map.md
Then compile:
gh aw compile
Note: This workflow creates GitHub Issues with the
documentationlabel.
What It Does
The Weekly Repository Map runs every Monday and:
- Collects Repository Statistics β Counts files, measures sizes, and maps the directory structure using standard bash tools
- Generates ASCII Tree Map β Creates a visual representation of the repository hierarchy with proportional size bars
- Summarizes Key Metrics β Reports file type distribution, largest files, and directory sizes
- Creates an Issue β Posts the complete visualization as a GitHub issue, closing the previous week's issue
How It Works
graph LR
A[Collect File Statistics] --> B[Compute Sizes & Counts]
B --> C[Generate ASCII Tree Map]
C --> D[Compute Key Statistics]
D --> E[Create Issue Report]
Output: GitHub Issues
Each run produces one issue containing:
- Repository Overview β Brief summary of the repository's structure and size
- ASCII Tree Map β Visual directory hierarchy with size bars using box-drawing characters
- File Type Breakdown β Count of files by extension
- Largest Files β Top 10 files by size
- Directory Sizes β Top directories ranked by total size
Example excerpt from an issue:
Repository Tree Map
===================
/ [1234 files, 45.2 MB]
β
ββ src/ [456 files, 28.5 MB] ββββββββββββββββββββ
β ββ core/ [78 files, 5.2 MB] ββββββ
β ββ utils/ [34 files, 3.1 MB] βββββ
β
ββ docs/ [234 files, 8.7 MB] ββββββββ
β
ββ tests/ [78 files, 3.5 MB] βββββ
Configuration
The workflow uses these default settings:
| Setting | Default | Description |
|---|---|---|
| Schedule | Weekly on Monday | When to run the analysis |
| Issue label | documentation | Label applied to created issues |
| Max issues per run | 1 | Prevents duplicate reports |
| Issue expiry | 7 days | Older issues are closed when a new one is posted |
| Timeout | 10 minutes | Per-run time limit |
Customization
gh aw edit weekly-repo-map
Common customizations:
- Change issue labels β Set the
labelsfield insafe-outputs.create-issueto labels that exist in your repository - Adjust the schedule β Change to run more or less frequently (e.g., daily or monthly)
- Customize exclusions β Update the bash commands to exclude additional directories (e.g.,
vendor/,dist/) - Adjust tree depth β Edit the prompt to change how deep the tree visualization goes (default max is 3β4 levels)
Related Workflows
- Repository Quality Improver β Daily analysis of quality dimensions across your repository
- Large File Simplifier β Identify oversized source files and create detailed refactoring plans
- Weekly Issue Activity β Weekly issue activity report with trend charts