auto
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)
$ npx -y skills add kaimingwan/oh-my-kiro --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/ckContext preview
What this command does when you run it.
Checkout a branch in a submodule, with fuzzy search support. (CK = Checkout)
Checkout a branch in a submodule, with fuzzy search support. (CK = Checkout)
Operates on the current submodule or the submodule specified by the user.
If user specifies a submodule name, use it. Otherwise detect from current directory:
# Check if we're inside a submodule sm_path=$(git rev-parse --show-superproject-working-tree 2>/dev/null) if [ -n "$sm_path" ]; then echo "IN_SUBMODULE=true" else # List available submodules for user to pick git submodule --quiet foreach 'echo $sm_path' fi
If user provided a branch name (or partial name after @ck):
input="<user_input>"
# Fetch latest branches
git fetch origin --prune --quiet 2>/dev/null
# Search: local branches first, then remote
echo "=== Local branches ==="
git branch --list "*${input}*" --sort=-committerdate | head -10
echo "=== Remote branches ==="
git branch -r --list "*${input}*" --sort=-committerdate | head -10Show matches to user. If multiple matches, let user pick. If exactly one match, confirm and proceed.
If user provided NO branch name, show recent branches:
echo "=== Recent branches (last 10) ===" git branch -r --sort=-committerdate | head -10
Two modes based on user intent:
**Mode A: Direct checkout (switch submodule's current branch)**
git checkout <branch>
**Mode B: Create worktree (for development work)**
branch="<selected_branch>"
sm_name=$(basename $(pwd))
wt_name="${sm_name}-$(echo $branch | sed 's#origin/##; s#/#-#g')"
wt_path="worktrees/${wt_name}"
# Create worktree at project root level
git worktree add "../../worktrees/${wt_name}" -b "$(echo $branch | sed 's#origin/##')" "$branch" 2>/dev/null \
|| git worktree add "../../worktrees/${wt_name}" "$branch"
echo "Worktree created: $wt_path (branch: $branch)"Ask user which mode they want, default to Mode B (worktree) for feature branches.
--- User's message (the text after @ck):
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…
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…
1. If the user specifies a path after @evaluate (e.g., `@evaluate worktrees/omk-foo`), use that path. 2. Otherwise, check…