Documentation
¶
Overview ¶
Package check_knowledge implements the ctx system check-knowledge subcommand.
It counts entries in DECISIONS.md, LEARNINGS.md, and CONVENTIONS.md and nudges when any file exceeds its configured growth threshold.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cmd ¶
Cmd returns the "ctx system check-knowledge" subcommand.
Returns:
- *cobra.Command: Configured check-knowledge subcommand
func Run ¶
Run executes the check-knowledge hook logic.
Reads hook input from stdin, checks knowledge file sizes against configured thresholds (entry counts for DECISIONS.md and LEARNINGS.md, line count for CONVENTIONS.md), and emits a relay warning if any file exceeds its limit. Throttled to once per day.
Parameters:
- cmd: Cobra command for output
- stdin: standard input for hook JSON
Returns:
- error: Always nil (hook errors are non-fatal)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.