From dk
Create or switch branches across workspace projects. Use when the user says 'create branch', 'switch branch', 'checkout branch' for multiple projects.
How this skill is triggered — by the user, by Claude, or both
Slash command
/dk:branchThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Source the helpers:
Source the helpers:
source "${CLAUDE_PLUGIN_ROOT}/scripts/dk-helpers.sh"
Parse arguments:
branch-name: required--projects p1,p2: optional comma-separated filter--create: flag to create new branch (otherwise checkout existing)Get target projects: if --projects given, filter enabled projects to those names. Otherwise use all enabled projects.
Pre-flight for each project: Check current branch and dirty status.
Execute:
If --create:
git -C <abs_path> checkout -b <branch-name> 2>&1
If branch already exists in that project, skip and report.
If no --create (checkout existing):
git -C <abs_path> checkout <branch-name> 2>&1
If branch doesn't exist in that project, skip and report.
Report transitions:
Branch operations:
aether main → feat/xyz created
olam main → feat/xyz created
pleri main → feat/xyz created
Provides CDSS development patterns for drug interaction checking, dose validation, clinical scoring (NEWS2, qSOFA), and alert classification integrated into EMR workflows.
npx claudepluginhub pleri/diakon --plugin dk