Commit Graph
19 Commits
Author SHA1 Message Date
asepharyana 288939bb5a feat: update plugin version to 0.3.0, enhance hooks, and refine skill descriptions 2026-07-26 13:27:48 +07:00
asepharyana fa2f1fe838 rename: hub-guide -> code-guide
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.
2026-07-26 12:23:48 +07:00
asepharyana 7e76b2da44 fix(hooks): only fire ok:false when clearly violating principles
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.
2026-07-26 12:21:31 +07:00
asepharyana eba82a9b2f fix(hooks): use Stop event, not UserPromptSubmit
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.
2026-07-26 12:18:39 +07:00
asepharyana d66587ada1 fix(hooks): restore with UserPromptSubmit prompt hook
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.
2026-07-26 12:16:36 +07:00
asepharyana 4c0285bf98 fix(hooks): remove Stop prompt hook causing 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.
2026-07-26 12:15:10 +07:00
asepharyana a527d0ee78 fix(hooks): use type prompt instead of command
Prompt-based hook returns ok:false with skill reminders as reason,
which gets fed back to Claude as active instructions.
2026-07-26 12:13:15 +07:00
asepharyana 0717000085 fix(hooks): inline context in hooks.json, no bash scripts
SessionStart hook directly echoes context text instead of
calling external script. Simple, maintainable, no dependencies.
2026-07-26 12:12:07 +07:00
asepharyana f40e925431 fix(hooks): remove hooks, rely on skill descriptions 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.
2026-07-26 12:10:53 +07:00
asepharyana f149899ad5 fix(hooks): restore hooks.json in plugin dir, remove from settings.local
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
2026-07-26 12:09:48 +07:00
asepharyana 6612cd9163 fix(hooks): configure via settings.local.json not plugin hooks.json
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)
2026-07-26 12:06:29 +07:00
asepharyana 95a91d7bf5 fix(hooks): restore with proper SessionStart matchers
- 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
2026-07-26 12:03:49 +07:00
asepharyana a237759788 fix(hooks): match superpowers pattern exactly
- 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
2026-07-26 11:56:55 +07:00
asepharyana a167705769 fix(hooks): use Python JSON generation for reliable context injection
- Replace bash escape_json + printf with Python json.dump for
  reliable handling of Unicode and special characters in SKILL.md
- Output follows superpowers pattern: hookSpecificOutput.additionalContext
- 55KB context, 1230 lines, 8 mandatory skills injected at session start
- Tested: JSON valid, content complete
2026-07-26 11:51:35 +07:00
asepharyana a0f8796ebd fix(hooks): restore SessionStart + PreToolUse command hooks
Restore detect-project.sh, detect-file-type.sh, and hooks.json
from working version (80feaf2) with prompt-detection guidance lines.
2026-07-25 13:05:18 +07:00
asepharyana 082c8bc5b5 feat(hooks): detect from prompt not files
- Replace command-based SessionStart/PreToolUse hooks with prompt-based Stop hook
- Stop hook reads user's prompt and activates relevant skills concept-based
- Remove obsolete detect-project.sh, detect-file-type.sh, setup-hooks.sh
- Detection is concept-based regardless of spoken language
2026-07-25 13:03:38 +07:00
asepharyana 80feaf2f16 fix(hub-guide): add nested hooks array in hooks.json entries
Each event entry needs hooks: [{ type, command, timeout }] inside it.
2026-07-25 11:59:34 +07:00
asepharyana 7435566498 fix(hub-guide): correct hooks.json format and remove redundant manifest field
- 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)
2026-07-25 11:58:44 +07:00
asepharyana e513cddd68 feat(hub-guide): expand plugin with 26 best-practice skills, hooks, and references
Transform hub-guide from a single-skill Hub monorepo guide into a
comprehensive programming best-practice plugin covering all situations.

Skills (26):
- Core: engineering-principles, clean-code, clean-architecture,
  design-patterns, testing, error-handling, security, api-design,
  git-workflow, documentation, logging-observability, performance
- Languages: typescript, python, rust, go
- Frameworks: react-frontend, elysiajs, hono-backend, drizzle-database, nextjs
- Infrastructure: docker, ci-cd, monitoring
- Monorepo: monorepo, hub-guide (existing)

Hooks:
- SessionStart: auto-detect project type and activate relevant skills
- PreToolUse (Write|Edit): inject language-specific rules per file type

Reference files for deep dives:
- clean-architecture/references/solid.md (SOLID + component principles)
- design-patterns/references/catalog.md (full GoF catalog with examples)
- testing/references/mocks.md (test double taxonomy)

Restructure plugin to modern skills/ directory format.
2026-07-25 11:35:16 +07:00