security-ownership-map

Analyze git repositories to construct security ownership topology and export CSV and JSON data.

1|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/Matheusrlr/payment-orchestrator --skill security-ownership-map-matheusrlr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-ownership-map
Source: https://github.com/Matheusrlr/payment-orchestrator/tree/main/skills-catalog/skills/%28security%29/security-ownership-map
Command: npx skills add https://github.com/Matheusrlr/payment-orchestrator --skill security-ownership-map-matheusrlr

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill analyzes git history to map code ownership, identify security risks like orphaned sensitive code, and calculate bus factors, providing actionable insights for security and maintainability.

Core Features & Use Cases

  • Security Ownership Topology: Builds a graph of people-to-file ownership based on git history.
  • Bus Factor & Risk Analysis: Computes bus factor, identifies sensitive code ownership, and detects orphaned or high-risk code.
  • Graph Export: Generates CSV and GraphML outputs for visualization in tools like Neo4j and Gephi.
  • Use Case: A security team can use this to identify critical security-related files with a low bus factor (few owners), flagging them for immediate attention or knowledge sharing.

Quick Start

Analyze the current repository's git history for security ownership and bus factor insights.

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 and analyze code ownership from git history?

You calculate the bus factor by analyzing git history to construct a security ownership topology, mapping people-to-file relationships and computing risk metrics for sensitive code. This process exports the ownership data as CSV and GraphML files for graph databases.

What is a security ownership topology and how does it detect orphaned code?

A security ownership topology is a graph mapping developers to sensitive files based on git history, detecting orphaned code by identifying critical security components with insufficient or absent ownership. It calculates bus factors to flag high-risk areas needing immediate attention.

Can I export git code ownership data to Neo4j or Gephi for visualization?

Yes, you can export git code ownership data to Neo4j or Gephi by generating CSV and GraphML outputs from the repository analysis. These formats capture the security ownership topology for direct import into graph databases and network visualization tools.

Do I need Python and networkx to run a git bus factor analysis?

Yes, you need Python 3 and the networkx library to run a git bus factor analysis. Networkx is required for performing the community detection and graph analysis needed to construct the security ownership topology and calculate risk metrics.

What is the best way to identify sensitive code with a low bus factor?

The best way to identify sensitive code with a low bus factor is to analyze git history to map file ownership and compute risk metrics, flagging critical security-related files with few owners. This flags orphaned or high-risk code for immediate knowledge sharing.

What are the limitations of using git history for security risk assessment?

A limitation of using git history for security risk assessment is that it relies entirely on commit metadata to calculate bus factors and construct ownership topologies. This approach may miss undocumented knowledge sharing or informal code maintenance responsibilities.