Change plugin name from 'hub-guide' to 'code-guide' to avoid AI
interpreting it as Hub-specific. Skills now show as code-guide:skill-name.
Universal best-practice, not limited to any specific project.
Previously returned ok:false every time because 'fully applied' all 8
skills is impossible in one response. Now ok:true by default (silent),
only fires ok:false when Claude is clearly guessing or violating rules.
UserPromptSubmit dengan ok:false MEMBLOKIR prompt user.
Stop event dengan ok:false = inject instruksi ke Claude tanpa block.
Sama-sama inject context, tapi gak menghalangi user kerja.
UserPromptSubmit fires before each user prompt. Returns ok:true (silent)
if skills are already applied, ok:false with reason only when not applied.
No more Stop hook error noise.
Stop hook with ok:false fires on every response, causing 'Stop hook error'
display. Skills are auto-discovered via SKILL.md descriptions with
MANDATORY prefixes - hooks are not needed for activation.
Hooks with command type not suitable for skills-dir plugins.
All 26 skills have MANDATORY — always active descriptions that
auto-trigger based on context, code, and project files.
hooks.json in ~/.claude/skills/hub-guide/hooks/hooks.json IS auto-detected
by Claude Code for skills-dir plugins. Remove from settings.local.json
to avoid duplication.
- hooks.json restored with hooks wrapper + proper matchers
- install.sh simplified, no settings.json manipulation
Skills-dir plugins (~/.claude/skills/) may not execute hooks from
hooks/hooks.json. Per documentation, hooks need to be in settings files.
- install.sh: add hook registration in ~/.claude/settings.local.json
- Hooks use absolute paths to hub-guide scripts
- SessionStart matcher: startup|resume|compact
- PreToolUse matcher: Write|Edit
- Remove hooks/hooks.json from plugin (redundant for skills-dir)
- Add matcher: startup|resume|compact for SessionStart (per docs)
- PreToolUse reads from stdin per documented hook input format
- Remove arg, use stdin-based approach
- Scripts read event JSON from stdin as documented
- Plain text output, no special characters
- Add matcher: startup|clear|compact to SessionStart hook
- Inject only engineering-principles as foundational skill (19KB)
- Strip emoji, use plain text everywhere
- Remove 55KB of verbosity, keep focused primer
- hooks.json needs 'hooks' wrapper key at top level
- Remove 'hooks' field from plugin.json (auto-discovered from hooks/hooks.json)
- Simplify hook entries (no nested hooks array)