Skip to content

Conversation

@linyiru
Copy link
Contributor

@linyiru linyiru commented Jan 22, 2026

Summary

根據官方 Plugins Reference 文件,套用 best practices:

Agent 改善

改善 說明
重命名 "Expertise" → "Capabilities" 與官方結構一致
新增 "Context and examples" 章節 說明何時該/不該使用此 agent

Hook 改善

改善 說明
重新加入 Setup hook 官方文件確認為有效事件類型
修正 hooks.json 結構 符合官方 schema

Plugin Manifest 改善

改善 說明
移除 skills/agents 欄位 預設位置會自動偵測,無需顯式指定
加入 hooks 設定 newebpay 環境檢查

CI 改善

改善 說明
新增 validate-schema job 使用 claude plugin validate 做完整 schema 驗證

Test plan

  • 確認 claude plugin validate 通過所有 plugins
  • 確認 Setup hook 在 --init 時執行
  • 確認 GitHub Actions CI 通過

Agent improvements:
- Rename "Expertise" to "Capabilities" per official structure
- Add "Context and examples" section with usage scenarios

Hook improvements:
- Re-add Setup hook (confirmed valid event type)
- Correct hooks.json structure

Plugin manifest improvements:
- Remove unnecessary skills/agents fields (default locations auto-discovered)
- Add hooks configuration to newebpay

CI improvements:
- Add claude plugin validate for schema validation
@linyiru linyiru merged commit 8a235fc into main Jan 22, 2026
3 checks passed
@linyiru linyiru deleted the improve/plugin-best-practices branch January 22, 2026 18:44
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.

1 participant