security-ownership-map

Generate a security-ownership map from Git history, outputting CSV/JSON artifacts.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Build a clear picture of who owns what in a codebase by analyzing Git history to map people-to-files and identify ownership risk.

Core Features & Use Cases

  • Create a bipartite person-file ownership map from commit history.
  • Compute bus factor, sensitive-code hotspots, and CODEOWNERS drift for risk assessment.
  • Export artifacts (CSV/JSON) suitable for graph databases and visualization.

Quick Start

Run the ownership map to generate a security ownership graph for your repository.

Frequently Asked Questions about security-ownership-map

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

FAQPage Schema
How do I identify orphaned sensitive code and ownership clusters from git history?

To identify orphaned sensitive code and ownership clusters from git history, analyze commit data to build a bipartite person-file ownership map. This process highlights ownership risk by showing exactly who owns specific sensitive files.

What is CODEOWNERS drift and how do I calculate it for my repository?

CODEOWNERS drift is the discrepancy between actual file ownership derived from commit history and the rules defined in your CODEOWNERS file. You can calculate this drift by mapping commit authors to files and comparing the resulting topology against the expected owners.

How do I compute the bus factor for sensitive files in a codebase?

You compute the bus factor for sensitive files by analyzing git history to map contributors to those specific paths. A low number of unique contributors to sensitive code hotspots indicates a high-risk bus factor.

Can I use networkx to generate a security ownership topology for a repository?

Yes, you can use networkx to generate a security ownership topology by creating a bipartite graph of people and files from commit history. This approach requires Python and networkx to process the repository data and compute ownership metrics.

How do I export git ownership analysis data for graph databases and visualization tools?

You export git ownership analysis data by generating CSV and JSON artifacts from the computed person-file ownership graph. These artifacts contain the nodes and edges needed to import the security ownership topology into graph databases and visualization platforms.

Do I need a sensitive-path CSV to analyze repository ownership risk?

Yes, you need a sensitive-path CSV to target the ownership analysis specifically at critical files. Accepting this CSV input allows the analysis to focus on identifying orphaned sensitive code and ownership clusters within those defined paths.