feat: add knowledge-silo command to detect team knowledge silos#76
Open
feat: add knowledge-silo command to detect team knowledge silos#76
Conversation
Analyzes git history per directory to identify areas where only one or two people have contributed. Computes silo scores using Herfindahl concentration index and contributor count, then ranks directories by risk level (critical/high/medium/low). Includes markdown and JSON output, optional DB persistence via --save, configurable directory depth and minimum commit thresholds. Nightshift-Task: knowledge-silo Nightshift-Ref: https://github.com/marcus/nightshift Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
nightshift knowledge-silocommand that analyzes git history per directory to identify knowledge silos — areas where only 1-2 people have contributed--jsonoutput,--depthfor directory grouping,--min-commitsfiltering, and--save/--dbfor DB persistence via new migration 006New files
internal/analysis/silo.go— SiloEntry/SiloReport types, ParseAuthorsByDirectory, CalculateSilosinternal/analysis/silo_report.go— SiloReportGenerator with Generate/RenderMarkdown/Recommendationsinternal/analysis/silo_db.go— SiloResult.Store and LoadLatestSilo for DB persistenceinternal/analysis/silo_test.go— Unit tests for scoring, risk assessment, report generation, edge casescmd/nightshift/commands/silo.go— Cobra command wired to rootCmdinternal/db/migrations.go— Migration 006 for knowledge_silo_results tableTest plan
go build ./...passesgo test ./internal/analysis/... ./cmd/nightshift/...passesgo vet ./...passesnightshift knowledge-siloon a real reponightshift knowledge-silo --jsonnightshift knowledge-silo --save🤖 Generated with Claude Code
Automated by nightshift