文件历史

提交图

4 次代码提交

作者 SHA1 备注 提交日期
Layyes b7833777b1 Fix command execution in hooks.json 2026-06-13 12:30:34 +08:00
Layyes 212e7a1d9c fix: add path fallback for manual installation in hooks.json
When users manually copy hooks to .claude/ instead of installing via plugin, ${CLAUDE_PLUGIN_ROOT} is not set and the SessionStart hook silently fails.
   This adds a fallback to ${CLAUDE_PROJECT_DIR}/.claude/hooks/ so the hook works in both plugin and manual install modes. If neither path exists, it silently succeeds.
2026-06-13 12:27:18 +08:00
Federico Bartoli 0490a93323 Add Claude Code plugin manifest and marketplace catalog
Enable this repo to work as a Claude Code plugin so users can
install it via `/plugin marketplace add addyosmani/agent-skills`.

Add:
- .claude-plugin/plugin.json — plugin manifest exposing
  .claude/commands/ as namespaced slash commands under
  the agent-skills: prefix
- .claude-plugin/marketplace.json — marketplace catalog
  listing this repo as the agent-skills plugin

Fix:
- hooks/hooks.json — rewrite from deprecated flat-array format
  to the plugin-system format keyed by event type; use
  ${CLAUDE_PLUGIN_ROOT} so the hook resolves correctly when the
  plugin is installed from the marketplace into the local cache
- README — replace non-existent `claude plugin add` with the
  correct `/plugin marketplace add` workflow; document namespaced
  slash commands and --plugin-dir usage; add .claude-plugin/ to
  the project tree
2026-02-23 12:29:43 +01:00
Addy Osmani d2e333a2c6 add CLAUDE.md and hooks 2026-02-15 14:28:07 -08:00