security-ownership-map

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

Updated Feb 25, 2026
One-click install
npx skills add https://github.com/dajneem23/codex-skills --skill security-ownership-map-dajneem23
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-ownership-map
Source: https://github.com/dajneem23/codex-skills/tree/main/security-ownership-map
Command: npx skills add https://github.com/dajneem23/codex-skills --skill security-ownership-map-dajneem23

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps identify potential security risks by analyzing code ownership, calculating the bus factor (how many people need to leave for a project to be in trouble), and highlighting sensitive code areas.

Core Features & Use Cases

  • Ownership Topology: Visualizes who owns which files based on git history.
  • Bus Factor Calculation: Determines the minimum number of people needed to maintain critical code.
  • Sensitive Code Identification: Flags files related to authentication, crypto, or secrets.
  • Graph Export: Generates data for visualization tools like Neo4j or Gephi.
  • Use Case: A security auditor can use this to quickly find critical files with a low bus factor and no clear ownership, indicating a high risk of security vulnerabilities going unnoticed.

Quick Start

Analyze the current repository to generate an ownership map and identify orphaned sensitive code.

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 a repository using git history?

To calculate the bus factor from git history, this Skill analyzes commit data to determine the minimum number of maintainers required for critical code. It constructs an ownership topology to identify areas with insufficient maintainer coverage and flags high-risk sensitive files.

How can I identify orphaned sensitive code like authentication and crypto files?

You can identify orphaned sensitive code by mapping git ownership against security-focused rules. This Skill flags files related to authentication, crypto, or secrets that have low bus factors or lack clear ownership to highlight unmonitored vulnerabilities.

Can I export the code ownership topology to a graph database like Neo4j?

Yes, you can export the code ownership topology to graph databases like Neo4j. This Skill generates graph data representing the security ownership structure for direct import and external visualization.

Does this security ownership analysis require networkx as a dependency?

Yes, this security ownership analysis requires networkx as a dependency to construct the security ownership topology. The networkx library enables the underlying graph computations needed for bus factor calculation and risk assessment.

What is the best way to perform a CODEOWNERS reality check against actual git history?

The best way to perform a CODEOWNERS reality check is by analyzing actual git commit history rather than relying solely on the CODEOWNERS file. This Skill compares declared ownership against real contribution topology to find discrepancies.

Why does a low bus factor indicate a security risk for sensitive code?

A low bus factor indicates a security risk for sensitive code because it means very few maintainers understand the critical code. This creates a high risk of security vulnerabilities going unnoticed if those essential maintainers leave the project.