Code Ownership & Bus Factor

Build an ownership map of a git repository from commit history.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/MS33834/AI-SKILL --skill code-ownership-bus-factor
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: Code Ownership & Bus Factor
Source: https://github.com/MS33834/AI-SKILL/tree/main/skills/ownership-bus-factor
Command: npx skills add https://github.com/MS33834/AI-SKILL --skill code-ownership-bus-factor

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you understand who really owns a codebase by mining git history to build an evidence-based ownership map. It exposes single points of failure, hidden maintenance risk, and places where stated ownership does not match actual contributor history.

Core Features & Use Cases

  • Ownership mapping: Builds a bipartite graph of people and files so you can see who touches what most often.
  • Bus factor analysis: Identifies subsystems where only one or two people maintain critical code.
  • Security-focused review: Highlights sensitive areas such as auth, crypto, payments, secrets, admin, RBAC, and schema migrations.
  • CODEOWNERS reality check: Compares declared ownership against recent git activity to find drift.
  • Co-change clustering: Groups files that move together to reveal likely module boundaries and cross-team collaboration zones.

Quick Start

Ask the skill to analyze a local git repository over a chosen time window and generate an ownership map with sensitive-file findings, bus-factor results, and graph exports.

Frequently Asked Questions about Code Ownership & Bus Factor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find code ownership gaps and bus factor risk from git history?▼

Bus factor risk and code ownership gaps are identified by mining git commit history to build a bipartite graph of people and files, exposing subsystems maintained by only one or two people. It outputs an evidence-based ownership map highlighting single points of failure.

What is a CODEOWNERS drift check and how does it compare declared ownership to actual git activity?▼

A CODEOWNERS drift check compares your declared ownership rules against recent git commit activity to find mismatches where stated owners do not match actual contributors. It generates a security-oriented ownership map to highlight areas where actual maintenance responsibility has shifted.

Can I analyze sensitive files like auth and crypto for security ownership review using commit history?▼

Sensitive file ownership review targets areas like auth, crypto, payments, secrets, admin, RBAC, and schema migrations by analyzing git commit history. The ownership map applies sensitivity rules to these paths and exports findings to CSV and GraphML formats.

How do I group files that change together for co-change clustering across subsystems?▼

Co-change clustering groups files that move together in git commits to reveal likely module boundaries and cross-team collaboration zones. It builds an ownership graph from commit history that can be exported as GraphML for downstream analysis of these structural patterns.

Do I need git log access to build a security-oriented ownership map?▼

Git log access is required to build a security-oriented ownership map because the Skill mines commit history to construct a bipartite graph of people and files. Time-window filtering is also supported to scope your analysis to a specific period of activity.

What is the best way to export an ownership graph for downstream security analysis?▼

The best way to export an ownership graph for downstream security analysis is to generate CSV and GraphML outputs directly from the git history mining process. These formats preserve the bipartite graph of people and files along with bus factor and sensitive file findings.