auto
You MUST follow this exact sequence. @auto is a fully automated pipeline — no user confirmation between stages except during…
Manage worktrees: list status, clean up merged branches.
$ npx -y skills add kaimingwan/oh-my-kiro --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/wtContext preview
What this command does when you run it.
Manage worktrees: list status, clean up merged branches.
Manage worktrees: list status, clean up merged branches.
Run:
echo "=== Worktrees in worktrees/ ==="
for dir in worktrees/*/; do
[ -d "$dir" ] || continue
dir="${dir%/}"
BRANCH=$(git -C "$dir" rev-parse --abbrev-ref HEAD 2>/dev/null || echo "unknown")
echo " $dir → branch: $BRANCH"
doneFor each worktree, detect its submodule by reading `.git` file and check merge status:
for dir in worktrees/*/; do
[ -d "$dir" ] || continue
dir="${dir%/}"
NAME=$(basename "$dir")
BRANCH=$(git -C "$dir" rev-parse --abbrev-ref HEAD 2>/dev/null || continue)
# Detect submodule from worktree's git common dir
COMMON=$(git -C "$dir" rev-parse --git-common-dir 2>/dev/null)
SM=$(basename "$(dirname "$COMMON")" 2>/dev/null)
[ -d "$SM" ] || { echo " ⚠️ $dir — cannot detect submodule, skipping"; continue; }
# Check if branch is merged into main
git -C "$SM" fetch origin main --quiet 2>/dev/null
if git -C "$SM" branch --merged origin/main 2>/dev/null | grep -q "$BRANCH"; then
echo " ✅ $dir ($BRANCH) — MERGED into $SM/main → safe to remove"
else
echo " 🔄 $dir ($BRANCH) — NOT merged into $SM/main"
fi
doneShow the list to the user. For worktrees marked "MERGED":
git -C <submodule> worktree remove ../worktrees/<name>
if [ -f .active-submodule ] && command -v jq >/dev/null 2>&1; then WT=$(jq -r '.worktree // ""' .active-submodule 2>/dev/null) [ "$WT" = "worktrees/<name>" ] && : > .active-submodule fi
--- User's message (the text after @wt):
Your AI agent forgets everything. Mine doesn't. oh-my-kiro is a framework that gives your AI coding agent persistent memory, deterministic workflows, and self-evolving intelligence. Like oh-my-zsh for Zsh — but for AI agents. Day 1: generic agent.
You MUST follow this exact sequence. @auto is a fully automated pipeline — no user confirmation between stages except during…
Checkout a branch in a submodule, with fuzzy search support. (CK = Checkout)
Commit all changes, push to remote, and create a Pull Request. (CPR = Commit Push PR)
Commit all changes, push to remote, and complete branch lifecycle. (CPU = Commit Push Update-readme)
You MUST follow this exact sequence. @debug is a fully automated debugging pipeline — no user confirmation between stages. The…
Lightweight command for small tasks (< 1 hour). No plan file, no review dispatch. Prevents context drift across multi-turn…