security-ownership-map

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Analyze git history to reveal who owns which parts of a codebase, identify sensitive hotspots, and quantify ownership risk to support audits and governance.

Core Features & Use Cases

  • Build bipartite ownership graphs (people to files) from commits and export CSV/JSON for graph databases and visualization.
  • Compute bus factor and sensitive-code ownership, plus a file co-change graph to cluster related files.
  • Quick checks for CODEOWNERS drift and orphaned sensitive code across repositories.

Quick Start

Run the analysis on a repository to generate ownership outputs.

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 bus factor from git history?

Calculate bus factor from git history by analyzing commit logs to map people-to-files ownership and quantify risk. The tool processes repository commits to identify how many developers hold critical knowledge before a project becomes vulnerable to personnel loss.

How do I detect CODEOWNERS drift and orphaned sensitive code?

Detect CODEOWNERS drift and orphaned sensitive code by cross-referencing declared ownership rules against actual git commit patterns. The tool performs quick checks across repositories to reveal sensitive files lacking active maintainers or mismatched assignments.

Can I export git ownership graphs to CSV and JSON for visualization?

Yes, you can export git ownership graphs to CSV and JSON for visualization and graph databases. The tool builds bipartite people-to-files ownership graphs and file co-change clusters, outputting structured artifacts for downstream analysis.

Do I need Python and networkx to map code ownership and security hotspots?

You need Python and access to git history to map code ownership and security hotspots, while networkx is optional for community detection. The tool requires these dependencies to compute ownership graphs and identify sensitive code clusters.

What is the best way to quantify sensitive code ownership risk for auditing?

The best way to quantify sensitive code ownership risk for auditing is to analyze git history and compute bus factors for high-risk files. This approach reveals stale code, identifies sensitive hotspots, and generates structured CSV artifacts for governance.