security-ownership-map

Analyze git history to map people-to-files ownership and security hotspots.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Analyzes git history to map people-to-files ownership and identify security hotspots.

Core Features & Use Cases

  • Build a bipartite graph of people and files from repository history and compute ownership risk (bus factor) and sensitive-code hotspots.
  • Generate exports (CSV/JSON) for graph databases and visualization, plus a file co-change graph to reveal code movement patterns.
  • Detect potential CODEOWNERS drift and orphaned sensitive code to guide remediation and audits in security-critical projects.

Quick Start

Run the ownership map against your repository to produce outputs that can be loaded into Neo4j or Gephi.

Frequently Asked Questions about security-ownership-map

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

FAQPage Schema
How do I map code ownership from git history to identify security hotspots?

Git history ownership mapping analyzes commits to build a bipartite people-to-files graph, computing bus factor risk and identifying sensitive-code hotspots. It outputs CSV and JSON artifacts containing ownership and co-change graph data.

What is a bus factor analysis and how does it apply to security ownership?

Bus factor analysis in security ownership quantifies repository risk by calculating how many developers actively maintain sensitive code areas. It applies git history mapping to identify orphaned code or security-critical paths lacking sufficient developer coverage.

Can I detect CODEOWNERS drift and orphaned sensitive code in large repositories?

Yes, detecting CODEOWNERS drift and orphaned sensitive code is possible by analyzing git history against configured sensitive-path rules. This identifies files where ownership records have diverged from actual commit activity, flagging remediation targets for security audits.

Do I need Python and networkx to generate ownership and co-change graphs?

Yes, Python 3 and the networkx library are required dependencies to generate ownership and co-change graphs. These components construct the bipartite graphs and perform optional community detection for risk clustering across the analyzed codebase.

How do I export git history ownership graphs for Neo4j or Gephi visualization?

Exporting git history ownership graphs for Neo4j or Gephi requires running the analysis to produce CSV and JSON artifacts. These standard formats contain graph nodes and edges, enabling direct import into graph databases and network visualization platforms.

When should I use sensitive-path rules for security risk clustering?

Sensitive-path rules for security risk clustering should be used when isolating high-risk directories or files within large codebases. They focus the ownership and bus factor analysis specifically on security-critical code movement patterns and potential orphaned areas.