security-ownership-map

Analyze git history to map security ownership and compute bus factor.

5|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/lidge-jun/cli-jaw-skills --skill security-ownership-map-lidge-jun
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-ownership-map
Source: https://github.com/lidge-jun/cli-jaw-skills/tree/main/security-ownership-map
Command: npx skills add https://github.com/lidge-jun/cli-jaw-skills --skill security-ownership-map-lidge-jun

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires networkx, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill addresses the challenge of understanding who owns what code, especially sensitive code, and the associated risks like low bus factor or orphaned code.

Core Features & Use Cases

  • Security Ownership Topology: Analyzes git history to map people to files, identifying ownership of sensitive code (auth, crypto, secrets).
  • Bus Factor & Risk Analysis: Computes the bus factor for files and identifies "orphaned" or high-risk sensitive code.
  • Co-change Graphing: Clusters files based on co-occurrence in commits to understand code evolution and potential ownership drift.
  • Use Case: Identify critical security-related files with a bus factor of one, or find sensitive code that hasn't been touched in over a year.

Quick Start

Run the security ownership map skill to analyze the current repository and output a summary of risks.

Frequently Asked Questions about security-ownership-map

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

FAQPage Schema
How do I calculate the bus factor for sensitive code in a git repository?

To identify orphaned sensitive code in git history, this Skill analyzes commit timestamps and ownership data to find security-critical files, such as those handling secrets, that have not been modified or actively maintained for over a year.

What is the best way to map git history to a security ownership topology?

The best way to map git history to a security ownership topology is by analyzing commit co-occurrence to cluster files and construct a graph linking developers to sensitive code. This reveals ownership drift and community structures within the codebase.

Do I need Python 3 and networkx to run git code ownership analysis?

Yes, you need Python 3 and the networkx library to run this git code ownership analysis. Networkx is specifically required to perform the community detection and graph analysis needed to compute the bus factor and ownership topology.

Can I export git ownership graphs to Neo4j and Gephi?

Yes, you can export git ownership graphs to Neo4j and Gephi because this Skill generates CSV and JSON outputs containing the security ownership topology and co-change clusters. These standard formats are directly importable into graph databases and visualization platforms.

How does co-change graphing help find sensitive code ownership drift?

Co-change graphing helps find sensitive code ownership drift by clustering files based on their co-occurrence in commits, revealing how code evolution patterns shift over time. This highlights when sensitive modules move away from their original maintainers.