#What it does
The security-ownership-map skill analyzes git repositories to build a security ownership topology (people-to-file mapping), computes bus factor and sensitive-code ownership, and exports CSV/JSON artifacts for graph databases and visualization. It also builds a file co-change graph using Jaccard similarity to cluster files by how they move together.
#How to use
bash
$security-ownership-mapBuild a security ownership map for this repository and identify bus-factor risks in sensitive code.
#Workflow
- Scope the repo -- Define time window with optional
--since/--until - Set sensitivity rules -- Use defaults or provide a CSV config for custom rules
- Build the ownership map -- Run
scripts/run_ownership_map.pywith co-change analysis - Analyze communities -- Community detection computed by default
- Query outputs -- Use
scripts/query_ownership.pyfor bounded JSON slices - Visualize -- Export to Neo4j or Gephi for graph visualization
#What it identifies
- Bus factor risks -- Code areas with a single maintainer
- Orphaned sensitive code -- Security-critical files with no active maintainer
- Ownership clusters -- Groups of files that change together
- CODEOWNERS gaps -- Reality checks against declared ownership
- Sensitive hotspots -- High-churn files in security-sensitive areas
#Requirements
- Python 3
networkxpackage (pip install networkx)
This skill is from the OpenAI Skills Catalog.