Bus factor and knowledge silos
bus_factorAnalyze commit ownership per directory to flag knowledge silos and calculate the minimum authors covering most commits, revealing where one author dominates.
Instructions
Analyze knowledge concentration by commits. Per top-level directory: dominant author and their share of commits; directories with >= 3 commits where one author made more than 80% of them are flagged as knowledge silos. Also returns the global bus factor: the minimum number of authors whose commits cover more than 50% of all commits (lower = riskier). For line-level ownership and inactive authors use knowledge_risk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Maximum number of directories and authors to list. | |
| repo_path | Yes | Absolute path to a local git repository, or to any folder inside one (a sub-folder scopes the analysis to it). | |
| include_merges | No | Count merge commits as authored work (default false: merging a pull request is not writing its code). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||