From e49d1a46811367e8639be423782671f0b0c4c6ef Mon Sep 17 00:00:00 2001 From: cosmozmzhu Date: Fri, 19 Jun 2026 10:19:36 +0800 Subject: [PATCH] feat: add CodeBuddy platform support - Add codebuddy to install.sh platform registry (per-skill style, ~/.codebuddy/skills/) - Add codebuddy to install.ps1 platform registry (Windows) - Add ~/.codebuddy/skills/ path resolution to PLUGIN_ROOT detection in: - skills/understand/SKILL.md - skills/understand-dashboard/SKILL.md - skills/understand-domain/SKILL.md CodeBuddy stores user-level skills at ~/.codebuddy/skills//, matching the per-skill symlink approach already used by codex/gemini/pi/etc. --- install.ps1 | 1 + install.sh | 1 + .../skills/understand-dashboard/SKILL.md | 4 ++++ understand-anything-plugin/skills/understand-domain/SKILL.md | 4 ++++ understand-anything-plugin/skills/understand/SKILL.md | 4 ++++ 5 files changed, 14 insertions(+) diff --git a/install.ps1 b/install.ps1 index 5476887b6..906dcb55a 100644 --- a/install.ps1 +++ b/install.ps1 @@ -41,6 +41,7 @@ $Platforms = [ordered]@{ trae = @{ Target = (Join-Path $HOME '.trae\skills'); Style = 'per-skill' } nanobot = @{ Target = (Join-Path $HOME '.nanobot\workspace\skills'); Style = 'per-skill' } kiro = @{ Target = (Join-Path $HOME '.kiro\skills'); Style = 'per-skill' } + codebuddy = @{ Target = (Join-Path $HOME '.codebuddy\skills'); Style = 'per-skill' } } function Show-Usage { diff --git a/install.sh b/install.sh index 1c3423119..b40496d99 100755 --- a/install.sh +++ b/install.sh @@ -42,6 +42,7 @@ kimi|$HOME/.kimi/skills|folder trae|$HOME/.trae/skills|per-skill nanobot|$HOME/.nanobot/workspace/skills|per-skill kiro|$HOME/.kiro/skills|per-skill +codebuddy|$HOME/.codebuddy/skills|per-skill EOF } diff --git a/understand-anything-plugin/skills/understand-dashboard/SKILL.md b/understand-anything-plugin/skills/understand-dashboard/SKILL.md index 44ff8dd26..8065a4ed3 100644 --- a/understand-anything-plugin/skills/understand-dashboard/SKILL.md +++ b/understand-anything-plugin/skills/understand-dashboard/SKILL.md @@ -36,6 +36,8 @@ Start the Understand Anything dashboard to visualize the knowledge graph for the SELF_RELATIVE=$([ -n "$SKILL_REAL" ] && cd "$SKILL_REAL/../.." 2>/dev/null && pwd || echo "") COPILOT_SKILL_REAL=$(realpath ~/.copilot/skills/understand-dashboard 2>/dev/null || readlink -f ~/.copilot/skills/understand-dashboard 2>/dev/null || echo "") COPILOT_SELF_RELATIVE=$([ -n "$COPILOT_SKILL_REAL" ] && cd "$COPILOT_SKILL_REAL/../.." 2>/dev/null && pwd || echo "") + CODEBUDDY_SKILL_REAL=$(realpath ~/.codebuddy/skills/understand-dashboard 2>/dev/null || readlink -f ~/.codebuddy/skills/understand-dashboard 2>/dev/null || echo "") + CODEBUDDY_SELF_RELATIVE=$([ -n "$CODEBUDDY_SKILL_REAL" ] && cd "$CODEBUDDY_SKILL_REAL/../.." 2>/dev/null && pwd || echo "") PLUGIN_ROOT="" for candidate in \ @@ -43,6 +45,7 @@ Start the Understand Anything dashboard to visualize the knowledge graph for the "$HOME/.understand-anything-plugin" \ "$SELF_RELATIVE" \ "$COPILOT_SELF_RELATIVE" \ + "$CODEBUDDY_SELF_RELATIVE" \ "$HOME/.codex/understand-anything/understand-anything-plugin" \ "$HOME/.opencode/understand-anything/understand-anything-plugin" \ "$HOME/.pi/understand-anything/understand-anything-plugin" \ @@ -59,6 +62,7 @@ Start the Understand Anything dashboard to visualize the knowledge graph for the echo " - $HOME/.understand-anything-plugin" echo " - ${SELF_RELATIVE:-}" echo " - ${COPILOT_SELF_RELATIVE:-}" + echo " - ${CODEBUDDY_SELF_RELATIVE:-}" echo " - $HOME/.codex/understand-anything/understand-anything-plugin" echo " - $HOME/.opencode/understand-anything/understand-anything-plugin" echo " - $HOME/.pi/understand-anything/understand-anything-plugin" diff --git a/understand-anything-plugin/skills/understand-domain/SKILL.md b/understand-anything-plugin/skills/understand-domain/SKILL.md index f5fab143b..bf0657d04 100644 --- a/understand-anything-plugin/skills/understand-domain/SKILL.md +++ b/understand-anything-plugin/skills/understand-domain/SKILL.md @@ -51,6 +51,8 @@ SKILL_REAL=$(realpath ~/.agents/skills/understand-domain 2>/dev/null || readlink SELF_RELATIVE=$([ -n "$SKILL_REAL" ] && cd "$SKILL_REAL/../.." 2>/dev/null && pwd || echo "") COPILOT_SKILL_REAL=$(realpath ~/.copilot/skills/understand-domain 2>/dev/null || readlink -f ~/.copilot/skills/understand-domain 2>/dev/null || echo "") COPILOT_SELF_RELATIVE=$([ -n "$COPILOT_SKILL_REAL" ] && cd "$COPILOT_SKILL_REAL/../.." 2>/dev/null && pwd || echo "") +CODEBUDDY_SKILL_REAL=$(realpath ~/.codebuddy/skills/understand-domain 2>/dev/null || readlink -f ~/.codebuddy/skills/understand-domain 2>/dev/null || echo "") +CODEBUDDY_SELF_RELATIVE=$([ -n "$CODEBUDDY_SKILL_REAL" ] && cd "$CODEBUDDY_SKILL_REAL/../.." 2>/dev/null && pwd || echo "") PLUGIN_ROOT="" for candidate in \ @@ -58,6 +60,7 @@ for candidate in \ "$HOME/.understand-anything-plugin" \ "$SELF_RELATIVE" \ "$COPILOT_SELF_RELATIVE" \ + "$CODEBUDDY_SELF_RELATIVE" \ "$HOME/.codex/understand-anything/understand-anything-plugin" \ "$HOME/.opencode/understand-anything/understand-anything-plugin" \ "$HOME/.pi/understand-anything/understand-anything-plugin" \ @@ -75,6 +78,7 @@ if [ -z "$PLUGIN_ROOT" ]; then echo " - $HOME/.understand-anything-plugin" echo " - ${SELF_RELATIVE:-}" echo " - ${COPILOT_SELF_RELATIVE:-}" + echo " - ${CODEBUDDY_SELF_RELATIVE:-}" echo " - $HOME/.codex/understand-anything/understand-anything-plugin" echo " - $HOME/.opencode/understand-anything/understand-anything-plugin" echo " - $HOME/.pi/understand-anything/understand-anything-plugin" diff --git a/understand-anything-plugin/skills/understand/SKILL.md b/understand-anything-plugin/skills/understand/SKILL.md index 02a213545..15c0019d1 100644 --- a/understand-anything-plugin/skills/understand/SKILL.md +++ b/understand-anything-plugin/skills/understand/SKILL.md @@ -81,6 +81,8 @@ Determine whether to run a full analysis or incremental update. SELF_RELATIVE=$([ -n "$SKILL_REAL" ] && cd "$SKILL_REAL/../.." 2>/dev/null && pwd || echo "") COPILOT_SKILL_REAL=$(realpath ~/.copilot/skills/understand 2>/dev/null || readlink -f ~/.copilot/skills/understand 2>/dev/null || echo "") COPILOT_SELF_RELATIVE=$([ -n "$COPILOT_SKILL_REAL" ] && cd "$COPILOT_SKILL_REAL/../.." 2>/dev/null && pwd || echo "") + CODEBUDDY_SKILL_REAL=$(realpath ~/.codebuddy/skills/understand 2>/dev/null || readlink -f ~/.codebuddy/skills/understand 2>/dev/null || echo "") + CODEBUDDY_SELF_RELATIVE=$([ -n "$CODEBUDDY_SKILL_REAL" ] && cd "$CODEBUDDY_SKILL_REAL/../.." 2>/dev/null && pwd || echo "") PLUGIN_ROOT="" for candidate in \ @@ -88,6 +90,7 @@ Determine whether to run a full analysis or incremental update. "$HOME/.understand-anything-plugin" \ "$SELF_RELATIVE" \ "$COPILOT_SELF_RELATIVE" \ + "$CODEBUDDY_SELF_RELATIVE" \ "$HOME/.codex/understand-anything/understand-anything-plugin" \ "$HOME/.opencode/understand-anything/understand-anything-plugin" \ "$HOME/.pi/understand-anything/understand-anything-plugin" \ @@ -105,6 +108,7 @@ Determine whether to run a full analysis or incremental update. echo " - $HOME/.understand-anything-plugin" echo " - ${SELF_RELATIVE:-}" echo " - ${COPILOT_SELF_RELATIVE:-}" + echo " - ${CODEBUDDY_SELF_RELATIVE:-}" echo " - $HOME/.codex/understand-anything/understand-anything-plugin" echo " - $HOME/.opencode/understand-anything/understand-anything-plugin" echo " - $HOME/.pi/understand-anything/understand-anything-plugin"