Commit Graph
8 Commits
Author SHA1 Message Date
asepharyana 0604df8fe2 feat(hooks): inject skill content at session start (superpowers pattern)
- SessionStart hook now reads MANDATORY SKILL.md files and injects
  full content into conversation context before any user interaction
- Uses XML-like tags (<hub-guide-skills>, <skill>) to structure context
- Keeps project detection for active skills
- Follows obra/superpowers pattern: load skill content before explore
2026-07-25 17:49:12 +07:00
asepharyana 0aebde93ea feat: mark clean-code & clean-architecture as MANDATORY
- Add MANDATORY prefix to clean-code and clean-architecture descriptions
- Change 'core skills' to 'mandatory' in detect-project.sh output
- Both skills now always active, not just context-triggered
2026-07-25 13:07:10 +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 8af189167d fix(hub-guide): make hook output language-neutral
Remove English hardcoded sentences from detect-project.sh and detect-file-type.sh.
Output is now structured labels (emoji + key: value) without linguistic content.
2026-07-25 13:01:03 +07:00
asepharyana 5780d94ccf feat(hub-guide): language-agnostic auto-trigger across all skills
- Add principle 27: 'Language-Agnostic Auto-Trigger' to engineering-principles
- Remove hardcoded English-only keyword lists from all 26 skill descriptions
- Replace with concept-based detection: triggers from code context, project files,
  and file types regardless of spoken language
- Update detect-project.sh hook output with language-agnostic message
2026-07-25 12:59:43 +07:00
asepharyana 3a559a58f6 feat(hub-guide): add 'ask when ambiguous' principle across skills
- Add principle #25 to engineering-principles: 'Ask When Ambiguous'
- Add 'Ask When Ambiguous' section to design-patterns and clean-architecture
- Update detect-project.sh hook to reinforce ask-don't-assume behavior
2026-07-25 12:05:00 +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