New command: skillscope hooks - #36
Merged
notsointresting merged 1 commit intoJul 23, 2026
Merged
Conversation
Hooks are already a tracked ComponentKind but had no CLI view — only skills and agents did. Add `skillscope hooks`, dispatching to componentView(loaded, 'hook', view) so it inherits --json/--md/--csv/--sort/--dead/--untracked for free, and give the hook kind a 'Hooks' display label instead of falling back to the raw kind string. Closes notsointresting#28
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.
Hooks are already a tracked
ComponentKind('hook',src/analyze/attribute.ts) but had no CLI view — onlyskillsandagentsexisted.Changes
src/cli.ts: addedhookstoCOMMANDS, to the help text, and to the dispatch chain ascomponentView(loaded, 'hook', view). It inherits--json/--md/--csv/--sort/--dead/--untrackedfor free, sincecomponentViewalready handles those generically.src/commands.ts: gave thehookkind aHooksdisplay label. Without it the terminal heading fell through to the raw kind string and read "hook in use" / "hook that have never fired".Tests
Two cases in
test/cli.test.tsover the fixture history: the terminal view renders,--jsonparses, and--deadproduces the never-fired heading.Build,
npm run typecheckand the full suite (83 passing) are green.Closes #28