Skip to content

New command: skillscope hooks - #36

Merged
notsointresting merged 1 commit into
notsointresting:mainfrom
dchaudhari7177:feat/hooks-command
Jul 23, 2026
Merged

New command: skillscope hooks#36
notsointresting merged 1 commit into
notsointresting:mainfrom
dchaudhari7177:feat/hooks-command

Conversation

@dchaudhari7177

Copy link
Copy Markdown
Contributor

Hooks are already a tracked ComponentKind ('hook', src/analyze/attribute.ts) but had no CLI view — only skills and agents existed.

Changes

  • src/cli.ts: added hooks to COMMANDS, to the help text, and to the dispatch chain as componentView(loaded, 'hook', view). It inherits --json/--md/--csv/--sort/--dead/--untracked for free, since componentView already handles those generically.
  • src/commands.ts: gave the hook kind a Hooks display 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.ts over the fixture history: the terminal view renders, --json parses, and --dead produces the never-fired heading.

Build, npm run typecheck and the full suite (83 passing) are green.

Closes #28

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
@notsointresting
notsointresting merged commit f0dd744 into notsointresting:main Jul 23, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New command: skillscope hooks

3 participants