Bus Factor Risk Assessment
knowledge skill
Identifies critical contributors in a codebase or project by analyzing commit histories, ownership files, and dependency graphs. Produces a ranked list of key personnel whose absence would disrupt operations, including their areas of expertise and recent activity levels.
Worked examples
- {"input": {"repo_url": "https://github.com/org/project", "commit_history_days": 365, "ownership_file_paths": [".github/CODEOWNERS"]}, "output": {"risk_score": 0.87, "critical_roles": [{"name": "alice@example.com", "role": "auth_service", "last_commit": "2023-10-15"}, {"name": "bob@example.com", "role": "database_schema", "last_commit": "2023-09-28"}], "mitigation_suggestions": ["Document auth_service internals", "Pair bob on schema changes"]}}
- {"input": {"repo_url": "https://gitlab.com/team/repo", "commit_history_days": 90, "ownership_file_paths": []}, "output": {"risk_score": 0.62, "critical_roles": [{"name": "carol@company.com", "role": "ci_cd_pipeline", "last_commit": "2023-11-02"}], "mitigation_suggestions": ["Add ci_cd_pipeline to on-call rotation"]}}
Input
- repo_url: string
- commit_history_days: integer
- ownership_file_paths: array[string]
Output
- risk_score: float
- critical_roles: array[object]
- mitigation_suggestions: array[string]
Details
- Skill type: knowledge skill
- Safety level: safe_public_research
- Version: 1.0.0