Knowledge Silo: add --json/--output flags, tests, and report#37
Open
clockblocker wants to merge 1 commit intomasterfrom
Open
Knowledge Silo: add --json/--output flags, tests, and report#37clockblocker wants to merge 1 commit intomasterfrom
clockblocker wants to merge 1 commit intomasterfrom
Conversation
…for knowledge-silo - Add --json flag for machine-readable JSON output (CI integration) - Add --output=<path> flag for writing directly to a file - Export classifyModule, computeBusFactor, detectSilos, aggregateByModule as named exports for testability - Guard main() with import.meta.main so imports don't trigger execution - Add 20 unit tests covering all four pure functions - Generate and commit .nightshift/knowledge-silo-report.md Nightshift-Task: knowledge-silo Nightshift-Ref: https://github.com/marcus/nightshift Co-Authored-By: Claude Opus 4.6 <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
--jsonflag for machine-readable JSON output (CI/automation integration)--output=<path>flag for writing reports directly to a fileclassifyModule,computeBusFactor,detectSilos,aggregateByModule) as named exports for testability.nightshift/knowledge-silo-report.mdwith the current analysisAnalysis Highlights
All 19 modules are flagged as HIGH risk — single contributor (clockblocker) owns 100% of commits across the entire
src/tree. Bus factor = 1 everywhere.Test plan
bun test tests/unit/knowledge-silo.test.ts— 20/20 passbun scripts/knowledge-silo.ts --json— valid JSON outputbun scripts/knowledge-silo.ts --output=.nightshift/knowledge-silo-report.md— file writtenbiome checkon changed files — cleanNightshift-Task: knowledge-silo
Nightshift-Ref: https://github.com/marcus/nightshift
🤖 Generated with Claude Code